2021-03-19 17:17:44 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, fetchFromGitLab
|
|
|
|
, meson
|
|
|
|
, ninja
|
|
|
|
, pkg-config
|
2021-05-20 23:08:51 +00:00
|
|
|
, gnome
|
2021-03-19 17:17:44 +00:00
|
|
|
, glib
|
|
|
|
, gtk3
|
|
|
|
, wayland
|
|
|
|
, wayland-protocols
|
|
|
|
, libxml2
|
|
|
|
, libxkbcommon
|
|
|
|
, rustPlatform
|
|
|
|
, feedbackd
|
|
|
|
, wrapGAppsHook
|
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "squeekboard";
|
2021-05-20 23:08:51 +00:00
|
|
|
version = "1.13.0";
|
2021-03-19 17:17:44 +00:00
|
|
|
|
|
|
|
src = fetchFromGitLab {
|
|
|
|
domain = "source.puri.sm";
|
|
|
|
owner = "Librem5";
|
|
|
|
repo = pname;
|
2021-05-20 23:08:51 +00:00
|
|
|
rev = "v${version}";
|
|
|
|
sha256 = "0xyd6ickbaqvrr8a7ak6j1ziqjk05jlnganjrdv43p74nnjyqr8y";
|
2021-03-19 17:17:44 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
cargoDeps = rustPlatform.fetchCargoTarball {
|
|
|
|
inherit src;
|
|
|
|
cargoUpdateHook = ''
|
|
|
|
cat Cargo.toml.in Cargo.deps > Cargo.toml
|
|
|
|
'';
|
|
|
|
name = "${pname}-${version}";
|
2021-05-20 23:08:51 +00:00
|
|
|
sha256 = "096skk7vmr93axcf0qj7kyr8hm1faj0nkmd349g8mnzwd68a9npz";
|
2021-03-19 17:17:44 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
meson
|
|
|
|
ninja
|
|
|
|
pkg-config
|
|
|
|
glib
|
|
|
|
wayland
|
|
|
|
wrapGAppsHook
|
|
|
|
] ++ (with rustPlatform; [
|
|
|
|
cargoSetupHook
|
|
|
|
rust.cargo
|
|
|
|
rust.rustc
|
|
|
|
]);
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
gtk3
|
2021-05-20 23:08:51 +00:00
|
|
|
gnome.gnome-desktop
|
2021-03-19 17:17: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;
|
|
|
|
};
|
|
|
|
}
|