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

84 lines
1.4 KiB
Nix
Raw Normal View History

2019-11-01 11:30:25 +01:00
{ stdenv
, fetchFromGitLab
, meson
, ninja
, pkgconfig
, libhandy
, modemmanager
, gtk3
2019-10-30 09:56:03 +01:00
, gom
2019-11-01 11:30:25 +01:00
, gsound
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
, desktop-file-utils
2019-11-01 11:30:25 +01:00
, libpeas
, dbus
2019-11-11 22:23:01 +01:00
, vala
2019-11-01 11:30:25 +01:00
, xorg
, xvfb_run
, libxml2
}:
stdenv.mkDerivation rec {
2019-11-11 22:23:01 +01:00
pname = "calls";
version = "unstable-2019-10-29";
2019-11-01 11:30:25 +01:00
src = fetchFromGitLab {
domain = "source.puri.sm";
owner = "Librem5";
2019-11-11 21:44:31 +01:00
repo = "calls";
2019-11-11 22:23:01 +01:00
rev = "9fe575053d8f01c3a76a6c20d39f0816166d5afd";
sha256 = "01inx4mvrzvklwrfryw5hw9p89v8cn78m3qmv97g7a3v0h5c0n35";
2019-11-01 11:30:25 +01:00
};
nativeBuildInputs = [
meson
ninja
pkgconfig
2019-10-30 09:56:03 +01:00
desktop-file-utils
2019-11-11 22:23:01 +01:00
vala
2019-11-01 11:30:25 +01:00
];
buildInputs = [
modemmanager
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
gtk3
libhandy
libpeas
];
checkInputs = [
dbus
xvfb_run
];
mesonFlags = [
2019-11-11 22:23:01 +01:00
# docs fail to build
# https://source.puri.sm/Librem5/calls/issues/99
2019-11-01 11:30:25 +01:00
"-Dgtk_doc=false"
];
doCheck = true;
checkPhase = ''
runHook preCheck
NO_AT_BRIDGE=1 \
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 stdenv.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;
};
}