2019-06-27 06:32:52 +01:00
|
|
|
{ fetchFromGitHub, stdenv, fetchpatch, pkgconfig, exiv2, libxml2, gtk3
|
|
|
|
, libxslt, docbook_xsl, docbook_xml_dtd_42, desktop-file-utils }:
|
2009-06-01 23:43:36 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-06-27 06:32:52 +01:00
|
|
|
pname = "gpscorrelate";
|
2019-09-08 22:57:57 +01:00
|
|
|
version = "unstable-2019-09-03";
|
2017-03-23 02:25:03 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
2019-06-27 06:32:52 +01:00
|
|
|
owner = "dfandrich";
|
|
|
|
repo = pname;
|
2019-09-08 22:57:57 +01:00
|
|
|
rev = "e1dd44a34f67b1ab7201440e60a840258ee448d2";
|
|
|
|
sha256 = "0gjwwdqh9dprzylmmnk3gm41khka9arkij3i9amd8y7d49pm9rlv";
|
2009-06-01 23:43:36 +01:00
|
|
|
};
|
|
|
|
|
2019-09-08 22:57:57 +01:00
|
|
|
patches = [ ./fix-localedir.diff ];
|
|
|
|
|
2019-06-27 06:32:52 +01:00
|
|
|
nativeBuildInputs = [
|
|
|
|
desktop-file-utils
|
2017-03-23 02:25:03 +00:00
|
|
|
docbook_xml_dtd_42
|
2019-06-27 06:32:52 +01:00
|
|
|
docbook_xsl
|
|
|
|
libxslt
|
|
|
|
pkgconfig
|
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
exiv2
|
|
|
|
gtk3
|
|
|
|
libxml2
|
2009-06-01 23:43:36 +01:00
|
|
|
];
|
|
|
|
|
2019-06-27 06:32:52 +01:00
|
|
|
makeFlags = [
|
2019-09-03 17:38:57 +01:00
|
|
|
"prefix=${placeholder "out"}"
|
2019-06-27 06:32:52 +01:00
|
|
|
"GTK=3"
|
|
|
|
"CC=cc"
|
|
|
|
"CXX=c++"
|
2019-09-08 22:57:57 +01:00
|
|
|
"CFLAGS=-DENABLE_NLS"
|
2019-06-27 06:32:52 +01:00
|
|
|
];
|
|
|
|
|
|
|
|
doCheck = true;
|
|
|
|
|
2019-09-08 22:57:57 +01:00
|
|
|
installTargets = [ "install" "install-po" "install-desktop-file" ];
|
2009-06-01 23:43:36 +01:00
|
|
|
|
2017-03-23 02:25:03 +00:00
|
|
|
meta = with stdenv.lib; {
|
2009-06-01 23:43:36 +01:00
|
|
|
description = "A GPS photo correlation tool, to add EXIF geotags";
|
|
|
|
|
|
|
|
longDescription = ''
|
|
|
|
Digital cameras are cool. So is GPS. And, EXIF tags are really
|
|
|
|
cool too.
|
|
|
|
|
|
|
|
What happens when you merge the three? You end up with a set of
|
|
|
|
photos taken with a digital camera that are "stamped" with the
|
|
|
|
location at which they were taken.
|
|
|
|
|
|
|
|
The EXIF standard defines a number of tags that are for use with GPS.
|
|
|
|
|
|
|
|
A variety of programs exist around the place to match GPS data
|
|
|
|
with digital camera photos, but most of them are Windows or
|
|
|
|
MacOS only. Which doesn't really suit me that much. Also, each
|
|
|
|
one takes the GPS data in a different format.
|
|
|
|
'';
|
|
|
|
|
2017-03-23 02:25:03 +00:00
|
|
|
license = licenses.gpl2Plus;
|
2019-06-27 06:32:52 +01:00
|
|
|
homepage = "https://github.com/dfandrich/gpscorrelate";
|
2017-03-23 02:25:03 +00:00
|
|
|
platforms = platforms.linux;
|
2019-09-08 22:57:57 +01:00
|
|
|
maintainers = with maintainers; [ sikmir ];
|
2009-06-01 23:43:36 +01:00
|
|
|
};
|
|
|
|
}
|