all-packages: move fetch* to pkgs/build-support/

This commit is contained in:
Matthew Bauer
2019-01-26 22:47:54 -05:00
parent cb14f1404a
commit d16e0f8dc3
6 changed files with 78 additions and 68 deletions
@@ -0,0 +1,10 @@
{ fetchzip }:
# gitweb example, snapshot support is optional in gitweb
{ repo, rev, name ? "source"
, ... # For hash agility
}@args: fetchzip ({
inherit name;
url = "https://repo.or.cz/${repo}.git/snapshot/${rev}.tar.gz";
meta.homepage = "https://repo.or.cz/${repo}.git/";
} // removeAttrs args [ "repo" "rev" ]) // { inherit rev; }