2024-05-13 21:24:10 +00:00
|
|
|
{ lib, aws-sdk-cpp, boehmgc, callPackage, fetchFromGitHub, Security
|
|
|
|
, storeDir ? "/nix/store", stateDir ? "/nix/var", confDir ? "/etc", path, }:
|
2024-05-02 00:46:19 +00:00
|
|
|
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
|
2024-05-13 21:24:10 +00:00
|
|
|
(path
|
|
|
|
+ "/pkgs/by-name/ni/nix/patches/boehmgc-coroutine-sp-fallback.patch")
|
2024-05-02 00:46:19 +00:00
|
|
|
];
|
|
|
|
});
|
|
|
|
|
2024-05-13 21:24:10 +00:00
|
|
|
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-05-02 00:46:19 +00:00
|
|
|
|
2024-05-13 21:24:10 +00:00
|
|
|
common = args:
|
|
|
|
callPackage
|
|
|
|
(import ./common.nix ({ inherit lib fetchFromGitHub; } // args)) {
|
|
|
|
inherit Security storeDir stateDir confDir;
|
2024-05-02 00:46:19 +00:00
|
|
|
boehmgc = boehmgc-nix;
|
|
|
|
aws-sdk-cpp = aws-sdk-cpp-nix;
|
|
|
|
};
|
2024-05-13 21:24:10 +00:00
|
|
|
in lib.makeExtensible (self: ({
|
|
|
|
lix_2_90 = (common {
|
|
|
|
version = "2.90-beta.1";
|
|
|
|
hash = "sha256-REWlo2RYHfJkxnmZTEJu3Cd/2VM+wjjpPy7Xi4BdDTQ=";
|
|
|
|
docCargoHash = "sha256-oH248kR4Of0MhcY2DYxNX0A+/XJ3L+UuIpBKn3sJt54=";
|
|
|
|
});
|
2024-05-02 00:46:19 +00:00
|
|
|
|
|
|
|
latest = self.lix_2_90;
|
|
|
|
stable = self.lix_2_90;
|
|
|
|
}))
|