2021-01-21 17:00:13 +00:00
|
|
|
{ lib, stdenv
|
2019-07-01 04:53:04 +01:00
|
|
|
, fetchurl
|
2021-01-19 06:50:56 +00:00
|
|
|
, pkg-config
|
2019-07-01 04:53:04 +01:00
|
|
|
, meson
|
|
|
|
, ninja
|
2019-09-02 12:44:34 +01:00
|
|
|
, nixosTests
|
2019-07-01 04:53:04 +01:00
|
|
|
, 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
|
2021-05-07 22:18:14 +01:00
|
|
|
, gnome
|
2019-07-01 04:53:04 +01:00
|
|
|
, 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";
|
2021-03-11 23:52:53 +00:00
|
|
|
version = "0.18.1";
|
2019-07-01 04:53:04 +01:00
|
|
|
|
|
|
|
outputs = [ "out" "dev" "installedTests" ];
|
2016-09-18 20:35:23 +01:00
|
|
|
|
|
|
|
src = fetchurl {
|
2021-01-21 17:00:13 +00:00
|
|
|
url = "mirror://gnome/sources/${pname}/${lib.versions.majorMinor version}/${pname}-${version}.tar.xz";
|
2021-03-11 23:52:53 +00:00
|
|
|
sha256 = "3YWS7rZRKtCoz1yL6McudvdL/msj5N2T8HVu4HFoBMc=";
|
2016-09-18 20:35:23 +01:00
|
|
|
};
|
|
|
|
|
2019-07-01 04:53:04 +01:00
|
|
|
patches = [
|
|
|
|
./installed-tests-path.patch
|
|
|
|
];
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
gettext
|
|
|
|
gobject-introspection
|
|
|
|
meson
|
|
|
|
ninja
|
2021-01-19 06:50:56 +00:00
|
|
|
pkg-config
|
2019-07-01 04:53:04 +01:00
|
|
|
vala
|
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
gcr
|
|
|
|
glib
|
|
|
|
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"
|
2019-09-03 17:38:57 +01:00
|
|
|
"-Dinstalled_test_bindir=${placeholder "installedTests"}/libexec"
|
|
|
|
"-Dinstalled_test_datadir=${placeholder "installedTests"}/share"
|
2019-07-01 04:53:04 +01:00
|
|
|
"-Dinstalled_tests=true"
|
|
|
|
];
|
2016-09-18 20:35:23 +01:00
|
|
|
|
2018-03-03 01:00:37 +00:00
|
|
|
passthru = {
|
2021-05-07 22:18:14 +01:00
|
|
|
updateScript = gnome.updateScript {
|
2018-03-03 01:00:37 +00:00
|
|
|
packageName = pname;
|
|
|
|
versionPolicy = "none"; # Stable version has not been updated for a long time.
|
|
|
|
};
|
2019-09-02 12:44:34 +01:00
|
|
|
|
|
|
|
tests = {
|
2019-11-07 13:11:16 +00:00
|
|
|
installedTests = nixosTests.installed-tests.libgdata;
|
2019-09-02 12:44:34 +01:00
|
|
|
};
|
2018-03-03 01:00:37 +00:00
|
|
|
};
|
|
|
|
|
2021-01-21 17:00:13 +00:00
|
|
|
meta = with lib; {
|
2016-09-18 20:35:23 +01:00
|
|
|
description = "GData API library";
|
2020-02-28 22:57:36 +00:00
|
|
|
homepage = "https://wiki.gnome.org/Projects/libgdata";
|
2021-05-07 14:35:21 +01:00
|
|
|
maintainers = with maintainers; [ raskin ] ++ teams.gnome.members;
|
2016-09-18 20:35:23 +01:00
|
|
|
platforms = platforms.linux;
|
|
|
|
license = licenses.lgpl21Plus;
|
|
|
|
};
|
|
|
|
}
|