mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-02-20 19:16:11 +00:00
inkscape: introduce a way to add external extensions
Co-Authored-By: Stefan Siegl <stesie@brokenpipe.de>
This commit is contained in:
parent
c59ea8b8a0
commit
67b4880faa
21
pkgs/applications/graphics/inkscape/with-extensions.nix
Normal file
21
pkgs/applications/graphics/inkscape/with-extensions.nix
Normal file
@ -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;
|
||||
}
|
@ -20927,6 +20927,8 @@ in
|
||||
lcms = lcms2;
|
||||
};
|
||||
|
||||
inkscape-with-extensions = callPackage ../applications/graphics/inkscape/with-extensions.nix { };
|
||||
|
||||
inkscape_0 = callPackage ../applications/graphics/inkscape/0.x.nix {
|
||||
lcms = lcms2;
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user