mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-25 16:33:15 +00:00
60 lines
1.1 KiB
Nix
60 lines
1.1 KiB
Nix
{
|
|
lib,
|
|
fetchFromGitHub,
|
|
gitUpdater,
|
|
gtk3,
|
|
libxkbcommon,
|
|
meson,
|
|
ninja,
|
|
pkg-config,
|
|
stdenv,
|
|
wayland,
|
|
wayland-protocols,
|
|
wayland-scanner,
|
|
}:
|
|
let
|
|
pname = "wl-kbptr";
|
|
version = "0.2.1";
|
|
in
|
|
stdenv.mkDerivation {
|
|
inherit pname version;
|
|
src = fetchFromGitHub {
|
|
owner = "moverest";
|
|
repo = "wl-kbptr";
|
|
rev = "refs/tags/v${version}";
|
|
hash = "sha256-bA4PbWJNM4qWDF5KfNEgeQ5Z/r/Aw3wL8YUMSnzUo0w=";
|
|
};
|
|
|
|
depsBuildBuild = [ pkg-config ];
|
|
|
|
nativeBuildInputs = [
|
|
meson
|
|
ninja
|
|
pkg-config
|
|
wayland-scanner
|
|
];
|
|
|
|
buildInputs = [
|
|
gtk3
|
|
libxkbcommon
|
|
wayland
|
|
wayland-protocols
|
|
];
|
|
|
|
strictDeps = true;
|
|
|
|
passthru = {
|
|
updateScript = gitUpdater { };
|
|
};
|
|
|
|
meta = {
|
|
homepage = "https://github.com/moverest/wl-kbptr";
|
|
description = "Control the mouse pointer with the keyboard on Wayland";
|
|
changelog = "https://github.com/moverest/wl-kbptr/releases/tag/v${version}";
|
|
license = lib.licenses.gpl3;
|
|
mainProgram = "wl-kbptr";
|
|
maintainers = [ lib.maintainers.luftmensch-luftmensch ];
|
|
inherit (wayland.meta) platforms;
|
|
};
|
|
}
|