summary refs log tree commit diff
path: root/pkgs/build-support/nix-prefetch-tools/default.nix
blob: de47b23925f0e7530a9d2f54cd4ef0665af48634 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
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 = [];
  };
}