feat: refactor and build pngs with nix develop

This commit is contained in:
Iain Learmonth 2025-05-28 17:09:34 +01:00
parent 06187f347b
commit 43c049576a
26 changed files with 435 additions and 101 deletions

37
flake.nix Normal file
View file

@ -0,0 +1,37 @@
{
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
flake-utils.url = "github:numtide/flake-utils";
};
outputs =
{
self,
nixpkgs,
flake-utils,
...
}:
flake-utils.lib.eachDefaultSystem (
system:
let
pkgs = import nixpkgs {
inherit system;
};
fontConfigFile = pkgs.makeFontsConf {
fontDirectories = [ pkgs.freefont_ttf ];
};
in
with pkgs;
{
devShells.default = mkShell {
buildInputs = [
inkscape
just
];
shellHook = ''
export FONTCONFIG_FILE=${fontConfigFile}
'';
};
}
);
}