Commit Graph

15 Commits

Author SHA1 Message Date
Eman Resu
9d26adcd20 treewide: avoid using singleton lists for licenses 2026-07-15 13:56:52 -04:00
Markus Theil
ca0118fe7a mstflint: 4.34.0-1 -> 4.34.1-2
Adapt mstflint and mstflint_access to use same source.
This enables the auto-update bot to work for these packages.

Signed-off-by: Markus Theil <theil.markus@gmail.com>
2025-12-27 13:38:57 +01: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
Markus Theil
d473ce0c55 mstflint_access: 4.31.0-1 -> 4.34.0-1
Signed-off-by: Markus Theil <theil.markus@gmail.com>
2025-11-11 12:39:21 +01:00
Wolfgang Walther
5a0711127c treewide: run nixfmt 1.0.0 2025-07-24 13:55:40 +02:00
Markus Theil
405f561c37 mstflint_access: use kernel Makefile for install
Signed-off-by: Markus Theil <theil.markus@gmail.com>
2025-07-09 11:40:20 +02:00
Silvan Mosberger
374e6bcc40 treewide: Format all Nix files
Format all Nix files using the officially approved formatter,
making the CI check introduced in the previous commit succeed:

  nix-build ci -A fmt.check

This is the next step of the of the [implementation](https://github.com/NixOS/nixfmt/issues/153)
of the accepted [RFC 166](https://github.com/NixOS/rfcs/pull/166).

This commit will lead to merge conflicts for a number of PRs,
up to an estimated ~1100 (~33%) among the PRs with activity in the past 2
months, but that should be lower than what it would be without the previous
[partial treewide format](https://github.com/NixOS/nixpkgs/pull/322537).

Merge conflicts caused by this commit can now automatically be resolved while rebasing using the
[auto-rebase script](8616af08d9/maintainers/scripts/auto-rebase).

If you run into any problems regarding any of this, please reach out to the
[formatting team](https://nixos.org/community/teams/formatting/) by
pinging @NixOS/nix-formatting.
2025-04-01 20:10:43 +02:00
Markus Theil
3d229753d6 mstflint_access: 4.30.0-1 -> 4.31.0-1; mstflint: 4.30.0-1 -> 4.31.0-1
Contains many fixes for mlxfwreset on Bluefields.

Signed-off-by: Markus Theil <theil.markus@gmail.com>
2025-02-13 09:00:52 +01: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
R. Ryantm
e5634777f1 mstflint: 4.29.0-1 -> 4.30.0-1 2024-12-09 20:41:04 +01:00
Markus Theil
a755db7192 mstflint_access: 4.28.0-1 -> 4.29.0-1
This is a small follow-up on the mstflint bump to 4.29.0-1.
I added a reminder for this in the future.

Signed-off-by: Markus Theil <theil.markus@gmail.com>
2024-08-22 10:51:36 +02:00
Alexis Hildebrandt
755b915a15 treewide: Remove indefinite article from meta.description
nix run nixpkgs#silver-searcher -- -G '\.nix$' -0l 'description.*"[Aa]n?' pkgs \
  | xargs -0 nix run nixpkgs#gnused -- -i '' -Ee 's/(description.*")[Aa]n? (.)/\1\U\2/'
2024-06-09 23:07:45 +02:00
Markus Theil
d45657d3ee mstflint_access: 4.26.0-1 -> 4.28.0-1
Release Notes: see mstflint bump

Notable Fixes:
* fix compilation with Linux 6.4 upwards

Signed-off-by: Markus Theil <theil.markus@gmail.com>
2024-05-13 15:53:03 +02:00
Markus Theil
cc18755c08 mstflint_access: init at 4.26
Add companion kernel module for mstflint, which is required
on some systems with secure boot enabled.

Link to corresponding mstflint version.

Signed-off-by: Markus Theil <theil.markus@gmail.com>
2023-11-11 10:56:46 +01:00