mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-12-30 23:34:12 +03:00
linuxPackages.rtl88x2bu: init at 2020-05-19
This commit is contained in:
parent
3f529586ca
commit
38f5fce48a
38
pkgs/os-specific/linux/rtl88x2bu/default.nix
Normal file
38
pkgs/os-specific/linux/rtl88x2bu/default.nix
Normal file
@ -0,0 +1,38 @@
|
||||
{ stdenv, fetchFromGitHub, kernel, bc }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
name = "rtl88x2bu-${kernel.version}-${version}";
|
||||
version = "unstable-2020-05-19";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "cilynx";
|
||||
repo = "rtl88x2BU";
|
||||
rev = "0f159d7cd937a12b818121cb1f1c4910bd1adc72";
|
||||
sha256 = "0flqnvzfdb4wsiiqv9vf5gfwd5fgpjvhs9zhqknnv1cmp8msgw6y";
|
||||
};
|
||||
|
||||
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 rtl88x2bu driver";
|
||||
homepage = "https://github.com/cilynx/rtl88x2bu";
|
||||
license = licenses.gpl2;
|
||||
platforms = platforms.linux;
|
||||
maintainers = [ maintainers.ralith ];
|
||||
};
|
||||
}
|
@ -17039,6 +17039,8 @@ in
|
||||
|
||||
rtl8821ce = callPackage ../os-specific/linux/rtl8821ce { };
|
||||
|
||||
rtl88x2bu = callPackage ../os-specific/linux/rtl88x2bu { };
|
||||
|
||||
rtlwifi_new = callPackage ../os-specific/linux/rtlwifi_new { };
|
||||
|
||||
openafs = callPackage ../servers/openafs/1.6/module.nix { };
|
||||
|
Loading…
Reference in New Issue
Block a user