From 839246f9e67b56d80a5ed89ae7b90011ae8fc7fe Mon Sep 17 00:00:00 2001 From: Bobby Rong Date: Sun, 7 May 2023 17:39:13 +0800 Subject: [PATCH] =?UTF-8?q?gexiv2:=200.14.0=20=E2=86=92=200.14.1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit https://gitlab.gnome.org/GNOME/gexiv2/-/compare/gexiv2-0.14.0...gexiv2-0.14.1 --- pkgs/development/libraries/gexiv2/default.nix | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/pkgs/development/libraries/gexiv2/default.nix b/pkgs/development/libraries/gexiv2/default.nix index 6c5f797a098..7be4c302049 100644 --- a/pkgs/development/libraries/gexiv2/default.nix +++ b/pkgs/development/libraries/gexiv2/default.nix @@ -18,13 +18,13 @@ stdenv.mkDerivation rec { pname = "gexiv2"; - version = "0.14.0"; + version = "0.14.1"; outputs = [ "out" "dev" "devdoc" ]; src = fetchurl { url = "mirror://gnome/sources/${pname}/${lib.versions.majorMinor version}/${pname}-${version}.tar.xz"; - sha256 = "5YJ5pv8gtvZPpJlhXaXptXz2W6eFC3L6/fFyIanW1p4="; + sha256 = "7D7j7DhguceJWKVdqJz3auIwWEjhL0GUW3tSEk2PbPk="; }; nativeBuildInputs = [ @@ -51,9 +51,14 @@ stdenv.mkDerivation rec { mesonFlags = [ "-Dgtk_doc=true" - "-Dpython3_girdir=${placeholder "out"}/${python3.sitePackages}/gi/overrides" + "-Dtests=true" ]; + # Needed for darwin due to std::auto_ptr in exiv2 header files & enabling C++ 17 + # https://github.com/Exiv2/exiv2/issues/2359 + # https://gitlab.gnome.org/GNOME/gexiv2/-/issues/73 + env.NIX_CFLAGS_COMPILE = "-D_LIBCPP_ENABLE_CXX17_REMOVED_AUTO_PTR"; + doCheck = true; preCheck = let