about summary refs log tree commit diff
diff options
context:
space:
mode:
authorKarn Kallio <kkallio@skami.org>2016-04-25 01:00:06 -0430
committerThomas Tuegel <ttuegel@gmail.com>2016-04-25 08:23:45 -0500
commitb6e63fba6deebd3b65b3db0fbcb7f2a18e162f0d (patch)
tree61a01b64316f3ebb58f9b085378f7ef7bdc7811c
parent4df02f777b8a9f0c7b910694ff26416e88ebc551 (diff)
downloadnixlib-b6e63fba6deebd3b65b3db0fbcb7f2a18e162f0d.tar
nixlib-b6e63fba6deebd3b65b3db0fbcb7f2a18e162f0d.tar.gz
nixlib-b6e63fba6deebd3b65b3db0fbcb7f2a18e162f0d.tar.bz2
nixlib-b6e63fba6deebd3b65b3db0fbcb7f2a18e162f0d.tar.lz
nixlib-b6e63fba6deebd3b65b3db0fbcb7f2a18e162f0d.tar.xz
nixlib-b6e63fba6deebd3b65b3db0fbcb7f2a18e162f0d.tar.zst
nixlib-b6e63fba6deebd3b65b3db0fbcb7f2a18e162f0d.zip
phonon : fix configuration paths
-rw-r--r--pkgs/development/libraries/phonon/default.nix6
1 files changed, 3 insertions, 3 deletions
diff --git a/pkgs/development/libraries/phonon/default.nix b/pkgs/development/libraries/phonon/default.nix
index 3c731ca19e32..db4c237c989b 100644
--- a/pkgs/development/libraries/phonon/default.nix
+++ b/pkgs/development/libraries/phonon/default.nix
@@ -47,8 +47,8 @@ stdenv.mkDerivation rec {
   postPatch = ''
     sed -i PhononConfig.cmake.in \
         -e "/get_filename_component(rootDir/ s/^.*$//" \
-        -e "s,\\(set(PHONON_INCLUDE_DIR\\).*$,\\1 \"''${!outputDev}/include\")," \
-        -e "s,\\(set(PHONON_LIBRARY_DIR\\).*$,\\1 \"''${!outputLib}/lib\")," \
-        -e "s,\\(set(PHONON_BUILDSYSTEM_DIR\\).*$,\\1 \"''${!outputDev}/share/phonon${if withQt5 then "4qt5" else ""}/buildsystem\"),"
+        -e "/^set(PHONON_INCLUDE_DIR/ s,\''${rootDir},''${!outputDev}," \
+        -e "/^set(PHONON_LIBRARY_DIR/ s,\''${rootDir}/,," \
+        -e "/^set(PHONON_BUILDSYSTEM_DIR/ s,\''${rootDir},''${!outputDev},"
   '';
 }