agtest/flake.nix

27 lines
530 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 ./. {};
};
in
{
packages = flake-utils.lib.flattenTree myPkgs;
devShell = pkgs.mkShell {
packages = with pythonPkgs; [
black
];
};
});
}