diff --git a/pkgs/build-support/nix-prefetch-tools/default.nix b/pkgs/build-support/nix-prefetch-tools/default.nix new file mode 100644 index 00000000000..de47b23925f --- /dev/null +++ b/pkgs/build-support/nix-prefetch-tools/default.nix @@ -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 = []; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 30baddfb24c..29a77a9e7fa 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -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 { };