Skip to content
Snippets Groups Projects
Commit cbda9bf2 authored by Jens Nolte's avatar Jens Nolte
Browse files

Update squeekboard to 1.12.0

parent 63afcbd4
No related branches found
No related tags found
No related merge requests found
...@@ -12,6 +12,8 @@ rec { ...@@ -12,6 +12,8 @@ rec {
greetd = self.callPackage ./greetd {}; greetd = self.callPackage ./greetd {};
gtkgreet = self.callPackage ./gtkgreet {}; gtkgreet = self.callPackage ./gtkgreet {};
squeekboard = self.callPackage ./squeekboard {};
mpv-queezle = self.mpv-with-scripts.override { mpv-queezle = self.mpv-with-scripts.override {
scripts = [ self.mpvScripts.mpris ]; scripts = [ self.mpvScripts.mpris ];
}; };
......
{ lib
, stdenv
, pkgs
, fetchFromGitLab
, cmake
, meson
, ninja
, pkg-config
, gnome3
, glib
, gtk3
, wayland
, wayland-protocols
, rustc
, cargo
, libxml2
, libxkbcommon
, rustPlatform
, makeWrapper
, substituteAll
, fetchpatch
, feedbackd
}:
rustPlatform.buildRustPackage rec {
pname = "squeekboard";
version = "1.12.0";
src = fetchFromGitLab {
domain = "source.puri.sm";
owner = "Librem5";
repo = pname;
rev = "v${version}";
sha256 = "sha256-1iQqu2pnEsSVqPYTpeC8r/BDHDTlQGYiU5xwiLlzQXQ=";
};
nativeBuildInputs = [
meson
ninja
pkg-config
rustc
cargo
glib # for glib-compile-resources
wayland
makeWrapper
];
buildInputs = [
gtk3 # for gio-2.0
gnome3.gnome-desktop
wayland
wayland-protocols
libxml2
libxkbcommon
feedbackd
];
cargoSha256 = "sha256-XALMnV3XShHoV3C/B/pVhlYiEiw2nfR4r6eG1KhZLDo=";
cargoUpdateHook = ''
cat Cargo.toml.in Cargo.deps > Cargo.toml
'';
# Don't use buildRustPackage phases, only use it for rust deps setup
configurePhase = null;
buildPhase = null;
checkPhase = null;
installPhase = null;
meta = with lib; {
description = "Squeekboard is a virtual keyboard supporting Wayland";
homepage = "https://source.puri.sm/Librem5/squeekboard";
license = licenses.gpl3Plus;
maintainers = with maintainers; [ masipcat ];
platforms = platforms.linux;
};
}
{ lib { lib
, stdenv
, pkgs
, fetchFromGitLab , fetchFromGitLab
, cmake
, meson , meson
, ninja , ninja
, pkg-config , pkg-config
...@@ -17,31 +14,21 @@ ...@@ -17,31 +14,21 @@
, libxkbcommon , libxkbcommon
, rustPlatform , rustPlatform
, makeWrapper , makeWrapper
, substituteAll , feedbackd
, fetchpatch
}: }:
rustPlatform.buildRustPackage rec { rustPlatform.buildRustPackage rec {
pname = "squeekboard"; pname = "squeekboard";
version = "1.9.2"; version = "1.12.0";
src = fetchFromGitLab { src = fetchFromGitLab {
domain = "source.puri.sm"; domain = "source.puri.sm";
owner = "Librem5"; owner = "Librem5";
repo = pname; repo = pname;
rev = "v${version}"; rev = "v${version}";
sha256 = "02jjc9qxzb4iw3vypqdaxzs5mc66zkfmij1yrv72h99acg5s3ncz"; sha256 = "sha256-1iQqu2pnEsSVqPYTpeC8r/BDHDTlQGYiU5xwiLlzQXQ=";
}; };
patches = [
# Add missing dependency 'gio-unix-2.0' to meson.build.
# https://source.puri.sm/Librem5/squeekboard/-/merge_requests/356
(fetchpatch {
url = "https://source.puri.sm/Librem5/squeekboard/-/merge_requests/356.patch";
sha256 = "1xi7h2nsrlf7szlj41kj6x1503af9svk5yj19l0q32ln3c40kgfs";
})
];
nativeBuildInputs = [ nativeBuildInputs = [
meson meson
ninja ninja
...@@ -60,9 +47,15 @@ rustPlatform.buildRustPackage rec { ...@@ -60,9 +47,15 @@ rustPlatform.buildRustPackage rec {
wayland-protocols wayland-protocols
libxml2 libxml2
libxkbcommon libxkbcommon
feedbackd
]; ];
cargoSha256 = "00gzw703w16i81yna4winj7gi4w7a1p986ggnx48jvyi0c14mxx0"; cargoSha256 = "sha256-XALMnV3XShHoV3C/B/pVhlYiEiw2nfR4r6eG1KhZLDo=";
cargoDepsHook = ''
substituteInPlace source/Cargo.toml.in --subst-var-by path /build/source
cat source/Cargo.toml.in source/Cargo.deps > source/Cargo.toml
'';
# Don't use buildRustPackage phases, only use it for rust deps setup # Don't use buildRustPackage phases, only use it for rust deps setup
configurePhase = null; configurePhase = null;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment