mirror of
https://github.com/SebastianWendel/nixpkgs.git
synced 2024-09-20 12:29:02 +02:00
yarn2nix: extend NixOS/nix#5128 workaround to 2.4+
The issue was not fixed in later versions, so we need the workaround for all versions greater than `2.4pre`.
This commit is contained in:
parent
7af591c79c
commit
7f9c7443ae
|
@ -49,7 +49,8 @@ function fetchgit(fileName, url, rev, branch, builtinFetchGit) {
|
|||
url = "${url}";
|
||||
ref = "${branch}";
|
||||
rev = "${rev}";
|
||||
} // (if builtins.substring 0 3 builtins.nixVersion == "2.4" then {
|
||||
} // (if builtins.compareVersions "2.4pre" builtins.nixVersion < 0 then {
|
||||
# workaround for https://github.com/NixOS/nix/issues/5128
|
||||
allRefs = true;
|
||||
} else {}));
|
||||
` : `
|
||||
|
|
Loading…
Reference in a new issue