Merge pull request #245765 from figsoda/kbt

kbt: 1.0.0 -> 1.1.0
This commit is contained in:
Pol Dellaiera 2023-07-27 22:28:54 +02:00 committed by GitHub
commit 829baf7a71
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,20 +1,34 @@
{ lib
, rustPlatform
, fetchFromGitHub
, stdenv
, pkg-config
, darwin
, xorg
}:
rustPlatform.buildRustPackage rec {
pname = "kbt";
version = "1.0.0";
version = "1.1.0";
src = fetchFromGitHub {
owner = "bloznelis";
repo = "kbt";
rev = version;
hash = "sha256-gZUZB7cbaYlDs3PfRhkRlyJ6FBqtUAANL/K8Q/Dk8Zc=";
hash = "sha256-dC/o5VzdhoggEgY2LvdapT4CuSdz2iI+zbv3RZD/8XU=";
};
cargoHash = "sha256-BcUxrZKJEgYgGQqgi9l6xcmwyTRNr9C2WWOgaFB5XSw=";
cargoHash = "sha256-UVTUcc8OeGdCRGFt9FV1rQuOsVWmh2KEDpu1jSC0XHM=";
nativeBuildInputs = lib.optionals stdenv.isLinux [
pkg-config
];
buildInputs = lib.optionals stdenv.isDarwin [
darwin.apple_sdk.frameworks.AppKit
] ++ lib.optionals stdenv.isLinux [
xorg.libX11
];
meta = with lib; {
description = "Keyboard tester in terminal";