mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-06-09 19:13:26 +03:00
48 lines
1,008 B
Nix
48 lines
1,008 B
Nix
{
|
|
lib,
|
|
rustPlatform,
|
|
fetchFromGitHub,
|
|
pkg-config,
|
|
udev,
|
|
libiio,
|
|
libevdev,
|
|
}:
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
pname = "inputplumber";
|
|
version = "0.58.5";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "ShadowBlip";
|
|
repo = "InputPlumber";
|
|
tag = "v${version}";
|
|
hash = "sha256-Ozd/MfPoEXodPnjNkmBGGJQCKFSuKr/SrnncDWbhiY8=";
|
|
};
|
|
|
|
useFetchCargoVendor = true;
|
|
cargoHash = "sha256-dzPBEIGOOplG+td78Ujm66kPFGAHgI1d68IU4KTQtxE=";
|
|
|
|
nativeBuildInputs = [
|
|
pkg-config
|
|
rustPlatform.bindgenHook
|
|
];
|
|
|
|
buildInputs = [
|
|
udev
|
|
libevdev
|
|
libiio
|
|
];
|
|
|
|
postInstall = ''
|
|
cp -r rootfs/usr/* $out/
|
|
'';
|
|
|
|
meta = {
|
|
description = "Open source input router and remapper daemon for Linux";
|
|
homepage = "https://github.com/ShadowBlip/InputPlumber";
|
|
license = lib.licenses.gpl3Plus;
|
|
changelog = "https://github.com/ShadowBlip/InputPlumber/releases/tag/v${version}";
|
|
maintainers = with lib.maintainers; [ shadowapex ];
|
|
mainProgram = "inputplumber";
|
|
};
|
|
}
|