anchor.diff: -{ fetchurl, stdenv, pkgconfig, exiv2, libxml2, gtk2
  +{ fetchFromGitHub, stdenv, pkgconfig, exiv2, libxml2, gtk2
   , libxslt, docbook_xsl, docbook_xml_dtd_42 }:
   
   stdenv.mkDerivation rec {
  -  name = "gpscorrelate-1.6.0";
  +  name = "gpscorrelate-${version}";
  +  version = "1.6.1";
   
  -  src = fetchurl {
  -    url = "http://freefoote.dview.net/linux/${name}.tar.gz";
  -    sha256 = "1j0b244xkvvf0i4iivp4dw9k4xgyasx4sapd91mnwki35fy49sp0";
  +  src = fetchFromGitHub {
  +    owner = "freefoote";
  +    repo = "gpscorrelate";
  +    rev = version;
  +    sha256 = "1z0fc75rx7dl6nnydksa578qv116j2c2xs1czfiijzxjghx8njdj";
     };
   
  +  nativeBuildInputs = [ pkgconfig ];
     buildInputs = [
  -    pkgconfig exiv2 libxml2 gtk2
  -    libxslt docbook_xsl docbook_xml_dtd_42
  +    exiv2 libxml2 gtk2
  +    libxslt docbook_xsl 
  +    docbook_xml_dtd_42
     ];
   
     patchPhase = ''
  
positive.code:         -es",^[[:blank:]]*prefix[[:blank:]]*=.*$,prefix = $out,g"
    '';
  
    meta = {
      description = "A GPS photo correlation tool, to add EXIF geotags";
  
      longDescription = ''
  
negative.code:       one takes the GPS data in a different format.
      '';
  
      license = licenses.gpl2Plus;
      homepage = https://github.com/freefoote/gpscorrelate;
      platforms = platforms.linux;
    };
  }
  