Merge pull request #330275 from SuperSandro2000/326060
This commit is contained in:
commit
d45f77174e
@ -4,14 +4,12 @@
|
|||||||
, installShellFiles
|
, installShellFiles
|
||||||
, fetchFromGitHub
|
, fetchFromGitHub
|
||||||
, pkg-config
|
, pkg-config
|
||||||
}: stdenv.mkDerivation (finalAttrs: {
|
}:
|
||||||
name = "mouse_m908";
|
|
||||||
|
stdenv.mkDerivation (finalAttrs: {
|
||||||
|
pname = "mouse_m908";
|
||||||
version = "3.4";
|
version = "3.4";
|
||||||
|
|
||||||
nativeBuildInputs = [ pkg-config installShellFiles ];
|
|
||||||
|
|
||||||
buildInputs = [ libusb1.dev ];
|
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "dokutan";
|
owner = "dokutan";
|
||||||
repo = "mouse_m908";
|
repo = "mouse_m908";
|
||||||
@ -19,6 +17,10 @@
|
|||||||
sha256 = "sha256-sCAvjNpJYkp4G0KkDJtHOBR1vc80DZJtWR2W9gakkzQ=";
|
sha256 = "sha256-sCAvjNpJYkp4G0KkDJtHOBR1vc80DZJtWR2W9gakkzQ=";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
nativeBuildInputs = [ pkg-config installShellFiles ];
|
||||||
|
|
||||||
|
buildInputs = [ libusb1 ];
|
||||||
|
|
||||||
# Uses proper nix directories rather than the ones specified in the makefile
|
# Uses proper nix directories rather than the ones specified in the makefile
|
||||||
installPhase = ''
|
installPhase = ''
|
||||||
runHook preInstall
|
runHook preInstall
|
||||||
@ -28,11 +30,11 @@
|
|||||||
$out/share/doc/mouse_m908 \
|
$out/share/doc/mouse_m908 \
|
||||||
$out/lib/udev/rules.d
|
$out/lib/udev/rules.d
|
||||||
|
|
||||||
cp mouse_m908 $out/bin/mouse_m908 && \
|
cp mouse_m908 $out/bin/mouse_m908
|
||||||
cp mouse_m908.rules $out/lib/udev/rules.d && \
|
cp mouse_m908.rules $out/lib/udev/rules.d
|
||||||
cp examples/* $out/share/doc/mouse_m908 && \
|
cp examples/* $out/share/doc/mouse_m908
|
||||||
cp README.md $out/share/doc/mouse_m908 && \
|
cp README.md $out/share/doc/mouse_m908
|
||||||
cp keymap.md $out/share/doc/mouse_m908 && \
|
cp keymap.md $out/share/doc/mouse_m908
|
||||||
installManPage mouse_m908.1
|
installManPage mouse_m908.1
|
||||||
|
|
||||||
runHook postInstall
|
runHook postInstall
|
||||||
|
Loading…
Reference in New Issue
Block a user