mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-10-03 21:40:12 +00:00
48 lines
1010 B
Nix
48 lines
1010 B
Nix
{
|
|
lib,
|
|
rustPlatform,
|
|
fetchFromGitHub,
|
|
pkg-config,
|
|
udev,
|
|
libiio,
|
|
libevdev,
|
|
}:
|
|
|
|
rustPlatform.buildRustPackage (finalAttrs: {
|
|
pname = "inputplumber";
|
|
version = "0.81.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "ShadowBlip";
|
|
repo = "InputPlumber";
|
|
tag = "v${finalAttrs.version}";
|
|
hash = "sha256-mFUZ6g9UrWRXJoBftW/AO9VYrMQDdxP6/u3PDkCyXtk=";
|
|
};
|
|
|
|
cargoHash = "sha256-PGvzJX5oOc26ysToF0UN1dPHGy+XFkt28hRLFyeBJ9M=";
|
|
|
|
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${finalAttrs.version}";
|
|
maintainers = with lib.maintainers; [ shadowapex ];
|
|
mainProgram = "inputplumber";
|
|
};
|
|
})
|