Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
48 lines
1014 B
Nix
48 lines
1014 B
Nix
{
|
|
lib,
|
|
stdenv,
|
|
fetchFromGitHub,
|
|
pkg-config,
|
|
hidapi,
|
|
udevCheckHook,
|
|
}:
|
|
|
|
stdenv.mkDerivation {
|
|
pname = "footswitch";
|
|
version = "unstable-2023-10-10";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "rgerganov";
|
|
repo = "footswitch";
|
|
rev = "b7493170ecc956ac87df2c36183253c945be2dcf";
|
|
hash = "sha256-vwjeWjIXQiFJ0o/wgEBrKP3hQi8Xa/azVS1IE/Q/MyY=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
pkg-config
|
|
udevCheckHook
|
|
];
|
|
buildInputs = [ hidapi ];
|
|
|
|
postPatch = ''
|
|
substituteInPlace Makefile \
|
|
--replace /usr/local $out \
|
|
--replace /usr/bin/install install \
|
|
--replace /etc/udev $out/lib/udev
|
|
'';
|
|
|
|
preInstall = ''
|
|
mkdir -p $out/bin $out/lib/udev/rules.d
|
|
'';
|
|
|
|
doInstallCheck = true;
|
|
|
|
meta = with lib; {
|
|
description = "Command line utlities for programming PCsensor and Scythe foot switches";
|
|
homepage = "https://github.com/rgerganov/footswitch";
|
|
license = licenses.mit;
|
|
platforms = platforms.linux;
|
|
maintainers = with maintainers; [ baloo ];
|
|
};
|
|
}
|