12 gobject-introspection,
20 stdenv.mkDerivation rec {
31 url = "mirror://gnome/sources/${pname}/${lib.versions.majorMinor version}/${pname}-${version}.tar.xz";
32 sha256 = "IeZNLFbpszPUT+8/KkslZT2SLEGazZcvqW+raVIX4sg=";
45 (python3.pythonOnBuildForHost.withPackages (ps: [ ps.pygobject3 ]))
47 ++ lib.optionals (!stdenv.buildPlatform.canExecute stdenv.hostPlatform) [
55 propagatedBuildInputs = [
68 libSuffix = if stdenv.hostPlatform.isDarwin then "2.dylib" else "so.2";
71 # Our gobject-introspection patches make the shared library paths absolute
72 # in the GIR files. When running unit tests, the library is not yet installed,
73 # though, so we need to replace the absolute path with a local one during build.
74 # We are using a symlink that will be overridden during installation.
76 ln -s $PWD/gexiv2/libgexiv2.${libSuffix} $out/lib/libgexiv2.${libSuffix}
80 updateScript = gnome.updateScript {
82 versionPolicy = "odd-unstable";
87 homepage = "https://gitlab.gnome.org/GNOME/gexiv2";
88 description = "GObject wrapper around the Exiv2 photo metadata library";
89 license = licenses.gpl2Plus;
90 platforms = platforms.unix;
91 maintainers = teams.gnome.members;