2018-02-02 12:21:02 +00:00
|
|
|
{ stdenv, fetchurl, meson, ninja, pkgconfig, exiv2, glib, gnome3, gobjectIntrospection, vala }:
|
2016-09-18 20:35:23 +01:00
|
|
|
|
|
|
|
let
|
|
|
|
majorVersion = "0.10";
|
|
|
|
in
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "gexiv2-${version}";
|
2018-01-30 18:24:52 +00:00
|
|
|
version = "${majorVersion}.7";
|
2016-09-18 20:35:23 +01:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "mirror://gnome/sources/gexiv2/${majorVersion}/${name}.tar.xz";
|
2018-01-30 18:24:52 +00:00
|
|
|
sha256 = "1f7312zygw77ml37i5qilhfvmjm59dn753ax71rcb2jm1p76vgcb";
|
2016-09-18 20:35:23 +01:00
|
|
|
};
|
|
|
|
|
2018-01-30 18:24:52 +00:00
|
|
|
patches = [
|
2018-02-02 12:21:02 +00:00
|
|
|
# Darwin compatibility (https://bugzilla.gnome.org/show_bug.cgi?id=791941)
|
2018-01-30 18:24:52 +00:00
|
|
|
(fetchurl {
|
|
|
|
url = https://bugzilla.gnome.org/attachment.cgi?id=365969;
|
|
|
|
sha256 = "06w744acgnz3hym7sm8c245yzlg05ldkmwgiz3yz4pp6h72brizj";
|
|
|
|
})
|
2018-02-02 12:21:02 +00:00
|
|
|
# GIR & Vala bindings fix (https://bugzilla.gnome.org/show_bug.cgi?id=792431)
|
|
|
|
(fetchurl {
|
|
|
|
url = https://bugzilla.gnome.org/attachment.cgi?id=366662;
|
|
|
|
sha256 = "1ljb2pap5v9z3zhx69ghfyrbl2b62ck35nyn7h5h410d008lcb4v";
|
|
|
|
})
|
2018-01-30 18:24:52 +00:00
|
|
|
];
|
|
|
|
|
2016-09-18 20:35:23 +01:00
|
|
|
preConfigure = ''
|
|
|
|
patchShebangs .
|
|
|
|
'';
|
|
|
|
|
2018-02-02 12:21:02 +00:00
|
|
|
nativeBuildInputs = [ meson ninja pkgconfig gobjectIntrospection vala ];
|
2018-01-30 18:24:52 +00:00
|
|
|
buildInputs = [ glib ];
|
2016-09-18 20:35:23 +01:00
|
|
|
propagatedBuildInputs = [ exiv2 ];
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
homepage = https://wiki.gnome.org/Projects/gexiv2;
|
|
|
|
description = "GObject wrapper around the Exiv2 photo metadata library";
|
2018-01-30 18:24:52 +00:00
|
|
|
platforms = platforms.unix;
|
2016-09-18 20:35:23 +01:00
|
|
|
maintainers = gnome3.maintainers;
|
|
|
|
};
|
|
|
|
}
|