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

13 lines
260 B
Nix
Raw Permalink Normal View History

2024-05-02 00:46:19 +00:00
{ fetchzip, lib }:
lib.makeOverridable (
{ url, rev, name ? "source", ... } @ args:
fetchzip ({
inherit name;
url = "${url}/+archive/${rev}.tar.gz";
stripRoot = false;
meta.homepage = url;
} // removeAttrs args [ "url" "rev" ]) // { inherit rev; }
)