58f8944c92
GitOrigin-RevId: 5aba0fe9766a7201a336249fd6cb76e0d7ba2faf
21 lines
415 B
Nix
21 lines
415 B
Nix
{ 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;
|
|
}
|