biglybt: 3.5.0.0 -> 3.6.0.0
[NixPkgs.git] / pkgs / applications / graphics / inkscape / with-extensions.nix
blob14fffadd0360607081c8ab455876f3760f92c7d1
1 { lib
2 , inkscape
3 , symlinkJoin
4 , makeWrapper
5 , inkscapeExtensions ? [ ]
6 , inkscape-extensions
7 }:
9 let
10   allExtensions = lib.filter (pkg: lib.isDerivation pkg && !pkg.meta.broken or false) (lib.attrValues inkscape-extensions);
11   selectedExtensions = if inkscapeExtensions == null then allExtensions else inkscapeExtensions;
14 symlinkJoin {
15   name = "inkscape-with-extensions-${lib.getVersion inkscape}";
17   paths = [ inkscape ] ++ selectedExtensions;
19   nativeBuildInputs = [ makeWrapper ];
21   postBuild = ''
22     rm -f $out/bin/inkscape
23     makeWrapper "${inkscape}/bin/inkscape" "$out/bin/inkscape" --set INKSCAPE_DATADIR "$out/share"
24   '';
26   inherit (inkscape) meta;