Commit Graph

21 Commits

Author SHA1 Message Date
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
Ben Siraphob
f15f53f89c linuxPackages.rtl*: mark broken on kernel >= 6.17 2025-11-16 21:51:46 -05:00
cy
14abbda063 linuxPackages.rtl8192eu: 2024-05-07 -> 2025-05-04
changelog: 27410641da...27aa922c29
2025-05-11 12:51:44 -04: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
Felix Buehler
740cf77809 rtl8192eu: remove 'with lib;' 2024-08-16 16:09:03 +02:00
WilliButz
a5959587e4 linuxPackages.rtl8192eu: 2023-06-13 -> 2024-05-07 2024-05-10 17:21:00 +02:00
troydm
3243db4cca rtl8192eu: update at 4.4.1.20230613 2023-06-13 17:31:04 +03:00
troydm
fd30e1de1e rtl8192eu: update at 4.4.1.20220614 2022-06-14 16:29:35 +03:00
Alyssa Ross
b3f626f6a0 linuxPackages.rtl8192eu: mark broken on Linux 5.18 2022-05-25 12:29:13 +00:00
Alyssa Ross
9701626605 linuxPackages.rtl8192eu: 4.4.1.20211023 -> 4.4.1.20220313
Fixes the build with Linux 5.17.
2022-03-20 22:40:15 +00:00
Nick Cao
977b3b12ac rtl8192eu: prepend kernel.makeFlags to makeFlags 2022-03-07 12:23:49 +08:00
Alyssa Ross
525c565bae linuxPackages.rtl8192eu: 4.4.1.20210403 -> 4.4.1.20211023
Fixes build with Linux 5.15.
2021-11-06 11:59:41 -07:00
fortuneteller2k
18b1789e32 rtl8192eu: 20200620 -> 20210403, mark as broken for aarch64 2021-05-13 11:57:16 -07:00
Ben Siraphob
16d91ee628 pkgs/os-specific: stdenv.lib -> lib 2021-01-17 23:26:08 +07:00
Martin Weinelt
392ca2ce5a linuxPackages.rtl8192eu: 4.4.1.20190319 -> 4.4.1.20200620
Fixes #95448

Co-Authored-By: Dmitry Geurkov <d.geurkov@gmail.com>
2020-08-18 14:15:20 +02:00
Michael Reilly
84cf00f980 treewide: Per RFC45, remove all unquoted URLs 2020-04-10 17:54:53 +01:00
Merijn Broeren
133103d709 treewide: replace make/build/configure/patchFlags with nix lists 2019-12-30 12:58:11 +01:00
Dmitry Geurkov
7e3dc85252 rtl8192eu: 4.4.1 -> 4.4.1.20190319 (#61195) 2019-05-27 19:01:55 -04:00
troydm
89d660f7f1 rtl8192eu: init at 4.4.1 2018-02-22 21:18:01 +02:00