2021-05-20 23:08:51 +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-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
|
|
|
pname = "dasher";
|
2021-05-20 23:08:51 +00:00
|
|
|
version = "unstable-2021-04-25";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-05-20 23:08:51 +00:00
|
|
|
src = fetchFromGitLab {
|
|
|
|
domain = "gitlab.gnome.org";
|
|
|
|
owner = "GNOME";
|
2020-04-24 23:36:52 +00:00
|
|
|
repo = "dasher";
|
2021-05-20 23:08:51 +00:00
|
|
|
rev = "90c753b87564fa3f42cb2d04e1eb6662dc8e0f8f";
|
|
|
|
sha256 = "sha256-aM05CV68pCRlhfIPyhuHWeRL+tDroB3fVsoX08OU8hY=";
|
2020-04-24 23:36:52 +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-02-05 17:12:51 +00:00
|
|
|
pkg-config
|
2020-04-24 23:36:52 +00:00
|
|
|
# doc generation
|
|
|
|
gnome-doc-utils
|
|
|
|
which
|
2021-05-20 23:08:51 +00:00
|
|
|
libxslt
|
|
|
|
libxml2
|
2020-04-24 23:36:52 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
glib
|
|
|
|
gtk3
|
|
|
|
expat
|
2021-05-20 23:08:51 +00:00
|
|
|
itstool
|
2020-04-24 23:36:52 +00:00
|
|
|
# at-spi2 needs dbus to be recognized by pkg-config
|
2021-05-20 23:08:51 +00:00
|
|
|
at-spi2-core
|
|
|
|
dbus
|
2020-04-24 23:36:52 +00:00
|
|
|
] ++ lib.optional speechSupport speechd;
|
|
|
|
|
2021-05-20 23:08:51 +00:00
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
meta = {
|
2021-05-20 23:08:51 +00:00
|
|
|
homepage = "https://www.inference.org.uk/dasher/";
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "Information-efficient text-entry interface, driven by natural continuous pointing gestures";
|
2021-05-20 23:08:51 +00:00
|
|
|
license = lib.licenses.gpl2Only;
|
2023-07-15 17:15:38 +00:00
|
|
|
maintainers = [ ];
|
2020-04-24 23:36:52 +00:00
|
|
|
platforms = lib.platforms.all;
|
|
|
|
};
|
|
|
|
}
|