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