mirror of
https://github.com/privatevoid-net/nix-super.git
synced 2024-11-30 17:46:15 +02:00
nix dev-shell --profile: Support relative path
This commit is contained in:
parent
a49b6761a5
commit
5ec2a1ed82
1 changed files with 3 additions and 2 deletions
|
@ -96,10 +96,11 @@ void MixProfile::updateProfile(const Path & storePath)
|
||||||
if (!profile) return;
|
if (!profile) return;
|
||||||
auto store = getStore().dynamic_pointer_cast<LocalFSStore>();
|
auto store = getStore().dynamic_pointer_cast<LocalFSStore>();
|
||||||
if (!store) throw Error("'--profile' is not supported for this Nix store");
|
if (!store) throw Error("'--profile' is not supported for this Nix store");
|
||||||
switchLink(*profile,
|
auto profile2 = absPath(*profile);
|
||||||
|
switchLink(profile2,
|
||||||
createGeneration(
|
createGeneration(
|
||||||
ref<LocalFSStore>(store),
|
ref<LocalFSStore>(store),
|
||||||
*profile, storePath));
|
profile2, storePath));
|
||||||
}
|
}
|
||||||
|
|
||||||
void MixProfile::updateProfile(const Buildables & buildables)
|
void MixProfile::updateProfile(const Buildables & buildables)
|
||||||
|
|
Loading…
Reference in a new issue