2021-02-05 17:12:51 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
2020-04-24 23:36:52 +00:00
|
|
|
, fetchFromGitLab
|
|
|
|
, meson
|
|
|
|
, ninja
|
2021-02-05 17:12:51 +00:00
|
|
|
, pkg-config
|
|
|
|
, libhandy
|
2020-04-24 23:36:52 +00:00
|
|
|
, modemmanager
|
|
|
|
, gtk3
|
|
|
|
, gom
|
|
|
|
, gsound
|
2021-02-05 17:12:51 +00:00
|
|
|
, feedbackd
|
|
|
|
, callaudiod
|
2020-04-24 23:36:52 +00:00
|
|
|
, evolution-data-server
|
2021-03-19 17:17:44 +00:00
|
|
|
, glib
|
2020-04-24 23:36:52 +00:00
|
|
|
, folks
|
|
|
|
, desktop-file-utils
|
2021-03-19 17:17:44 +00:00
|
|
|
, appstream-glib
|
2020-04-24 23:36:52 +00:00
|
|
|
, libpeas
|
2021-05-20 23:08:51 +00:00
|
|
|
, libgdata
|
2020-04-24 23:36:52 +00:00
|
|
|
, dbus
|
|
|
|
, vala
|
|
|
|
, wrapGAppsHook
|
2021-05-20 23:08:51 +00:00
|
|
|
, xvfb-run
|
2021-03-19 17:17:44 +00:00
|
|
|
, gtk-doc
|
|
|
|
, docbook-xsl-nons
|
|
|
|
, docbook_xml_dtd_43
|
2022-10-21 18:38:19 +00:00
|
|
|
, docutils
|
2021-03-19 17:17:44 +00:00
|
|
|
, gobject-introspection
|
2022-01-13 20:06:32 +00:00
|
|
|
, gst_all_1
|
|
|
|
, sofia_sip
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "calls";
|
2023-10-09 19:29:22 +00:00
|
|
|
version = "44.2";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitLab {
|
2022-01-13 20:06:32 +00:00
|
|
|
domain = "gitlab.gnome.org";
|
|
|
|
owner = "GNOME";
|
2021-02-05 17:12:51 +00:00
|
|
|
repo = pname;
|
2022-10-21 18:38:19 +00:00
|
|
|
rev = "v${version}";
|
2022-08-12 12:06:08 +00:00
|
|
|
fetchSubmodules = true;
|
2023-10-09 19:29:22 +00:00
|
|
|
hash = "sha256-mdv/yDUi6tzYc3C7dtmkAWtk4IqzHvOZVO2CA3TP9TE=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2021-03-19 17:17:44 +00:00
|
|
|
outputs = [ "out" "devdoc" ];
|
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
meson
|
|
|
|
ninja
|
2021-02-05 17:12:51 +00:00
|
|
|
pkg-config
|
2020-04-24 23:36:52 +00:00
|
|
|
desktop-file-utils
|
2021-03-19 17:17:44 +00:00
|
|
|
appstream-glib
|
2020-04-24 23:36:52 +00:00
|
|
|
vala
|
|
|
|
wrapGAppsHook
|
2021-03-19 17:17:44 +00:00
|
|
|
gtk-doc
|
|
|
|
docbook-xsl-nons
|
|
|
|
docbook_xml_dtd_43
|
2022-10-21 18:38:19 +00:00
|
|
|
docutils
|
2020-04-24 23:36:52 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
modemmanager
|
2021-02-05 17:12:51 +00:00
|
|
|
libhandy
|
2020-04-24 23:36:52 +00:00
|
|
|
evolution-data-server
|
|
|
|
folks
|
|
|
|
gom
|
|
|
|
gsound
|
2022-01-13 20:06:32 +00:00
|
|
|
gst_all_1.gstreamer
|
|
|
|
gst_all_1.gst-plugins-base
|
|
|
|
gst_all_1.gst-plugins-good
|
|
|
|
gst_all_1.gst-plugins-bad
|
|
|
|
gst_all_1.gst-plugins-ugly
|
2021-02-05 17:12:51 +00:00
|
|
|
feedbackd
|
|
|
|
callaudiod
|
2020-04-24 23:36:52 +00:00
|
|
|
gtk3
|
|
|
|
libpeas
|
2022-01-13 20:06:32 +00:00
|
|
|
sofia_sip
|
2020-04-24 23:36:52 +00:00
|
|
|
];
|
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = [
|
2020-04-24 23:36:52 +00:00
|
|
|
dbus
|
2021-05-20 23:08:51 +00:00
|
|
|
xvfb-run
|
2020-04-24 23:36:52 +00:00
|
|
|
];
|
|
|
|
|
2023-03-04 12:14:45 +00:00
|
|
|
env.NIX_CFLAGS_COMPILE = "-I${glib.dev}/include/gio-unix-2.0";
|
2021-03-19 17:17:44 +00:00
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
mesonFlags = [
|
2021-03-19 17:17:44 +00:00
|
|
|
"-Dgtk_doc=true"
|
2020-04-24 23:36:52 +00:00
|
|
|
];
|
|
|
|
|
2022-01-13 20:06:32 +00:00
|
|
|
# Disable until tests are fixed upstream https://gitlab.gnome.org/GNOME/calls/-/issues/258
|
|
|
|
doCheck = false;
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
checkPhase = ''
|
|
|
|
runHook preCheck
|
|
|
|
NO_AT_BRIDGE=1 \
|
2021-03-19 17:17:44 +00:00
|
|
|
XDG_DATA_DIRS=${folks}/share/gsettings-schemas/${folks.name} \
|
2020-04-24 23:36:52 +00:00
|
|
|
xvfb-run -s '-screen 0 800x600x24' dbus-run-session \
|
2022-12-02 08:20:57 +00:00
|
|
|
--config-file=${dbus}/share/dbus-1/session.conf \
|
2020-04-24 23:36:52 +00:00
|
|
|
meson test --print-errorlogs
|
|
|
|
runHook postCheck
|
|
|
|
'';
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "A phone dialer and call handler";
|
2021-08-27 14:25:00 +00:00
|
|
|
longDescription = "GNOME Calls is a phone dialer and call handler. Setting NixOS option `programs.calls.enable = true` is recommended.";
|
2022-10-21 18:38:19 +00:00
|
|
|
homepage = "https://gitlab.gnome.org/GNOME/calls";
|
2020-04-24 23:36:52 +00:00
|
|
|
license = licenses.gpl3Plus;
|
2022-02-20 05:27:41 +00:00
|
|
|
maintainers = with maintainers; [ craigem lheckemann tomfitzhenry ];
|
2020-04-24 23:36:52 +00:00
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|