summary refs log tree commit diff
path: root/pkgs
diff options
context:
space:
mode:
authorJan Tojnar <jtojnar@gmail.com>2018-04-30 02:49:35 +0200
committerJan Tojnar <jtojnar@gmail.com>2018-08-30 18:18:31 +0200
commit3ddead70852a5d484b063fec52973c56bad22601 (patch)
tree6d9e00afba59e85a50d7dd5e2598e5b71687fb1f /pkgs
parent0d90e014d63dc875fcdd855bd25de6ccc2b8f043 (diff)
downloadnixpkgs-3ddead70852a5d484b063fec52973c56bad22601.tar
nixpkgs-3ddead70852a5d484b063fec52973c56bad22601.tar.gz
nixpkgs-3ddead70852a5d484b063fec52973c56bad22601.tar.bz2
nixpkgs-3ddead70852a5d484b063fec52973c56bad22601.tar.lz
nixpkgs-3ddead70852a5d484b063fec52973c56bad22601.tar.xz
nixpkgs-3ddead70852a5d484b063fec52973c56bad22601.tar.zst
nixpkgs-3ddead70852a5d484b063fec52973c56bad22601.zip
gmic: simplify the expression with placeholder
Diffstat (limited to 'pkgs')
-rw-r--r--pkgs/tools/graphics/gmic/default.nix6
1 files changed, 1 insertions, 5 deletions
diff --git a/pkgs/tools/graphics/gmic/default.nix b/pkgs/tools/graphics/gmic/default.nix
index c267695dd78..51212a3ea94 100644
--- a/pkgs/tools/graphics/gmic/default.nix
+++ b/pkgs/tools/graphics/gmic/default.nix
@@ -32,16 +32,12 @@ in stdenv.mkDerivation rec {
     "-DBUILD_LIB_STATIC=OFF"
     "-DBUILD_PLUGIN=${if withGimpPlugin then "ON" else "OFF"}"
     "-DENABLE_DYNAMIC_LINKING=ON"
-  ];
+  ] ++ stdenv.lib.optional withGimpPlugin "-DPLUGIN_INSTALL_PREFIX=${placeholder "gimpPlugin"}/${gimp.targetPluginDir}";
 
   postPatch = ''
     cp ${CMakeLists} CMakeLists.txt
   '';
 
-  preConfigure = stdenv.lib.optionalString withGimpPlugin ''
-    cmakeFlags="$cmakeFlags -DPLUGIN_INSTALL_PREFIX=$gimpPlugin/${gimp.targetPluginDir}"
-  '';
-
   meta = with stdenv.lib; {
     description = "G'MIC is an open and full-featured framework for image processing";
     homepage = http://gmic.eu/;