mirror of
https://github.com/SebastianWendel/nixpkgs.git
synced 2024-09-20 20:39:04 +02:00
nixos/guix: fix conditional linking of profiles
This commit is contained in:
parent
a73ae4bf9f
commit
b7ece537bb
|
@ -274,7 +274,7 @@ in
|
|||
linkProfile = profile: location: let
|
||||
userProfile = guixProfile profile;
|
||||
in ''
|
||||
[ -d "${userProfile}" ] && [ -L "${location}" ] || ln -sf "${userProfile}" "${location}"
|
||||
[ -d "${userProfile}" ] && ln -sfn "${userProfile}" "${location}"
|
||||
'';
|
||||
linkProfileToPath = acc: profile: location: let
|
||||
in acc + (linkProfile profile location);
|
||||
|
|
Loading…
Reference in a new issue