forked from clan/clan-core
clan-cli: expose via flake packages
This commit is contained in:
parent
af7e4d7bb9
commit
a0701bf988
@ -22,6 +22,7 @@
|
||||
./flake-parts/packages.nix
|
||||
./flake-parts/formatting.nix
|
||||
./templates/python-project/flake-module.nix
|
||||
./pkgs/clan-cli/flake-module.nix
|
||||
];
|
||||
flake = {
|
||||
nixosConfigurations.installer = lib.nixosSystem {
|
||||
|
@ -1,10 +1,12 @@
|
||||
{
|
||||
perSystem = {pkgs, ...}: let
|
||||
pyproject = builtins.fromTOML (builtins.readFile ./pyproject.toml);
|
||||
name = pyproject.project.name;
|
||||
package = pkgs.callPackage ./default.nix {};
|
||||
in {
|
||||
# packages.${name} = package;
|
||||
checks.python-template = package.tests.check;
|
||||
};
|
||||
perSystem = { pkgs, ... }:
|
||||
let
|
||||
pyproject = builtins.fromTOML (builtins.readFile ./pyproject.toml);
|
||||
name = pyproject.project.name;
|
||||
package = pkgs.callPackage ./default.nix { };
|
||||
in
|
||||
{
|
||||
packages.${name} = package;
|
||||
checks.${name} = package.tests.check;
|
||||
};
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user