1 { lib, stdenv, fetchFromGitHub, pkg-config, hidapi }:
5 version = "unstable-2023-10-10";
7 src = fetchFromGitHub {
10 rev = "b7493170ecc956ac87df2c36183253c945be2dcf";
11 sha256 = "sha256-vwjeWjIXQiFJ0o/wgEBrKP3hQi8Xa/azVS1IE/Q/MyY=";
14 nativeBuildInputs = [ pkg-config ];
15 buildInputs = [ hidapi ];
18 substituteInPlace Makefile \
19 --replace /usr/local $out \
20 --replace /usr/bin/install install \
21 --replace /etc/udev $out/lib/udev
25 mkdir -p $out/bin $out/lib/udev/rules.d
29 description = "Command line utlities for programming PCsensor and Scythe foot switches";
30 homepage = "https://github.com/rgerganov/footswitch";
31 license = licenses.mit;
32 platforms = platforms.linux;
33 maintainers = with maintainers; [ baloo ];