fetchFromGitea: init

This commit is contained in:
Robert Schütz 2021-05-27 09:31:10 +02:00
parent 8ab19de80d
commit f96cff58df
2 changed files with 9 additions and 0 deletions

View file

@ -0,0 +1,7 @@
# Gitea's URLs are compatible with GitHub
{ lib, fetchFromGitHub }:
{ domain, ... }@args:
fetchFromGitHub ((removeAttrs args [ "domain" ]) // { githubBase = domain; })

View file

@ -556,6 +556,8 @@ in
fetchCrate = callPackage ../build-support/rust/fetchcrate.nix { };
fetchFromGitea = callPackage ../build-support/fetchgitea { };
fetchFromGitHub = callPackage ../build-support/fetchgithub {};
fetchFromBitbucket = callPackage ../build-support/fetchbitbucket {};