3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/development/libraries/libgdata/default.nix

87 lines
1.6 KiB
Nix
Raw Normal View History

{ lib, stdenv
, fetchurl
, pkg-config
, meson
, ninja
2019-09-02 12:44:34 +01:00
, nixosTests
, vala
, gettext
, libxml2
, glib
, json-glib
, gcr
, gnome-online-accounts
, gobject-introspection
, gnome3
, p11-kit
, openssl
, uhttpmock
, libsoup
}:
2018-12-25 03:11:30 +00:00
stdenv.mkDerivation rec {
2018-03-03 01:00:37 +00:00
pname = "libgdata";
2021-02-12 17:55:42 +00:00
version = "0.18.0";
outputs = [ "out" "dev" "installedTests" ];
src = fetchurl {
url = "mirror://gnome/sources/${pname}/${lib.versions.majorMinor version}/${pname}-${version}.tar.xz";
2021-02-12 17:55:42 +00:00
sha256 = "8MIBEvpTcrYsASVvJorvUTGhYd/COGjzk+z3uLN1JYA=";
};
patches = [
./installed-tests-path.patch
];
nativeBuildInputs = [
gettext
gobject-introspection
meson
ninja
pkg-config
vala
];
buildInputs = [
gcr
glib
libsoup
libxml2
openssl
p11-kit
uhttpmock
];
2018-12-25 03:11:30 +00:00
propagatedBuildInputs = [
gnome-online-accounts
json-glib
];
mesonFlags = [
"-Dgtk_doc=false"
"-Dinstalled_test_bindir=${placeholder "installedTests"}/libexec"
"-Dinstalled_test_datadir=${placeholder "installedTests"}/share"
"-Dinstalled_tests=true"
];
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 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
};
meta = with lib; {
description = "GData API library";
2020-02-28 22:57:36 +00:00
homepage = "https://wiki.gnome.org/Projects/libgdata";
maintainers = with maintainers; [ raskin lethalman ] ++ teams.gnome.members;
platforms = platforms.linux;
license = licenses.lgpl21Plus;
};
}