anchor.diff:    buildInputs = [
       alsa-lib
       libftdi
  +    libice
  +    libsm
       libusb-compat
  +    libx11
       linux-headers
       portaudio
       systemd_lib
  -    xorg.libICE
  -    xorg.libSM
  -    xorg.libX11
     ];
   
     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" \
  
positive.code: 
  , alsa-lib
  , libftdi
  , libusb-compat
  , linux-headers
  , portaudio
  
negative.code: # TODO: usb support
  
  let
    version = "0.10.1";
  in
  stdenv.mkDerivation rec {
    name = "lirc-${version}";
  
    src = fetchurl {
      url = "mirror://sourceforge/lirc/LIRC/${version}/${name}.tar.bz2";
      sha256 = "8b753c60df2a7f5dcda2db72c38e448ca300c3b4f6000c1501fcb0bd5df414f2";
    };
  
    nativeBuildInputs = [
  