{ description = "Load fonts and print their metrics"; inputs = { flake-utils.url = "github:numtide/flake-utils"; flake-compat = { url = "github:edolstra/flake-compat"; flake = false; }; }; outputs = { nixpkgs, flake-utils, ... }: flake-utils.lib.eachDefaultSystem (system: let pkgs = nixpkgs.legacyPackages.${system}; in rec { packages.font-info = pkgs.callPackage ./default.nix { }; packages.default = packages.font-info; devShells.default = pkgs.mkShell { buildInputs = with pkgs; [ cargo clippy rust-analyzer rustc rustfmt pkg-config fontconfig ]; }; } ); }