2021-10-01 18:16:51 +00:00
|
|
|
{
|
|
|
|
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};
|
2021-10-01 18:38:40 +00:00
|
|
|
pythonPkgs = pkgs.python39Packages;
|
|
|
|
|
2021-10-01 18:16:51 +00:00
|
|
|
myPkgs = rec {
|
2021-10-01 18:38:40 +00:00
|
|
|
agtest = pythonPkgs.callPackage ./. {};
|
2021-10-04 15:40:28 +00:00
|
|
|
agtest-docs = pythonPkgs.callPackage ./docs {};
|
2021-10-01 18:16:51 +00:00
|
|
|
};
|
|
|
|
in
|
2021-10-04 15:40:28 +00:00
|
|
|
rec {
|
2021-10-01 18:16:51 +00:00
|
|
|
packages = flake-utils.lib.flattenTree myPkgs;
|
2021-10-01 19:35:42 +00:00
|
|
|
|
2021-10-04 15:40:28 +00:00
|
|
|
defaultPackage = packages.agtest;
|
|
|
|
|
2021-10-01 19:35:42 +00:00
|
|
|
devShell = pkgs.mkShell {
|
|
|
|
packages = with pythonPkgs; [
|
|
|
|
black
|
|
|
|
];
|
|
|
|
};
|
2021-10-01 18:16:51 +00:00
|
|
|
});
|
|
|
|
}
|