3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/os-specific/linux/rtl8812au/default.nix

37 lines
1.2 KiB
Nix
Raw Normal View History

2015-09-03 10:52:17 +01:00
{ stdenv, fetchFromGitHub, kernel }:
stdenv.mkDerivation rec {
name = "rtl8812au-${kernel.version}-${version}";
2016-09-29 07:26:50 +01:00
version = "4.3.20";
2015-09-03 10:52:17 +01:00
src = fetchFromGitHub {
2016-09-29 07:26:50 +01:00
owner = "Grawp";
repo = "rtl8812au_rtl8821au";
2016-11-02 06:14:10 +00:00
rev = "d716b38abf5ca7da72d2be0adfcebe98cceeda8f";
sha256 = "01z5p2vps3an69bbzca7ig14llc5rd6067pgs47kkhfjbsbws4ry";
2015-09-03 10:52:17 +01:00
};
hardeningDisable = [ "pic" ];
2016-08-13 12:20:12 +01:00
NIX_CFLAGS_COMPILE="-Wno-error=incompatible-pointer-types";
2015-09-03 10:52:17 +01:00
patchPhase = ''
substituteInPlace ./Makefile --replace /lib/modules/ "${kernel.dev}/lib/modules/"
substituteInPlace ./Makefile --replace '$(shell uname -r)' "${kernel.modDirVersion}"
substituteInPlace ./Makefile --replace /sbin/depmod #
substituteInPlace ./Makefile --replace '$(MODDESTDIR)' "$out/lib/modules/${kernel.modDirVersion}/kernel/net/wireless/"
'';
2015-09-03 10:52:17 +01:00
preInstall = ''
mkdir -p "$out/lib/modules/${kernel.modDirVersion}/kernel/net/wireless/"
'';
2015-09-03 10:52:17 +01:00
meta = {
description = "Driver for Realtek 802.11ac, rtl8812au, provides the 8812au mod";
2016-09-29 07:26:50 +01:00
homepage = "https://github.com/Grawp/rtl8812au_rtl8821au";
2015-09-03 10:52:17 +01:00
license = stdenv.lib.licenses.gpl2;
platforms = [ "x86_64-linux" "i686-linux" ];
broken = (kernel.features.grsecurity or false);
2015-09-03 10:52:17 +01:00
};
}