mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-30 02:42:59 +00:00
12 lines
338 B
Nix
12 lines
338 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; }
|
|
)
|