bcb2f287e1
GitOrigin-RevId: d603719ec6e294f034936c0d0dc06f689d91b6c3
51 lines
902 B
Nix
51 lines
902 B
Nix
{ stdenv
|
|
, lib
|
|
, fetchFromGitHub
|
|
, wayland-scanner
|
|
, wayland
|
|
, pango
|
|
, glib
|
|
, harfbuzz
|
|
, cairo
|
|
, pkg-config
|
|
, libxkbcommon
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "wvkbd";
|
|
version = "0.15";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "jjsullivan5196";
|
|
repo = pname;
|
|
rev = "v${version}";
|
|
sha256 = "sha256-9gDxMH1hghqjcXlbda7CHjDdjcjApjjie7caihKIg9M=";
|
|
};
|
|
|
|
postPatch = ''
|
|
substituteInPlace Makefile \
|
|
--replace "pkg-config" "$PKG_CONFIG"
|
|
'';
|
|
|
|
nativeBuildInputs = [
|
|
pkg-config
|
|
wayland-scanner
|
|
];
|
|
buildInputs = [
|
|
cairo
|
|
glib
|
|
harfbuzz
|
|
libxkbcommon
|
|
pango
|
|
wayland
|
|
];
|
|
installFlags = [ "PREFIX=$(out)" ];
|
|
|
|
meta = with lib; {
|
|
homepage = "https://github.com/jjsullivan5196/wvkbd";
|
|
description = "On-screen keyboard for wlroots";
|
|
platforms = platforms.linux;
|
|
license = licenses.gpl3Plus;
|
|
mainProgram = "wvkbd-mobintl";
|
|
};
|
|
}
|