clan-core/pkgs/clan-cli/flake-module.nix

16 lines
403 B
Nix
Raw Normal View History

{
2023-07-20 23:08:35 +00:00
perSystem = { pkgs, ... }:
let
pyproject = builtins.fromTOML (builtins.readFile ./pyproject.toml);
name = pyproject.project.name;
package = pkgs.callPackage ./default.nix { };
shell = pkgs.callPackage ./shell.nix { };
2023-07-20 23:08:35 +00:00
in
{
packages.${name} = package;
devShells.${name} = shell;
packages.default = package;
checks = package.tests;
2023-07-20 23:08:35 +00:00
};
}