summary refs log tree commit diff
path: root/pkgs/os-specific/linux/rtl8812au
diff options
context:
space:
mode:
authorYochai <yochai@titat.info>2015-09-03 12:52:17 +0300
committerRok Garbas <rok@garbas.si>2015-09-03 23:50:05 +0200
commit6f3f5f536dd55f757f6cf4c4e9f861a5168e8392 (patch)
tree63651d7699b1b2377e8234193369f395c7dafc60 /pkgs/os-specific/linux/rtl8812au
parentb716673f971311c40cd037c95860ea36c6e9ff2c (diff)
downloadnixpkgs-6f3f5f536dd55f757f6cf4c4e9f861a5168e8392.tar
nixpkgs-6f3f5f536dd55f757f6cf4c4e9f861a5168e8392.tar.gz
nixpkgs-6f3f5f536dd55f757f6cf4c4e9f861a5168e8392.tar.bz2
nixpkgs-6f3f5f536dd55f757f6cf4c4e9f861a5168e8392.tar.lz
nixpkgs-6f3f5f536dd55f757f6cf4c4e9f861a5168e8392.tar.xz
nixpkgs-6f3f5f536dd55f757f6cf4c4e9f861a5168e8392.tar.zst
nixpkgs-6f3f5f536dd55f757f6cf4c4e9f861a5168e8392.zip
rtl8812au: init at 4.2.2
Diffstat (limited to 'pkgs/os-specific/linux/rtl8812au')
-rw-r--r--pkgs/os-specific/linux/rtl8812au/default.nix31
1 files changed, 31 insertions, 0 deletions
diff --git a/pkgs/os-specific/linux/rtl8812au/default.nix b/pkgs/os-specific/linux/rtl8812au/default.nix
new file mode 100644
index 00000000000..a16e102bc08
--- /dev/null
+++ b/pkgs/os-specific/linux/rtl8812au/default.nix
@@ -0,0 +1,31 @@
+{ stdenv, fetchFromGitHub, kernel }:
+
+stdenv.mkDerivation rec {
+  name = "rtl8812au-${kernel.version}-${version}";
+  version = "4.2.2-1";
+  
+  src = fetchFromGitHub {
+    owner = "csssuf";
+    repo = "rtl8812au";
+    rev = "874906aec694c800bfc29b146737b88dae767832";
+    sha256 = "14ifhplawipfd6971mxw76dv3ygwc0n8sbz2l3f0vvkin6x88bsj";
+  };
+  
+  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/"
+  '';
+  
+  preInstall = ''
+    mkdir -p "$out/lib/modules/${kernel.modDirVersion}/kernel/net/wireless/"
+  '';
+   
+  meta = {
+    description = "Driver for Realtek 802.11ac, rtl8812au, provides the 8812au mod.";
+    homepage = "https://github.com/csssuf/rtl8812au";
+    license = stdenv.lib.licenses.gpl2;
+    platforms = [ "x86_64-linux" "i686-linux" ];
+  };
+}
\ No newline at end of file