yarn2nix: workaround for NixOS/nix#5128

Yureka b7e7d35c c2059441

Changed files
+4 -2
pkgs
development
tools
yarn2nix-moretea
yarn2nix
+4 -2
pkgs/development/tools/yarn2nix-moretea/yarn2nix/lib/generateNix.js
···
name = "${fileName}";
path =
let${builtinFetchGit ? `
-
repo = builtins.fetchGit {
+
repo = builtins.fetchGit ({
url = "${url}";
ref = "${branch}";
rev = "${rev}";
-
};
+
} // (if builtins.substring 0 3 builtins.nixVersion == "2.4" then {
+
allRefs = true;
+
} else {}));
` : `
repo = fetchgit {
url = "${url}";