nixpkgs/pkgs/applications/graphics/inkscape/with-extensions.nix
Arnout Engelen 67b4880faa
inkscape: introduce a way to add external extensions
Co-Authored-By: Stefan Siegl <stesie@brokenpipe.de>
2020-09-10 09:17:49 +02:00

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