inkscape: introduce a way to add external extensions

Co-Authored-By: Stefan Siegl <stesie@brokenpipe.de>
This commit is contained in:
Arnout Engelen 2020-08-10 23:24:20 +02:00
parent c59ea8b8a0
commit 67b4880faa
No known key found for this signature in database
GPG Key ID: 061107B0F74A6DAA
2 changed files with 23 additions and 0 deletions

View 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;
}

View File

@ -20927,6 +20927,8 @@ in
lcms = lcms2;
};
inkscape-with-extensions = callPackage ../applications/graphics/inkscape/with-extensions.nix { };
inkscape_0 = callPackage ../applications/graphics/inkscape/0.x.nix {
lcms = lcms2;
};