anchor.diff:    buildInputs = [
         libjpeg
         cups
  -      libusb
  +      libusb1
         pythonPackages.python
         pythonPackages.wrapPython
         saneBackends
  
positive.code: {stdenv, fetchurl, cups, zlib, libjpeg, libusb, pythonPackages, saneBackends, dbus
  , pkgconfig, polkit, qtSupport ? true, qt4, pythonDBus, pyqt4, net_snmp
  }:
  
  stdenv.mkDerivation rec {
    name = "hplip-3.11.1";
  
    src = fetchurl {
      url = "mirror://sourceforge/hplip/${name}.tar.gz";
      sha256 = "0y68s4xm5d0kv7p5j41qq0xglp4vdbjwbrjs89b4a21wwn69hp9g";
    };
  
    #preBuild=''
  
negative.code:   prePatch = ''
      sed -i s,/etc/sane.d,$out/etc/sane.d/, Makefile.in
      sed -i s,/etc/hp/,$out/etc/hp/, base/g.py
      substituteInPlace Makefile.in \
        --replace "/usr/include/libusb-1.0" "${libusb1}/include/libusb-1.0" \
        --replace "/usr/lib/systemd/system" "$out/lib/systemd/system"
    '';
  
    # --disable-network-build Until we have snmp
  