mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-16 14:54:29 +01:00
d586d24f7a
Bitbucket deleted all its Mercurial repositories, so presumably this doesn't do anything any more.
9 lines
309 B
Nix
9 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; }
|