agtest/flake.nix
2021-10-04 10:40:28 -05:00

30 lines
627 B
Nix

{
description = "A very basic flake";
inputs = {
flake-utils.url = "github:numtide/flake-utils";
};
outputs = { self, nixpkgs, flake-utils }:
flake-utils.lib.eachDefaultSystem (system:
let
pkgs = nixpkgs.legacyPackages.${system};
pythonPkgs = pkgs.python39Packages;
myPkgs = rec {
agtest = pythonPkgs.callPackage ./. {};
agtest-docs = pythonPkgs.callPackage ./docs {};
};
in
rec {
packages = flake-utils.lib.flattenTree myPkgs;
defaultPackage = packages.agtest;
devShell = pkgs.mkShell {
packages = with pythonPkgs; [
black
];
};
});
}