core/pkgs/build-support/fetchgitea/default.nix
2024-05-13 22:24:10 +01:00

8 lines
195 B
Nix

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