core/pkgs/build-support/fetchgitea/default.nix

10 lines
199 B
Nix
Raw Normal View History

2024-05-02 00:46:19 +00:00
# Gitea's URLs are compatible with GitHub
{ lib, fetchFromGitHub }:
lib.makeOverridable (
2024-06-30 08:12:46 +00:00
{ domain, ... }@args:
2024-05-02 00:46:19 +00:00
2024-06-30 08:12:46 +00:00
fetchFromGitHub ((removeAttrs args [ "domain" ]) // { githubBase = domain; })
2024-05-02 00:46:19 +00:00
)