diff options
author | Jörg Thalheim <Mic92@users.noreply.github.com> | 2018-02-24 14:14:47 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-02-24 14:14:47 +0000 |
commit | da5f9e64faa73013434e93af575cf0a6d81f3bd5 (patch) | |
tree | 1a4e9aad0f6cbaded9c09097b279c62a8f180b5a | |
parent | 40186c3af20dd6d3b89d5fc9e3d5ebab004ac56d (diff) | |
parent | e115dac5fcf968720d4a57e4defffc161a71d6cb (diff) | |
download | nixlib-da5f9e64faa73013434e93af575cf0a6d81f3bd5.tar nixlib-da5f9e64faa73013434e93af575cf0a6d81f3bd5.tar.gz nixlib-da5f9e64faa73013434e93af575cf0a6d81f3bd5.tar.bz2 nixlib-da5f9e64faa73013434e93af575cf0a6d81f3bd5.tar.lz nixlib-da5f9e64faa73013434e93af575cf0a6d81f3bd5.tar.xz nixlib-da5f9e64faa73013434e93af575cf0a6d81f3bd5.tar.zst nixlib-da5f9e64faa73013434e93af575cf0a6d81f3bd5.zip |
Merge pull request #35470 from Lassulus/rtl8814au
rtl8814au: init at 4.3.21
-rw-r--r-- | pkgs/os-specific/linux/rtl8814au/default.nix | 39 | ||||
-rw-r--r-- | pkgs/top-level/all-packages.nix | 2 |
2 files changed, 41 insertions, 0 deletions
diff --git a/pkgs/os-specific/linux/rtl8814au/default.nix b/pkgs/os-specific/linux/rtl8814au/default.nix new file mode 100644 index 000000000000..99b42fc74007 --- /dev/null +++ b/pkgs/os-specific/linux/rtl8814au/default.nix @@ -0,0 +1,39 @@ +{ stdenv, fetchFromGitHub, fetchpatch, kernel }: + +stdenv.mkDerivation rec { + name = "rtl8814au-${kernel.version}-${version}"; + version = "4.3.21"; + + src = fetchFromGitHub { + owner = "zebulon2"; + repo = "rtl8814au"; + rev = "a58c56a5a6cb99ffb872f07cb67b68197911854f"; + sha256 = "1ffm67da183nz009gm5v9w1bab081hrm113kk8knl9s5qbqnn13q"; + }; + + buildInputs = kernel.moduleBuildDependencies; + + hardeningDisable = [ "pic" ]; + + NIX_CFLAGS_COMPILE="-Wno-error=incompatible-pointer-types"; + + prePatch = '' + 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/" + ''; + + meta = with stdenv.lib; { + description = "Realtek 8814AU USB WiFi driver"; + homepage = https://github.com/zebulon2/rtl8814au; + license = licenses.gpl2; + maintainers = [ maintainers.lassulus ]; + platforms = [ "x86_64-linux" "i686-linux" ]; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 82c577d0c4ea..7e208b9c08c6 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -13257,6 +13257,8 @@ with pkgs; rtl8812au = callPackage ../os-specific/linux/rtl8812au { }; + rtl8814au = callPackage ../os-specific/linux/rtl8814au { }; + rtlwifi_new = callPackage ../os-specific/linux/rtlwifi_new { }; openafs = callPackage ../servers/openafs/module.nix { }; |