anchor.diff:    enableParallelBuilding = true;
   
     installPhase = ''
  -    make package pkgdir=$PWD/netpbmpkg
  -    # Pass answers to the script questions
  -    ./installnetpbm << EOF
  -    $PWD/netpbmpkg
  -    $out
  -    Y
  -    $out/bin
  -    $out/lib
  -    N
  -    $out/lib
  -    $out/lib
  -    $out/include
  -    $out/man
  -    N
  -    EOF
  +    make package pkgdir=$out
  +
  +    rm -rf $out/link $out/*_template $out/{pkginfo,README,VERSION} $out/man/web
  +
  +    mkdir -p $out/share/netpbm
  +    mv $out/misc $out/share/netpbm/
   
       # wrap any scripts that expect other programs in the package to be in their PATH
       for prog in ppmquant; do
  
positive.code: 
    NIX_CFLAGS_COMPILE = "-fPIC"; # Gentoo adds this on every platform
  
    buildInputs = [ pkgconfig flex zlib perl libpng libjpeg libxml2 makeWrapper libX11 libtiff ];
  
    configurePhase = ''
      cp config.mk.in config.mk
      substituteInPlace "config.mk" \
          --replace "TIFFLIB = NONE" "TIFFLIB = ${libtiff}/lib/libtiff.so" \
          --replace "TIFFHDR_DIR =" "TIFFHDR_DIR = ${libtiff}/include"
  
negative.code: { lib, stdenv, fetchurl, pkgconfig, libjpeg, libpng, flex, zlib, perl, libxml2
  , makeWrapper, libtiff
  , enableX11 ? false, libX11 }:
  
  stdenv.mkDerivation rec {
    name = "netpbm-10.66.00";
  
    src = fetchurl {
      url = "mirror://gentoo/distfiles/${name}.tar.xz";
      sha256 = "1z33pxdir92m7jlvp5c2q44gxwj7jyf8skiqkr71kgirw4w4zsbz";
    };
  
    postPatch = /* CVE-2005-2471, from Arch */ ''
  