mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-26 07:34:11 +00:00
52 lines
914 B
Nix
52 lines
914 B
Nix
{ stdenv
|
|
, lib
|
|
, fetchFromGitHub
|
|
, wayland-scanner
|
|
, wayland
|
|
, pango
|
|
, glib
|
|
, harfbuzz
|
|
, cairo
|
|
, pkg-config
|
|
, libxkbcommon
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "wvkbd";
|
|
version = "0.14.1";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "jjsullivan5196";
|
|
repo = pname;
|
|
rev = "v${version}";
|
|
sha256 = "sha256-a1VOSLpvSKiEkR73V/Q3Es9irueDihMKcQvO9alPCqo=";
|
|
};
|
|
|
|
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";
|
|
maintainers = [ maintainers.elohmeier ];
|
|
platforms = platforms.linux;
|
|
license = licenses.gpl3Plus;
|
|
};
|
|
}
|