mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-24 14:43:37 +00:00
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; }
|