Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

rtl8822ce: init at v5.9.0.3b #101317

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
6 changes: 6 additions & 0 deletions maintainers/maintainer-list.nix
Expand Up @@ -6711,6 +6711,12 @@
githubId = 627831;
name = "Hoang Xuan Phu";
};
pickfire = {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please put this into a separate commit with the message maintainers: add pickfire.

email = "pickfire@riseup.net";
github = "pickfire";
githubId = 4687791;
name = "Ivan Tham";
};
pierrechevalier83 = {
email = "pierrechevalier83@gmail.com";
github = "pierrechevalier83";
Expand Down
39 changes: 39 additions & 0 deletions pkgs/os-specific/linux/rtl8822ce/default.nix
@@ -0,0 +1,39 @@
{ stdenv, fetchFromGitHub, kernel, bc }:

stdenv.mkDerivation rec {
# this is already available on newer kernels such as zen
name = "rtl8822ce";
version = "v5.9.0.3b";

src = fetchFromGitHub {
owner = "rtlwifi-linux";
repo = "rtk_wifi_driver_rtl8822ce";
rev = version;
sha256 = "0cplb37r9dzmzcs9h283478z4szqs7w9ypd8r8pdzhzaa5057fqx";
};

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 rtl8822ce driver";
homepage = "https://github.com/rtlwifi-linux/rtk_wifi_driver_rtl8822ce";
license = licenses.gpl2;
platforms = platforms.linux;
maintainers = with maintainers; [ pickfire ];
};
}
2 changes: 2 additions & 0 deletions pkgs/top-level/all-packages.nix
Expand Up @@ -18000,6 +18000,8 @@ in

rtl8821cu = callPackage ../os-specific/linux/rtl8821cu { };

rtl8822ce = callPackage ../os-specific/linux/rtl8822ce { };

rtlwifi_new = callPackage ../os-specific/linux/rtlwifi_new { };

openafs = callPackage ../servers/openafs/1.6/module.nix { };
Expand Down