anchor.diff:  
     patches = [ ./monkeysphere.patch ];
   
  +  postPatch = ''
  +    sed -i "s,/usr/bin/env,${coreutils}/bin/env," src/share/ma/update_users
  +  '';
  +
     nativeBuildInputs = [ makeWrapper ];
     buildInputs = [ perl libassuan libgcrypt ]
       ++ stdenv.lib.optional doCheck
  -      ([ gnupg openssh which socat cpio hexdump ] ++
  +      ([ gnupg openssh which socat cpio hexdump lockfileProgs ] ++
         (with perlPackages; [ CryptOpenSSLRSA CryptOpenSSLBignum ]));
   
     makeFlags = ''
  
positive.code:   # entropy (apparently GnuPG still uses /dev/random).
    doCheck = false;
    preCheck = ''
      patchShebangs tests/keytrans
      patchShebangs src/share/keytrans
      patchShebangs src/share/checkperms
      sed -i "s,/usr/bin/env\ bash,${bash}/bin/bash," tests/basic
      sed -i "s,/usr/sbin/sshd,${openssh}/bin/sshd," tests/basic
      sed -i "s/<(hd/<(hexdump/" tests/keytrans
    '';
  
negative.code: { stdenv, fetchurl, makeWrapper
  , perl, libassuan, libgcrypt
  , perlPackages, lockfileProgs, gnupg, coreutils
  # For the tests:
  , bash, openssh, which, socat, cpio, hexdump
  }:
  