2021-03-13 23:46:44 +01:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, fetchFromGitLab
|
|
|
|
, meson
|
|
|
|
, ninja
|
|
|
|
, pkg-config
|
2021-05-07 23:18:14 +02:00
|
|
|
, gnome
|
2021-03-13 23:46:44 +01:00
|
|
|
, glib
|
|
|
|
, gtk3
|
|
|
|
, wayland
|
|
|
|
, wayland-protocols
|
|
|
|
, libxml2
|
|
|
|
, libxkbcommon
|
|
|
|
, rustPlatform
|
|
|
|
, feedbackd
|
|
|
|
, wrapGAppsHook
|
2021-09-17 19:43:27 +02:00
|
|
|
, fetchpatch
|
2021-03-13 23:46:44 +01:00
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "squeekboard";
|
2021-07-09 13:12:17 +02:00
|
|
|
version = "1.14.0";
|
2021-03-13 23:46:44 +01:00
|
|
|
|
|
|
|
src = fetchFromGitLab {
|
|
|
|
domain = "source.puri.sm";
|
|
|
|
owner = "Librem5";
|
|
|
|
repo = pname;
|
2021-05-18 11:00:08 +02:00
|
|
|
rev = "v${version}";
|
2021-07-09 13:12:17 +02:00
|
|
|
sha256 = "1ayap40pgzcpmfydk5pbf3gwhh26m3cmbk6lyly4jihr9qw7dgb0";
|
2021-03-13 23:46:44 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
cargoDeps = rustPlatform.fetchCargoTarball {
|
|
|
|
inherit src;
|
|
|
|
cargoUpdateHook = ''
|
|
|
|
cat Cargo.toml.in Cargo.deps > Cargo.toml
|
|
|
|
'';
|
|
|
|
name = "${pname}-${version}";
|
2021-07-09 13:12:17 +02:00
|
|
|
sha256 = "0148ynzmapxfrlccikf20ikmi0ssbkn9fl5wi6nh6azflv50pzzn";
|
2021-03-13 23:46:44 +01:00
|
|
|
};
|
|
|
|
|
2021-09-17 19:43:27 +02:00
|
|
|
patches = [
|
|
|
|
# remove when updating from 1.14.0
|
|
|
|
(fetchpatch {
|
|
|
|
name = "fix-rust-1.54-build.patch";
|
|
|
|
url = "https://gitlab.gnome.org/World/Phosh/squeekboard/-/commit/9cd56185c59ace535a6af26384ef6beca4423816.patch";
|
|
|
|
sha256 = "sha256-8rWcfhQmGiwlc2lpkRvJ95XQp1Xg7St+0K85x8nQ0mk=";
|
|
|
|
})
|
|
|
|
];
|
|
|
|
|
2021-03-13 23:46:44 +01:00
|
|
|
nativeBuildInputs = [
|
|
|
|
meson
|
|
|
|
ninja
|
|
|
|
pkg-config
|
|
|
|
glib
|
|
|
|
wayland
|
|
|
|
wrapGAppsHook
|
|
|
|
] ++ (with rustPlatform; [
|
|
|
|
cargoSetupHook
|
|
|
|
rust.cargo
|
|
|
|
rust.rustc
|
|
|
|
]);
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
gtk3
|
2021-05-07 23:18:14 +02:00
|
|
|
gnome.gnome-desktop
|
2021-03-13 23:46:44 +01: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;
|
|
|
|
};
|
|
|
|
}
|