diff --git a/pkgs/development/tools/yarn2nix-moretea/yarn2nix/lib/generateNix.js b/pkgs/development/tools/yarn2nix-moretea/yarn2nix/lib/generateNix.js index 5004e6f3903df..e2bae7d3d6e33 100644 --- a/pkgs/development/tools/yarn2nix-moretea/yarn2nix/lib/generateNix.js +++ b/pkgs/development/tools/yarn2nix-moretea/yarn2nix/lib/generateNix.js @@ -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 {})); ` : `