gimp-with-plugins: install plug-ins into subdirs
GIMP 3 will require all plugins to be installed into their own subdirectories, so let’s just do that now.
This commit is contained in:
parent
ae21a2bc60
commit
8da26cc578
@ -8,22 +8,24 @@ let
|
||||
inherit (pkgs) stdenv fetchurl pkgconfig intltool glib fetchFromGitHub;
|
||||
inherit (gimp) targetPluginDir targetScriptDir;
|
||||
|
||||
pluginDerivation = a: stdenv.mkDerivation ({
|
||||
pluginDerivation = a: let
|
||||
name = a.name or "${a.pname}-${a.version}";
|
||||
in stdenv.mkDerivation ({
|
||||
prePhases = "extraLib";
|
||||
extraLib = ''
|
||||
installScripts(){
|
||||
mkdir -p $out/${targetScriptDir};
|
||||
for p in "$@"; do cp "$p" $out/${targetScriptDir}; done
|
||||
mkdir -p $out/${targetScriptDir}/${name};
|
||||
for p in "$@"; do cp "$p" -r $out/${targetScriptDir}/${name}; done
|
||||
}
|
||||
installPlugins(){
|
||||
mkdir -p $out/${targetPluginDir};
|
||||
for p in "$@"; do cp "$p" $out/${targetPluginDir}; done
|
||||
mkdir -p $out/${targetPluginDir}/${name};
|
||||
for p in "$@"; do cp "$p" -r $out/${targetPluginDir}/${name}; done
|
||||
}
|
||||
'';
|
||||
}
|
||||
// a
|
||||
// {
|
||||
name = "gimp-plugin-${a.name or "${a.pname}-${a.version}"}";
|
||||
name = "gimp-plugin-${name}";
|
||||
buildInputs = [ gimp gimp.gtk glib ] ++ (a.buildInputs or []);
|
||||
nativeBuildInputs = [ pkgconfig intltool ] ++ (a.nativeBuildInputs or []);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user