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

13 lines
274 B
Nix
Raw Normal View History

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