2021-01-17 02:09:27 +00:00
|
|
|
{ fetchFromGitHub, lib, stdenv, fetchpatch, pkg-config, exiv2, libxml2, gtk3
|
2020-10-25 12:28:30 +00:00
|
|
|
, libxslt, docbook_xsl, docbook_xml_dtd_42, desktop-file-utils, wrapGAppsHook }:
|
2009-06-01 23:43:36 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-06-27 06:32:52 +01:00
|
|
|
pname = "gpscorrelate";
|
2019-10-29 16:21:11 +00:00
|
|
|
version = "2.0";
|
2017-03-23 02:25:03 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
2019-06-27 06:32:52 +01:00
|
|
|
owner = "dfandrich";
|
|
|
|
repo = pname;
|
2019-10-29 16:21:11 +00:00
|
|
|
rev = version;
|
|
|
|
sha256 = "1wkpb0nqnm0ik46hp2sibf96h2gxi6n951zm8c72scgmh4ciq4fl";
|
2009-06-01 23:43:36 +01:00
|
|
|
};
|
|
|
|
|
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
|
2021-01-17 02:09:27 +00:00
|
|
|
pkg-config
|
2020-10-25 12:28:30 +00:00
|
|
|
wrapGAppsHook
|
2019-06-27 06:32:52 +01:00
|
|
|
];
|
|
|
|
|
|
|
|
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"}"
|
2021-02-16 11:48:46 +00:00
|
|
|
"CC=${stdenv.cc.targetPrefix}cc"
|
|
|
|
"CXX=${stdenv.cc.targetPrefix}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
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with 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-10-29 16:21:11 +00:00
|
|
|
homepage = "https://dfandrich.github.io/gpscorrelate/";
|
2021-09-14 10:01:04 +01:00
|
|
|
platforms = platforms.unix;
|
2019-09-08 22:57:57 +01:00
|
|
|
maintainers = with maintainers; [ sikmir ];
|
2009-06-01 23:43:36 +01:00
|
|
|
};
|
|
|
|
}
|