Skip to content

Commit

Permalink
common: override buildbot-nix nix-eval-jobs with patched curl
Browse files Browse the repository at this point in the history
  • Loading branch information
devusb committed Nov 24, 2024
1 parent 3275b97 commit 1fddaf0
Show file tree
Hide file tree
Showing 4 changed files with 26 additions and 5 deletions.
8 changes: 4 additions & 4 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion flake.nix
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
inputs = {
nixpkgs.url = "nixpkgs/nixos-unstable";
nixpkgs-stable.url = "github:nixos/nixpkgs/nixos-23.11";
nixpkgs-stable.url = "github:nixos/nixpkgs/nixos-24.05";
nix-packages = {
url = "github:devusb/nix-packages";
inputs.nixpkgs.follows = "nixpkgs";
Expand Down
19 changes: 19 additions & 0 deletions hosts/chopper/buildbot.nix
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,25 @@
services.buildbot-nix.worker = {
enable = true;
workerPasswordFile = config.sops.secrets.buildbot_nix_worker_password.path;
nixEvalJobs.package = pkgs.stable.nix-eval-jobs.overrideAttrs (old: {
src = pkgs.fetchFromGitHub {
owner = "nix-community";
repo = "nix-eval-jobs";
# https://github.com/nix-community/nix-eval-jobs/pull/325
rev = "e5a2c008b922c1a7642f93d29645403b20c70fec";
sha256 = "sha256-UIY4EFvzsxYK8FhT6RSsmVDLqDBHDMzROy1g4YisIgY=";
};

buildInputs = with pkgs; [
boost
(pkgs.nixVersions.nix_2_24.override {
git = git-netrc-fix;
curl = curl-netrc-fix;
})
curl-netrc-fix
nlohmann_json
];
});
};

nix.distributedBuilds = true;
Expand Down
2 changes: 2 additions & 0 deletions hosts/common/curl-netrc/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@
};
in
{
curl-netrc-fix = curl;
git-netrc-fix = git;
nix = prev.nix.override {
inherit git curl;
};
Expand Down

0 comments on commit 1fddaf0

Please sign in to comment.