anchor.diff:      for f in src/image/image.pro src/pdf/pdf.pro ; do
         substituteInPlace $f --replace '$(INSTALL_ROOT)' ""
       done
  +  '';
  +
  +  # rewrite library path
  +  postInstall = lib.optionalString stdenv.isDarwin ''
  +    install_name_tool -change libwkhtmltox.0.dylib $out/lib/libwkhtmltox.0.dylib $out/bin/wkhtmltopdf
  +    install_name_tool -change libwkhtmltox.0.dylib $out/lib/libwkhtmltox.0.dylib $out/bin/wkhtmltoimage
     '';
   
     configurePhase = "qmake wkhtmltopdf.pro INSTALLBASE=$out";
  
positive.code:     '';
      license = licenses.gpl3Plus;
      maintainers = with maintainers; [ jb55 ];
      platforms = with platforms; linux;
    };
  }
  
negative.code:     rev    = version;
      sha256 = "0m2zy986kzcpg0g3bvvm815ap9n5ann5f6bdy7pfj6jv482bm5mg";
    };
  
    nativeBuildInputs = [
      wrapQtAppsHook
    ];
  
    buildInputs = [
      fontconfig freetype libpng zlib libjpeg openssl
  