git.iko.soy/typeable/nixpkgs
on master help sign in
grantlee5: Fix debug build
commit0cc2171910f14b89cc6e3d6973c776de2033981c authorThomas Tuegel <ttuegel@mailbox.org> dateThu 19 Oct 2017, 06:51 (9 years ago) parent7132cbd
1 file changed+6−2
pkgs/development/libraries/grantlee/5/default.nix+6−2
pkgs/development/libraries/grantlee/5/default.nix+6−2
@@ -21,8 +21,12 @@ mkDerivation rec {
2121 postFixup =
2222 # Disabuse CMake of the notion that libraries are in $dev
2323 ''
24− sed -i $dev/lib/cmake/Grantlee5/GrantleeTargets-release.cmake \
25− -e "s|\''${_IMPORT_PREFIX}|$out|"
24+ for way in release debug; do
25+ cmake="$dev/lib/cmake/Grantlee5/GrantleeTargets-$way.cmake"
26+ if [ -f "$cmake" ]; then
27+ sed -i "$cmake" -e "s|\''${_IMPORT_PREFIX}|$out|"
28+ fi
29+ done
2630 '';
2731
2832 setupHook = ./setup-hook.sh;