mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-28 09:53:10 +00:00
4a7f99d55d
Part of: https://github.com/NixOS/nixpkgs/issues/108938 meta = with stdenv.lib; is a widely used pattern. We want to slowly remove the `stdenv.lib` indirection and encourage people to use `lib` directly. Thus let’s start with the meta field. This used a rewriting script to mostly automatically replace all occurances of this pattern, and add the `lib` argument to the package header if it doesn’t exist yet. The script in its current form is available at https://cs.tvl.fyi/depot@2f807d7f141068d2d60676a89213eaa5353ca6e0/-/blob/users/Profpatsch/nixpkgs-rewriter/default.nix
66 lines
1.7 KiB
Nix
66 lines
1.7 KiB
Nix
{ fetchFromGitHub, lib, stdenv, fetchpatch, pkgconfig, exiv2, libxml2, gtk3
|
|
, libxslt, docbook_xsl, docbook_xml_dtd_42, desktop-file-utils, wrapGAppsHook }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "gpscorrelate";
|
|
version = "2.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "dfandrich";
|
|
repo = pname;
|
|
rev = version;
|
|
sha256 = "1wkpb0nqnm0ik46hp2sibf96h2gxi6n951zm8c72scgmh4ciq4fl";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
desktop-file-utils
|
|
docbook_xml_dtd_42
|
|
docbook_xsl
|
|
libxslt
|
|
pkgconfig
|
|
wrapGAppsHook
|
|
];
|
|
|
|
buildInputs = [
|
|
exiv2
|
|
gtk3
|
|
libxml2
|
|
];
|
|
|
|
makeFlags = [
|
|
"prefix=${placeholder "out"}"
|
|
"CC=cc"
|
|
"CXX=c++"
|
|
"CFLAGS=-DENABLE_NLS"
|
|
];
|
|
|
|
doCheck = true;
|
|
|
|
installTargets = [ "install" "install-po" "install-desktop-file" ];
|
|
|
|
meta = with lib; {
|
|
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.
|
|
'';
|
|
|
|
license = licenses.gpl2Plus;
|
|
homepage = "https://dfandrich.github.io/gpscorrelate/";
|
|
platforms = platforms.linux;
|
|
maintainers = with maintainers; [ sikmir ];
|
|
};
|
|
}
|