2022-08-12 12:06:08 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, fetchFromGitHub
|
|
|
|
, autoreconfHook
|
|
|
|
, libiconv
|
|
|
|
, libintl
|
|
|
|
}:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2021-07-21 07:28:18 +00:00
|
|
|
pname = "libiptcdata";
|
2022-08-12 12:06:08 +00:00
|
|
|
version = "1.0.5";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2022-08-12 12:06:08 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "ianw";
|
|
|
|
repo = pname;
|
|
|
|
rev = "release_${builtins.replaceStrings ["."] ["_"] version}";
|
|
|
|
sha256 = "sha256-ZjokepDAHiSEwXrkvM9qUAPcpIiRQoOsv7REle7roPU=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2022-08-12 12:06:08 +00:00
|
|
|
postPatch = ''
|
|
|
|
# gtk-doc doesn't build without network access
|
|
|
|
sed -i '/GTK_DOC_CHECK/d;/docs/d' configure.ac
|
|
|
|
sed -i 's/docs//' Makefile.am
|
|
|
|
'';
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
autoreconfHook
|
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = lib.optionals stdenv.isDarwin [
|
|
|
|
libiconv
|
|
|
|
libintl
|
|
|
|
];
|
|
|
|
|
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "Library for reading and writing the IPTC metadata in images and other files";
|
2022-08-12 12:06:08 +00:00
|
|
|
homepage = "https://github.com/ianw/libiptcdata";
|
|
|
|
license = licenses.gpl2Plus;
|
|
|
|
platforms = platforms.unix;
|
|
|
|
maintainers = with maintainers; [ wegank ];
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|