nixpkgs/pkgs/applications/accessibility/dasher/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

72 lines
1.4 KiB
Nix
Raw Normal View History

{ 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";
version = "unstable-2021-04-25";
2020-01-19 21:54:59 +00:00
src = fetchFromGitLab {
domain = "gitlab.gnome.org";
owner = "GNOME";
2020-01-19 21:54:59 +00:00
repo = "dasher";
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
pkg-config
2020-01-19 21:54:59 +00:00
# doc generation
gnome-doc-utils
which
libxslt
libxml2
2020-01-19 21:54:59 +00:00
];
buildInputs = [
glib
gtk3
expat
itstool
2020-01-19 21:54:59 +00:00
# at-spi2 needs dbus to be recognized by pkg-config
at-spi2-core
dbus
2020-01-19 21:54:59 +00:00
] ++ lib.optional speechSupport speechd;
enableParallelBuilding = true;
2020-01-19 21:54:59 +00:00
meta = {
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";
license = lib.licenses.gpl2Only;
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
};
}