iso7010print/flake.nix

30 lines
783 B
Nix
Raw Normal View History

2023-08-14 17:33:59 +01:00
{
description = "A basic flake from samw";
inputs = {
utils.url = "github:numtide/flake-utils";
devshell.url = "github:numtide/devshell";
mach-nix.url = "mach-nix/3.5.0";
};
outputs = {
self,
nixpkgs,
utils,
devshell,
mach-nix,
}:
utils.lib.eachDefaultSystem (system: let
pkgs = import nixpkgs {
inherit system;
overlays = [devshell.overlays.default];
};
mach-lib = mach-nix.lib."${system}";
2023-08-16 18:30:07 +01:00
in rec {
2023-08-14 17:33:59 +01:00
packages.default = mach-lib.mkPython {
requirements = builtins.readFile ./requirements.txt;
};
2023-08-16 18:30:07 +01:00
devShells.default = pkgs.devshell.mkShell {packages = with pkgs; [packages.default imagemagick resvg python3Packages.brother-ql];};
2023-08-14 17:33:59 +01:00
formatter = pkgs.alejandra;
});
}