about summary refs log tree commit diff
path: root/pkgs/development/tools
diff options
context:
space:
mode:
authorTuomas Tynkkynen <tuomas@tuxera.com>2018-01-17 12:50:46 +0200
committerTuomas Tynkkynen <tuomas@tuxera.com>2018-01-17 12:50:46 +0200
commit67c73b4e64b01657ce9ea9bb2d8c015754ef3150 (patch)
tree7358277e028232ad5f37da0892ee2bb6860373b5 /pkgs/development/tools
parent5ab499d2c753209381e721a66204fe7869d6dac9 (diff)
parent2e56ba6fbdd70ed6b9244df816670b9a94da0824 (diff)
downloadnixlib-67c73b4e64b01657ce9ea9bb2d8c015754ef3150.tar
nixlib-67c73b4e64b01657ce9ea9bb2d8c015754ef3150.tar.gz
nixlib-67c73b4e64b01657ce9ea9bb2d8c015754ef3150.tar.bz2
nixlib-67c73b4e64b01657ce9ea9bb2d8c015754ef3150.tar.lz
nixlib-67c73b4e64b01657ce9ea9bb2d8c015754ef3150.tar.xz
nixlib-67c73b4e64b01657ce9ea9bb2d8c015754ef3150.tar.zst
nixlib-67c73b4e64b01657ce9ea9bb2d8c015754ef3150.zip
Merge commit '2e56ba' from staging into master
Diffstat (limited to 'pkgs/development/tools')
-rwxr-xr-xpkgs/development/tools/build-managers/cmake/setup-hook.sh2
-rw-r--r--pkgs/development/tools/build-managers/meson/setup-hook.sh12
2 files changed, 13 insertions, 1 deletions
diff --git a/pkgs/development/tools/build-managers/cmake/setup-hook.sh b/pkgs/development/tools/build-managers/cmake/setup-hook.sh
index a92d54b3f144..a0f1cf00814c 100755
--- a/pkgs/development/tools/build-managers/cmake/setup-hook.sh
+++ b/pkgs/development/tools/build-managers/cmake/setup-hook.sh
@@ -43,7 +43,7 @@ cmakeConfigurePhase() {
     # libraries are in a system path or in the same directory as the
     # executable. This flag makes the shared library accessible from its
     # nix/store directory.
-    cmakeFlags="-DCMAKE_INSTALL_NAME_DIR=$prefix/lib $cmakeFlags"
+    cmakeFlags="-DCMAKE_INSTALL_NAME_DIR=${!outputLib}/lib $cmakeFlags"
     cmakeFlags="-DCMAKE_INSTALL_LIBDIR=${!outputLib}/lib $cmakeFlags"
     cmakeFlags="-DCMAKE_INSTALL_INCLUDEDIR=${!outputDev}/include $cmakeFlags"
 
diff --git a/pkgs/development/tools/build-managers/meson/setup-hook.sh b/pkgs/development/tools/build-managers/meson/setup-hook.sh
index 25e2e69ef315..8f96e6146be0 100644
--- a/pkgs/development/tools/build-managers/meson/setup-hook.sh
+++ b/pkgs/development/tools/build-managers/meson/setup-hook.sh
@@ -25,3 +25,15 @@ if [ -z "$dontUseMesonConfigure" -a -z "$configurePhase" ]; then
     setOutputFlags=
     configurePhase=mesonConfigurePhase
 fi
+
+mesonCheckPhase() {
+    runHook preCheck
+
+    meson test
+
+    runHook postCheck
+}
+
+if [ -z "$dontUseMesonCheck" -a -z "$checkPhase" ]; then
+    checkPhase=mesonCheckPhase
+fi