1
0
Fork 0
mirror of https://github.com/nix-community/home-manager.git synced 2025-11-08 11:36:05 +01:00

home-manger: fix runtime closure (#5174)

Without this fix a `nix-buid . -A home-manager` would successfully
create a `home-manager`. And one could use the included binary until
the next garbage collection, after that it would fail with an
error that it can not find the `home-manager` sources.

Similarily a `nix-copy-closure`d `home-manager` would fail with the
same error on the copies target machine.

This problem existed on both, the flake as well as the non-flake build
of `home-manager`.
This commit is contained in:
Norbert Melzer 2025-01-30 02:20:30 +01:00 committed by GitHub
parent 9ce5d0b888
commit 86a0d627ca
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 10 additions and 4 deletions

View file

@ -104,7 +104,7 @@
inherit pkgs;
inherit (releaseInfo) release isReleaseBranch;
};
hmPkg = pkgs.callPackage ./home-manager { path = "${./.}"; };
hmPkg = pkgs.callPackage ./home-manager { path = "${self}"; };
in {
default = hmPkg;
home-manager = hmPkg;