about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/libraries/aws-c-common/setup-hook.sh
diff options
context:
space:
mode:
Diffstat (limited to 'nixpkgs/pkgs/development/libraries/aws-c-common/setup-hook.sh')
-rw-r--r--nixpkgs/pkgs/development/libraries/aws-c-common/setup-hook.sh5
1 files changed, 5 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/development/libraries/aws-c-common/setup-hook.sh b/nixpkgs/pkgs/development/libraries/aws-c-common/setup-hook.sh
new file mode 100644
index 000000000000..e670f7cf8529
--- /dev/null
+++ b/nixpkgs/pkgs/development/libraries/aws-c-common/setup-hook.sh
@@ -0,0 +1,5 @@
+addAwsCCommonModuleDir() {
+    cmakeFlags="-DCMAKE_MODULE_PATH=@out@/lib/cmake ${cmakeFlags:-}"
+}
+
+postHooks+=(addAwsCCommonModuleDir)