about summary refs log tree commit diff
diff options
context:
space:
mode:
authorTobias Mayer <tobim@fastmail.fm>2024-02-11 12:38:40 +0100
committerTobias Mayer <tobim@fastmail.fm>2024-02-11 12:38:44 +0100
commit660b5902d25069a3df7b301add468107c02a1d68 (patch)
tree6fb8dc1ee0027db81e37e480f88ad696d9c825a6
parent4f7b644df537e92a9d748fc95623d043ec1e0bfc (diff)
arrow-cpp: allow customizing aws-sdk-cpp.apis
Overriding a dependency in a let binding makes it tedious to further
alter the overriden arguments. Moving the specialized
`aws-sdk-cpp-arrow` into the parameter set allows users to pass their
own version with an extended set of APIs.
-rw-r--r--pkgs/development/libraries/arrow-cpp/default.nix21
1 files changed, 10 insertions, 11 deletions
diff --git a/pkgs/development/libraries/arrow-cpp/default.nix b/pkgs/development/libraries/arrow-cpp/default.nix
index ad54342b39390..257968edded62 100644
--- a/pkgs/development/libraries/arrow-cpp/default.nix
+++ b/pkgs/development/libraries/arrow-cpp/default.nix
@@ -5,6 +5,16 @@
 , fixDarwinDylibNames
 , autoconf
 , aws-sdk-cpp
+, aws-sdk-cpp-arrow ? aws-sdk-cpp.override {
+    apis = [
+      "cognito-identity"
+      "config"
+      "identity-management"
+      "s3"
+      "sts"
+      "transfer"
+    ];
+  }
 , boost
 , brotli
 , c-ares
@@ -64,17 +74,6 @@ let
     hash = "sha256-CUckfNjfDW05crWigzMP5b9UynviXKGZUlIr754OoGU=";
   };
 
-  aws-sdk-cpp-arrow = aws-sdk-cpp.override {
-    apis = [
-      "cognito-identity"
-      "config"
-      "identity-management"
-      "s3"
-      "sts"
-      "transfer"
-    ];
-  };
-
 in
 stdenv.mkDerivation (finalAttrs: {
   pname = "arrow-cpp";