anchor.diff:    # FIXME: Move these into a separate package to prevent Bluez from
     # depending on Python etc.
     postInstall = ''
  -    mkdir $out/test
  -    cp -a test $out
  -    pushd $out/test
  +    mkdir -p $test/test
  +    cp -a test $test
  +    pushd $test/test
       for a in \
               simple-agent \
               test-adapter \
  
positive.code:       readline libsndfile udev libical
        # Disables GStreamer; not clear what it gains us other than a
        # zillion extra dependencies.
        # gstreamer gst_plugins_base 
      ];
  
    patches = [ ./bluez-5.37-obexd_without_systemd-1.patch ];
      
    preConfigure = ''
        substituteInPlace tools/hid2hci.rules --replace /sbin/udevadm ${systemd}/bin/udevadm
        substituteInPlace tools/hid2hci.rules --replace "hid2hci " "$out/lib/udev/hid2hci "
  
negative.code:       ln -s ../test/$a $out/bin/bluez-$a
      done
      popd
      wrapPythonProgramsIn $test/test "$test/test $pythonPath"
  
      # for bluez4 compatibility for NixOS
      mkdir $out/sbin
  