anchor.diff:      TIFFINC = ;
       HAVE_TIFF = true ;
   
  +    PNGLIB = ;
  +    PNGINC = ;
  +    HAVE_PNG = true ;
  +
  +    ZLIB = ;
  +    ZINC = ;
  +    HAVE_Z = true ;
  +
  +    SSLLIB = ;
  +    SSLINC = ;
  +    HAVE_SSL = true ;
  +
       LINKFLAGS +=
         ${lib.concatStringsSep " " (map (x: "-L${x}/lib") buildInputs)}
         -ldl -lrt -lX11 -lXext -lXxf86vm -lXinerama -lXrandr -lXau -lXdmcp -lXss
  -      -ljpeg -ltiff ;
  +      -ljpeg -ltiff -lpng -lssl ;
     '';
   
     nativeBuildInputs = [ jam unzip ];
  
positive.code:   jamTop = writeText "argyllcms_jamtop" ''
      DESTDIR = "/" ;
      REFSUBDIR = "ref" ;
      
      # Keep this DESTDIR anchored to Jamtop. PREFIX is used literally
      ANCHORED_PATH_VARS = DESTDIR ;
      
      # Tell standalone libraries that they are part of Argyll:
      DEFINES += ARGYLLCMS ;
      
      # Use libusb1 rather than libusb0 & libusb0-win32
      USE_LIBUSB1 = true ;
      
      # Make the USB V1 library static
      LIBUSB_IS_DLL = false ;
      
      # Set the libubs1 library name.
      LIBUSB1NAME = libusb-1A ;
  
      JPEGLIB = ;
      JPEGINC = ;
  
negative.code: { stdenv, fetchzip, jam, unzip, libX11, libXxf86vm, libXrandr, libXinerama
  , libXrender, libXext, libtiff, libjpeg, libpng, libXScrnSaver, writeText
  , libXdmcp, libXau, lib, openssl, zlib }:
  let
    version = "1.8.1";
   in
  stdenv.mkDerivation rec {
    name = "argyllcms-${version}";
  
    src = fetchzip {
      # Kind of flacky URL, it was reaturning 406 and inconsistent binaries for a
      # while on me. It might be good to find a mirror
      url = "http://www.argyllcms.com/Argyll_V${version}_src.zip";
      sha256 = "1nnhqcvx65m5rzrlry5kkjgrnl90shjgz7dbin8nz27lzni6c3xz";
    };
  
    # The contents of this file comes from the Jamtop file from the
  