anchor.diff:      jbigkit
     ] ++ lib.optional enableX11 libX11;
   
  +
  +  strictDeps = true;
  +
     enableParallelBuilding = true;
  +
  +  # Environment variables
  +  STRIPPROG = "${stdenv.lib.getBin stdenv.cc.bintools.bintools}/bin/${stdenv.cc.targetPrefix}strip";
   
     postPatch = ''
       # Install libnetpbm.so symlink to correct destination
       substituteInPlace lib/Makefile \
         --replace '/sharedlink' '/lib'
  +
  +    # TODO: move to config.mk in 10.91.4
  +    substituteInPlace GNUmakefile \
  +        --replace 'pkg-config' '${buildPackages.pkgconfig}/bin/${buildPackages.pkgconfig.targetPrefix}pkg-config'
     '';
   
     configurePhase = ''
  
positive.code: 
      # Disable building static library
      echo "STATICLIB_TOO = N" >> config.mk
  
      # Use libraries from Nixpkgs
      echo "TIFFLIB = libtiff.so" >> config.mk
  
negative.code: , libtiff
  , enableX11 ? false
  , libX11
  , buildPackages
  }:
  
  stdenv.mkDerivation {
  