2022-01-25 07:07:22 +00:00
|
|
|
{ lib
|
2022-01-26 19:31:20 +00:00
|
|
|
, aws-sdk-cpp
|
2022-01-25 07:07:22 +00:00
|
|
|
, boehmgc
|
|
|
|
, callPackage
|
|
|
|
, fetchFromGitHub
|
|
|
|
, fetchurl
|
2022-01-26 19:31:20 +00:00
|
|
|
, fetchpatch
|
2022-12-17 14:22:09 +00:00
|
|
|
, fetchpatch2
|
2022-01-25 07:07:22 +00:00
|
|
|
, Security
|
|
|
|
|
2004-03-31 10:19:01 +00:00
|
|
|
, storeDir ? "/nix/store"
|
|
|
|
, stateDir ? "/nix/var"
|
2017-05-03 13:04:52 +00:00
|
|
|
, confDir ? "/etc"
|
2004-03-31 10:19:01 +00:00
|
|
|
}:
|
2015-07-30 10:01:40 +00:00
|
|
|
let
|
2022-01-26 19:31:20 +00:00
|
|
|
boehmgc-nix_2_3 = boehmgc.override { enableLargeConfig = true; };
|
2021-07-17 22:00:00 +00:00
|
|
|
|
2022-01-26 19:31:20 +00:00
|
|
|
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 ];
|
2021-07-17 22:00:00 +00:00
|
|
|
});
|
|
|
|
|
2022-01-26 19:31:20 +00:00
|
|
|
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 ];
|
2022-03-08 12:25:39 +00:00
|
|
|
|
|
|
|
# only a stripped down version is build which takes a lot less resources to build
|
|
|
|
requiredSystemFeatures = null;
|
2022-01-26 19:31:20 +00:00
|
|
|
});
|
2022-01-25 02:33:38 +00:00
|
|
|
|
2022-01-26 19:31:20 +00:00
|
|
|
common = args:
|
|
|
|
callPackage
|
2022-08-31 07:54:32 +00:00
|
|
|
(import ./common.nix ({ inherit lib fetchFromGitHub; } // args))
|
2022-01-26 19:31:20 +00:00
|
|
|
{
|
|
|
|
inherit Security storeDir stateDir confDir;
|
|
|
|
boehmgc = boehmgc-nix;
|
|
|
|
aws-sdk-cpp = aws-sdk-cpp-nix;
|
|
|
|
};
|
2022-12-17 14:22:09 +00:00
|
|
|
|
|
|
|
# https://github.com/NixOS/nix/pull/7473
|
|
|
|
patch-sqlite-exception = fetchpatch2 {
|
|
|
|
name = "nix-7473-sqlite-exception-add-message.patch";
|
|
|
|
url = "https://github.com/hercules-ci/nix/commit/c965f35de71cc9d88f912f6b90fd7213601e6eb8.patch";
|
|
|
|
sha256 = "sha256-tI5nKU7SZgsJrxiskJ5nHZyfrWf5aZyKYExM0792N80=";
|
|
|
|
};
|
|
|
|
|
2022-01-29 00:16:25 +00:00
|
|
|
in lib.makeExtensible (self: {
|
2022-01-26 19:31:20 +00:00
|
|
|
nix_2_3 = (common rec {
|
2022-01-26 18:58:59 +00:00
|
|
|
version = "2.3.16";
|
|
|
|
src = fetchurl {
|
|
|
|
url = "https://nixos.org/releases/nix/nix-${version}/nix-${version}.tar.xz";
|
|
|
|
sha256 = "sha256-fuaBtp8FtSVJLSAsO+3Nne4ZYLuBj2JpD2xEk7fCqrw=";
|
|
|
|
};
|
2022-01-26 19:31:20 +00:00
|
|
|
}).override { boehmgc = boehmgc-nix_2_3; };
|
2021-07-07 20:49:18 +00:00
|
|
|
|
2022-07-14 16:00:57 +00:00
|
|
|
nix_2_4 = throw "nixVersions.nix_2_4 has been removed";
|
2021-11-11 10:45:26 +00:00
|
|
|
|
2022-07-14 16:00:57 +00:00
|
|
|
nix_2_5 = throw "nixVersions.nix_2_5 has been removed";
|
2021-11-11 10:45:26 +00:00
|
|
|
|
2022-12-04 13:33:25 +00:00
|
|
|
nix_2_6 = throw "nixVersions.nix_2_6 has been removed";
|
2022-01-26 18:44:03 +00:00
|
|
|
|
2022-12-04 13:33:25 +00:00
|
|
|
nix_2_7 = throw "nixVersions.nix_2_7 has been removed";
|
2022-04-05 07:01:53 +00:00
|
|
|
|
2022-12-04 13:33:25 +00:00
|
|
|
nix_2_8 = throw "nixVersions.nix_2_8 has been removed";
|
2022-03-08 04:04:29 +00:00
|
|
|
|
2022-12-04 13:33:25 +00:00
|
|
|
nix_2_9 = throw "nixVersions.nix_2_9 has been removed";
|
2022-05-31 14:43:28 +00:00
|
|
|
|
2022-07-12 16:25:43 +00:00
|
|
|
nix_2_10 = common {
|
2022-07-15 19:00:14 +00:00
|
|
|
version = "2.10.3";
|
|
|
|
sha256 = "sha256-B9EyDUz/9tlcWwf24lwxCFmkxuPTVW7HFYvp0C4xGbc=";
|
2022-11-16 21:15:49 +00:00
|
|
|
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-12-17 14:22:09 +00:00
|
|
|
patch-sqlite-exception
|
2022-11-16 21:15:49 +00:00
|
|
|
];
|
2022-07-12 16:25:43 +00:00
|
|
|
};
|
|
|
|
|
2022-08-29 06:42:38 +00:00
|
|
|
nix_2_11 = common {
|
2022-11-30 22:41:16 +00:00
|
|
|
version = "2.11.1";
|
|
|
|
sha256 = "sha256-qCV65kw09AG+EkdchDPq7RoeBznX0Q6Qa4yzPqobdOk=";
|
2022-11-16 21:15:43 +00:00
|
|
|
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-12-17 14:22:09 +00:00
|
|
|
patch-sqlite-exception
|
2022-11-16 21:15:43 +00:00
|
|
|
];
|
2022-08-29 06:42:38 +00:00
|
|
|
};
|
|
|
|
|
2022-12-06 18:35:57 +00:00
|
|
|
nix_2_12 = common {
|
|
|
|
version = "2.12.0";
|
|
|
|
sha256 = "sha256-sQ9C101CL/eVN5JgH91ozHFWU4+bXr8/Fi/8NQk6xRI=";
|
|
|
|
patches = [
|
|
|
|
./patches/flaky-tests.patch
|
2022-12-17 14:22:09 +00:00
|
|
|
patch-sqlite-exception
|
2022-12-06 18:35:57 +00:00
|
|
|
];
|
|
|
|
};
|
|
|
|
|
2023-01-17 21:12:50 +00:00
|
|
|
nix_2_13 = common {
|
2023-01-26 12:21:44 +00:00
|
|
|
version = "2.13.2";
|
|
|
|
sha256 = "sha256-MtVatZVsV+dtjdD4AC4bztrnDFas+WZYHzQMt41FwzU=";
|
2023-01-17 21:12:50 +00:00
|
|
|
};
|
|
|
|
|
2023-01-21 23:02:03 +00:00
|
|
|
stable = self.nix_2_12;
|
2022-01-25 02:03:13 +00:00
|
|
|
|
2023-01-22 10:17:52 +00:00
|
|
|
unstable = self.nix_2_13;
|
2022-01-29 00:16:25 +00:00
|
|
|
})
|