core/pkgs/build-support/fetchgitea/default.nix
2024-06-30 09:12:46 +01:00

10 lines
199 B
Nix

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