anchor.diff:  
   , alsa-lib
   , libftdi
  +, libice
  +, libsm
  +, libx11
   , libusb-compat
   , linux-headers
   , portaudio
  
positive.code: # TODO: usb support
  
  let
    version = "0.9.4d";
  in
  stdenv.mkDerivation rec {
    name = "lirc-${version}";
  
    src = fetchurl {
      url = "mirror://sourceforge/lirc/LIRC/${version}/${name}.tar.bz2";
      sha256 = "c68f18c35b489b865c0a741d119b136e8702191538cd3551b977a7af6c4e41ab";
    };
  
    nativeBuildInputs = [
  
negative.code:   buildInputs = [
      alsa-lib
      libftdi
      libice
      libsm
      libusb-compat
      libx11
      linux-headers
      portaudio
      systemd_lib
    ];
  
    postPatch = ''
      patchShebangs .
      sed -i 's,^PYTHONPATH *=,PYTHONPATH := $(PYTHONPATH):,' \
        Makefile.in
      sed -i "s,PYTHONPATH=,PYTHONPATH=$(toPythonPath ${python3Packages.pyyaml}):," \
        doc/Makefile.in
      sed -i "s,/usr/include/linux,${linux-headers}/include/linux,g" \
  