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