aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeremy List <jeremylist@thunix.net>2024-08-01 14:29:03 +1200
committerJeremy List <jeremylist@thunix.net>2024-08-02 09:14:48 +1200
commitf41190552f44963ea586470280053792a169a694 (patch)
tree07b15d18efda8531dea4d95545720a5deff3c81f
parentddfca6e81b3685ca17b28a9063caf5c58d412dda (diff)
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
-rw-r--r--package.nix18
1 files changed, 11 insertions, 7 deletions
diff --git a/package.nix b/package.nix
index 61015bac9..06f1107e0 100644
--- a/package.nix
+++ b/package.nix
@@ -80,13 +80,17 @@ let
versionJson = builtins.fromJSON (builtins.readFile ./version.json);
version = versionJson.version + versionSuffix;
- aws-sdk-cpp-nix = aws-sdk-cpp.override {
- apis = [
- "s3"
- "transfer"
- ];
- customMemoryManagement = false;
- };
+ aws-sdk-cpp-nix =
+ if aws-sdk-cpp == null then
+ null
+ else
+ aws-sdk-cpp.override {
+ apis = [
+ "s3"
+ "transfer"
+ ];
+ customMemoryManagement = false;
+ };
# Reimplementation of Nixpkgs' Meson cross file, with some additions to make
# it actually work.