Skip to content

Commit

Permalink
yarn2nix: extend NixOS/nix#5128 workaround to 2.4+
Browse files Browse the repository at this point in the history
The issue was not fixed in later versions, so we need the workaround
for all versions greater than `2.4pre`.
  • Loading branch information
ncfavier committed May 3, 2022
1 parent f2070ef commit 01bbdca
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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 {}));
` : `
Expand Down

0 comments on commit 01bbdca

Please sign in to comment.