btrbk: add mainProgram (#356350)
[NixPkgs.git] / pkgs / by-name / li / libiptcdata / package.nix
blob741c8d8a74a5a2706bb508860302b29283a453af
1 { lib
2 , stdenv
3 , fetchFromGitHub
4 , autoreconfHook
5 , libiconv
6 , libintl
7 }:
9 stdenv.mkDerivation rec {
10   pname = "libiptcdata";
11   version = "1.0.5";
13   src = fetchFromGitHub {
14     owner = "ianw";
15     repo = pname;
16     rev = "release_${builtins.replaceStrings ["."] ["_"] version}";
17     sha256 = "sha256-ZjokepDAHiSEwXrkvM9qUAPcpIiRQoOsv7REle7roPU=";
18   };
20   postPatch = ''
21     # gtk-doc doesn't build without network access
22     sed -i '/GTK_DOC_CHECK/d;/docs/d' configure.ac
23     sed -i 's/docs//' Makefile.am
24   '';
26   nativeBuildInputs = [
27     autoreconfHook
28   ];
30   buildInputs = lib.optionals stdenv.hostPlatform.isDarwin [
31     libiconv
32     libintl
33   ];
35   meta = with lib; {
36     description = "Library for reading and writing the IPTC metadata in images and other files";
37     mainProgram = "iptc";
38     homepage = "https://github.com/ianw/libiptcdata";
39     license = licenses.gpl2Plus;
40     platforms = platforms.unix;
41     maintainers = with maintainers; [ wegank ];
42   };