mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-16 18:53:17 +00:00
d586d24f7a
Bitbucket deleted all its Mercurial repositories, so presumably this doesn't do anything any more.
10 lines
309 B
Nix
10 lines
309 B
Nix
{ fetchzip }:
|
|
|
|
{ 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; }
|