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

90 lines
1.5 KiB
Nix
Raw Normal View History

2021-01-21 16:50:31 +00:00
{ lib
, stdenv
2019-11-01 10:30:25 +00:00
, fetchFromGitLab
, meson
, ninja
2021-01-21 16:50:31 +00:00
, cmake
, pkg-config
2021-01-21 16:50:31 +00:00
, libhandy
2019-11-01 10:30:25 +00:00
, modemmanager
, gtk3
2019-10-30 08:56:03 +00:00
, gom
2019-11-01 10:30:25 +00:00
, gsound
2021-01-21 16:50:31 +00:00
, feedbackd
, callaudiod
2019-10-30 08:56:03 +00:00
, evolution-data-server
2019-11-11 21:23:01 +00:00
, folks
2019-10-30 08:56:03 +00:00
, desktop-file-utils
2019-11-01 10:30:25 +00:00
, libpeas
, dbus
2019-11-11 21:23:01 +00:00
, vala
2020-01-09 14:19:10 +00:00
, wrapGAppsHook
2019-11-01 10:30:25 +00:00
, xvfb_run
}:
stdenv.mkDerivation rec {
2019-11-11 21:23:01 +00:00
pname = "calls";
2021-01-21 16:50:31 +00:00
version = "0.2.0";
2019-11-01 10:30:25 +00:00
src = fetchFromGitLab {
domain = "source.puri.sm";
owner = "Librem5";
2021-01-21 16:50:31 +00:00
repo = pname;
2020-01-09 14:19:10 +00:00
rev = "v${version}";
2021-01-21 16:50:31 +00:00
sha256 = "1qmjdhnr95dawccw1ss8hc3lk0cypj86xg2amjq7avzn86ryd76l";
2019-11-01 10:30:25 +00:00
};
nativeBuildInputs = [
meson
ninja
pkg-config
2019-10-30 08:56:03 +00:00
desktop-file-utils
2019-11-11 21:23:01 +00:00
vala
2021-01-21 16:50:31 +00:00
cmake
2020-01-09 14:19:10 +00:00
wrapGAppsHook
2019-11-01 10:30:25 +00:00
];
buildInputs = [
modemmanager
2021-01-21 16:50:31 +00:00
libhandy
2019-10-30 08:56:03 +00:00
evolution-data-server
2019-11-11 21:23:01 +00:00
folks
2019-10-30 08:56:03 +00:00
gom
2019-11-01 10:30:25 +00:00
gsound
2021-01-21 16:50:31 +00:00
feedbackd
callaudiod
2019-11-01 10:30:25 +00:00
gtk3
libpeas
];
checkInputs = [
dbus
xvfb_run
];
mesonFlags = [
2019-11-11 21:23:01 +00:00
# docs fail to build
# https://source.puri.sm/Librem5/calls/issues/99
2019-11-01 10:30:25 +00: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 lib; {
2019-11-01 10:30:25 +00:00
description = "A phone dialer and call handler";
2020-02-26 05:00:05 +00:00
homepage = "https://source.puri.sm/Librem5/calls";
2019-11-01 10:30:25 +00:00
license = licenses.gpl3Plus;
maintainers = with maintainers; [ craigem lheckemann ];
platforms = platforms.linux;
};
}