summary refs log tree commit diff
path: root/pkgs/development/libraries/grantlee
diff options
context:
space:
mode:
authorThomas Tuegel <ttuegel@mailbox.org>2017-05-23 16:20:45 -0500
committerThomas Tuegel <ttuegel@mailbox.org>2017-08-21 06:51:32 -0500
commitb4780249c64548dff25387d527f193a3b4f555bf (patch)
tree57acf8367472587f6393890a13d87fd380d06fa9 /pkgs/development/libraries/grantlee
parent55e6c1b8e1e189d3a3166752e5ecc620133225ae (diff)
downloadnixpkgs-b4780249c64548dff25387d527f193a3b4f555bf.tar
nixpkgs-b4780249c64548dff25387d527f193a3b4f555bf.tar.gz
nixpkgs-b4780249c64548dff25387d527f193a3b4f555bf.tar.bz2
nixpkgs-b4780249c64548dff25387d527f193a3b4f555bf.tar.lz
nixpkgs-b4780249c64548dff25387d527f193a3b4f555bf.tar.xz
nixpkgs-b4780249c64548dff25387d527f193a3b4f555bf.tar.zst
nixpkgs-b4780249c64548dff25387d527f193a3b4f555bf.zip
grantlee5: don't link plugins into $dev
Diffstat (limited to 'pkgs/development/libraries/grantlee')
-rw-r--r--pkgs/development/libraries/grantlee/5/default.nix21
1 files changed, 8 insertions, 13 deletions
diff --git a/pkgs/development/libraries/grantlee/5/default.nix b/pkgs/development/libraries/grantlee/5/default.nix
index 571ad98c38c..6fae90a8d89 100644
--- a/pkgs/development/libraries/grantlee/5/default.nix
+++ b/pkgs/development/libraries/grantlee/5/default.nix
@@ -12,23 +12,18 @@ mkDerivation rec {
     name = "${name}.tar.gz";
   };
 
-  patches = copyPathsToStore (lib.readPathsFromFile ./. ./series);
-
   buildInputs = [ qtbase qtscript ];
   nativeBuildInputs = [ cmake ];
 
-  outputs = [ "out" "dev" "bin" ];
-  postInstall = ''
-    moveToOutput "$grantleePluginPrefix" "$bin"
-
-    # CMake checks that the provided libraries and plugins exist
-    # Link libraries into $dev to satisfy CMake
-    mkdir -p $dev/lib
-    find $out/lib -name '*.so.*' -exec ln -s \{\} $dev/lib \;
+  patches = copyPathsToStore (lib.readPathsFromFile ./. ./series);
 
-    # Link plugins into $dev to satisfy CMake
-    ln -s $bin/lib/grantlee $dev/lib
-  '';
+  outputs = [ "out" "dev" ];
+  postFixup =
+    # Disabuse CMake of the notion that libraries are in $dev
+    ''
+      sed -i $dev/lib/cmake/Grantlee5/GrantleeTargets-release.cmake \
+          -e "s|\''${_IMPORT_PREFIX}|$out|"
+    '';
 
   setupHook = ./setup-hook.sh;