2021-05-10 18:45:40 +02:00
|
|
|
{ stdenv
|
|
|
|
, lib
|
|
|
|
, fetchFromGitLab
|
|
|
|
, autoreconfHook
|
|
|
|
, pkg-config
|
|
|
|
, wrapGAppsHook
|
|
|
|
, glib
|
|
|
|
, gtk3
|
|
|
|
, expat
|
|
|
|
, itstool
|
|
|
|
, gnome-doc-utils
|
|
|
|
, which
|
|
|
|
, at-spi2-core
|
|
|
|
, dbus
|
|
|
|
, libxslt
|
|
|
|
, libxml2
|
|
|
|
, speechSupport ? true
|
|
|
|
, speechd
|
2020-01-19 22:54:59 +01:00
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
|
|
|
pname = "dasher";
|
2021-05-10 18:45:40 +02:00
|
|
|
version = "unstable-2021-04-25";
|
2020-01-19 22:54:59 +01:00
|
|
|
|
2021-05-10 18:45:40 +02:00
|
|
|
src = fetchFromGitLab {
|
|
|
|
domain = "gitlab.gnome.org";
|
|
|
|
owner = "GNOME";
|
2020-01-19 22:54:59 +01:00
|
|
|
repo = "dasher";
|
2021-05-10 18:45:40 +02:00
|
|
|
rev = "90c753b87564fa3f42cb2d04e1eb6662dc8e0f8f";
|
|
|
|
sha256 = "sha256-aM05CV68pCRlhfIPyhuHWeRL+tDroB3fVsoX08OU8hY=";
|
2020-01-19 22:54:59 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
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 07:50:56 +01:00
|
|
|
pkg-config
|
2020-01-19 22:54:59 +01:00
|
|
|
# doc generation
|
|
|
|
gnome-doc-utils
|
|
|
|
which
|
2021-05-10 18:45:40 +02:00
|
|
|
libxslt
|
|
|
|
libxml2
|
2020-01-19 22:54:59 +01:00
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
glib
|
|
|
|
gtk3
|
|
|
|
expat
|
2021-05-10 18:45:40 +02:00
|
|
|
itstool
|
2020-01-19 22:54:59 +01:00
|
|
|
# at-spi2 needs dbus to be recognized by pkg-config
|
2021-05-10 18:45:40 +02:00
|
|
|
at-spi2-core
|
|
|
|
dbus
|
2020-01-19 22:54:59 +01:00
|
|
|
] ++ lib.optional speechSupport speechd;
|
|
|
|
|
2021-05-16 10:46:09 +02:00
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
2020-01-19 22:54:59 +01:00
|
|
|
meta = {
|
2021-05-10 18:45:40 +02:00
|
|
|
homepage = "https://www.inference.org.uk/dasher/";
|
2020-01-19 22:54:59 +01:00
|
|
|
description = "Information-efficient text-entry interface, driven by natural continuous pointing gestures";
|
2021-05-10 18:45:40 +02:00
|
|
|
license = lib.licenses.gpl2Only;
|
2020-01-19 22:54:59 +01:00
|
|
|
maintainers = [ lib.maintainers.Profpatsch ];
|
|
|
|
platforms = lib.platforms.all;
|
|
|
|
};
|
|
|
|
}
|