Commit Graph

23 Commits

Author SHA1 Message Date
Tom Hunze
cb0e7dedce linuxPackages.digimend: fix build
`del_timer_sync` was renamed to `timer_delete_sync` in Linux 6.2 [1].
The `del_timer_sync` compatibility wrapper was removed in Linux 6.15
[2].

Upstream PR: https://github.com/DIGImend/digimend-kernel-drivers/pull/729

[1] 9b13df3fb6
[2] 8fa7292fee
2026-03-06 19:17:46 +01:00
Samuel Dionne-Riel
7f8e850ba4 linuxPackages.digimend: Drop unneeded NIX_CFLAGS_COMPILE
This use was added in ddf273588e.

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:18:02 -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
Wolfgang Walther
90e7159c55 treewide: remove unused rec
Auto-fix by nixf-diagnose.
2025-10-05 10:49:12 +02:00
Javier Olaechea
7d824343b2 linuxPackages.digimend: 13 -> 13-unstable-2025-01-02
- Update the version to the latest commit, [f3c7c7f]. This includes the changes
  needed to build digimend for Linux versions >= 6.12. 6.11 has already been
  removed from the unstable branch.

- Remove postInstall hook. The file the hook is trying to remove is no longer
  there. It was removed in commit [3e41e85].

[f3c7c7f]: f3c7c7f117
[3e41e85]: 3e41e856f3
2025-04-20 01:09:50 -05:00
Winter
a19cd4ffb1 Revert "treewide: replace rev with tag"
This reverts commit 65a333600d.

This wasn't tested for correctness with something like fodwatch [0],
and should not have been (self-)merged so quickly, especially without
further review.

It also resulted in the breakage of at least one package [1] (and that's
the one we know of and was caught).

A few packages that were updated in between this commit and this revert
were not reverted back to using `rev`, but other than that, this is a
1:1 revert.

[0]: https://codeberg.org/raphaelr/fodwatch
[1]: https://github.com/NixOS/nixpkgs/pull/396904 / 758551e458
2025-04-08 02:57:25 -04:00
Pol Dellaiera
65a333600d treewide: replace rev with tag 2025-04-07 16:57:22 +02:00
Javier Olaechea
f3354197c4 linuxPackages.digimend: Add PuercoPop as a maintainer 2025-04-06 01:04:31 -05:00
Arnout Engelen
f887c1da04 treewide: remove gebner from maintainers
gebner has been an amazing maintainer, but appears to have moved on:
the last commit on nixpkgs appears to have been in Feb 2023, and
they have not been responding to pings (e.g.
https://github.com/NixOS/nixpkgs/issues/347764).

They also approved https://github.com/NixOS/nixpkgs/pull/337292 before,
but that PR had some additional changes and was closed without merging.

This PR is in no way intended to diminuish Gabriel's accomplishments,
and they're welcome to just say so if they'd prefer this PR not to
be merged. Also, even if it's merged, of course they're always welcome
to return to activity and be added back. The intent of this PR is to
give more realistic expectations around the maintainership of these
packages, and to invite others to step up for maintainership if they
rely on those packages.

This seems in line with https://github.com/NixOS/nixpkgs/tree/master/maintainers#how-to-lose-maintainer-status
2025-03-11 14:37:35 +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
Jussi Kuokkanen
95cc312a68 pkgs/os-specific: remove licenses.gpl2 2024-06-21 12:28:43 +03:00
Vladyslav M.
7f2893f3f5 linuxPackages.digimend: unstable-2023-05-03 -> 13 2024-05-03 12:23:20 +03:00
Vladyslav M
5131181502 digimend: 10 -> unstable-2023-05-03 2023-06-09 20:51:18 +03:00
Artturin
f9fdf2d402 treewide: move NIX_CFLAGS_COMPILE to the env attrset
with structuredAttrs lists will be bash arrays which cannot be exported
which will be a issue with some patches and some wrappers like cc-wrapper

this makes it clearer that NIX_CFLAGS_COMPILE must be a string as lists
in env cause a eval failure
2023-02-22 21:23:04 +02:00
Artturin
6f6cc4a22d treewide: use toString on list NIX_CFLAGS_COMPILE
with structuredAttrs lists will be bash arrays which cannot be exported
which will be a issue with some patches and some wrappers like cc-wrapper
2023-02-22 21:23:04 +02:00
Gabriel Ebner
ddf273588e linuxPackages.digimend: unstable-2019-06-18 -> 10 2022-05-28 16:47:39 +02:00
Alyssa Ross
ae8e8aaee7 treewide: remove obsolete kernel version checks
We no longer support any Linux kernel older than 4.9.
2022-04-08 09:56:09 +00:00
Nick Cao
98bd4307a6 digimend: prepend kernel.makeFlags to makeFlags 2022-03-07 12:23:44 +08:00
Ben Siraphob
16d91ee628 pkgs/os-specific: stdenv.lib -> lib 2021-01-17 23:26:08 +07: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
Gabriel Ebner
dae537c37a linuxPackages.digimend: fix build with linux 5.4 2019-12-27 19:14:27 +01:00
Gabriel Ebner
1af9ccccb0 linuxPackages.digimend: init at unstable-2019-06-18 2019-11-03 17:32:46 +01:00