2021-03-13 22:46:44 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, fetchFromGitLab
|
|
|
|
, meson
|
|
|
|
, ninja
|
|
|
|
, pkg-config
|
2021-05-07 22:18:14 +01:00
|
|
|
, gnome
|
2021-03-13 22:46:44 +00:00
|
|
|
, glib
|
|
|
|
, gtk3
|
|
|
|
, wayland
|
|
|
|
, wayland-protocols
|
|
|
|
, libxml2
|
|
|
|
, libxkbcommon
|
|
|
|
, rustPlatform
|
|
|
|
, feedbackd
|
|
|
|
, wrapGAppsHook
|
2021-09-17 18:43:27 +01:00
|
|
|
, fetchpatch
|
2021-03-13 22:46:44 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "squeekboard";
|
2022-01-07 15:02:55 +00:00
|
|
|
version = "1.16.0";
|
2021-03-13 22:46:44 +00:00
|
|
|
|
|
|
|
src = fetchFromGitLab {
|
2022-01-07 15:02:55 +00:00
|
|
|
domain = "gitlab.gnome.org";
|
|
|
|
group = "World";
|
|
|
|
owner = "Phosh";
|
2021-03-13 22:46:44 +00:00
|
|
|
repo = pname;
|
2021-05-18 10:00:08 +01:00
|
|
|
rev = "v${version}";
|
2022-01-07 15:02:55 +00:00
|
|
|
sha256 = "sha256-51Grkn6NSR6azTRuq1vdbDg7d3HuQQ+ZJCsM2mSrSHk=";
|
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}";
|
2022-01-07 15:02:55 +00:00
|
|
|
sha256 = "sha256-vQaiEENxaQxBGYP1br03wSkU7OGOYkJvMBUAOeb3jGk=";
|
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 22:18:14 +01: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;
|
|
|
|
};
|
|
|
|
}
|