Skip to content

Commit

Permalink
Merge pull request #145383 from hercules-ci/upgrade-cnix
Browse files Browse the repository at this point in the history
hercules-ci-*, cachix: nix: 2.3 -> 2.4
  • Loading branch information
domenkozar authored Nov 14, 2021
2 parents 0a49d70 + f4c24b7 commit 6fe9972
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 5 deletions.
8 changes: 4 additions & 4 deletions pkgs/development/haskell-modules/configuration-nix.nix
Original file line number Diff line number Diff line change
Expand Up @@ -936,11 +936,11 @@ self: super: builtins.intersectAttrs super {

rel8 = addTestToolDepend pkgs.postgresql super.rel8;

cachix = generateOptparseApplicativeCompletion "cachix" (super.cachix.override { nix = pkgs.nix_2_3; });
cachix = generateOptparseApplicativeCompletion "cachix" (super.cachix.override { nix = pkgs.nix_2_4; });

hercules-ci-agent = super.hercules-ci-agent.override { nix = pkgs.nix_2_3; };
hercules-ci-cnix-expr = super.hercules-ci-cnix-expr.override { nix = pkgs.nix_2_3; };
hercules-ci-cnix-store = super.hercules-ci-cnix-store.override { nix = pkgs.nix_2_3; };
hercules-ci-agent = appendConfigureFlag (super.hercules-ci-agent.override { nix = pkgs.nix_2_4; }) "-fnix-2_4";
hercules-ci-cnix-expr = appendConfigureFlag (super.hercules-ci-cnix-expr.override { nix = pkgs.nix_2_4; }) "-fnix-2_4";
hercules-ci-cnix-store = appendConfigureFlag (super.hercules-ci-cnix-store.override { nix = pkgs.nix_2_4; }) "-fnix-2_4";

# Enable extra optimisations which increase build time, but also
# later compiler performance, so we should do this for user's benefit.
Expand Down
13 changes: 12 additions & 1 deletion pkgs/tools/package-management/nix/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ common =
];

buildInputs =
[ curl libsodium openssl sqlite xz bzip2 nlohmann_json
[ curl libsodium openssl sqlite xz bzip2
brotli boost editline
]
++ lib.optionals stdenv.isDarwin [ Security ]
Expand Down Expand Up @@ -209,6 +209,13 @@ common =
];
});

# master: https://github.com/NixOS/nix/pull/5536
# 2.4: https://github.com/NixOS/nix/pull/5537
installNlohmannJsonPatch = fetchpatch {
url = "https://github.com/NixOS/nix/pull/5536.diff";
sha256 = "sha256-SPnam4xNIjbMgnq6IP1AaM1V62X0yZNo4DEVmI8sHOo=";
};

in rec {

nix = nixStable;
Expand Down Expand Up @@ -241,6 +248,8 @@ in rec {

boehmgc = boehmgc_nixUnstable;

patches = [ installNlohmannJsonPatch ];

inherit storeDir stateDir confDir;
});

Expand All @@ -258,6 +267,8 @@ in rec {

boehmgc = boehmgc_nixUnstable;

patches = [ installNlohmannJsonPatch ];

inherit storeDir stateDir confDir;

});
Expand Down

0 comments on commit 6fe9972

Please sign in to comment.