anchor.diff:    # 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
  +    patchShebangs tests/
  +    patchShebangs src/
       sed -i "s,/usr/sbin/sshd,${openssh}/bin/sshd," tests/basic
       sed -i "s/<(hd/<(hexdump/" tests/keytrans
     '';
  
positive.code: 
    patches = [ ./monkeysphere.patch ];
  
    nativeBuildInputs = [ makeWrapper ];
    buildInputs = [ perl libassuan libgcrypt ]
      ++ stdenv.lib.optional doCheck
        ([ gnupg openssh which socat cpio hexdump ] ++
        (with perlPackages; [ CryptOpenSSLRSA CryptOpenSSLBignum ]));
  
    makeFlags = ''
  
negative.code: { stdenv, fetchurl, makeWrapper
  , perl, libassuan, libgcrypt
  , perlPackages, lockfileProgs, gnupg, coreutils
  # For the tests:
  , bash, openssh, which, socat, cpio, hexdump
  }:
  