mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-23 07:23:20 +00:00
Merge pull request #326060 from kylelovestoad/mouse_m908
mouse_m908: init at 3.4
This commit is contained in:
commit
4420745f0a
@ -11130,6 +11130,12 @@
|
||||
github = "kylehendricks";
|
||||
githubId = 981958;
|
||||
};
|
||||
kylelovestoad = {
|
||||
name = "kylelovestoad";
|
||||
github = "kylelovestoad";
|
||||
githubId = 20408518;
|
||||
email = "kylelovestoad+nixpkgs@protonmail.com";
|
||||
};
|
||||
kyleondy = {
|
||||
email = "kyle@ondy.org";
|
||||
github = "KyleOndy";
|
||||
|
49
pkgs/by-name/mo/mouse_m908/package.nix
Normal file
49
pkgs/by-name/mo/mouse_m908/package.nix
Normal file
@ -0,0 +1,49 @@
|
||||
{ stdenv
|
||||
, lib
|
||||
, libusb1
|
||||
, installShellFiles
|
||||
, fetchFromGitHub
|
||||
, pkg-config
|
||||
}: stdenv.mkDerivation (finalAttrs: {
|
||||
name = "mouse_m908";
|
||||
version = "3.4";
|
||||
|
||||
nativeBuildInputs = [ pkg-config installShellFiles ];
|
||||
|
||||
buildInputs = [ libusb1.dev ];
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "dokutan";
|
||||
repo = "mouse_m908";
|
||||
rev = "v${finalAttrs.version}";
|
||||
sha256 = "sha256-sCAvjNpJYkp4G0KkDJtHOBR1vc80DZJtWR2W9gakkzQ=";
|
||||
};
|
||||
|
||||
# Uses proper nix directories rather than the ones specified in the makefile
|
||||
installPhase = ''
|
||||
runHook preInstall
|
||||
|
||||
mkdir -p $out/bin \
|
||||
$out/share/doc \
|
||||
$out/share/doc/mouse_m908 \
|
||||
$out/lib/udev/rules.d
|
||||
|
||||
cp mouse_m908 $out/bin/mouse_m908 && \
|
||||
cp mouse_m908.rules $out/lib/udev/rules.d && \
|
||||
cp examples/* $out/share/doc/mouse_m908 && \
|
||||
cp README.md $out/share/doc/mouse_m908 && \
|
||||
cp keymap.md $out/share/doc/mouse_m908 && \
|
||||
installManPage mouse_m908.1
|
||||
|
||||
runHook postInstall
|
||||
'';
|
||||
|
||||
meta = {
|
||||
homepage = "https://github.com/dokutan/mouse_m908";
|
||||
description = "Control various Redragon gaming mice from Linux, BSD and Haiku";
|
||||
mainProgram = "mouse_m908";
|
||||
license = lib.licenses.gpl3Plus;
|
||||
platforms = [ "x86_64-linux" ];
|
||||
maintainers = with lib.maintainers; [ kylelovestoad ];
|
||||
};
|
||||
})
|
Loading…
Reference in New Issue
Block a user