mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-15 22:36:23 +01:00
12 lines
260 B
Nix
12 lines
260 B
Nix
{ fetchzip, lib }:
|
|
|
|
lib.makeOverridable (
|
|
{ url, rev, name ? "source", ... } @ args:
|
|
|
|
fetchzip ({
|
|
inherit name;
|
|
url = "${url}/+archive/${rev}.tar.gz";
|
|
stripRoot = false;
|
|
meta.homepage = url;
|
|
} // removeAttrs args [ "url" "rev" ]) // { inherit rev; }
|
|
)
|