mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-05 05:13:04 +00:00
67b4880faa
Co-Authored-By: Stefan Siegl <stesie@brokenpipe.de>
22 lines
415 B
Nix
22 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;
|
|
}
|