@@ -1,28 +1,41 @@
1−{ fetchFromGitHub, stdenv, pkgconfig, exiv2, libxml2, gtk2
2−, libxslt, docbook_xsl, docbook_xml_dtd_42 }:
1+{ fetchFromGitHub, stdenv, fetchpatch, pkgconfig, exiv2, libxml2, gtk3
2+, libxslt, docbook_xsl, docbook_xml_dtd_42, desktop-file-utils }:
33
44stdenv.mkDerivation rec {
5− name = "gpscorrelate-${version}";
6− version = "1.6.1";
5+ pname = "gpscorrelate";
6+ version = "unstable-2019-06-05";
77
88 src = fetchFromGitHub {
9− owner = "freefoote";
10− repo = "gpscorrelate";
11− rev = version;
12− sha256 = "1z0fc75rx7dl6nnydksa578qv116j2c2xs1czfiijzxjghx8njdj";
9+ owner = "dfandrich";
10+ repo = pname;
11+ rev = "80b14fe7c10c1cc8f62c13f517c062577ce88c85";
12+ sha256 = "1gaan0nd7ai0bwilfnkza7lg5mz87804mvlygj0gjc672izr37r6";
1313 };
1414
15− nativeBuildInputs = [ pkgconfig ];
16− buildInputs = [
17− exiv2 libxml2 gtk2
18− libxslt docbook_xsl
15+ nativeBuildInputs = [
16+ desktop-file-utils
1917 docbook_xml_dtd_42
18+ docbook_xsl
19+ libxslt
20+ pkgconfig
21+ ];
22+
23+ buildInputs = [
24+ exiv2
25+ gtk3
26+ libxml2
2027 ];
2128
22− patchPhase = ''
23− sed -i "Makefile" \
24− -es",^[[:blank:]]*prefix[[:blank:]]*=.*$,prefix = $out,g"
25− '';
29+ makeFlags = [
30+ "prefix=${placeholder ''out''}"
31+ "GTK=3"
32+ "CC=cc"
33+ "CXX=c++"
34+ ];
35+
36+ doCheck = true;
37+
38+ installTargets = [ "install" "install-desktop-file" ];
2639
2740 meta = with stdenv.lib; {
2841 description = "A GPS photo correlation tool, to add EXIF geotags";
@@ -44,7 +57,7 @@ stdenv.mkDerivation rec {
4457 '';
4558
4659 license = licenses.gpl2Plus;
47− homepage = https://github.com/freefoote/gpscorrelate;
60+ homepage = "https://github.com/dfandrich/gpscorrelate";
4861 platforms = platforms.linux;
4962 };
5063}