linuxPackages.rtl8723ds: init at unstable-2022-10-20
This commit is contained in:
parent
fad3abc940
commit
98edc9b253
2 changed files with 48 additions and 0 deletions
46
pkgs/os-specific/linux/rtl8723ds/default.nix
Normal file
46
pkgs/os-specific/linux/rtl8723ds/default.nix
Normal file
|
@ -0,0 +1,46 @@
|
|||
{ lib, stdenv, fetchFromGitHub, kernel, bc }:
|
||||
|
||||
stdenv.mkDerivation {
|
||||
pname = "rtl8723ds";
|
||||
version = "${kernel.version}-unstable-2022-10-20";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "lwfinger";
|
||||
repo = "rtl8723ds";
|
||||
rev = "912fdb30531bc8c071267a047e7df16feae7a865";
|
||||
sha256 = "sha256-HhoCKrrRg1Q995sekQvzhaiqANeTP8pANItj2vLV+Cw=";
|
||||
};
|
||||
|
||||
hardeningDisable = [ "pic" ];
|
||||
|
||||
nativeBuildInputs = [ bc ];
|
||||
buildInputs = kernel.moduleBuildDependencies;
|
||||
|
||||
makeFlags = [
|
||||
"ARCH=${stdenv.hostPlatform.linuxArch}"
|
||||
] ++ lib.optionals (stdenv.hostPlatform != stdenv.buildPlatform) [
|
||||
"CROSS_COMPILE=${stdenv.cc.targetPrefix}"
|
||||
];
|
||||
|
||||
postPatch = ''
|
||||
substituteInPlace ./Makefile \
|
||||
--replace /lib/modules/ "${kernel.dev}/lib/modules/" \
|
||||
--replace '$(shell uname -r)' "${kernel.modDirVersion}" \
|
||||
--replace "/sbin/depmod" "#" \
|
||||
--replace '$(MODDESTDIR)' "$out/lib/modules/${kernel.modDirVersion}/kernel/net/wireless/"
|
||||
'';
|
||||
|
||||
preInstall = ''
|
||||
mkdir -p "$out/lib/modules/${kernel.modDirVersion}/kernel/net/wireless/"
|
||||
'';
|
||||
|
||||
enableParallelBuilding = true;
|
||||
|
||||
meta = {
|
||||
description = "Linux driver for RTL8723DS.";
|
||||
homepage = "https://github.com/lwfinger/rtl8723ds";
|
||||
license = lib.licenses.gpl2Only;
|
||||
platforms = lib.platforms.linux;
|
||||
maintainers = with lib.maintainers; [ chuangzhu ];
|
||||
};
|
||||
}
|
|
@ -390,6 +390,8 @@ in {
|
|||
|
||||
rtl8723bs = callPackage ../os-specific/linux/rtl8723bs { };
|
||||
|
||||
rtl8723ds = callPackage ../os-specific/linux/rtl8723ds { };
|
||||
|
||||
rtl8812au = callPackage ../os-specific/linux/rtl8812au { };
|
||||
|
||||
rtl8814au = callPackage ../os-specific/linux/rtl8814au { };
|
||||
|
|
Loading…
Reference in a new issue