mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-30 10:53:11 +00:00
Merge pull request #105899 from r-burns/gcadapter-oc
gcadapter-oc-kmod: init at 1.4
This commit is contained in:
commit
23aedbe4e3
38
pkgs/os-specific/linux/gcadapter-oc-kmod/default.nix
Normal file
38
pkgs/os-specific/linux/gcadapter-oc-kmod/default.nix
Normal file
@ -0,0 +1,38 @@
|
||||
{ stdenv
|
||||
, fetchFromGitHub
|
||||
, kernel
|
||||
, kmod
|
||||
}:
|
||||
|
||||
let
|
||||
kerneldir = "lib/modules/${kernel.modDirVersion}";
|
||||
in stdenv.mkDerivation rec {
|
||||
pname = "gcadapter-oc-kmod";
|
||||
version = "1.4";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "HannesMann";
|
||||
repo = pname;
|
||||
rev = "v${version}";
|
||||
sha256 = "1nqhj3vqq9rnj37cnm2c4867mnxkr8di3i036shcz44h9qmy9d40";
|
||||
};
|
||||
|
||||
nativeBuildInputs = kernel.moduleBuildDependencies;
|
||||
|
||||
makeFlags = [
|
||||
"KERNEL_SOURCE_DIR=${kernel.dev}/${kerneldir}/build"
|
||||
"INSTALL_MOD_PATH=$(out)"
|
||||
];
|
||||
|
||||
installPhase = ''
|
||||
install -D {,$out/${kerneldir}/extra/}gcadapter_oc.ko
|
||||
'';
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
description = "Kernel module for overclocking the Nintendo Wii U/Mayflash GameCube adapter";
|
||||
homepage = "https://github.com/HannesMann/gcadapter-oc-kmod";
|
||||
license = licenses.gpl2;
|
||||
maintainers = with maintainers; [ r-burns ];
|
||||
platforms = platforms.linux;
|
||||
};
|
||||
}
|
@ -18402,6 +18402,8 @@ in
|
||||
|
||||
fwts-efi-runtime = callPackage ../os-specific/linux/fwts/module.nix { };
|
||||
|
||||
gcadapter-oc-kmod = callPackage ../os-specific/linux/gcadapter-oc-kmod { };
|
||||
|
||||
hyperv-daemons = callPackage ../os-specific/linux/hyperv-daemons { };
|
||||
|
||||
e1000e = if stdenv.lib.versionOlder kernel.version "4.10" then callPackage ../os-specific/linux/e1000e {} else null;
|
||||
|
Loading…
Reference in New Issue
Block a user