diff options
author | Profpatsch <mail@profpatsch.de> | 2020-01-19 22:54:59 +0100 |
---|---|---|
committer | Profpatsch <mail@profpatsch.de> | 2020-01-23 19:31:05 +0100 |
commit | 65862d21402735da0a39ec1d0990e55fb8c8baf4 (patch) | |
tree | 561a48b6c66a1e62c64ab561e23706f50b5abd41 /pkgs/applications | |
parent | cb0843898b43a5640f37870996c22f50a46403da (diff) | |
download | nixpkgs-65862d21402735da0a39ec1d0990e55fb8c8baf4.tar nixpkgs-65862d21402735da0a39ec1d0990e55fb8c8baf4.tar.gz nixpkgs-65862d21402735da0a39ec1d0990e55fb8c8baf4.tar.bz2 nixpkgs-65862d21402735da0a39ec1d0990e55fb8c8baf4.tar.lz nixpkgs-65862d21402735da0a39ec1d0990e55fb8c8baf4.tar.xz nixpkgs-65862d21402735da0a39ec1d0990e55fb8c8baf4.tar.zst nixpkgs-65862d21402735da0a39ec1d0990e55fb8c8baf4.zip |
dasher: init at 2018-04-03
Diffstat (limited to 'pkgs/applications')
-rw-r--r-- | pkgs/applications/accessibility/dasher/default.nix | 55 |
1 files changed, 55 insertions, 0 deletions
diff --git a/pkgs/applications/accessibility/dasher/default.nix b/pkgs/applications/accessibility/dasher/default.nix new file mode 100644 index 00000000000..9e8084e7a87 --- /dev/null +++ b/pkgs/applications/accessibility/dasher/default.nix @@ -0,0 +1,55 @@ +{ stdenv, lib, fetchFromGitHub +, autoreconfHook, pkgconfig, wrapGAppsHook +, 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 + pkgconfig + # 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 = { + homepage = http://www.inference.org.uk/dasher/; + description = "Information-efficient text-entry interface, driven by natural continuous pointing gestures"; + license = lib.licenses.gpl2; + maintainers = [ lib.maintainers.Profpatsch ]; + platforms = lib.platforms.all; + }; + +} |