forked from mirrors/nixpkgs
Merge pull request #108348 from rencire/add-hid-nintendo
linuxPackages.hid-nintendo: init at 3.1
This commit is contained in:
commit
213cde9203
38
pkgs/os-specific/linux/hid-nintendo/default.nix
Normal file
38
pkgs/os-specific/linux/hid-nintendo/default.nix
Normal file
|
@ -0,0 +1,38 @@
|
||||||
|
{ lib, stdenv, fetchFromGitHub, kernel }:
|
||||||
|
|
||||||
|
stdenv.mkDerivation rec {
|
||||||
|
pname = "hid-nintendo";
|
||||||
|
version = "3.1";
|
||||||
|
|
||||||
|
src = fetchFromGitHub {
|
||||||
|
owner = "nicman23";
|
||||||
|
repo = "dkms-hid-nintendo";
|
||||||
|
rev = version;
|
||||||
|
sha256 = "sha256-IanH3yHfkQhqtKvKD8lh+muc9yX8XJ5bfdy1Or8Vd5g=";
|
||||||
|
};
|
||||||
|
|
||||||
|
setSourceRoot = ''
|
||||||
|
export sourceRoot=$(pwd)/source/src
|
||||||
|
'';
|
||||||
|
|
||||||
|
nativeBuildInputs = kernel.moduleBuildDependencies;
|
||||||
|
|
||||||
|
makeFlags = [
|
||||||
|
"-C"
|
||||||
|
"${kernel.dev}/lib/modules/${kernel.modDirVersion}/build"
|
||||||
|
"M=$(sourceRoot)"
|
||||||
|
];
|
||||||
|
|
||||||
|
buildFlags = [ "modules" ];
|
||||||
|
installFlags = [ "INSTALL_MOD_PATH=${placeholder "out"}" ];
|
||||||
|
installTargets = [ "modules_install" ];
|
||||||
|
|
||||||
|
meta = with lib; {
|
||||||
|
description = "A Nintendo HID kernel module";
|
||||||
|
homepage = "https://github.com/nicman23/dkms-hid-nintendo";
|
||||||
|
license = licenses.gpl2;
|
||||||
|
maintainers = [ maintainers.rencire ];
|
||||||
|
platforms = platforms.linux;
|
||||||
|
broken = versionOlder kernel.version "4.14";
|
||||||
|
};
|
||||||
|
}
|
|
@ -20401,6 +20401,8 @@ in
|
||||||
|
|
||||||
gcadapter-oc-kmod = callPackage ../os-specific/linux/gcadapter-oc-kmod { };
|
gcadapter-oc-kmod = callPackage ../os-specific/linux/gcadapter-oc-kmod { };
|
||||||
|
|
||||||
|
hid-nintendo = callPackage ../os-specific/linux/hid-nintendo { };
|
||||||
|
|
||||||
hyperv-daemons = callPackage ../os-specific/linux/hyperv-daemons { };
|
hyperv-daemons = callPackage ../os-specific/linux/hyperv-daemons { };
|
||||||
|
|
||||||
e1000e = if lib.versionOlder kernel.version "4.10" then callPackage ../os-specific/linux/e1000e {} else null;
|
e1000e = if lib.versionOlder kernel.version "4.10" then callPackage ../os-specific/linux/e1000e {} else null;
|
||||||
|
|
Loading…
Reference in a new issue