mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-20 12:42:24 +00:00
Addnig a package to copy nix-prefetch-* to bin/. Hopefully fixes #1130
This commit is contained in:
parent
e68a5b265a
commit
c2fb8b1364
28
pkgs/build-support/nix-prefetch-tools/default.nix
Normal file
28
pkgs/build-support/nix-prefetch-tools/default.nix
Normal 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 = [];
|
||||
};
|
||||
}
|
|
@ -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 { };
|
||||
|
|
Loading…
Reference in a new issue