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

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

27 lines
336 B
Nix
Raw 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;
}
)