feat: add asus-numpad package and module
All checks were successful
Build packages / Build derivations (push) Successful in 2m29s
All checks were successful
Build packages / Build derivations (push) Successful in 2m29s
This commit is contained in:
parent
0e114fcc9a
commit
ac2d57b85c
4 changed files with 91 additions and 0 deletions
|
@ -2,4 +2,5 @@ final: prev: {
|
|||
enigma = prev.callPackage ./enigma.nix {};
|
||||
vineflower = prev.callPackage ./vineflower.nix {};
|
||||
koi = prev.kdePackages.callPackage ./koi.nix {};
|
||||
asus-numpad = prev.callPackage ./asus-numpad.nix {};
|
||||
}
|
||||
|
|
36
pkgs/asus-numpad.nix
Normal file
36
pkgs/asus-numpad.nix
Normal file
|
@ -0,0 +1,36 @@
|
|||
{
|
||||
lib,
|
||||
fetchFromGitHub,
|
||||
rustPlatform,
|
||||
pkg-config,
|
||||
libevdev,
|
||||
}:
|
||||
rustPlatform.buildRustPackage {
|
||||
pname = "asus-numpad";
|
||||
version = "unstable-2024-09-15";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "iamkroot";
|
||||
repo = "asus-numpad";
|
||||
rev = "e78875c1f4c58e06199737f4ef5c6f48ac7cb21b";
|
||||
hash = "sha256-5FqM80zUDucDA0VocJ7ODmKAC6gcd9QwBOHVVKa6iMI=";
|
||||
};
|
||||
|
||||
cargoHash = "sha256-O7Iu+ugJ81suh0a09jApyiWwxbo/RGaFW7aiZKnWQUE=";
|
||||
|
||||
nativeBuildInputs = [
|
||||
pkg-config
|
||||
];
|
||||
|
||||
buildInputs = [
|
||||
libevdev
|
||||
];
|
||||
|
||||
meta = with lib; {
|
||||
mainProgram = "asus-numpad";
|
||||
description = "Linux driver for Asus laptops to activate numpad on touchpad";
|
||||
homepage = "https://github.com/iamkroot/asus-numpad";
|
||||
license = licenses.mit;
|
||||
platforms = platforms.linux;
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue