tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
lol
0
fork
atom
overview
issues
pulls
pipelines
rtl8812au: 4.3.20 -> 5.2.20_25672.20171213
Daniel Fullmer
8 years ago
59c43d60
66491453
+12
-30
1 changed file
expand all
collapse all
unified
split
pkgs
os-specific
linux
rtl8812au
default.nix
+12
-30
pkgs/os-specific/linux/rtl8812au/default.nix
···
1
1
-
{ stdenv, fetchFromGitHub, fetchpatch, kernel }:
1
1
+
{ stdenv, fetchFromGitHub, fetchpatch, kernel, bc }:
2
2
3
3
stdenv.mkDerivation rec {
4
4
name = "rtl8812au-${kernel.version}-${version}";
5
5
-
version = "4.3.20";
5
5
+
version = "5.2.20_25672.20171213";
6
6
7
7
src = fetchFromGitHub {
8
8
-
owner = "Grawp";
9
9
-
repo = "rtl8812au_rtl8821au";
10
10
-
rev = "d716b38abf5ca7da72d2be0adfcebe98cceeda8f";
11
11
-
sha256 = "01z5p2vps3an69bbzca7ig14llc5rd6067pgs47kkhfjbsbws4ry";
8
8
+
owner = "zebulon2";
9
9
+
repo = "rtl8812au-driver-5.2.20";
10
10
+
rev = "aca1e0677bfe56c6c4914358df007c97486e7095";
11
11
+
sha256 = "19av8fkh3mvs2f57iibrg0cfyhjnnx4cbnfzv5aj7v5gb0j3dp0p";
12
12
};
13
13
14
14
-
patches = [
15
15
-
(fetchpatch { # From PR # 42
16
16
-
name = "rtl8812au-4.11.x-fix.patch";
17
17
-
url = https://github.com/Grawp/rtl8812au_rtl8821au/commit/3224e74ad9c230b74a658e80dad66ab95c9e2ef5.patch;
18
18
-
sha256 = "12g4yvivg4d0qm5cgxs7k54p3y7h1dc2jw6rp1xbppwf3j1z6xks";
19
19
-
})
20
20
-
(fetchpatch { # From PR #46
21
21
-
name = "rtl8812au-4.11.9-fix.patch";
22
22
-
url = https://github.com/Grawp/rtl8812au_rtl8821au/commit/58fc45a4511b8b9d6b52813168e3eee657517b1f.patch;
23
23
-
sha256 = "18bag2mif5112lap2xvx2bb0wxrd13f9y9cwqv1qzp5nyqiniziz";
24
24
-
})
25
25
-
(fetchpatch { # From PR #43
26
26
-
name = "rtl8812au-4.12-fix.patch";
27
27
-
url = https://github.com/Grawp/rtl8812au_rtl8821au/commit/a5475c9f1f54099ca35c8680f2dedee11fa9edec.patch;
28
28
-
sha256 = "01xa51whq1xa0sh3y2bhm65f0cryzmv46v530axqjrpnd924432d";
29
29
-
})
30
30
-
];
31
31
-
14
14
+
nativeBuildInputs = [ bc ];
32
15
buildInputs = kernel.moduleBuildDependencies;
33
16
34
34
-
hardeningDisable = [ "pic" ];
35
35
-
36
36
-
NIX_CFLAGS_COMPILE="-Wno-error=incompatible-pointer-types";
17
17
+
hardeningDisable = [ "pic" "format" ];
37
18
38
19
prePatch = ''
39
20
substituteInPlace ./Makefile --replace /lib/modules/ "${kernel.dev}/lib/modules/"
···
46
27
mkdir -p "$out/lib/modules/${kernel.modDirVersion}/kernel/net/wireless/"
47
28
'';
48
29
49
49
-
meta = {
30
30
+
meta = with stdenv.lib; {
50
31
description = "Driver for Realtek 802.11ac, rtl8812au, provides the 8812au mod";
51
51
-
homepage = https://github.com/Grawp/rtl8812au_rtl8821au;
52
52
-
license = stdenv.lib.licenses.gpl2;
32
32
+
homepage = https://github.com/zebulon2/rtl8812au-driver-5.2.20;
33
33
+
license = licenses.gpl2;
53
34
platforms = [ "x86_64-linux" "i686-linux" ];
35
35
+
maintainers = with maintainers; [ danielfullmer ];
54
36
};
55
37
}