flake-fonts/flake.nix

24 lines
739 B
Nix
Raw Normal View History

2023-06-17 00:20:53 +02:00
# vim: set noet sw=2 ts=2 sts=2:
{
description = "fonts";
inputs.nixpkgs.url = github:NixOS/nixpkgs/nixos-23.05-small;
outputs = { self, nixpkgs }:
let
sfnt2woff-zopfli = callPackage ./sfnt2woff-zopfli.nix {};
fetchfont = callPackage ./fetchfont.nix {sfnt2woff-zopfli = sfnt2woff-zopfli; };
fonts = callPackage ./fonts.nix {fetchfont = fetchfont; };
allSystems = [ "x86_64-linux" "aarch64-linux" "x86_64-darwin" "aarch64-darwin" ];
forAllSystems = f: nixpkgs.lib.genAttrs allSystems (system: f {
pkgs = import nixpkgs { inherit system; };
});
in {
lib = {
fetchfont = fetchfont;
};
packages = forAllSystems {pkgs}: {
default = fonts // { sfnt2woff-zopfli = sfnt2woff-zopfli; };
};
};
2023-06-17 00:20:53 +02:00
}