forked from auxolotl/core
27 lines
336 B
Nix
27 lines
336 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;
|
||
|
}
|
||
|
)
|