nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at devShellTools-shell 39 lines 837 B view raw
1{ 2 lib, 3 fetchFromGitHub, 4 rustPlatform, 5 dbus, 6 pkg-config, 7 openssl, 8 libevdev, 9}: 10 11rustPlatform.buildRustPackage rec { 12 pname = "tp-auto-kbbl"; 13 version = "0.1.5"; 14 15 src = fetchFromGitHub { 16 owner = "saibotd"; 17 repo = "tp-auto-kbbl"; 18 rev = version; 19 hash = "sha256-fhBCsOjaQH2tRsBjMGiDmZSIkAgEVxxywVp8/0uAaTU="; 20 }; 21 22 cargoHash = "sha256-Ptc4m+99YknHY28DR5WHt/JG9tgUOcbz/TezUkezmS8="; 23 24 nativeBuildInputs = [ pkg-config ]; 25 buildInputs = [ 26 dbus 27 libevdev 28 openssl 29 ]; 30 31 meta = with lib; { 32 description = "Auto toggle keyboard back-lighting on Thinkpads (and maybe other laptops) for Linux"; 33 homepage = "https://github.com/saibotd/tp-auto-kbbl"; 34 license = licenses.mit; 35 maintainers = with maintainers; [ ]; 36 platforms = platforms.linux; 37 mainProgram = "tp-auto-kbbl"; 38 }; 39}