diff options
author | Ryan Burns <rtburns@protonmail.com> | 2020-12-04 08:44:46 -0800 |
---|---|---|
committer | Ryan Burns <rtburns@protonmail.com> | 2020-12-04 09:35:01 -0800 |
commit | 35dc8cbd9eac5ad375676f4863b94fb3d0f5dfd2 (patch) | |
tree | fc6770d40be53977579b4c5e3be7fe902cf3ab2b /pkgs/os-specific/linux/gcadapter-oc-kmod | |
parent | 29566ca0219041547322cefac408435a18a023b1 (diff) |
gcadapter-oc-kmod: init at 1.4
Diffstat (limited to 'pkgs/os-specific/linux/gcadapter-oc-kmod')
-rw-r--r-- | pkgs/os-specific/linux/gcadapter-oc-kmod/default.nix | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/pkgs/os-specific/linux/gcadapter-oc-kmod/default.nix b/pkgs/os-specific/linux/gcadapter-oc-kmod/default.nix new file mode 100644 index 0000000000000..dd2979b587129 --- /dev/null +++ b/pkgs/os-specific/linux/gcadapter-oc-kmod/default.nix @@ -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; + }; +} |