diff --git a/flake.nix b/flake.nix index 9ee2a5e..27f8778 100644 --- a/flake.nix +++ b/flake.nix @@ -16,11 +16,21 @@ in { inherit fetchfont; } ); - packages = forAllSystems ({pkgs}: + defaultPackage = forAllSystems ({pkgs}: with pkgs; let - fetchfont = callPackage ./fetchfont.nix { pkgs = pkgs // { inherit sfnt2woff-zopfli; }; }; sfnt2woff-zopfli = callPackage ./sfnt2woff-zopfli.nix {}; + fetchfont = callPackage ./fetchfont.nix { pkgs = pkgs // { inherit sfnt2woff-zopfli; }; }; + fonts = callPackage ./fonts.nix { fetchfont = fetchfont; }; + default = callPackage ./collection.nix { fonts = fonts; }; + in + default + ); + packages = forAllSystems ({pkgs}: + with pkgs; + let + sfnt2woff-zopfli = callPackage ./sfnt2woff-zopfli.nix {}; + fetchfont = callPackage ./fetchfont.nix { pkgs = pkgs // { inherit sfnt2woff-zopfli; }; }; fonts = callPackage ./fonts.nix { fetchfont = fetchfont; }; default = callPackage ./collection.nix { fonts = fonts; }; in