nixpkgs/pkgs/tools/package-management/nix/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

110 lines
3.2 KiB
Nix
Raw Normal View History

2022-01-25 07:07:22 +00:00
{ lib
, aws-sdk-cpp
2022-01-25 07:07:22 +00:00
, boehmgc
, callPackage
, fetchFromGitHub
, fetchurl
, fetchpatch
2022-01-25 07:07:22 +00:00
, Security
, storeDir ? "/nix/store"
, stateDir ? "/nix/var"
2017-05-03 14:04:52 +01:00
, confDir ? "/etc"
}:
let
boehmgc-nix_2_3 = boehmgc.override { enableLargeConfig = true; };
boehmgc-nix = boehmgc-nix_2_3.overrideAttrs (drv: {
2022-01-25 07:07:22 +00:00
# Part of the GC solution in https://github.com/NixOS/nix/pull/4944
patches = (drv.patches or [ ]) ++ [ ./patches/boehmgc-coroutine-sp-fallback.patch ];
});
aws-sdk-cpp-nix = (aws-sdk-cpp.override {
apis = [ "s3" "transfer" ];
customMemoryManagement = false;
}).overrideDerivation (args: {
patches = (args.patches or [ ]) ++ [ ./patches/aws-sdk-cpp-TransferManager-ContentEncoding.patch ];
# only a stripped down version is build which takes a lot less resources to build
requiredSystemFeatures = null;
});
common = args:
callPackage
(import ./common.nix ({ inherit lib fetchFromGitHub; } // args))
{
inherit Security storeDir stateDir confDir;
boehmgc = boehmgc-nix;
aws-sdk-cpp = aws-sdk-cpp-nix;
};
2022-01-29 00:16:25 +00:00
in lib.makeExtensible (self: {
nix_2_3 = (common rec {
version = "2.3.16";
src = fetchurl {
url = "https://nixos.org/releases/nix/nix-${version}/nix-${version}.tar.xz";
sha256 = "sha256-fuaBtp8FtSVJLSAsO+3Nne4ZYLuBj2JpD2xEk7fCqrw=";
};
}).override { boehmgc = boehmgc-nix_2_3; };
2022-07-14 17:00:57 +01:00
nix_2_4 = throw "nixVersions.nix_2_4 has been removed";
2021-11-11 10:45:26 +00:00
2022-07-14 17:00:57 +01:00
nix_2_5 = throw "nixVersions.nix_2_5 has been removed";
2021-11-11 10:45:26 +00:00
# This is the last version of nix where https://github.com/NixOS/nix/issues/6572
# is not an unsolved breaking bug. Please keep it until the issue is fixed
# and in latest stable nix.
nix_2_6 = common {
version = "2.6.1";
sha256 = "sha256-E9iQ7f+9Z6xFcUvvfksTEfn8LsDfzmwrcRBC//5B3V0=";
};
2022-01-26 18:44:03 +00:00
2022-08-15 14:30:20 +01:00
nix_2_7 = common {
version = "2.7.0";
sha256 = "sha256-m8tqCS6uHveDon5GSro5yZor9H+sHeh+v/veF1IGw24=";
patches = [
# remove when there's a 2.7.1 release
# https://github.com/NixOS/nix/pull/6297
# https://github.com/NixOS/nix/issues/6243
# https://github.com/NixOS/nixpkgs/issues/163374
(fetchpatch {
url = "https://github.com/NixOS/nix/commit/c9afca59e87afe7d716101e6a75565b4f4b631f7.patch";
sha256 = "sha256-xz7QnWVCI12lX1+K/Zr9UpB93b10t1HS9y/5n5FYf8Q=";
})
];
};
2022-04-20 20:36:11 +01:00
nix_2_8 = common {
version = "2.8.1";
sha256 = "sha256-zldZ4SiwkISFXxrbY/UdwooIZ3Z/I6qKxtpc3zD0T/o=";
2022-03-08 04:04:29 +00:00
};
2022-05-31 15:43:28 +01:00
nix_2_9 = common {
2022-07-12 17:25:08 +01:00
version = "2.9.2";
sha256 = "sha256-uZCaBo9rdWRO/AlQMvVVjpAwzYijB2H5KKQqde6eHkg=";
2022-05-31 15:43:28 +01:00
};
2022-07-12 17:25:43 +01:00
nix_2_10 = common {
2022-07-15 20:00:14 +01:00
version = "2.10.3";
sha256 = "sha256-B9EyDUz/9tlcWwf24lwxCFmkxuPTVW7HFYvp0C4xGbc=";
patches = [ ./patches/flaky-tests.patch ];
2022-07-12 17:25:43 +01:00
};
2022-08-29 07:42:38 +01:00
nix_2_11 = common {
version = "2.11.0";
sha256 = "sha256-9+rpYzI+SmxJn+EbYxjGv68Ucp22bdFUSy/4LkHkkDQ=";
patches = [
./patches/flaky-tests.patch
(fetchpatch {
# https://github.com/NixOS/nix/pull/7283
name = "fix-requires-non-existing-output.patch";
url = "https://github.com/NixOS/nix/commit/3ade5f5d6026b825a80bdcc221058c4f14e10a27.patch";
sha256 = "sha256-s1ybRFCjQaSGj7LKu0Z5g7UiHqdJGeD+iPoQL0vaiS0=";
})
];
2022-08-29 07:42:38 +01:00
};
2022-08-29 07:43:13 +01:00
stable = self.nix_2_11;
2022-01-25 02:03:13 +00:00
unstable = self.stable;
2022-01-29 00:16:25 +00:00
})