nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 rustPlatform,
4 fetchFromGitHub,
5 pkg-config,
6 libevdev,
7 nix-update-script,
8}:
9rustPlatform.buildRustPackage {
10 pname = "evremap";
11 version = "0-unstable-2024-06-17";
12
13 src = fetchFromGitHub {
14 owner = "wez";
15 repo = "evremap";
16 rev = "cc618e8b973f5c6f66682d1477b3b868a768c545";
17 hash = "sha256-aAAnlGlSFPOK3h8UuAOlFyrKTEuzbyh613IiPE7xWaA=";
18 };
19
20 cargoHash = "sha256-3KXvRbPHM78IGe7Hl8AEHCmK0onroQycyTfOm942e9Y=";
21
22 nativeBuildInputs = [ pkg-config ];
23 buildInputs = [ libevdev ];
24
25 passthru.updateScript = nix-update-script {
26 extraArgs = [ "--version=branch" ];
27 };
28
29 meta = {
30 description = "Keyboard input remapper for Linux/Wayland systems";
31 homepage = "https://github.com/wez/evremap";
32 maintainers = with lib.maintainers; [ pluiedev ];
33 license = with lib.licenses; [ mit ];
34 mainProgram = "evremap";
35 };
36}