nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 rustPlatform,
4 fetchFromGitHub,
5 pkg-config,
6 udev,
7 libiio,
8 libevdev,
9}:
10
11rustPlatform.buildRustPackage rec {
12 pname = "inputplumber";
13 version = "0.72.0";
14
15 src = fetchFromGitHub {
16 owner = "ShadowBlip";
17 repo = "InputPlumber";
18 tag = "v${version}";
19 hash = "sha256-bzIrP6bUxEEgQ+lCKV3jpdyBNMAanCYXiMCr8ypUkUY=";
20 };
21
22 cargoHash = "sha256-DP4Qe9bzDkuE36RldYPYNeGrQWVqBewU5GUt8zw3GAA=";
23
24 nativeBuildInputs = [
25 pkg-config
26 rustPlatform.bindgenHook
27 ];
28
29 buildInputs = [
30 udev
31 libevdev
32 libiio
33 ];
34
35 postInstall = ''
36 cp -r rootfs/usr/* $out/
37 '';
38
39 meta = {
40 description = "Open source input router and remapper daemon for Linux";
41 homepage = "https://github.com/ShadowBlip/InputPlumber";
42 license = lib.licenses.gpl3Plus;
43 changelog = "https://github.com/ShadowBlip/InputPlumber/releases/tag/v${version}";
44 maintainers = with lib.maintainers; [ shadowapex ];
45 mainProgram = "inputplumber";
46 };
47}