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
This commit is contained in:
parent
df4170f853
commit
5366676eba
@ -1,11 +1,13 @@
|
|||||||
{ stdenv
|
{ stdenv
|
||||||
, fetchurl
|
, fetchFromGitLab
|
||||||
, pkgconfig
|
, pkgconfig
|
||||||
, vala
|
, vala
|
||||||
, glib
|
, glib
|
||||||
|
, meson
|
||||||
|
, ninja
|
||||||
|
, python3
|
||||||
, libxslt
|
, libxslt
|
||||||
, gtk3
|
, gtk3
|
||||||
, wrapGAppsHook
|
|
||||||
, webkitgtk
|
, webkitgtk
|
||||||
, json-glib
|
, json-glib
|
||||||
, librest
|
, librest
|
||||||
@ -21,36 +23,46 @@
|
|||||||
, gnome3
|
, gnome3
|
||||||
, gcr
|
, gcr
|
||||||
, kerberos
|
, kerberos
|
||||||
|
, gvfs
|
||||||
|
, dbus
|
||||||
|
, wrapGAppsHook
|
||||||
}:
|
}:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
pname = "gnome-online-accounts";
|
pname = "gnome-online-accounts";
|
||||||
version = "3.34.1";
|
version = "3.34.1";
|
||||||
|
|
||||||
src = fetchurl {
|
# https://gitlab.gnome.org/GNOME/gnome-online-accounts/issues/87
|
||||||
url = "mirror://gnome/sources/${pname}/${stdenv.lib.versions.majorMinor version}/${name}.tar.xz";
|
src = fetchFromGitLab {
|
||||||
sha256 = "0fkqckqkkah5k1xrfqjkk4345aq9c0a6yyvfczy9g96k927clcj8";
|
domain = "gitlab.gnome.org";
|
||||||
|
owner = "GNOME";
|
||||||
|
repo = "gnome-online-accounts";
|
||||||
|
rev = version;
|
||||||
|
sha256 = "0ry06qw068rqn4y42953kwl6fkxpgfya58y87cd3zink6gj7q0fm";
|
||||||
};
|
};
|
||||||
|
|
||||||
outputs = [ "out" "man" "dev" "devdoc" ];
|
outputs = [ "out" "man" "dev" "devdoc" ];
|
||||||
|
|
||||||
configureFlags = [
|
mesonFlags = [
|
||||||
"--enable-media-server"
|
"-Dfedora=false" # not useful in NixOS or for NixOS users.
|
||||||
"--enable-kerberos"
|
"-Dgtk_doc=true"
|
||||||
"--enable-lastfm"
|
"-Dlastfm=true"
|
||||||
"--enable-todoist"
|
"-Dman=true"
|
||||||
"--enable-gtk-doc"
|
"-Dmedia_server=true"
|
||||||
"--enable-documentation"
|
|
||||||
];
|
];
|
||||||
|
|
||||||
nativeBuildInputs = [
|
nativeBuildInputs = [
|
||||||
|
dbus # used for checks and pkgconfig to install dbus service/s
|
||||||
docbook_xml_dtd_412
|
docbook_xml_dtd_412
|
||||||
docbook_xsl
|
docbook_xsl
|
||||||
gettext
|
gettext
|
||||||
gobject-introspection
|
gobject-introspection
|
||||||
gtk-doc
|
gtk-doc
|
||||||
libxslt
|
libxslt
|
||||||
|
meson
|
||||||
|
ninja
|
||||||
pkgconfig
|
pkgconfig
|
||||||
|
python3
|
||||||
vala
|
vala
|
||||||
wrapGAppsHook
|
wrapGAppsHook
|
||||||
];
|
];
|
||||||
@ -60,6 +72,7 @@ stdenv.mkDerivation rec {
|
|||||||
glib
|
glib
|
||||||
glib-networking
|
glib-networking
|
||||||
gtk3
|
gtk3
|
||||||
|
gvfs # OwnCloud, Google Drive
|
||||||
icu
|
icu
|
||||||
json-glib
|
json-glib
|
||||||
kerberos
|
kerberos
|
||||||
@ -69,6 +82,13 @@ stdenv.mkDerivation rec {
|
|||||||
webkitgtk
|
webkitgtk
|
||||||
];
|
];
|
||||||
|
|
||||||
|
NIX_CFLAGS_COMPILE = "-I${glib.dev}/include/gio-unix-2.0";
|
||||||
|
|
||||||
|
postPatch = ''
|
||||||
|
chmod +x meson_post_install.py
|
||||||
|
patchShebangs meson_post_install.py
|
||||||
|
'';
|
||||||
|
|
||||||
passthru = {
|
passthru = {
|
||||||
updateScript = gnome3.updateScript {
|
updateScript = gnome3.updateScript {
|
||||||
packageName = pname;
|
packageName = pname;
|
||||||
|
Loading…
Reference in New Issue
Block a user