anchor.diff:  { lib, stdenv, fetchurl, fetchpatch, pkgconfig, intltool, autoreconfHook
  -, json_c, libsndfile, libtool
  +, libsndfile, libtool
   , xorg, libcap, alsaLib, glib
   , avahi, libjack2, libasyncns, lirc, dbus
   , sbc, bluez5, udev, openssl, fftwFloat
  
positive.code:     lib.optionals stdenv.isLinux [ libcap ];
  
    buildInputs =
      [ json_c libsndfile speexdsp fftwFloat ]
      ++ lib.optionals stdenv.isLinux [ glib dbus ]
      ++ lib.optionals stdenv.isDarwin [ CoreServices AudioUnit Cocoa ]
      ++ lib.optionals (!libOnly) (
  
negative.code: 
  stdenv.mkDerivation rec {
    name = "${if libOnly then "lib" else ""}pulseaudio-${version}";
    version = "10.0";
  
    src = fetchurl {
      url = "http://freedesktop.org/software/pulseaudio/releases/pulseaudio-${version}.tar.xz";
      sha256 = "0mrg8qvpwm4ifarzphl3749p7p050kdx1l6mvsaj03czvqj6h653";
    };
  
    patches = [ ./caps-fix.patch ]
  