blob: e269916674d3091e550eeffc32bda469bbd8c69d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
|
{
lib,
stdenv,
fetchFromGitHub,
kernel,
kernelModuleMakeFlags,
}:
let
kerneldir = "lib/modules/${kernel.modDirVersion}";
in
stdenv.mkDerivation {
pname = "gcadapter-oc-kmod";
version = "unstable-2021-12-11";
src = fetchFromGitHub {
owner = "HannesMann";
repo = "gcadapter-oc-kmod";
rev = "d4ddf15deb74c51dbdfc814d481ef127c371f444";
sha256 = "sha256-bHA1611rcO8/d48b1CHsiurEt3/n+5WErtHXAU7Eh1o=";
};
nativeBuildInputs = kernel.moduleBuildDependencies;
makeFlags = kernelModuleMakeFlags ++ [
"KERNEL_SOURCE_DIR=${kernel.dev}/${kerneldir}/build"
"INSTALL_MOD_PATH=$(out)"
];
installPhase = ''
install -D {,$out/${kerneldir}/extra/}gcadapter_oc.ko
'';
meta = {
description = "Kernel module for overclocking the Nintendo Wii U/Mayflash GameCube adapter";
homepage = "https://github.com/HannesMann/gcadapter-oc-kmod";
license = lib.licenses.gpl2Only;
maintainers = with lib.maintainers; [ r-burns ];
platforms = lib.platforms.linux;
};
}
|