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

10 lines
195 B
Nix
Raw Normal View History

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