11 , gobject-introspection
19 stdenv.mkDerivation rec {
23 outputs = [ "out" "dev" "devdoc" ];
26 url = "mirror://gnome/sources/${pname}/${lib.versions.majorMinor version}/${pname}-${version}.tar.xz";
27 sha256 = "IeZNLFbpszPUT+8/KkslZT2SLEGazZcvqW+raVIX4sg=";
39 (python3.pythonOnBuildForHost.withPackages (ps: [ ps.pygobject3 ]))
40 ] ++ lib.optionals (!stdenv.buildPlatform.canExecute stdenv.hostPlatform) [
48 propagatedBuildInputs = [
60 libSuffix = if stdenv.hostPlatform.isDarwin then "2.dylib" else "so.2";
62 # Our gobject-introspection patches make the shared library paths absolute
63 # in the GIR files. When running unit tests, the library is not yet installed,
64 # though, so we need to replace the absolute path with a local one during build.
65 # We are using a symlink that will be overridden during installation.
67 ln -s $PWD/gexiv2/libgexiv2.${libSuffix} $out/lib/libgexiv2.${libSuffix}
71 updateScript = gnome.updateScript {
73 versionPolicy = "odd-unstable";
78 homepage = "https://gitlab.gnome.org/GNOME/gexiv2";
79 description = "GObject wrapper around the Exiv2 photo metadata library";
80 license = licenses.gpl2Plus;
81 platforms = platforms.unix;
82 maintainers = teams.gnome.members;