Commit Graph

25 Commits

Author SHA1 Message Date
Samuel Dionne-Riel
31a506f734 linuxPackages.rtl8814au: Drop unneeded NIX_CFLAGS_COMPILE
This usage was added in 0ab8bf61af, when
the package was added.

It *necessarily* has to be unneeded, as using kernelModuleMakeFlags and
the kernel's out-of-tree build tooling forces the unwrapped `cc` to be
used.

See here: f86e9fe549/pkgs/os-specific/linux/kernel/common-flags.nix (L10-L11)
2026-01-28 16:15:12 -05:00
Ihar Hrachyshka
567e8dfd8e treewide: clean up 'meta = with' pattern
This commit was created by a combination of scripts and tools:
- an ast-grep script to prefix things in meta with `lib.`,
- a modified nixf-diagnose / nixf combination to remove unused `with
lib;`, and
- regular nixfmt.

Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
2025-12-10 18:09:49 +01:00
magicquark
82aa30fde2 linuxPackages.rtl8814au: mark broken on kernel versions < 5.2 and > 6.14
- On Hydra, builds for kernel version  5_10, 5_15, 6_1, 6_6 and 6_12
  succeed, but the build for the latest latest kernel version 6_17 is
  failing.

- The upstream provider of the driver only supports kernel versions
  between version 5.2 and 6.14, inclusive. This is partly because a
  driver has been up-streamed into the kernel, so the package is not
  needed for recent drivers.

  [Reference](https://github.com/morrownr/8814au.)

- Because of this, mark the driver as broken on the relevant kernel
  versions.
2025-11-09 04:44:52 +00: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
Mohaim
d7705cea76 linux/rtl8814au: unstable-2024-03-19 -> unstable-2024-05-26 (#314880)
fix support for kernel 6.9
2024-07-06 23:01:54 +05:30
Mohaim-1
597e4a6345 rtl8814au: unstable-2023-03-21 -> unstable-2024-03-19 2024-03-19 22:50:18 -07:00
Alexandre Iooss
6ccd904251 rtl8814au: unstable-2022-11-09 -> unstable-2023-03-21 2023-05-21 11:56:12 +02:00
Weijia Wang
1dfe93fe85 treewide: move more NIX_CFLAGS_COMPILE to env 2023-02-25 13:00:47 +02:00
github-actions[bot]
61687cbd42 Merge master into staging-next 2023-02-03 00:02:29 +00:00
superherointj
1ff7e41b03 linuxKernel.rtl8814au: unstable-2022-08-18 -> unstable-2022-11-09
Fixes Kernel 6.1
2023-02-02 18:28:16 -03: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
lassulus
299cf6a333 linuxPackages.rtl8814au: unstable-2022-05-23 -> unstable-2022-08-18 2022-08-19 21:57:43 +02:00
Alyssa Ross
5d3a61e402 linuxPackages.rtl8814au: unstable-2022-02-21 -> unstable-2022-05-23
Fixes build with Linux 5.18.
2022-05-23 12:17:18 +00:00
Alyssa Ross
22bf6be3e0 linuxPackages.rtl8814au: 2021-10-25 -> 2022-02-21
Fixes the build with Linux 5.17.
2022-03-22 20:43:57 +00:00
Nick Cao
a0f82198c7 rtl8814au: pass makeFlags from kernel, move moduleBuildDependencies to nativeBuildInputs 2022-03-07 12:23:49 +08:00
Alyssa Ross
999d397259 linuxPackages.rtl8814au: 2021-05-18 -> 2021-10-25
Fixes build with Linux 5.15.
2021-11-06 11:58:29 -07:00
Alyssa Ross
ec33cdf902 linuxPackages.rtl8814au: parallel build
So much faster.  Tested at -j48.
2021-08-30 11:35:52 +00:00
fortuneteller2k
4e045f313b linuxPackages.rtl8814au: move to a more maintained fork 2021-05-19 13:34:25 +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
Michael Reilly
84cf00f980 treewide: Per RFC45, remove all unquoted URLs 2020-04-10 17:54:53 +01:00
volth
52f53c69ce pkgs/*: remove unreferenced function arguments 2018-07-21 02:48:04 +00:00
Jörg Thalheim
e115dac5fc rtl8814au: nitpicks 2018-02-24 14:00:00 +00:00
lassulus
0ab8bf61af rtl8814au: init at 4.3.21 2018-02-24 14:34:34 +01:00