2020-01-19 21:54:59 +00:00
|
|
|
{ stdenv, lib, fetchFromGitHub
|
2021-01-19 06:50:56 +00:00
|
|
|
, autoreconfHook, pkg-config, wrapGAppsHook
|
2020-01-19 21:54:59 +00:00
|
|
|
, glib, gtk3, expat, gnome-doc-utils, which
|
|
|
|
, at-spi2-core, dbus
|
|
|
|
, libxslt, libxml2
|
|
|
|
, speechSupport ? true, speechd ? null
|
|
|
|
}:
|
|
|
|
|
|
|
|
assert speechSupport -> speechd != null;
|
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
|
|
|
pname = "dasher";
|
|
|
|
version = "2018-04-03";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "dasher-project";
|
|
|
|
repo = "dasher";
|
|
|
|
rev = "9ab12462e51d17a38c0ddc7f7ffe1cb5fe83b627";
|
|
|
|
sha256 = "1r9xn966nx3pv2bidd6i3pxmprvlw6insnsb38zabmac609h9d9s";
|
|
|
|
};
|
|
|
|
|
|
|
|
prePatch = ''
|
|
|
|
# tries to invoke git for something, probably fetching the ref
|
|
|
|
echo "true" > build-aux/mkversion
|
|
|
|
'';
|
|
|
|
|
|
|
|
configureFlags = lib.optional (!speechSupport) "--disable-speech";
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
autoreconfHook
|
|
|
|
wrapGAppsHook
|
2021-01-19 06:50:56 +00:00
|
|
|
pkg-config
|
2020-01-19 21:54:59 +00:00
|
|
|
# doc generation
|
|
|
|
gnome-doc-utils
|
|
|
|
which
|
|
|
|
libxslt libxml2
|
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
glib
|
|
|
|
gtk3
|
|
|
|
expat
|
|
|
|
# at-spi2 needs dbus to be recognized by pkg-config
|
|
|
|
at-spi2-core dbus
|
|
|
|
] ++ lib.optional speechSupport speechd;
|
|
|
|
|
|
|
|
meta = {
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "http://www.inference.org.uk/dasher/";
|
2020-01-19 21:54:59 +00:00
|
|
|
description = "Information-efficient text-entry interface, driven by natural continuous pointing gestures";
|
|
|
|
license = lib.licenses.gpl2;
|
|
|
|
maintainers = [ lib.maintainers.Profpatsch ];
|
|
|
|
platforms = lib.platforms.all;
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|