mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-28 00:24:18 +00:00
11 lines
236 B
Nix
11 lines
236 B
Nix
|
{ fetchzip, lib }:
|
||
|
|
||
|
{ 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; }
|