Workaround for https://github.com/NixOS/nix/issues/792
This commit is contained in:
parent
373d8b7b38
commit
000a9f2766
1 changed files with 1 additions and 1 deletions
|
@ -53,7 +53,7 @@ print STDERR "release is ‘$releaseName’ (build $releaseId), eval is $evalId,
|
|||
my $curReleaseDir = readlink "$channelsDir/$channelName";
|
||||
if (defined $curReleaseDir) {
|
||||
my $curRelease = basename($curReleaseDir);
|
||||
my $d = `nix-instantiate --eval -E "builtins.compareVersions (builtins.parseDrvName \\"$curRelease\\").version (builtins.parseDrvName \\"$releaseName\\").version"`;
|
||||
my $d = `NIX_PATH= nix-instantiate --eval -E "builtins.compareVersions (builtins.parseDrvName \\"$curRelease\\").version (builtins.parseDrvName \\"$releaseName\\").version"`;
|
||||
chomp $d;
|
||||
die "channel would go back in time from $curRelease to $releaseName, bailing out\n" if $d == 1;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue