nixpkgs/pkgs/os-specific/linux/rtl8192eu/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

45 lines
1.2 KiB
Nix
Raw Normal View History

{ stdenv, lib, fetchFromGitHub, kernel, bc }:
2018-02-22 19:18:01 +00:00
with lib;
let modDestDir = "$out/lib/modules/${kernel.modDirVersion}/kernel/drivers/net/wireless/realtek/rtl8192eu";
in stdenv.mkDerivation rec {
pname = "rtl8192eu";
2023-06-13 14:31:04 +00:00
version = "${kernel.version}-4.4.1.20230613";
2018-02-22 19:18:01 +00:00
src = fetchFromGitHub {
owner = "Mange";
repo = "rtl8192eu-linux-driver";
2023-06-13 14:31:04 +00:00
rev = "f2fc8af7ab58d2123eed1aa4428e713cdfc27976";
sha256 = "sha256-OgsxBcXoIP8h9Z0bLsG91/s/+r89Tdn2dPOt4p3sx8k=";
2018-02-22 19:18:01 +00:00
};
hardeningDisable = [ "pic" ];
nativeBuildInputs = kernel.moduleBuildDependencies ++ [ bc ];
makeFlags = kernel.makeFlags ++ [ "KSRC=${kernel.dev}/lib/modules/${kernel.modDirVersion}/build" ];
2018-02-22 19:18:01 +00:00
enableParallelBuilding = true;
installPhase = ''
runHook preInstall
2018-02-22 19:18:01 +00:00
mkdir -p ${modDestDir}
find . -name '*.ko' -exec cp --parents {} ${modDestDir} \;
find ${modDestDir} -name '*.ko' -exec xz -f {} \;
runHook postInstall
2018-02-22 19:18:01 +00:00
'';
meta = with lib; {
2018-02-22 19:18:01 +00:00
description = "Realtek rtl8192eu driver";
homepage = "https://github.com/Mange/rtl8192eu-linux-driver";
license = licenses.gpl2Only;
platforms = platforms.linux;
2023-06-13 14:31:04 +00:00
broken = stdenv.hostPlatform.isAarch64;
2018-02-22 19:18:01 +00:00
maintainers = with maintainers; [ troydm ];
};
}