feat: refactor and build pngs with nix develop
This commit is contained in:
parent
06187f347b
commit
43c049576a
26 changed files with 435 additions and 101 deletions
37
flake.nix
Normal file
37
flake.nix
Normal 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}
|
||||
'';
|
||||
};
|
||||
}
|
||||
);
|
||||
}
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue