anchor.diff:      d=$out/share/debootstrap
       mkdir -p $out/{share/debootstrap,bin}
   
  -    ${fakeroot}/bin/fakeroot -- make devices.tar.gz MAKEDEV=${makedev}/sbin/MAKEDEV
  -
       cp -r . $d
   
       cat >> $out/bin/debootstrap << EOF
  
positive.code: { stdenv, fetchurl, dpkg, gettext, gawk, perl, wget, coreutils, fakeroot }:
  
  let
  # USAGE like this: debootstrap sid /tmp/target-chroot-directory
  # There is also cdebootstrap now. Is that easier to maintain?
    makedev = stdenv.mkDerivation {
      name = "makedev-for-debootstrap";
      src = fetchurl {
              url = mirror://debian/pool/main/m/makedev/makedev_2.3.1.orig.tar.gz;
              sha256 = "1yhxlj2mhn1nqkx1f0sn0bl898nf28arxxa4lgp7hdrb5cpp36c5";
      };
      patches = [
        (fetchurl {
         url = "mirror://debian/pool/main/m/makedev/makedev_2.3.1-93.diff.gz";
         sha256 = "08328779mc0b20xkj76ilpf9c8bw6zkz5xiw5l2kwm690dxp9nvw";
         })
      ];
      # TODO install man
      installPhase = ''
        mkdir -p $out/sbin
        ls -l
        t=$out/sbin/MAKEDEV
        cp MAKEDEV $t
        chmod +x $t
      '';
    };
  in stdenv.mkDerivation rec {
    name = "debootstrap-${version}";
    version = "1.0.80";
  
    src = fetchurl {
      # git clone git://git.debian.org/d-i/debootstrap.git
      # I'd like to use the source. However it's lacking the lanny script ? (still true?)
      url = "mirror://debian/pool/main/d/debootstrap/debootstrap_${version}.tar.gz";
      sha256 = "06gigscd2327wsvc7n7w2m8xmaixvp4kyqhayn00qrgd9i9w34x6";
    };
  
    buildInputs = [ dpkg gettext gawk perl ];
  
negative.code:     mv debootstrap.8 $out/man/man8
    '';
  
    meta = {
      description = "Tool to create a Debian system in a chroot";
      homepage = http://packages.debian.org/de/lenny/debootstrap; # http://code.erisian.com.au/Wiki/debootstrap
  