2022-01-27 00:19:43 +00:00
|
|
|
{ lib
|
|
|
|
, aws-sdk-cpp
|
|
|
|
, boehmgc
|
2022-06-16 17:23:12 +00:00
|
|
|
, curl
|
2022-01-27 00:19:43 +00:00
|
|
|
, callPackage
|
|
|
|
, fetchFromGitHub
|
|
|
|
, fetchurl
|
|
|
|
, fetchpatch
|
|
|
|
, Security
|
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
, storeDir ? "/nix/store"
|
|
|
|
, stateDir ? "/nix/var"
|
|
|
|
, confDir ? "/etc"
|
|
|
|
}:
|
|
|
|
let
|
2022-01-27 00:19:43 +00:00
|
|
|
boehmgc-nix_2_3 = boehmgc.override { enableLargeConfig = true; };
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2022-01-27 00:19:43 +00:00
|
|
|
boehmgc-nix = boehmgc-nix_2_3.overrideAttrs (drv: {
|
|
|
|
# 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-21 07:28:18 +00:00
|
|
|
});
|
|
|
|
|
2022-01-27 00:19:43 +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-10 19:12:11 +00:00
|
|
|
|
|
|
|
# only a stripped down version is build which takes a lot less resources to build
|
|
|
|
requiredSystemFeatures = null;
|
2022-01-27 00:19:43 +00:00
|
|
|
});
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2022-01-27 00:19:43 +00:00
|
|
|
common = args:
|
|
|
|
callPackage
|
2022-06-16 17:23:12 +00:00
|
|
|
(import ./common.nix ({ inherit lib fetchFromGitHub curl; } // args))
|
2022-01-27 00:19:43 +00:00
|
|
|
{
|
|
|
|
inherit Security storeDir stateDir confDir;
|
|
|
|
boehmgc = boehmgc-nix;
|
|
|
|
aws-sdk-cpp = aws-sdk-cpp-nix;
|
|
|
|
};
|
2022-02-10 20:34:41 +00:00
|
|
|
in lib.makeExtensible (self: {
|
2022-01-27 00:19:43 +00:00
|
|
|
nix_2_3 = (common rec {
|
2021-10-08 15:17:17 +00:00
|
|
|
version = "2.3.16";
|
2020-04-24 23:36:52 +00:00
|
|
|
src = fetchurl {
|
2022-01-26 04:04:25 +00:00
|
|
|
url = "https://nixos.org/releases/nix/nix-${version}/nix-${version}.tar.xz";
|
2021-10-08 15:17:17 +00:00
|
|
|
sha256 = "sha256-fuaBtp8FtSVJLSAsO+3Nne4ZYLuBj2JpD2xEk7fCqrw=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
2022-01-27 00:19:43 +00:00
|
|
|
}).override { boehmgc = boehmgc-nix_2_3; };
|
2021-07-21 07:28:18 +00:00
|
|
|
|
2022-01-27 00:19:43 +00:00
|
|
|
nix_2_4 = common {
|
2021-12-06 16:07:01 +00:00
|
|
|
version = "2.4";
|
2022-01-26 04:04:25 +00:00
|
|
|
sha256 = "sha256-op48CCDgLHK0qV1Batz4Ln5FqBiRjlE6qHTiZgt3b6k=";
|
2022-01-27 00:19:43 +00:00
|
|
|
# https://github.com/NixOS/nix/pull/5537
|
|
|
|
patches = [ ./patches/install-nlohmann_json-headers.patch ];
|
2022-01-26 04:04:25 +00:00
|
|
|
};
|
2021-12-21 02:18:32 +00:00
|
|
|
|
2022-01-27 00:19:43 +00:00
|
|
|
nix_2_5 = common {
|
2021-12-21 02:18:32 +00:00
|
|
|
version = "2.5.1";
|
2022-01-26 04:04:25 +00:00
|
|
|
sha256 = "sha256-GOsiqy9EaTwDn2PLZ4eFj1VkXcBUbqrqHehRE9GuGdU=";
|
2022-01-27 00:19:43 +00:00
|
|
|
# https://github.com/NixOS/nix/pull/5536
|
|
|
|
patches = [ ./patches/install-nlohmann_json-headers.patch ];
|
2022-01-26 04:04:25 +00:00
|
|
|
};
|
2021-12-06 16:07:01 +00:00
|
|
|
|
2022-01-27 00:19:43 +00:00
|
|
|
nix_2_6 = common {
|
2022-02-20 05:27:41 +00:00
|
|
|
version = "2.6.1";
|
|
|
|
sha256 = "sha256-E9iQ7f+9Z6xFcUvvfksTEfn8LsDfzmwrcRBC//5B3V0=";
|
2022-01-26 04:04:25 +00:00
|
|
|
};
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2022-03-10 19:12:11 +00:00
|
|
|
nix_2_7 = common {
|
|
|
|
version = "2.7.0";
|
|
|
|
sha256 = "sha256-m8tqCS6uHveDon5GSro5yZor9H+sHeh+v/veF1IGw24=";
|
2022-04-15 01:41:22 +00:00
|
|
|
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-27 09:35:20 +00:00
|
|
|
};
|
2022-04-15 01:41:22 +00:00
|
|
|
|
2022-04-27 09:35:20 +00:00
|
|
|
nix_2_8 = common {
|
2022-05-18 14:49:53 +00:00
|
|
|
version = "2.8.1";
|
|
|
|
sha256 = "sha256-zldZ4SiwkISFXxrbY/UdwooIZ3Z/I6qKxtpc3zD0T/o=";
|
2022-03-10 19:12:11 +00:00
|
|
|
};
|
|
|
|
|
2022-06-16 17:23:12 +00:00
|
|
|
nix_2_9 = common {
|
|
|
|
version = "2.9.1";
|
|
|
|
sha256 = "sha256-qNL3lQPBsnStkru3j1ajN/H+knXI+X3dku8/dBfSw3g=";
|
|
|
|
patches = [
|
|
|
|
# add missing --git-dir flags
|
|
|
|
# remove once 2.9.2 is out
|
|
|
|
(fetchpatch {
|
|
|
|
url = "https://github.com/NixOS/nix/commit/1a994cc35b33dcfd484e7a96be0e76e23bfb9029.patch";
|
|
|
|
sha256 = "sha256-7rDlqWRSVPijbvrTm4P+YykbMWyJryorXqGLEgg8/Wo=";
|
|
|
|
})
|
|
|
|
];
|
|
|
|
};
|
2022-01-27 00:19:43 +00:00
|
|
|
|
2022-06-16 17:23:12 +00:00
|
|
|
stable = self.nix_2_9;
|
|
|
|
|
|
|
|
unstable = self.stable;
|
2022-02-10 20:34:41 +00:00
|
|
|
})
|