summary refs log tree commit diff
path: root/pkgs/applications/graphics/inkscape/with-extensions.nix
blob: cca7b1fc3a54c3cd2811f33913554b472a1a03e3 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
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;
}