inkscape-with-extension: make enabling all extensions easier

Previously, we needed something like

inkscape-with-extensions.override { inkscapeExtensions = builtins.filter lib.isDerivation (builtins.attrValues inkscape-extensions); }

Now, we can just do

inkscape-with-extensions.override { inkscapeExtensions = null; }

+8 -2
+8 -2
pkgs/applications/graphics/inkscape/with-extensions.nix
··· 2 , inkscape 3 , symlinkJoin 4 , makeWrapper 5 - , inkscapeExtensions ? [] 6 }: 7 8 symlinkJoin { 9 name = "inkscape-with-extensions-${lib.getVersion inkscape}"; 10 11 - paths = [ inkscape ] ++ inkscapeExtensions; 12 13 nativeBuildInputs = [ makeWrapper ]; 14
··· 2 , inkscape 3 , symlinkJoin 4 , makeWrapper 5 + , inkscapeExtensions ? [ ] 6 + , inkscape-extensions 7 }: 8 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; 12 + in 13 + 14 symlinkJoin { 15 name = "inkscape-with-extensions-${lib.getVersion inkscape}"; 16 17 + paths = [ inkscape ] ++ selectedExtensions; 18 19 nativeBuildInputs = [ makeWrapper ]; 20