3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/applications/networking/calls/default.nix
2021-03-13 20:44:22 -08:00

91 lines
1.5 KiB
Nix

{ lib
, stdenv
, fetchFromGitLab
, meson
, ninja
, pkg-config
, libhandy
, modemmanager
, gtk3
, gom
, gsound
, feedbackd
, callaudiod
, evolution-data-server
, folks
, desktop-file-utils
, appstream-glib
, libpeas
, dbus
, vala
, wrapGAppsHook
, xvfb_run
}:
stdenv.mkDerivation rec {
pname = "calls";
version = "0.3.1";
src = fetchFromGitLab {
domain = "source.puri.sm";
owner = "Librem5";
repo = pname;
rev = "v${version}";
sha256 = "0igap5ynq269xqaky6fqhdg2dpsvxa008z953ywa4s5b5g5dk3dd";
};
nativeBuildInputs = [
meson
ninja
pkg-config
desktop-file-utils
appstream-glib
vala
wrapGAppsHook
];
buildInputs = [
modemmanager
libhandy
evolution-data-server
folks
gom
gsound
feedbackd
callaudiod
gtk3
libpeas
];
checkInputs = [
dbus
xvfb_run
];
mesonFlags = [
# docs fail to build
# https://source.puri.sm/Librem5/calls/issues/99
"-Dgtk_doc=false"
];
doCheck = true;
checkPhase = ''
runHook preCheck
NO_AT_BRIDGE=1 \
XDG_DATA_DIRS=${folks}/share/gsettings-schemas/${folks.name} \
xvfb-run -s '-screen 0 800x600x24' dbus-run-session \
--config-file=${dbus.daemon}/share/dbus-1/session.conf \
meson test --print-errorlogs
runHook postCheck
'';
meta = with lib; {
description = "A phone dialer and call handler";
homepage = "https://source.puri.sm/Librem5/calls";
license = licenses.gpl3Plus;
maintainers = with maintainers; [ craigem lheckemann ];
platforms = platforms.linux;
};
}