diff options
author | YI <uuuuuu@protonmail.com> | 2020-06-04 22:47:20 +0800 |
---|---|---|
committer | YI <uuuuuu@protonmail.com> | 2020-08-22 23:09:45 +0800 |
commit | 8d8129aec1220ba2a6b21b030a2792c5a0807aee (patch) | |
tree | e29e7823059ab6c5993c1862ff137266a004d9b8 /pkgs/os-specific/linux/rtl8821cu | |
parent | 2710fed815a18340ea770030795a162b1e8c9aee (diff) | |
download | nixpkgs-8d8129aec1220ba2a6b21b030a2792c5a0807aee.tar nixpkgs-8d8129aec1220ba2a6b21b030a2792c5a0807aee.tar.gz nixpkgs-8d8129aec1220ba2a6b21b030a2792c5a0807aee.tar.bz2 nixpkgs-8d8129aec1220ba2a6b21b030a2792c5a0807aee.tar.lz nixpkgs-8d8129aec1220ba2a6b21b030a2792c5a0807aee.tar.xz nixpkgs-8d8129aec1220ba2a6b21b030a2792c5a0807aee.tar.zst nixpkgs-8d8129aec1220ba2a6b21b030a2792c5a0807aee.zip |
linuxPackages.rtl8821cu: init at 2020-05-16
Diffstat (limited to 'pkgs/os-specific/linux/rtl8821cu')
-rw-r--r-- | pkgs/os-specific/linux/rtl8821cu/default.nix | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/pkgs/os-specific/linux/rtl8821cu/default.nix b/pkgs/os-specific/linux/rtl8821cu/default.nix new file mode 100644 index 00000000000..62ea8aaaab5 --- /dev/null +++ b/pkgs/os-specific/linux/rtl8821cu/default.nix @@ -0,0 +1,37 @@ +{ stdenv, fetchFromGitHub, kernel, bc }: +stdenv.mkDerivation rec { + name = "rtl8821cu-${kernel.version}-${version}"; + version = "unstable-2020-05-16"; + + src = fetchFromGitHub { + owner = "brektrou"; + repo = "rtl8821cu"; + rev = "5c510c9f14352fed4906a10921040b9e46b58346"; + sha256 = "1n74h1m3l2dj35caswaghzcjwcv5qlv3gj6j1rqdddbyg5khl4ag"; + }; + + hardeningDisable = [ "pic" ]; + + nativeBuildInputs = [ bc ]; + buildInputs = kernel.moduleBuildDependencies; + + 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 rtl8821cu driver"; + homepage = "https://github.com/brektrou/rtl8821CU"; + license = licenses.gpl2; + platforms = platforms.linux; + maintainers = [ maintainers.contrun ]; + }; +} |