Skip to content

Commit

Permalink
yarn2nix: workaround for NixOS/nix#5128
Browse files Browse the repository at this point in the history
  • Loading branch information
yu-re-ka authored and happysalada committed Oct 10, 2021
1 parent c205944 commit b7e7d35
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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}";
Expand Down

0 comments on commit b7e7d35

Please sign in to comment.