1
1
Fork 0
forked from auxolotl/core
core/pkgs/build-support/fetchbitbucket/default.nix
2024-06-30 09:16:52 +01:00

27 lines
421 B
Nix

{ fetchzip, lib }:
lib.makeOverridable (
{
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;
}
)