flake: avoid recursive set

This commit is contained in:
Robert Helgesson 2023-02-26 16:21:03 +01:00
parent 7b6e507151
commit d68cd7f7df
No known key found for this signature in database
GPG key ID: 36BDAA14C2797E89

View file

@ -89,14 +89,16 @@
pkgs = nixpkgs.legacyPackages.${system};
docs = import ./docs { inherit pkgs; };
tests = import ./tests { inherit pkgs; };
hmPkg = pkgs.callPackage ./home-manager { };
in {
devShells.tests = tests.run;
packages = rec {
home-manager = pkgs.callPackage ./home-manager { };
packages = {
default = hmPkg;
home-manager = hmPkg;
docs-html = docs.manual.html;
docs-manpages = docs.manPages;
docs-json = docs.options.json;
default = home-manager;
docs-manpages = docs.manPages;
};
# deprecated in Nix 2.7
defaultPackage = self.packages.${system}.default;