linuxPackages.rtl8812au: fix build

This commit is contained in:
Robin Gloster 2016-08-13 11:20:12 +00:00
parent 2676cf9525
commit 8071cafe66

View File

@ -13,6 +13,8 @@ stdenv.mkDerivation rec {
hardeningDisable = [ "pic" ];
NIX_CFLAGS_COMPILE="-Wno-error=incompatible-pointer-types";
patchPhase = ''
substituteInPlace ./Makefile --replace /lib/modules/ "${kernel.dev}/lib/modules/"
substituteInPlace ./Makefile --replace '$(shell uname -r)' "${kernel.modDirVersion}"