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

27 lines
421 B
Nix
Raw Normal View History

2024-05-02 00:46:19 +00:00
{ fetchzip, lib }:
lib.makeOverridable (
2024-06-30 08:12:46 +00:00
{
owner,
repo,
rev,
name ? "source",
... # For hash agility
}@args:
fetchzip (
{
inherit name;
url = "https://bitbucket.org/${owner}/${repo}/get/${rev}.tar.gz";
meta.homepage = "https://bitbucket.org/${owner}/${repo}/";
}
// removeAttrs args [
"owner"
"repo"
"rev"
]
)
// {
inherit rev;
}
2024-05-02 00:46:19 +00:00
)