mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-24 16:03:23 +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; }
|