28 pythonEnv = python3.withPackages (ps: with ps; [ pygobject3 ]);
30 stdenv.mkDerivation rec {
31 name = "caribou-${version}";
34 url = "mirror://gnome/sources/caribou/${lib.versions.majorMinor version}/${name}.tar.xz";
35 hash = "sha256-nEPZ9L0w9P6n94DU6LFPdYkQfFLpy2vSAr0NHCBk3lU=";
39 # Fix crash in GNOME Flashback
40 # https://bugzilla.gnome.org/show_bug.cgi?id=791001
42 url = "https://bugzilla.gnome.org/attachment.cgi?id=364774";
43 hash = "sha256-bU+/PTfkMh0KAUNCDhYYJ2iq9JlWLtwztdO4/EohYZY=";
45 # Stop patching the generated GIR, fixes build with latest vala
47 url = "https://gitlab.gnome.org/GNOME/caribou/-/commit/c52ce71c49dc8d6109a58d16cc8d491d7bd1d781.patch";
48 hash = "sha256-jbF1Ygp8Q0ENN/5aEpROuK5zkufIfn6cGW8dncl7ET4=";
51 name = "fix-build-modern-vala.patch";
52 url = "https://gitlab.gnome.org/GNOME/caribou/-/commit/76fbd11575f918fc898cb0f5defe07f67c11ec38.patch";
53 hash = "sha256-XkyRYXWmlcHTx2q81WFUMXV273MKkG5DeTAhdOY/wmM=";
56 name = "CVE-2021-3567.patch";
57 url = "https://gitlab.gnome.org/GNOME/caribou/-/commit/d41c8e44b12222a290eaca16703406b113a630c6.patch";
58 hash = "sha256-yIsEqSflpAdQPAB6eNr6fctxzyACu7N1HVfMIdCQou0=";
79 python3.pkgs.pygobject3
84 propagatedBuildInputs = [
91 substituteInPlace libcaribou/Makefile.am --replace "--shared-library=libcaribou.so.0" "--shared-library=$out/lib/libcaribou.so.0"
95 updateScript = gnome.updateScript { packageName = "caribou"; };
99 description = "Input assistive technology intended for switch and pointer users";
100 mainProgram = "caribou-preferences";
101 homepage = "https://gitlab.gnome.org/Archive/caribou";
102 license = licenses.lgpl21;
104 platforms = platforms.linux;