aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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.