diff --git a/flake.nix b/flake.nix index 77741213..1a18e4b1 100644 --- a/flake.nix +++ b/flake.nix @@ -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 { diff --git a/pkgs/clan-cli/flake-module.nix b/pkgs/clan-cli/flake-module.nix index 1e85e607..6426e481 100644 --- a/pkgs/clan-cli/flake-module.nix +++ b/pkgs/clan-cli/flake-module.nix @@ -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; + }; }