2021-05-10 16:45:40 +00: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 21:54:59 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
|
|
|
pname = "dasher";
|
2021-05-10 16:45:40 +00:00
|
|
|
version = "unstable-2021-04-25";
|
2020-01-19 21:54:59 +00:00
|
|
|
|
2021-05-10 16:45:40 +00:00
|
|
|
src = fetchFromGitLab {
|
|
|
|
domain = "gitlab.gnome.org";
|
|
|
|
owner = "GNOME";
|
2020-01-19 21:54:59 +00:00
|
|
|
repo = "dasher";
|
2021-05-10 16:45:40 +00:00
|
|
|
rev = "90c753b87564fa3f42cb2d04e1eb6662dc8e0f8f";
|
|
|
|
sha256 = "sha256-aM05CV68pCRlhfIPyhuHWeRL+tDroB3fVsoX08OU8hY=";
|
2020-01-19 21:54:59 +00: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 06:50:56 +00:00
|
|
|
pkg-config
|
2020-01-19 21:54:59 +00:00
|
|
|
# doc generation
|
|
|
|
gnome-doc-utils
|
|
|
|
which
|
2021-05-10 16:45:40 +00:00
|
|
|
libxslt
|
|
|
|
libxml2
|
2020-01-19 21:54:59 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
glib
|
|
|
|
gtk3
|
|
|
|
expat
|
2021-05-10 16:45:40 +00:00
|
|
|
itstool
|
2020-01-19 21:54:59 +00:00
|
|
|
# at-spi2 needs dbus to be recognized by pkg-config
|
2021-05-10 16:45:40 +00:00
|
|
|
at-spi2-core
|
|
|
|
dbus
|
2020-01-19 21:54:59 +00:00
|
|
|
] ++ lib.optional speechSupport speechd;
|
|
|
|
|
2021-05-16 08:46:09 +00:00
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
2020-01-19 21:54:59 +00:00
|
|
|
meta = {
|
2021-05-10 16:45:40 +00:00
|
|
|
homepage = "https://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";
|
2021-05-10 16:45:40 +00:00
|
|
|
license = lib.licenses.gpl2Only;
|
2023-07-07 10:52:12 +00:00
|
|
|
maintainers = [ ];
|
2020-01-19 21:54:59 +00:00
|
|
|
platforms = lib.platforms.all;
|
2023-11-27 01:17:53 +00:00
|
|
|
mainProgram = "dasher";
|
2020-01-19 21:54:59 +00:00
|
|
|
};
|
|
|
|
}
|