anchor.diff:  
     patchPhase = ''
       patchShebangs .
  -    sed -i -e 's|/bin/pwd|pwd|' src/qt/qtbase/configure 
  +    sed -i -e 's|/bin/pwd|pwd|' src/qt/qtbase/configure
  +    touch src/qt/{qtbase,qtwebkit,3rdparty}/.git
     '' + stdenv.lib.optionalString stdenv.isDarwin ''
       sed -i 's,-licucore,/usr/lib/libicucore.dylib,' src/qt/qtwebkit/Source/WTF/WTF.pri
       substituteInPlace src/qt/qtwebkit/Tools/qmake/mkspecs/features/features.pri \
  
positive.code: 
  in stdenv.mkDerivation rec {
    name = "phantomjs-${version}";
    version = "2.0.0-20150528";
  
    src = fetchurl {
      url = "https://github.com/bprodoehl/phantomjs/archive/v2.0.0-20150528.tar.gz";
      sha256 = "18h37bxxg25lacry9k3vb5yim057bqcxmsifw97jrjp7gzfx56v5";
    };
  
    buildInputs = [ bison2 flex fontconfig freetype gperf icu openssl libjpeg libpng perl python ruby sqlite ]
  
negative.code: { stdenv, fetchgit,
    bison2, flex, fontconfig, freetype, gperf, icu, openssl, libjpeg, libpng, perl, python, ruby, sqlite,
    darwin, writeScriptBin, cups
  }:
  