From 538f6f8eae3f1d78d83b2d028fcc7c76c5954079 Mon Sep 17 00:00:00 2001 From: Weijia Wang <9713184+wegank@users.noreply.github.com> Date: Sun, 7 Aug 2022 20:32:00 +0200 Subject: [PATCH] libiptcdata: 1.0.4 -> 1.0.5 --- .../libraries/libiptcdata/default.nix | 43 +++++++++++++------ 1 file changed, 31 insertions(+), 12 deletions(-) diff --git a/pkgs/development/libraries/libiptcdata/default.nix b/pkgs/development/libraries/libiptcdata/default.nix index 1c5acd2a1401..6bf670a40382 100644 --- a/pkgs/development/libraries/libiptcdata/default.nix +++ b/pkgs/development/libraries/libiptcdata/default.nix @@ -1,23 +1,42 @@ -{ lib, stdenv, fetchurl, libiconv }: +{ lib +, stdenv +, fetchFromGitHub +, autoreconfHook +, libiconv +, libintl +}: stdenv.mkDerivation rec { pname = "libiptcdata"; - version = "1.0.4"; + version = "1.0.5"; + + src = fetchFromGitHub { + owner = "ianw"; + repo = pname; + rev = "release_${builtins.replaceStrings ["."] ["_"] version}"; + sha256 = "sha256-ZjokepDAHiSEwXrkvM9qUAPcpIiRQoOsv7REle7roPU="; + }; + + 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 ]; - src = fetchurl { - url = "mirror://sourceforge/libiptcdata/${pname}-${version}.tar.gz"; - sha256 = "03pfvkmmx762iydq0q207x2028d275pbdysfsgpmrr0ywy63pxkr"; - }; - - meta = { + meta = with lib; { description = "Library for reading and writing the IPTC metadata in images and other files"; - homepage = "http://libiptcdata.sourceforge.net/"; - license = lib.licenses.gpl2Plus; - platforms = lib.platforms.unix; - maintainers = with lib.maintainers; [ wegank ]; + homepage = "https://github.com/ianw/libiptcdata"; + license = licenses.gpl2Plus; + platforms = platforms.unix; + maintainers = with maintainers; [ wegank ]; }; }