yarn2nix: workaround for NixOS/nix#5128

This commit is contained in:
Yureka 2021-10-08 19:09:43 +02:00 committed by Raphael Megzari
parent c205944161
commit b7e7d35ccc

@ -45,11 +45,13 @@ function fetchgit(fileName, url, rev, branch, builtinFetchGit) {
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}";