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

86 lines
1.4 KiB
Nix
Raw Normal View History

2019-11-01 13:30:25 +03:00
{ stdenv
, fetchFromGitLab
, meson
, ninja
, pkgconfig
, libhandy
, modemmanager
, gtk3
2019-10-30 11:56:03 +03:00
, gom
2019-11-01 13:30:25 +03:00
, gsound
2019-10-30 11:56:03 +03:00
, evolution-data-server
2019-11-12 00:23:01 +03:00
, folks
2019-10-30 11:56:03 +03:00
, desktop-file-utils
2019-11-01 13:30:25 +03:00
, libpeas
, dbus
2019-11-12 00:23:01 +03:00
, vala
2020-01-09 17:19:10 +03:00
, wrapGAppsHook
2019-11-01 13:30:25 +03:00
, xorg
, xvfb_run
, libxml2
}:
stdenv.mkDerivation rec {
2019-11-12 00:23:01 +03:00
pname = "calls";
2020-04-09 15:38:29 +03:00
version = "0.1.4";
2019-11-01 13:30:25 +03:00
src = fetchFromGitLab {
domain = "source.puri.sm";
owner = "Librem5";
2019-11-11 23:44:31 +03:00
repo = "calls";
2020-01-09 17:19:10 +03:00
rev = "v${version}";
2020-04-09 15:38:29 +03:00
sha256 = "0715cap3w8gppxlfaynhiqvc2ss512xgykjcpqq8f5syz2776skh";
2019-11-01 13:30:25 +03:00
};
nativeBuildInputs = [
meson
ninja
pkgconfig
2019-10-30 11:56:03 +03:00
desktop-file-utils
2019-11-12 00:23:01 +03:00
vala
2020-01-09 17:19:10 +03:00
wrapGAppsHook
2019-11-01 13:30:25 +03:00
];
buildInputs = [
modemmanager
libhandy
2019-10-30 11:56:03 +03:00
evolution-data-server
2019-11-12 00:23:01 +03:00
folks
2019-10-30 11:56:03 +03:00
gom
2019-11-01 13:30:25 +03:00
gsound
gtk3
libhandy
libpeas
];
checkInputs = [
dbus
xvfb_run
];
mesonFlags = [
2019-11-12 00:23:01 +03:00
# docs fail to build
# https://source.puri.sm/Librem5/calls/issues/99
2019-11-01 13:30:25 +03: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";
2020-02-26 08:00:05 +03:00
homepage = "https://source.puri.sm/Librem5/calls";
2019-11-01 13:30:25 +03:00
license = licenses.gpl3Plus;
maintainers = with maintainers; [ craigem lheckemann ];
platforms = platforms.linux;
};
}