anchor.diff:  
     postInstall = lib.optionalString libOnly ''
       rm -rf $out/{bin,share,etc,lib/{pulse-*,systemd}}
  -    sed 's|-lltdl|-L${libtool}/lib -lltdl|' -i $out/lib/libpulsecore-6.0.la
  +    sed 's|-lltdl|-L${libtool}/lib -lltdl|' -i $out/lib/libpulsecore-${version}.la
     '';
   
     meta = {
  
positive.code: 
  stdenv.mkDerivation rec {
    name = "${if libOnly then "lib" else ""}pulseaudio-${version}";
    version = "6.0";
  
    src = fetchurl {
      url = "http://freedesktop.org/software/pulseaudio/releases/pulseaudio-${version}.tar.xz";
      sha256 = "1xpnfxa0d8pgf6b4qdgnkcvrvdxbbbjd5ync19h0f5hbp3h401mm";
    };
  
    patches = [ ./caps-fix.patch ];
  
negative.code:     [ "--localstatedir=/var"
        "--sysconfdir=/etc"
        "--with-access-group=audio"
        "--with-bash-completion-dir=\${out}/share/bash-completions/completions"
      ]
      ++ lib.optional (jackaudioSupport && !libOnly) "--enable-jack"
      ++ lib.optional stdenv.isDarwin "--with-mac-sysroot=/"
  