Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
55 lines
1.4 KiB
Nix
55 lines
1.4 KiB
Nix
{
|
|
lib,
|
|
stdenv,
|
|
testers,
|
|
rustPlatform,
|
|
fetchFromGitHub,
|
|
inputmodule-control,
|
|
pkg-config,
|
|
libudev-zero,
|
|
udevCheckHook,
|
|
}:
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
pname = "inputmodule-control";
|
|
version = "0.2.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "FrameworkComputer";
|
|
repo = "inputmodule-rs";
|
|
rev = "v${version}";
|
|
hash = "sha256-5sqTkaGqmKDDH7byDZ84rzB3FTu9AKsWxA6EIvUrLCU=";
|
|
};
|
|
|
|
cargoHash = "sha256-s5k23p0Fo+DQvGpDvy/VmGNFK7ZysqLIyDPuUn6n724=";
|
|
|
|
buildAndTestSubdir = "inputmodule-control";
|
|
|
|
nativeBuildInputs = [
|
|
pkg-config
|
|
udevCheckHook
|
|
];
|
|
buildInputs = [ libudev-zero ];
|
|
|
|
doInstallCheck = true;
|
|
|
|
postInstall = ''
|
|
install -Dm644 release/50-framework-inputmodule.rules $out/etc/udev/rules.d/50-framework-inputmodule.rules
|
|
'';
|
|
|
|
passthru.tests.version = testers.testVersion {
|
|
package = inputmodule-control;
|
|
};
|
|
|
|
meta = {
|
|
description = "CLI tool to control Framework input modules like the LED matrix";
|
|
license = lib.licenses.mit;
|
|
platforms = lib.platforms.linux;
|
|
mainProgram = "inputmodule-control";
|
|
homepage = "https://github.com/FrameworkComputer/inputmodule-rs";
|
|
downloadPage = "https://github.com/FrameworkComputer/inputmodule-rs/releases/tag/${src.rev}";
|
|
changelog = "https://github.com/FrameworkComputer/inputmodule-rs/releases/tag/${src.rev}";
|
|
maintainers = with lib.maintainers; [ Kitt3120 ];
|
|
};
|
|
}
|