aboutsummaryrefslogtreecommitdiff
path: root/nixpkgs/pkgs/applications/graphics/inkscape/with-extensions.nix
diff options
context:
space:
mode:
Diffstat (limited to 'nixpkgs/pkgs/applications/graphics/inkscape/with-extensions.nix')
-rw-r--r--nixpkgs/pkgs/applications/graphics/inkscape/with-extensions.nix21
1 files changed, 21 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/applications/graphics/inkscape/with-extensions.nix b/nixpkgs/pkgs/applications/graphics/inkscape/with-extensions.nix
new file mode 100644
index 00000000000..cca7b1fc3a5
--- /dev/null
+++ b/nixpkgs/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;
+}