Page MenuHomePhabricator

D4629.id14898.diff
No OneTemporary

D4629.id14898.diff

diff --git a/nix/overlay.nix b/nix/overlay.nix
--- a/nix/overlay.nix
+++ b/nix/overlay.nix
@@ -10,6 +10,20 @@
prev:
{
+ # Patch aws-sdk-cpp to automatically pick up header location
+ # when using `find_package(AWSSDK COMPONENTS [comps])`
+ aws-sdk-cpp = (prev.aws-sdk-cpp.overrideAttrs(oldAttrs:{
+ postPatch = oldAttrs.postPatch + ''
+ substituteInPlace cmake/AWSSDKConfig.cmake \
+ --replace 'C:/AWSSDK/''${AWSSDK_INSTALL_INCLUDEDIR}/aws/core' \
+ 'C:/AWSSDK/''${AWSSDK_INSTALL_INCLUDEDIR}/aws/core"
+ "${placeholder "dev"}/include/aws/core'
+ '';
+ })).override {
+ # avoid rebuildilng all 300+ apis
+ apis = [ "core" "s3" "dynamodb" ];
+ };
+
# add packages meant for just this repository
amqp-cpp = prev.callPackage ./amqp-cpp.nix { };

File Metadata

Mime Type
text/plain
Expires
Tue, Nov 5, 1:50 PM (14 h, 56 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2425962
Default Alt Text
D4629.id14898.diff (801 B)

Event Timeline