commit 7e3581c898f7839330c52d9fe1238e69099a97a9 parent 78ac54f97b1e46c305cbffc6733b4766887bad8d Author: Nikolay Korotkiy <sikmir@gmail.com> Date: Sat, 13 Mar 2021 07:57:23 +0300 Fix fetchfromgh Diffstat:
M | pkgs/build-support/fetchfromgh/default.nix | | | 8 | +++++--- |
1 file changed, 5 insertions(+), 3 deletions(-)
diff --git a/pkgs/build-support/fetchfromgh/default.nix b/pkgs/build-support/fetchfromgh/default.nix @@ -1,11 +1,13 @@ { fetchurl }: { owner, repo, version, name, ... } @ args: - +let + baseUrl = "https://github.com/${owner}/${repo}"; +in ( fetchurl ( { - url = "https://github.com/${owner}/${repo}/releases/download/${version}/${name}"; + url = "${baseUrl}/releases/download/${version}/${name}"; } // removeAttrs args [ "owner" "repo" "version" "name" ] - ) + ) // { meta.homepage = baseUrl; } )