tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
lol
0
fork
atom
overview
issues
pulls
pipelines
linuxPackages.rtl8723ds: init at unstable-2022-10-20
Chuang Zhu
3 years ago
98edc9b2
fad3abc9
+48
2 changed files
expand all
collapse all
unified
split
pkgs
os-specific
linux
rtl8723ds
default.nix
top-level
linux-kernels.nix
+46
pkgs/os-specific/linux/rtl8723ds/default.nix
···
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
···
1
+
{ lib, stdenv, fetchFromGitHub, kernel, bc }:
2
+
3
+
stdenv.mkDerivation {
4
+
pname = "rtl8723ds";
5
+
version = "${kernel.version}-unstable-2022-10-20";
6
+
7
+
src = fetchFromGitHub {
8
+
owner = "lwfinger";
9
+
repo = "rtl8723ds";
10
+
rev = "912fdb30531bc8c071267a047e7df16feae7a865";
11
+
sha256 = "sha256-HhoCKrrRg1Q995sekQvzhaiqANeTP8pANItj2vLV+Cw=";
12
+
};
13
+
14
+
hardeningDisable = [ "pic" ];
15
+
16
+
nativeBuildInputs = [ bc ];
17
+
buildInputs = kernel.moduleBuildDependencies;
18
+
19
+
makeFlags = [
20
+
"ARCH=${stdenv.hostPlatform.linuxArch}"
21
+
] ++ lib.optionals (stdenv.hostPlatform != stdenv.buildPlatform) [
22
+
"CROSS_COMPILE=${stdenv.cc.targetPrefix}"
23
+
];
24
+
25
+
postPatch = ''
26
+
substituteInPlace ./Makefile \
27
+
--replace /lib/modules/ "${kernel.dev}/lib/modules/" \
28
+
--replace '$(shell uname -r)' "${kernel.modDirVersion}" \
29
+
--replace "/sbin/depmod" "#" \
30
+
--replace '$(MODDESTDIR)' "$out/lib/modules/${kernel.modDirVersion}/kernel/net/wireless/"
31
+
'';
32
+
33
+
preInstall = ''
34
+
mkdir -p "$out/lib/modules/${kernel.modDirVersion}/kernel/net/wireless/"
35
+
'';
36
+
37
+
enableParallelBuilding = true;
38
+
39
+
meta = {
40
+
description = "Linux driver for RTL8723DS.";
41
+
homepage = "https://github.com/lwfinger/rtl8723ds";
42
+
license = lib.licenses.gpl2Only;
43
+
platforms = lib.platforms.linux;
44
+
maintainers = with lib.maintainers; [ chuangzhu ];
45
+
};
46
+
}
+2
pkgs/top-level/linux-kernels.nix
···
390
391
rtl8723bs = callPackage ../os-specific/linux/rtl8723bs { };
392
0
0
393
rtl8812au = callPackage ../os-specific/linux/rtl8812au { };
394
395
rtl8814au = callPackage ../os-specific/linux/rtl8814au { };
···
390
391
rtl8723bs = callPackage ../os-specific/linux/rtl8723bs { };
392
393
+
rtl8723ds = callPackage ../os-specific/linux/rtl8723ds { };
394
+
395
rtl8812au = callPackage ../os-specific/linux/rtl8812au { };
396
397
rtl8814au = callPackage ../os-specific/linux/rtl8814au { };