2020-08-10 23:24:20 +02:00
|
|
|
{ lib
|
|
|
|
, inkscape
|
|
|
|
, symlinkJoin
|
|
|
|
, makeWrapper
|
|
|
|
, inkscapeExtensions ? []
|
|
|
|
}:
|
|
|
|
|
|
|
|
symlinkJoin {
|
|
|
|
name = "inkscape-with-extensions-${lib.getVersion inkscape}";
|
|
|
|
|
|
|
|
paths = [ inkscape ] ++ inkscapeExtensions;
|
|
|
|
|
2021-02-07 10:17:39 +01:00
|
|
|
nativeBuildInputs = [ makeWrapper ];
|
2020-08-10 23:24:20 +02:00
|
|
|
|
|
|
|
postBuild = ''
|
|
|
|
rm -f $out/bin/inkscape
|
|
|
|
makeWrapper "${inkscape}/bin/inkscape" "$out/bin/inkscape" --set INKSCAPE_DATADIR "$out/share"
|
|
|
|
'';
|
|
|
|
|
|
|
|
inherit (inkscape) meta;
|
|
|
|
}
|