gmic: simplify the expression with placeholder
This commit is contained in:
@@ -32,16 +32,12 @@ in stdenv.mkDerivation rec {
|
|||||||
"-DBUILD_LIB_STATIC=OFF"
|
"-DBUILD_LIB_STATIC=OFF"
|
||||||
"-DBUILD_PLUGIN=${if withGimpPlugin then "ON" else "OFF"}"
|
"-DBUILD_PLUGIN=${if withGimpPlugin then "ON" else "OFF"}"
|
||||||
"-DENABLE_DYNAMIC_LINKING=ON"
|
"-DENABLE_DYNAMIC_LINKING=ON"
|
||||||
];
|
] ++ stdenv.lib.optional withGimpPlugin "-DPLUGIN_INSTALL_PREFIX=${placeholder "gimpPlugin"}/${gimp.targetPluginDir}";
|
||||||
|
|
||||||
postPatch = ''
|
postPatch = ''
|
||||||
cp ${CMakeLists} CMakeLists.txt
|
cp ${CMakeLists} CMakeLists.txt
|
||||||
'';
|
'';
|
||||||
|
|
||||||
preConfigure = stdenv.lib.optionalString withGimpPlugin ''
|
|
||||||
cmakeFlags="$cmakeFlags -DPLUGIN_INSTALL_PREFIX=$gimpPlugin/${gimp.targetPluginDir}"
|
|
||||||
'';
|
|
||||||
|
|
||||||
meta = with stdenv.lib; {
|
meta = with stdenv.lib; {
|
||||||
description = "G'MIC is an open and full-featured framework for image processing";
|
description = "G'MIC is an open and full-featured framework for image processing";
|
||||||
homepage = http://gmic.eu/;
|
homepage = http://gmic.eu/;
|
||||||
|
|||||||
Reference in New Issue
Block a user