network_inventory/flake.nix

31 lines
899 B
Nix
Raw Normal View History

2021-12-08 18:07:49 +01:00
{
description = "A Python API for various tools I use at work.";
inputs = {
nixpkgs.url = github:NixOS/nixpkgs/nixos-21.11;
2022-01-31 19:27:53 +01:00
flake-utils = {
url = github:numtide/flake-utils;
};
mach-nix = {
url = "github:DavHau/mach-nix";
inputs = {
nixpkgs.follows = "nixpkgs";
flake-utils.follows = "flake-utils";
};
};
2021-12-08 18:07:49 +01:00
};
2022-01-31 19:27:53 +01:00
outputs = { self, nixpkgs, flake-utils, mach-nix, ... }@inputs:
flake-utils.lib.eachDefaultSystem (system:
2021-12-08 18:07:49 +01:00
let
pkgs = nixpkgs.legacyPackages.${system};
2022-01-31 19:27:53 +01:00
machNix = mach-nix.lib."${system}";
2021-12-08 18:07:49 +01:00
in
2022-01-31 19:27:53 +01:00
{
devShell = machNix.mkPythonShell {
packagesExtra = with pkgs; [ pkgs.gnumake ];
requirements = builtins.readFile ./requirements/local.txt;
2022-01-31 19:35:08 +01:00
_.pytest-cov.propagatedBuildInputs.mod = pySelf: self: oldVal: oldVal ++ [ pySelf.tomli ];
2021-12-08 18:07:49 +01:00
};
});
}