diff options
author | Arnout Engelen <arnout@bzzt.net> | 2020-08-10 23:24:20 +0200 |
---|---|---|
committer | Arnout Engelen <arnout@bzzt.net> | 2020-09-10 09:17:49 +0200 |
commit | 67b4880faa39b71356c6a085d4addce61a4f454d (patch) | |
tree | c8df1ffaeb27dcf514115919d78b6eade2b7538b /pkgs/applications/graphics/inkscape | |
parent | c59ea8b8a0e7f927e7291c14ea6cd1bd3a16ff38 (diff) |
inkscape: introduce a way to add external extensions
Co-Authored-By: Stefan Siegl <stesie@brokenpipe.de>
Diffstat (limited to 'pkgs/applications/graphics/inkscape')
-rw-r--r-- | pkgs/applications/graphics/inkscape/with-extensions.nix | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/pkgs/applications/graphics/inkscape/with-extensions.nix b/pkgs/applications/graphics/inkscape/with-extensions.nix new file mode 100644 index 0000000000000..cca7b1fc3a54c --- /dev/null +++ b/pkgs/applications/graphics/inkscape/with-extensions.nix @@ -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; +} |