Commit Graph

26 Commits

Author SHA1 Message Date
aleksana
073f90de25 linuxPackages_latest.rtl8821cu: unstable-2025-10-09 -> unstable-2025-12-15 2025-12-27 13:52:38 +08:00
magicquark
0c8f755827 linuxPackages.rtl8821cu: modernise 2025-11-14 01:50:24 +00:00
magicquark
c67b73ce65 linuxPackages.rtl8821cu: 2025-05-08 -> 2025-10-09
Diff: d74134a1c6..3d1fcf4bc8

- This update adds fixes for Linux kernel versions 6.15.y, 6.16.y and 6.17.y.
2025-11-14 01:44:26 +00:00
Aleksana
366bafce3b linuxPackages.rtl8821cu: unstable-2024-09-27 -> unstable-2025-05-08 (#410667) 2025-06-22 16:38:57 +08:00
TomaSajt
b7a50a29b6 linuxPackages.rtl8821cu: fix github project name in meta.homepage 2025-06-19 08:58:09 +02:00
eljamm
231a599360 linuxPackages.rtl8821cu: unstable-2024-09-27 -> unstable-2025-05-08
Which also fixes builds with newer kernels.
2025-05-25 01:54:05 +02:00
Maximilian Bosch
5645cd22d4 linux: expose make flags for modules in linuxKernel.packages.linux_X_Y
Closes #376820

The issue with providing `moduleMakeFlags` via `passthru` of the kernel
package is that when this package gets overriden[1], the `moduleMakeFlags`
list still references the kernel without the overrides.

This broke e.g. kernel modules of linux-rpi4 which can be reproduced
with

    nix-build --argstr system aarch64-linux -A linuxKernel.packages.linux_rpi4.zfs_2_3

This used to break with

    Error: modDirVersion 6.6.51 specified in the Nix expression is wrong, it should be: 6.6.51-v8

since KBUILD_OUTPUT referenced the kernel without the changes from
`overrideDerivation` that also changes the `modDirVersion`.

The new approach is to add the build flags right into
`linuxKernel.packages.linux_X_Y`: that way we don't need any hacks to
update `moduleMakeFlags` when the derivation with the passthru gets
overridden.

By using the fixpoint of the package-set, the `kernelModuleMakeFlags`
list is correctly updated. E.g. given

    with import ./. {};

    linuxKernel.packages.linux_6_6.extend (self: super: {
      kernel = super.kernel.overrideAttrs (_: {
        name = "linux-snens";
      });
    })

the `makeFlags` is correctly updated:

    $ nix-instantiate snenskek.nix -A zfs_2_3.makeFlags --eval --strict
    [ "ARCH=x86_64" "CROSS_COMPILE=" "KBUILD_OUTPUT=/nix/store/gsp68549k1aqbwxwczpgw67w5jjn4shw-linux-snens-dev/lib/modules/6.6.74/build" ]

[1] E.g. `linux-rpi4`.
2025-01-27 16:09:50 +01:00
K900
aa3e94fe7c treewide: kernel.makeFlags -> kernel.moduleMakeFlags 2025-01-23 14:00:43 +03:00
Silvan Mosberger
4f0dadbf38 treewide: format all inactive Nix files
After final improvements to the official formatter implementation,
this commit now performs the first treewide reformat of Nix files using it.
This is part of the implementation of RFC 166.

Only "inactive" files are reformatted, meaning only files that
aren't being touched by any PR with activity in the past 2 months.
This is to avoid conflicts for PRs that might soon be merged.
Later we can do a full treewide reformat to get the rest,
which should not cause as many conflicts.

A CI check has already been running for some time to ensure that new and
already-formatted files are formatted, so the files being reformatted here
should also stay formatted.

This commit was automatically created and can be verified using

    nix-build a08b3a4d19.tar.gz \
      --argstr baseRev b32a094368
    result/bin/apply-formatting $NIXPKGS_PATH
2024-12-10 20:26:33 +01:00
nat
fd70778e9b linuxPackages.rtl8821cu: unstable-2024-05-03 -> unstable-2024-09-27 2024-11-12 00:01:59 +01:00
WilliButz
dc49a073ee linuxPackages.rtl8821cu: 2023-09-10 -> 2024-05-03 2024-05-10 17:22:28 +02:00
nat
0b88560e18 linuxPackages.rtl8821cu: unstable-2023-04-28 -> unstable-2023-09-10 2023-09-21 17:25:13 +02:00
Vanilla
f09bffe4d7 linuxPackages.rtl8821cu: unstable-2022-12-07 -> unstable-2023-04-28 2023-05-17 13:51:35 +08:00
Artturin
6e3bff617f treewide: remove replacements of '$(shell uname -r)' with '${kernel.modDirVersion}'
after adding deterministic-uname to kernel.moduleBuildDependencies this
is unnecessary
2023-01-22 13:46:12 +02:00
Peter Hoeg
428382fe47 rtl8821cu: 2022-05-07 -> 2022-12-07 2022-12-14 22:14:36 +08:00
Peter Hoeg
ca69d21dd9 kernelPackages.rtl8821cu: bump to add support for 5.19.2 2022-08-23 10:18:14 +08:00
Peter Hoeg
0990595309 rtl8821cu: 2022-03-08 -> 2022-05-07 2022-06-12 21:59:23 +08:00
Alyssa Ross
a982f69fa8 linuxPackages.rtl8821cu: 2021-10-21 -> 2022-03-08
Like with other morrownr modules, the 8821cu repo now links to
the 8821cu-20210118 repository as the place to get the driver code.  I
kept the homepage as 8821cu though, because in future if a new version
of the driver is created, that's where the link will be posted.

Fixes the build with Linux 5.17.
2022-03-20 22:46:05 +00:00
Nick Cao
3f6359ac26 rtl8821cu: pass makeFlags from kernel, move moduleBuildDependencies to nativeBuildInputs 2022-03-07 12:23:48 +08:00
Alyssa Ross
44729a305e linuxPackages.rtl8821cu: 2021-05-19 -> 2021-10-21
Fixes build with Linux 5.15.
2021-11-06 11:59:21 -07:00
Alyssa Ross
9ef6829aea linuxPackages.rtl8821cu: parallel build
Tested at -j48.
2021-08-30 11:35:52 +00:00
fortuneteller2k
d7692cd0d1 linuxPackages.rtl8821cu: switch to a more maintained fork 2021-05-19 16:46:32 +08:00
Profpatsch
4a7f99d55d treewide: with stdenv.lib; in meta -> with lib;
Part of: https://github.com/NixOS/nixpkgs/issues/108938

meta = with stdenv.lib;

is a widely used pattern. We want to slowly remove
the `stdenv.lib` indirection and encourage people
to use `lib` directly. Thus let’s start with the meta
field.

This used a rewriting script to mostly automatically
replace all occurances of this pattern, and add the
`lib` argument to the package header if it doesn’t
exist yet.

The script in its current form is available at
https://cs.tvl.fyi/depot@2f807d7f141068d2d60676a89213eaa5353ca6e0/-/blob/users/Profpatsch/nixpkgs-rewriter/default.nix
2021-01-11 10:38:22 +01:00
Sridhar Ratnakumar
9b3ad00d8b Bump rtl8821cu for Linux 5.10 support
This makes rtl8821cu build on pkgs.linuxPackages_latest
2020-12-29 19:08:37 -05:00
Tim Steinbach
6fbd64645c rtl8821cu: 2020-05-16 -> 2020-08-21 2020-10-05 13:07:29 -07:00
YI
8d8129aec1 linuxPackages.rtl8821cu: init at 2020-05-16 2020-08-22 23:09:45 +08:00