lol

fetchFromSourcehut: expose `gitRepoUrl` to consumers

notable consumers include `unstableGitUpdater`.
other git-like fetchers (`fetchFromGitHub`) already do this.

authored by

Colin and committed by
Emery Hemingway
954d3794 944c7fa7

+5 -1
+5 -1
pkgs/build-support/fetchsourcehut/default.nix
··· 15 15 assert (lib.assertOneOf "vc" vc [ "hg" "git" ]); 16 16 17 17 let 18 - baseUrl = "https://${vc}.${domain}/${owner}/${repo}"; 18 + urlFor = resource: "https://${resource}.${domain}/${owner}/${repo}"; 19 + baseUrl = urlFor vc; 19 20 baseArgs = { 20 21 inherit name; 21 22 } // removeAttrs args [ ··· 42 43 postFetch = optionalString (vc == "hg") '' 43 44 rm -f "$out/.hg_archival.txt" 44 45 ''; # impure file; see #12002 46 + passthru = { 47 + gitRepoUrl = urlFor "git"; 48 + }; 45 49 }; 46 50 }; 47 51 };