nixpkgs/pkgs/applications/networking/calls/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

115 lines
2.2 KiB
Nix
Raw Normal View History

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