yarn2nix: workaround for NixOS/nix#5128
This commit is contained in:
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}";
|
||||
|
Loading…
Reference in New Issue
Block a user