summary refs log tree commit diff
path: root/pkgs/applications/accessibility
diff options
context:
space:
mode:
authorSandro <sandro.jaeckel@gmail.com>2021-03-16 14:07:02 +0100
committerGitHub <noreply@github.com>2021-03-16 14:07:02 +0100
commitbb46a6eb7c6a0faf08263e0564c51910bfbd83c7 (patch)
treefc000c2bb3b8c47c1abc1d7f99bc35c92a200bf2 /pkgs/applications/accessibility
parent77297a7519b3d968f32abdd5a71ff03b9151131b (diff)
parentc320d0a3ca44ac58b42cd56699104a2c7ba98137 (diff)
downloadnixpkgs-bb46a6eb7c6a0faf08263e0564c51910bfbd83c7.tar
nixpkgs-bb46a6eb7c6a0faf08263e0564c51910bfbd83c7.tar.gz
nixpkgs-bb46a6eb7c6a0faf08263e0564c51910bfbd83c7.tar.bz2
nixpkgs-bb46a6eb7c6a0faf08263e0564c51910bfbd83c7.tar.lz
nixpkgs-bb46a6eb7c6a0faf08263e0564c51910bfbd83c7.tar.xz
nixpkgs-bb46a6eb7c6a0faf08263e0564c51910bfbd83c7.tar.zst
nixpkgs-bb46a6eb7c6a0faf08263e0564c51910bfbd83c7.zip
Merge pull request #116253 from Artturin/add-squeekboard
squeekboard: init at unstable-2021-03-09
Diffstat (limited to 'pkgs/applications/accessibility')
-rw-r--r--pkgs/applications/accessibility/squeekboard/default.nix70
1 files changed, 70 insertions, 0 deletions
diff --git a/pkgs/applications/accessibility/squeekboard/default.nix b/pkgs/applications/accessibility/squeekboard/default.nix
new file mode 100644
index 00000000000..08042a7701b
--- /dev/null
+++ b/pkgs/applications/accessibility/squeekboard/default.nix
@@ -0,0 +1,70 @@
+{ lib
+, stdenv
+, fetchFromGitLab
+, meson
+, ninja
+, pkg-config
+, gnome3
+, glib
+, gtk3
+, wayland
+, wayland-protocols
+, libxml2
+, libxkbcommon
+, rustPlatform
+, feedbackd
+, wrapGAppsHook
+}:
+
+stdenv.mkDerivation rec {
+  pname = "squeekboard";
+  version = "unstable-2021-03-09";
+
+  src = fetchFromGitLab {
+    domain = "source.puri.sm";
+    owner = "Librem5";
+    repo = pname;
+    rev = "bffd212e102bf71a94c599aac0359a8d30d19008";
+    sha256 = "1j10zhyb8wyrcbryfj6f3drn9b0l9x0l7hnhy2imnjbfbnwwm4w7";
+  };
+
+  cargoDeps = rustPlatform.fetchCargoTarball {
+    inherit src;
+    cargoUpdateHook = ''
+      cat Cargo.toml.in Cargo.deps > Cargo.toml
+    '';
+    name = "${pname}-${version}";
+    sha256 = "1qaqiaxqc4x2x5bd31na4c49vbjwrmz5clmgli7733dv55rxxias";
+  };
+
+  nativeBuildInputs = [
+    meson
+    ninja
+    pkg-config
+    glib
+    wayland
+    wrapGAppsHook
+  ] ++ (with rustPlatform; [
+    cargoSetupHook
+    rust.cargo
+    rust.rustc
+  ]);
+
+  buildInputs = [
+    gtk3
+    gnome3.gnome-desktop
+    wayland
+    wayland-protocols
+    libxml2
+    libxkbcommon
+    feedbackd
+  ];
+
+  meta = with lib; {
+    description = "A virtual keyboard supporting Wayland";
+    homepage = "https://source.puri.sm/Librem5/squeekboard";
+    license = licenses.gpl3Plus;
+    maintainers = with maintainers; [ artturin ];
+    platforms = platforms.linux;
+  };
+}