2019-07-01 04:53:04 +01:00
|
|
|
{ stdenv
|
|
|
|
, fetchurl
|
2019-07-28 00:27:29 +01:00
|
|
|
, fetchpatch
|
2019-07-01 04:53:04 +01:00
|
|
|
, pkgconfig
|
|
|
|
, meson
|
|
|
|
, ninja
|
|
|
|
, vala
|
|
|
|
, gettext
|
|
|
|
, libxml2
|
|
|
|
, glib
|
|
|
|
, json-glib
|
|
|
|
, gcr
|
2019-08-23 01:45:09 +01:00
|
|
|
, gnome-online-accounts
|
2019-07-01 04:53:04 +01:00
|
|
|
, gobject-introspection
|
|
|
|
, liboauth
|
|
|
|
, gnome3
|
|
|
|
, p11-kit
|
|
|
|
, openssl
|
|
|
|
, uhttpmock
|
|
|
|
, libsoup
|
|
|
|
}:
|
2016-09-18 20:35:23 +01:00
|
|
|
|
2018-12-25 03:11:30 +00:00
|
|
|
stdenv.mkDerivation rec {
|
2018-03-03 01:00:37 +00:00
|
|
|
pname = "libgdata";
|
2019-07-01 04:53:04 +01:00
|
|
|
version = "0.17.10";
|
|
|
|
|
|
|
|
outputs = [ "out" "dev" "installedTests" ];
|
2016-09-18 20:35:23 +01:00
|
|
|
|
|
|
|
src = fetchurl {
|
2018-12-25 03:11:30 +00:00
|
|
|
url = "mirror://gnome/sources/${pname}/${stdenv.lib.versions.majorMinor version}/${pname}-${version}.tar.xz";
|
2019-07-01 04:53:04 +01:00
|
|
|
sha256 = "04mh2p5x2iidfx0d1cablxbi3hvna8cmlddc1mm4387n0grx3ly1";
|
2016-09-18 20:35:23 +01:00
|
|
|
};
|
|
|
|
|
2019-07-01 04:53:04 +01:00
|
|
|
patches = [
|
|
|
|
./installed-tests-path.patch
|
2019-07-28 00:27:29 +01:00
|
|
|
(fetchpatch {
|
|
|
|
# Meson fixes
|
|
|
|
url = "https://gitlab.gnome.org/GNOME/libgdata/commit/f6d0e3f3b6fa8e8ee9569372c5709c1fb84af2c1.diff";
|
|
|
|
sha256 = "00yrppn0s21i41r9mwzvrrv7j5dida09kh7i44kv8hrbrlfag7bm";
|
|
|
|
})
|
|
|
|
(fetchpatch {
|
|
|
|
# Meson minor fixes
|
|
|
|
url = "https://gitlab.gnome.org/GNOME/libgdata/commit/b653f602b3c2b518101c5d909e1651534c22757a.diff";
|
|
|
|
sha256 = "1bn0rffsvkzjl59aw8dmq1wil58x1fshz0m6xabpn79ffvbjld8j";
|
|
|
|
})
|
|
|
|
(fetchpatch {
|
|
|
|
# Meson: Fix G_LOG_DOMAIN
|
|
|
|
url = "https://gitlab.gnome.org/GNOME/libgdata/commit/5d318e0bf905d0f1a8b3fe1e47ee7847739082e3.diff";
|
|
|
|
sha256 = "11i2blq811d53433kdq4hhsscgkrq5f50d9ih4ixgs3j47hg7b1w";
|
|
|
|
})
|
2019-07-01 04:53:04 +01:00
|
|
|
];
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
gettext
|
|
|
|
gobject-introspection
|
|
|
|
meson
|
|
|
|
ninja
|
|
|
|
pkgconfig
|
|
|
|
vala
|
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
gcr
|
|
|
|
glib
|
|
|
|
liboauth
|
|
|
|
libsoup
|
|
|
|
libxml2
|
|
|
|
openssl
|
|
|
|
p11-kit
|
|
|
|
uhttpmock
|
|
|
|
];
|
2018-12-25 03:11:30 +00:00
|
|
|
|
2019-07-01 04:53:04 +01:00
|
|
|
propagatedBuildInputs = [
|
2019-08-23 01:45:09 +01:00
|
|
|
gnome-online-accounts
|
2019-07-01 04:53:04 +01:00
|
|
|
json-glib
|
|
|
|
];
|
2016-09-18 20:35:23 +01:00
|
|
|
|
2019-07-01 04:53:04 +01:00
|
|
|
mesonFlags = [
|
|
|
|
"-Dgtk_doc=false"
|
|
|
|
"-Dinstalled_test_bindir=${placeholder ''installedTests''}/libexec"
|
|
|
|
"-Dinstalled_test_datadir=${placeholder ''installedTests''}/share"
|
|
|
|
"-Dinstalled_tests=true"
|
|
|
|
];
|
2016-09-18 20:35:23 +01:00
|
|
|
|
2018-03-03 01:00:37 +00:00
|
|
|
passthru = {
|
|
|
|
updateScript = gnome3.updateScript {
|
|
|
|
packageName = pname;
|
|
|
|
versionPolicy = "none"; # Stable version has not been updated for a long time.
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2016-09-18 20:35:23 +01:00
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "GData API library";
|
2018-03-03 01:00:37 +00:00
|
|
|
homepage = https://wiki.gnome.org/Projects/libgdata;
|
2019-07-01 04:53:04 +01:00
|
|
|
maintainers = with maintainers; [ raskin lethalman ] ++ gnome3.maintainers;
|
2016-09-18 20:35:23 +01:00
|
|
|
platforms = platforms.linux;
|
|
|
|
license = licenses.lgpl21Plus;
|
|
|
|
};
|
|
|
|
}
|