package: make aws-sdk-cpp build input optional

I have added an option to turn off this build input because I'm much
more comfortable when I don't have that type of thing on my computer.
Its default value is true in order to avoid impacting anyone who depends
on AWS features.

Change-Id: Ic57f3c9b9468f422e9fbdcf3ba0fe96177631067
This commit is contained in:
Jeremy List 2024-08-01 14:29:03 +12:00
parent ddfca6e81b
commit f41190552f
Signed by untrusted user who does not match committer: quickdudley
GPG key ID: 2FB4463DFC98DC97

View file

@ -80,13 +80,17 @@ let
versionJson = builtins.fromJSON (builtins.readFile ./version.json); versionJson = builtins.fromJSON (builtins.readFile ./version.json);
version = versionJson.version + versionSuffix; version = versionJson.version + versionSuffix;
aws-sdk-cpp-nix = aws-sdk-cpp.override { aws-sdk-cpp-nix =
apis = [ if aws-sdk-cpp == null then
"s3" null
"transfer" else
]; aws-sdk-cpp.override {
customMemoryManagement = false; apis = [
}; "s3"
"transfer"
];
customMemoryManagement = false;
};
# Reimplementation of Nixpkgs' Meson cross file, with some additions to make # Reimplementation of Nixpkgs' Meson cross file, with some additions to make
# it actually work. # it actually work.