clan-cli: expose via flake packages

This commit is contained in:
DavHau 2023-07-21 01:08:35 +02:00 committed by Jörg Thalheim
parent af7e4d7bb9
commit a0701bf988
2 changed files with 11 additions and 8 deletions

View File

@ -22,6 +22,7 @@
./flake-parts/packages.nix ./flake-parts/packages.nix
./flake-parts/formatting.nix ./flake-parts/formatting.nix
./templates/python-project/flake-module.nix ./templates/python-project/flake-module.nix
./pkgs/clan-cli/flake-module.nix
]; ];
flake = { flake = {
nixosConfigurations.installer = lib.nixosSystem { nixosConfigurations.installer = lib.nixosSystem {

View File

@ -1,10 +1,12 @@
{ {
perSystem = {pkgs, ...}: let perSystem = { pkgs, ... }:
pyproject = builtins.fromTOML (builtins.readFile ./pyproject.toml); let
name = pyproject.project.name; pyproject = builtins.fromTOML (builtins.readFile ./pyproject.toml);
package = pkgs.callPackage ./default.nix {}; name = pyproject.project.name;
in { package = pkgs.callPackage ./default.nix { };
# packages.${name} = package; in
checks.python-template = package.tests.check; {
}; packages.${name} = package;
checks.${name} = package.tests.check;
};
} }