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, ... }:
let
pyproject = builtins.fromTOML (builtins.readFile ./pyproject.toml); pyproject = builtins.fromTOML (builtins.readFile ./pyproject.toml);
name = pyproject.project.name; name = pyproject.project.name;
package = pkgs.callPackage ./default.nix {}; package = pkgs.callPackage ./default.nix { };
in { in
# packages.${name} = package; {
checks.python-template = package.tests.check; packages.${name} = package;
checks.${name} = package.tests.check;
}; };
} }