2020-08-15 14:15:33 +02:00
|
|
|
{ stdenv, lib, fetchFromGitHub, kernel, bc }:
|
2018-02-22 20:18:01 +01:00
|
|
|
|
|
|
|
with lib;
|
|
|
|
|
|
|
|
let modDestDir = "$out/lib/modules/${kernel.modDirVersion}/kernel/drivers/net/wireless/realtek/rtl8192eu";
|
|
|
|
|
|
|
|
in stdenv.mkDerivation rec {
|
|
|
|
name = "rtl8192eu-${kernel.version}-${version}";
|
2020-08-15 14:15:33 +02:00
|
|
|
version = "4.4.1.20200620";
|
2018-02-22 20:18:01 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "Mange";
|
|
|
|
repo = "rtl8192eu-linux-driver";
|
2020-08-15 14:15:33 +02:00
|
|
|
rev = "925ac2be34dd608a7ca42daebf9713f0c1bcec74";
|
|
|
|
sha256 = "159vg0scq47wnn600karpgzx3naaiyl1rg8608c8d28nhm62gvjz";
|
2018-02-22 20:18:01 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
hardeningDisable = [ "pic" ];
|
|
|
|
|
|
|
|
nativeBuildInputs = kernel.moduleBuildDependencies;
|
|
|
|
|
2020-08-15 14:15:33 +02:00
|
|
|
buildInputs = [ bc ];
|
|
|
|
|
2019-10-27 14:03:25 +01:00
|
|
|
makeFlags = [ "KSRC=${kernel.dev}/lib/modules/${kernel.modDirVersion}/build" ];
|
2018-02-22 20:18:01 +01:00
|
|
|
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
mkdir -p ${modDestDir}
|
|
|
|
find . -name '*.ko' -exec cp --parents {} ${modDestDir} \;
|
|
|
|
find ${modDestDir} -name '*.ko' -exec xz -f {} \;
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "Realtek rtl8192eu driver";
|
2020-04-01 03:11:51 +02:00
|
|
|
homepage = "https://github.com/Mange/rtl8192eu-linux-driver";
|
2018-02-22 20:18:01 +01:00
|
|
|
license = stdenv.lib.licenses.gpl2;
|
|
|
|
platforms = stdenv.lib.platforms.linux;
|
|
|
|
maintainers = with maintainers; [ troydm ];
|
|
|
|
};
|
|
|
|
}
|