1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-25 03:17:13 +00:00
nixpkgs/pkgs/development/libraries/libgdata/default.nix

100 lines
2.2 KiB
Nix
Raw Normal View History

{ stdenv
, fetchurl
2019-07-28 00:27:29 +01:00
, fetchpatch
, pkgconfig
, meson
, ninja
, vala
, gettext
, libxml2
, glib
, json-glib
, gcr
, gnome-online-accounts
, gobject-introspection
, liboauth
, 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";
version = "0.17.10";
outputs = [ "out" "dev" "installedTests" ];
src = fetchurl {
2018-12-25 03:11:30 +00:00
url = "mirror://gnome/sources/${pname}/${stdenv.lib.versions.majorMinor version}/${pname}-${version}.tar.xz";
sha256 = "04mh2p5x2iidfx0d1cablxbi3hvna8cmlddc1mm4387n0grx3ly1";
};
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";
})
];
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
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.
};
};
meta = with stdenv.lib; {
description = "GData API library";
2018-03-03 01:00:37 +00:00
homepage = https://wiki.gnome.org/Projects/libgdata;
maintainers = with maintainers; [ raskin lethalman ] ++ gnome3.maintainers;
platforms = platforms.linux;
license = licenses.lgpl21Plus;
};
}