2024-05-15 15:35:15 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
aws-sdk-cpp,
|
|
|
|
boehmgc,
|
|
|
|
callPackage,
|
|
|
|
fetchFromGitHub,
|
2024-09-19 14:19:46 +00:00
|
|
|
fetchpatch,
|
2024-05-15 15:35:15 +00:00
|
|
|
Security,
|
|
|
|
|
|
|
|
storeDir ? "/nix/store",
|
|
|
|
stateDir ? "/nix/var",
|
|
|
|
confDir ? "/etc",
|
|
|
|
}:
|
|
|
|
let
|
|
|
|
boehmgc-nix_2_3 = boehmgc.override { enableLargeConfig = true; };
|
|
|
|
|
|
|
|
boehmgc-nix = boehmgc-nix_2_3.overrideAttrs (drv: {
|
|
|
|
patches = (drv.patches or [ ]) ++ [
|
|
|
|
# Part of the GC solution in https://github.com/NixOS/nix/pull/4944
|
|
|
|
../nix/patches/boehmgc-coroutine-sp-fallback.patch
|
|
|
|
];
|
|
|
|
});
|
|
|
|
|
|
|
|
aws-sdk-cpp-nix =
|
|
|
|
(aws-sdk-cpp.override {
|
|
|
|
apis = [
|
|
|
|
"s3"
|
|
|
|
"transfer"
|
|
|
|
];
|
|
|
|
customMemoryManagement = false;
|
|
|
|
}).overrideAttrs
|
|
|
|
{
|
|
|
|
# only a stripped down version is build which takes a lot less resources to build
|
|
|
|
requiredSystemFeatures = [ ];
|
|
|
|
};
|
|
|
|
|
2024-09-19 14:19:46 +00:00
|
|
|
# Since Lix 2.91 does not use boost coroutines, it does not need boehmgc patches either.
|
|
|
|
needsBoehmgcPatches = version: lib.versionOlder version "2.91";
|
|
|
|
|
2024-05-15 15:35:15 +00:00
|
|
|
common =
|
|
|
|
args:
|
|
|
|
callPackage (import ./common.nix ({ inherit lib fetchFromGitHub; } // args)) {
|
|
|
|
inherit
|
|
|
|
Security
|
|
|
|
storeDir
|
|
|
|
stateDir
|
|
|
|
confDir
|
|
|
|
;
|
2024-09-19 14:19:46 +00:00
|
|
|
boehmgc = if needsBoehmgcPatches args.version then boehmgc-nix else boehmgc-nix_2_3;
|
2024-05-15 15:35:15 +00:00
|
|
|
aws-sdk-cpp = aws-sdk-cpp-nix;
|
|
|
|
};
|
|
|
|
in
|
2024-09-19 14:19:46 +00:00
|
|
|
lib.makeExtensible (self: {
|
2024-06-20 14:57:18 +00:00
|
|
|
buildLix = common;
|
|
|
|
|
2024-05-15 15:35:15 +00:00
|
|
|
lix_2_90 = (
|
|
|
|
common {
|
2024-07-27 06:49:29 +00:00
|
|
|
version = "2.90.0";
|
|
|
|
hash = "sha256-f8k+BezKdJfmE+k7zgBJiohtS3VkkriycdXYsKOm3sc=";
|
|
|
|
docCargoHash = "sha256-vSf9MyD2XzofZlbzsmh6NP69G+LiX72GX4Um9UJp3dc=";
|
2024-05-15 15:35:15 +00:00
|
|
|
}
|
|
|
|
);
|
|
|
|
|
2024-09-19 14:19:46 +00:00
|
|
|
lix_2_91 = (
|
|
|
|
common {
|
2024-10-23 06:41:50 +00:00
|
|
|
version = "2.91.1";
|
|
|
|
hash = "sha256-hiGtfzxFkDc9TSYsb96Whg0vnqBVV7CUxyscZNhed0U=";
|
|
|
|
docCargoHash = "sha256-F6Ld0HfRvW9r5zn8eMTP6djnV/jvwjYQet4Ghp2T90k=";
|
2024-09-19 14:19:46 +00:00
|
|
|
}
|
|
|
|
);
|
|
|
|
|
|
|
|
latest = self.lix_2_91;
|
|
|
|
stable = self.lix_2_91;
|
|
|
|
})
|