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

8 lines
195 B
Nix
Raw Normal View History

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