depot/third_party/nixpkgs/pkgs/tools/wayland/wlr-which-key/default.nix
Default email bcb2f287e1 Project import generated by Copybara.
GitOrigin-RevId: d603719ec6e294f034936c0d0dc06f689d91b6c3
2024-06-20 20:27:18 +05:30

43 lines
850 B
Nix

{ lib
, rustPlatform
, fetchFromGitHub
, pkg-config
, cairo
, glib
, libxkbcommon
, pango
}:
rustPlatform.buildRustPackage rec {
pname = "wlr-which-key";
version = "0.1.3";
src = fetchFromGitHub {
owner = "MaxVerevkin";
repo = "wlr-which-key";
rev = "v${version}";
hash = "sha256-DedmLWjK0a6AoGaKGRKfsmK/NIAFV2EYY8MgfiEj4+o=";
};
cargoHash = "sha256-ZGaQX5raMSCwt88xhctwCxGWa9HZtcNqTKM35Z8QvAc=";
nativeBuildInputs = [
pkg-config
];
buildInputs = [
cairo
glib
libxkbcommon
pango
];
meta = with lib; {
description = "Keymap manager for wlroots-based compositors";
homepage = "https://github.com/MaxVerevkin/wlr-which-key";
license = licenses.gpl3Only;
maintainers = with maintainers; [ xlambein ];
platforms = platforms.linux;
mainProgram = "wlr-which-key";
};
}