inkscape: introduce a way to add external extensions
Co-Authored-By: Stefan Siegl <stesie@brokenpipe.de>
This commit is contained in:
parent
c59ea8b8a0
commit
67b4880faa
21
pkgs/applications/graphics/inkscape/with-extensions.nix
Normal file
21
pkgs/applications/graphics/inkscape/with-extensions.nix
Normal file
@ -0,0 +1,21 @@
|
|||||||
|
{ lib
|
||||||
|
, inkscape
|
||||||
|
, symlinkJoin
|
||||||
|
, makeWrapper
|
||||||
|
, inkscapeExtensions ? []
|
||||||
|
}:
|
||||||
|
|
||||||
|
symlinkJoin {
|
||||||
|
name = "inkscape-with-extensions-${lib.getVersion inkscape}";
|
||||||
|
|
||||||
|
paths = [ inkscape ] ++ inkscapeExtensions;
|
||||||
|
|
||||||
|
buildInputs = [ makeWrapper ];
|
||||||
|
|
||||||
|
postBuild = ''
|
||||||
|
rm -f $out/bin/inkscape
|
||||||
|
makeWrapper "${inkscape}/bin/inkscape" "$out/bin/inkscape" --set INKSCAPE_DATADIR "$out/share"
|
||||||
|
'';
|
||||||
|
|
||||||
|
inherit (inkscape) meta;
|
||||||
|
}
|
@ -20927,6 +20927,8 @@ in
|
|||||||
lcms = lcms2;
|
lcms = lcms2;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
inkscape-with-extensions = callPackage ../applications/graphics/inkscape/with-extensions.nix { };
|
||||||
|
|
||||||
inkscape_0 = callPackage ../applications/graphics/inkscape/0.x.nix {
|
inkscape_0 = callPackage ../applications/graphics/inkscape/0.x.nix {
|
||||||
lcms = lcms2;
|
lcms = lcms2;
|
||||||
};
|
};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user