2019-07-01 03:53:04 +00:00
|
|
|
{ stdenv
|
|
|
|
, fetchurl
|
|
|
|
, pkgconfig
|
|
|
|
, meson
|
|
|
|
, ninja
|
2019-09-02 11:44:34 +00:00
|
|
|
, nixosTests
|
2019-07-01 03:53:04 +00:00
|
|
|
, vala
|
|
|
|
, gettext
|
|
|
|
, libxml2
|
|
|
|
, glib
|
|
|
|
, json-glib
|
|
|
|
, gcr
|
2019-08-23 00:45:09 +00:00
|
|
|
, gnome-online-accounts
|
2019-07-01 03:53:04 +00:00
|
|
|
, gobject-introspection
|
|
|
|
, liboauth
|
|
|
|
, gnome3
|
|
|
|
, p11-kit
|
|
|
|
, openssl
|
|
|
|
, uhttpmock
|
|
|
|
, libsoup
|
|
|
|
}:
|
2016-09-18 19:35:23 +00:00
|
|
|
|
2018-12-25 03:11:30 +00:00
|
|
|
stdenv.mkDerivation rec {
|
2018-03-03 01:00:37 +00:00
|
|
|
pname = "libgdata";
|
2019-09-02 10:47:43 +00:00
|
|
|
version = "0.17.11";
|
2019-07-01 03:53:04 +00:00
|
|
|
|
|
|
|
outputs = [ "out" "dev" "installedTests" ];
|
2016-09-18 19:35:23 +00: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-09-02 10:47:43 +00:00
|
|
|
sha256 = "11m99sh2k679rnsvqsi95s1l0r8lkvj61dmwg1pnxvsd5q91g6bb";
|
2016-09-18 19:35:23 +00:00
|
|
|
};
|
|
|
|
|
2019-07-01 03:53:04 +00:00
|
|
|
patches = [
|
|
|
|
./installed-tests-path.patch
|
|
|
|
];
|
|
|
|
|
|
|
|
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 03:53:04 +00:00
|
|
|
propagatedBuildInputs = [
|
2019-08-23 00:45:09 +00:00
|
|
|
gnome-online-accounts
|
2019-07-01 03:53:04 +00:00
|
|
|
json-glib
|
|
|
|
];
|
2016-09-18 19:35:23 +00:00
|
|
|
|
2019-07-01 03:53:04 +00:00
|
|
|
mesonFlags = [
|
|
|
|
"-Dgtk_doc=false"
|
2019-09-03 16:38:57 +00:00
|
|
|
"-Dinstalled_test_bindir=${placeholder "installedTests"}/libexec"
|
|
|
|
"-Dinstalled_test_datadir=${placeholder "installedTests"}/share"
|
2019-07-01 03:53:04 +00:00
|
|
|
"-Dinstalled_tests=true"
|
|
|
|
];
|
2016-09-18 19:35:23 +00: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.
|
|
|
|
};
|
2019-09-02 11:44:34 +00:00
|
|
|
|
|
|
|
tests = {
|
2019-11-07 13:11:16 +00:00
|
|
|
installedTests = nixosTests.installed-tests.libgdata;
|
2019-09-02 11:44:34 +00:00
|
|
|
};
|
2018-03-03 01:00:37 +00:00
|
|
|
};
|
|
|
|
|
2016-09-18 19:35:23 +00: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 03:53:04 +00:00
|
|
|
maintainers = with maintainers; [ raskin lethalman ] ++ gnome3.maintainers;
|
2016-09-18 19:35:23 +00:00
|
|
|
platforms = platforms.linux;
|
|
|
|
license = licenses.lgpl21Plus;
|
|
|
|
};
|
|
|
|
}
|