mirror of
https://github.com/SebastianWendel/nixpkgs.git
synced 2024-11-06 02:06:46 +01:00
22 lines
421 B
Nix
22 lines
421 B
Nix
{ lib
|
|
, inkscape
|
|
, symlinkJoin
|
|
, makeWrapper
|
|
, inkscapeExtensions ? []
|
|
}:
|
|
|
|
symlinkJoin {
|
|
name = "inkscape-with-extensions-${lib.getVersion inkscape}";
|
|
|
|
paths = [ inkscape ] ++ inkscapeExtensions;
|
|
|
|
nativeBuildInputs = [ makeWrapper ];
|
|
|
|
postBuild = ''
|
|
rm -f $out/bin/inkscape
|
|
makeWrapper "${inkscape}/bin/inkscape" "$out/bin/inkscape" --set INKSCAPE_DATADIR "$out/share"
|
|
'';
|
|
|
|
inherit (inkscape) meta;
|
|
}
|