Addnig a package to copy nix-prefetch-* to bin/. Hopefully fixes #1130

This commit is contained in:
Michael Raskin 2014-06-09 01:11:03 +04:00
parent e68a5b265a
commit c2fb8b1364
2 changed files with 30 additions and 0 deletions

View File

@ -0,0 +1,28 @@
{stdenv}:
stdenv.mkDerivation {
name = "nix-prefetch-tools";
src = "";
srcRoot=".";
prePhases = "undefUnpack";
undefUnpack = ''
unpackPhase () { :; };
'';
installPhase = ''
mkdir -p $out/bin
cp ${../fetchbzr/nix-prefetch-bzr} $out/bin
cp ${../fetchcvs/nix-prefetch-cvs} $out/bin
cp ${../fetchgit/nix-prefetch-git} $out/bin
cp ${../fetchhg/nix-prefetch-hg} $out/bin
cp ${../fetchsvn/nix-prefetch-svn} $out/bin
chmod a+x $out/bin/*
'';
meta = {
description = ''
A package to include all the NixPkgs prefetchers
'';
maintainers = with stdenv.lib.maintainers; [raskin];
platforms = with stdenv.lib.platforms; unix;
# Quicker to build than to download, I hope
hydraPlatforms = [];
};
}

View File

@ -10868,6 +10868,8 @@ let
nixops = callPackage ../tools/package-management/nixops { };
nix-prefetch-tools = callPackage ../build-support/nix-prefetch-tools {};
nix-repl = callPackage ../tools/package-management/nix-repl { };
nut = callPackage ../applications/misc/nut { };