2021-03-13 22:46:44 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, fetchFromGitLab
|
|
|
|
, meson
|
|
|
|
, ninja
|
|
|
|
, pkg-config
|
2021-05-07 21:18:14 +00:00
|
|
|
, gnome
|
2021-03-13 22:46:44 +00:00
|
|
|
, glib
|
|
|
|
, gtk3
|
|
|
|
, wayland
|
|
|
|
, wayland-protocols
|
|
|
|
, libxml2
|
|
|
|
, libxkbcommon
|
|
|
|
, rustPlatform
|
|
|
|
, feedbackd
|
|
|
|
, wrapGAppsHook
|
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "squeekboard";
|
2021-07-09 11:12:17 +00:00
|
|
|
version = "1.14.0";
|
2021-03-13 22:46:44 +00:00
|
|
|
|
|
|
|
src = fetchFromGitLab {
|
|
|
|
domain = "source.puri.sm";
|
|
|
|
owner = "Librem5";
|
|
|
|
repo = pname;
|
2021-05-18 09:00:08 +00:00
|
|
|
rev = "v${version}";
|
2021-07-09 11:12:17 +00:00
|
|
|
sha256 = "1ayap40pgzcpmfydk5pbf3gwhh26m3cmbk6lyly4jihr9qw7dgb0";
|
2021-03-13 22:46:44 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
cargoDeps = rustPlatform.fetchCargoTarball {
|
|
|
|
inherit src;
|
|
|
|
cargoUpdateHook = ''
|
|
|
|
cat Cargo.toml.in Cargo.deps > Cargo.toml
|
|
|
|
'';
|
|
|
|
name = "${pname}-${version}";
|
2021-07-09 11:12:17 +00:00
|
|
|
sha256 = "0148ynzmapxfrlccikf20ikmi0ssbkn9fl5wi6nh6azflv50pzzn";
|
2021-03-13 22:46:44 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
meson
|
|
|
|
ninja
|
|
|
|
pkg-config
|
|
|
|
glib
|
|
|
|
wayland
|
|
|
|
wrapGAppsHook
|
|
|
|
] ++ (with rustPlatform; [
|
|
|
|
cargoSetupHook
|
|
|
|
rust.cargo
|
|
|
|
rust.rustc
|
|
|
|
]);
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
gtk3
|
2021-05-07 21:18:14 +00:00
|
|
|
gnome.gnome-desktop
|
2021-03-13 22:46:44 +00:00
|
|
|
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;
|
|
|
|
};
|
|
|
|
}
|