footswitch: init at unstable-2021-03-17 (#133691)

Co-authored-by: Sandro <sandro.jaeckel@gmail.com>
launchpad/nixpkgs/master
Arthur Gautier 3 years ago committed by GitHub
parent 48953c3a30
commit d527a12d1e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 35
      pkgs/tools/inputmethods/footswitch/default.nix
  2. 2
      pkgs/top-level/all-packages.nix

@ -0,0 +1,35 @@
{ lib, stdenv, fetchFromGitHub, pkg-config, hidapi }:
stdenv.mkDerivation {
pname = "footswitch";
version = "unstable-20201-03-17";
src = fetchFromGitHub {
owner = "rgerganov";
repo = "footswitch";
rev = "aa0b10f00d3e76dac27b55b88c8d44c0c406f7f0";
sha256 = "sha256-SikYiBN7jbH5I1x5wPCF+buwFp1dt35cVxAN6lWkTN0=";
};
nativeBuildInputs = [ pkg-config ];
buildInputs = [ hidapi ];
postPatch = ''
substituteInPlace Makefile \
--replace /usr/local $out \
--replace /usr/bin/install install \
--replace /etc/udev/rules.d $out/lib/udev/rules.d
'';
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 ];
};
}

@ -4958,6 +4958,8 @@ with pkgs;
fontmatrix = libsForQt514.callPackage ../applications/graphics/fontmatrix {};
footswitch = callPackage ../tools/inputmethods/footswitch { };
foremost = callPackage ../tools/system/foremost { };
forktty = callPackage ../os-specific/linux/forktty {};

Loading…
Cancel
Save