mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-15 06:14:57 +01:00
2641d97cbf
Reproduction script: # Bulk rewrite ./maintainers/scripts/sha-to-sri.py pkgs/by-name # Revert some packages which will need manual intervention for n in amdvlk azure-cli cargo-profiler corefonts flatito fluxcd gist perf_data_converter protoc-gen-js solana-cli swt verible; do git checkout -- "pkgs/by-name/${n:0:2}/${n}" done
35 lines
936 B
Nix
35 lines
936 B
Nix
{ lib, stdenv, fetchFromGitHub, pkg-config, hidapi }:
|
|
|
|
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 ];
|
|
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
|
|
'';
|
|
|
|
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 ];
|
|
};
|
|
}
|