From d1d9d39f4537b0738b49a38a3ef7c423b3ad892e Mon Sep 17 00:00:00 2001 From: Denis Knauf Date: Tue, 20 Jun 2023 16:20:15 +0200 Subject: [PATCH] defaultPackage defined (equales packages.*.default) --- flake.nix | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) 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