git.iko.soy/typeable/nixpkgs
on master help sign in
gnome3.gnome-online-accounts: build with meson

Have to fetch from gitlab as it's not distributed yet. See [0] and [1]. [0]: https://gitlab.gnome.org/GNOME/gnome-online-accounts/merge_requests/2#note_271132 [1]: https://gitlab.gnome.org/GNOME/gnome-online-accounts/issues/87

commit5366676eba2713a27c9854926d652cd731ffb1f2 authorworldofpeace <worldofpeace@protonmail.ch> dateWed 16 Oct 2019, 16:52 (7 years ago) parentdf4170f
1 file changed+32−12
pkgs/development/libraries/gnome-online-accounts/default.nix+32−12
pkgs/development/libraries/gnome-online-accounts/default.nix+32−12
@@ -1,11 +1,13 @@
11{ stdenv
2−, fetchurl
2+, fetchFromGitLab
33, pkgconfig
44, vala
55, glib
6+, meson
7+, ninja
8+, python3
69, libxslt
710, gtk3
8−, wrapGAppsHook
911, webkitgtk
1012, json-glib
1113, librest
@@ -21,36 +23,46 @@
2123, gnome3
2224, gcr
2325, kerberos
26+, gvfs
27+, dbus
28+, wrapGAppsHook
2429}:
2530
2631stdenv.mkDerivation rec {
2732 pname = "gnome-online-accounts";
2833 version = "3.34.1";
2934
30− src = fetchurl {
31− url = "mirror://gnome/sources/${pname}/${stdenv.lib.versions.majorMinor version}/${name}.tar.xz";
32− sha256 = "0fkqckqkkah5k1xrfqjkk4345aq9c0a6yyvfczy9g96k927clcj8";
35+ # https://gitlab.gnome.org/GNOME/gnome-online-accounts/issues/87
36+ src = fetchFromGitLab {
37+ domain = "gitlab.gnome.org";
38+ owner = "GNOME";
39+ repo = "gnome-online-accounts";
40+ rev = version;
41+ sha256 = "0ry06qw068rqn4y42953kwl6fkxpgfya58y87cd3zink6gj7q0fm";
3342 };
3443
3544 outputs = [ "out" "man" "dev" "devdoc" ];
3645
37− configureFlags = [
38− "--enable-media-server"
39− "--enable-kerberos"
40− "--enable-lastfm"
41− "--enable-todoist"
42− "--enable-gtk-doc"
43− "--enable-documentation"
46+ mesonFlags = [
47+ "-Dfedora=false" # not useful in NixOS or for NixOS users.
48+ "-Dgtk_doc=true"
49+ "-Dlastfm=true"
50+ "-Dman=true"
51+ "-Dmedia_server=true"
4452 ];
4553
4654 nativeBuildInputs = [
55+ dbus # used for checks and pkgconfig to install dbus service/s
4756 docbook_xml_dtd_412
4857 docbook_xsl
4958 gettext
5059 gobject-introspection
5160 gtk-doc
5261 libxslt
62+ meson
63+ ninja
5364 pkgconfig
65+ python3
5466 vala
5567 wrapGAppsHook
5668 ];
@@ -60,6 +72,7 @@ stdenv.mkDerivation rec {
6072 glib
6173 glib-networking
6274 gtk3
75+ gvfs # OwnCloud, Google Drive
6376 icu
6477 json-glib
6578 kerberos
@@ -69,6 +82,13 @@ stdenv.mkDerivation rec {
6982 webkitgtk
7083 ];
7184
85+ NIX_CFLAGS_COMPILE = "-I${glib.dev}/include/gio-unix-2.0";
86+
87+ postPatch = ''
88+ chmod +x meson_post_install.py
89+ patchShebangs meson_post_install.py
90+ '';
91+
7292 passthru = {
7393 updateScript = gnome3.updateScript {
7494 packageName = pname;