mirror of
https://forge.katzen.cafe/schrottkatze/nix-configs.git
synced 2024-11-25 22:38:44 +01:00
24 lines
652 B
Nix
24 lines
652 B
Nix
|
{ stdenv, lib, fetchFromGitHub, kernel, kmod }:
|
||
|
|
||
|
stdenv.mkDerivation rec {
|
||
|
name = "apple-ib-drv-${version}-${kernel.version}";
|
||
|
gitCommit = "d8411ad1d87db8491e53887e36c3d37f445203eb";
|
||
|
version = "${gitCommit}";
|
||
|
|
||
|
src = fetchFromGitHub {
|
||
|
owner = "t2linux";
|
||
|
repo = "apple-ib-drv";
|
||
|
rev = "${gitCommit}";
|
||
|
sha256 = "sha256-mPx9Y4488pcxnJ5iyeNRuWvnyluHXmOOBnRNw+GAC2k=";
|
||
|
};
|
||
|
|
||
|
hardeningDisable = [ "pic" "format" ];
|
||
|
nativeBuildInputs = kernel.moduleBuildDependencies;
|
||
|
|
||
|
makeFlags = [
|
||
|
"KERNELRELEASE=${kernel.modDirVersion}"
|
||
|
"KDIR=${kernel.dev}/lib/modules/${kernel.modDirVersion}/build"
|
||
|
"INSTALL_MOD_PATH=$(out)"
|
||
|
];
|
||
|
}
|