2021-01-21 16:50:31 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
2019-11-01 10:30:25 +00:00
|
|
|
, fetchFromGitLab
|
|
|
|
, meson
|
|
|
|
, ninja
|
2021-01-17 02:09:27 +00:00
|
|
|
, 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
|
2021-03-14 04:38:21 +00:00
|
|
|
, glib
|
2019-11-11 21:23:01 +00:00
|
|
|
, folks
|
2019-10-30 08:56:03 +00:00
|
|
|
, desktop-file-utils
|
2021-03-14 04:37:28 +00:00
|
|
|
, appstream-glib
|
2019-11-01 10:30:25 +00:00
|
|
|
, libpeas
|
2021-04-28 03:03:44 +01:00
|
|
|
, libgdata
|
2019-11-01 10:30:25 +00:00
|
|
|
, dbus
|
2019-11-11 21:23:01 +00:00
|
|
|
, vala
|
2020-01-09 14:19:10 +00:00
|
|
|
, wrapGAppsHook
|
2021-05-08 14:45:03 +01:00
|
|
|
, xvfb-run
|
2021-03-14 04:38:21 +00:00
|
|
|
, gtk-doc
|
|
|
|
, docbook-xsl-nons
|
|
|
|
, docbook_xml_dtd_43
|
|
|
|
, gobject-introspection
|
2019-11-01 10:30:25 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-11-11 21:23:01 +00:00
|
|
|
pname = "calls";
|
2021-03-14 04:37:28 +00:00
|
|
|
version = "0.3.1";
|
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-03-14 04:37:28 +00:00
|
|
|
sha256 = "0igap5ynq269xqaky6fqhdg2dpsvxa008z953ywa4s5b5g5dk3dd";
|
2019-11-01 10:30:25 +00:00
|
|
|
};
|
|
|
|
|
2021-03-14 04:38:21 +00:00
|
|
|
outputs = [ "out" "devdoc" ];
|
|
|
|
|
2019-11-01 10:30:25 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
meson
|
|
|
|
ninja
|
2021-01-17 02:09:27 +00:00
|
|
|
pkg-config
|
2019-10-30 08:56:03 +00:00
|
|
|
desktop-file-utils
|
2021-03-14 04:37:28 +00:00
|
|
|
appstream-glib
|
2019-11-11 21:23:01 +00:00
|
|
|
vala
|
2020-01-09 14:19:10 +00:00
|
|
|
wrapGAppsHook
|
2021-03-14 04:38:21 +00:00
|
|
|
gtk-doc
|
|
|
|
docbook-xsl-nons
|
|
|
|
docbook_xml_dtd_43
|
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
|
2021-04-28 03:03:44 +01:00
|
|
|
libgdata # required by some dependency transitively
|
2019-11-01 10:30:25 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
checkInputs = [
|
|
|
|
dbus
|
2021-05-08 14:45:03 +01:00
|
|
|
xvfb-run
|
2019-11-01 10:30:25 +00:00
|
|
|
];
|
|
|
|
|
2021-03-14 04:38:21 +00:00
|
|
|
NIX_CFLAGS_COMPILE = "-I${glib.dev}/include/gio-unix-2.0";
|
|
|
|
|
2019-11-01 10:30:25 +00:00
|
|
|
mesonFlags = [
|
2021-03-14 04:38:21 +00:00
|
|
|
"-Dgtk_doc=true"
|
2019-11-01 10:30:25 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
doCheck = true;
|
|
|
|
|
|
|
|
checkPhase = ''
|
|
|
|
runHook preCheck
|
|
|
|
NO_AT_BRIDGE=1 \
|
2021-03-14 04:37:28 +00:00
|
|
|
XDG_DATA_DIRS=${folks}/share/gsettings-schemas/${folks.name} \
|
2019-11-01 10:30:25 +00:00
|
|
|
xvfb-run -s '-screen 0 800x600x24' dbus-run-session \
|
|
|
|
--config-file=${dbus.daemon}/share/dbus-1/session.conf \
|
|
|
|
meson test --print-errorlogs
|
|
|
|
runHook postCheck
|
|
|
|
'';
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
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;
|
|
|
|
};
|
|
|
|
}
|