You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
varBase = "NIX${if varPrefix == null then "" else "_${varPrefix}"}_GITHUB_PRIVATE_";
194
196
in if fetchSubmodules then
195
197
fetchgit ({
196
198
inherit name rev fetchSubmodules;
@@ -203,6 +205,19 @@ with pkgs;
203
205
inherit name;
204
206
url = "${baseUrl}/archive/${rev}.tar.gz";
205
207
meta.homepage = "${baseUrl}/";
208
+
} // lib.optionalAttrs private {
209
+
netrcPhase = ''
210
+
if [ -z "''$${varBase}USERNAME" -o -z "''$${varBase}PASSWORD" ]; then
211
+
echo "Error: Private fetchFromGitHub requires the nix building process (nix-daemon in multi user mode) to have the ${varBase}USERNAME and ${varBase}PASSWORD env vars set." >&2
0 commit comments