biome: 1.9.2 -> 1.9.3
[NixPkgs.git] / pkgs / by-name / gp / gpscorrelate / package.nix
blobbb72042c21c5e1ef2dabc41b82a01f6eb402fa44
1 { lib
2 , stdenv
3 , fetchFromGitHub
4 , pkg-config
5 , exiv2
6 , libxml2
7 , gtk3
8 , libxslt
9 , docbook_xsl
10 , docbook_xml_dtd_42
11 , desktop-file-utils
12 , wrapGAppsHook3
13 , desktopToDarwinBundle
16 stdenv.mkDerivation rec {
17   pname = "gpscorrelate";
18   version = "2.1";
20   src = fetchFromGitHub {
21     owner = "dfandrich";
22     repo = "gpscorrelate";
23     rev = version;
24     hash = "sha256-1t9XUY12hVaUNOg785dMJCiaMMCI2XCcif1DkKYXOoo=";
25   };
27   nativeBuildInputs = [
28     desktop-file-utils
29     docbook_xml_dtd_42
30     docbook_xsl
31     libxslt
32     pkg-config
33     wrapGAppsHook3
34   ] ++ lib.optional stdenv.hostPlatform.isDarwin desktopToDarwinBundle;
36   buildInputs = [
37     exiv2
38     gtk3
39     libxml2
40   ];
42   makeFlags = [
43     "prefix=${placeholder "out"}"
44     "CC=${stdenv.cc.targetPrefix}cc"
45     "CXX=${stdenv.cc.targetPrefix}c++"
46     "CFLAGS=-DENABLE_NLS"
47   ];
49   doCheck = true;
51   preCheck = ''
52     # https://github.com/dfandrich/gpscorrelate/issues/29
53     rm tests/data/test005.*
54   '';
56   installTargets = [ "install" "install-po" "install-desktop-file" ];
58   meta = with lib; {
59     description = "GPS photo correlation tool, to add EXIF geotags";
61     longDescription = ''
62       Digital cameras are cool.  So is GPS.  And, EXIF tags are really
63       cool too.
65       What happens when you merge the three?  You end up with a set of
66       photos taken with a digital camera that are "stamped" with the
67       location at which they were taken.
69       The EXIF standard defines a number of tags that are for use with GPS.
71       A variety of programs exist around the place to match GPS data
72       with digital camera photos, but most of them are Windows or
73       MacOS only.  Which doesn't really suit me that much. Also, each
74       one takes the GPS data in a different format.
75     '';
77     license = licenses.gpl2Plus;
78     homepage = "https://dfandrich.github.io/gpscorrelate/";
79     changelog = "https://github.com/dfandrich/gpscorrelate/releases/tag/${src.rev}";
80     platforms = platforms.unix;
81     maintainers = with maintainers; [ sikmir ];
82   };