Commit Graph

51 Commits

Author SHA1 Message Date
R. Ryantm
22897b7049 linuxPackages.ena: 2.17.0 -> 2.17.2 2026-07-09 00:46:53 +00:00
R. Ryantm
da11a14bc1 linuxPackages.ena: 2.16.0 -> 2.17.0 2026-04-30 14:07:23 +00:00
Winter M
cdc988c563 linuxPackages.ena: fix cross 2026-04-08 17:23:49 -04:00
jopejoe1
6af75ec629 linuxPackages.ena: add pname 2026-01-13 22:47:53 +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
R. Ryantm
281e38739f linuxPackages.ena: 2.15.0 -> 2.16.0 2025-11-08 11:27:12 +00:00
R. Ryantm
efbf1580dc linuxPackages.ena: 2.14.1 -> 2.15.0 2025-06-20 03:20:30 +00:00
R. Ryantm
02d0f9e8f2 linuxPackages.ena: 2.14.0 -> 2.14.1 2025-05-30 06:47:50 +00:00
R. Ryantm
9b3a7f3047 linuxPackages.ena: 2.13.3 -> 2.14.0 2025-05-08 22:59:52 +00:00
R. Ryantm
f8c70de514 linuxPackages.ena: 2.13.2 -> 2.13.3 2025-03-27 05:35:33 +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
Nicholas Sielicki
27e6ab385c linuxPackages.ena: bump 2.13.1 -> 2.13.2
fixes a build failure with 6.13-rcX

Signed-off-by: Nicholas Sielicki <nix@opensource.nslick.com>
2025-01-04 15:31:32 -08:00
Nicholas Sielicki
fb56d1e4a7 linuxPackages.ena: bump 2.13.0 -> 2.13.1
Signed-off-by: Nicholas Sielicki <nix@opensource.nslick.com>
2024-11-29 23:04:47 -08:00
Nicholas Sielicki
1441fa7fbe linuxPackages.ena: add updateScript
Signed-off-by: Nicholas Sielicki <nix@opensource.nslick.com>
2024-11-29 23:04:08 -08:00
Arian van Putten
d566d7927c linuxPackages.ena: 2.12.3->2.13.0 2024-10-16 11:55:36 +02:00
Jade Lovelace
5dfdb09561 tree-wide: remove eelco as maintainer from things he no longer maintains
While preparing this change, I read the git blame on all of the files I
touched. I saw a working lifetime of building this system which we use
every day and love dearly and keep maintained ourselves. I saw commits
from a 14 year range between 2003 to 2017!! I could not be more thankful
for Eelco's work on building large parts of the foundation of nixpkgs
that all of us rely on now.

However, the end date of that range of the files I looked at the blame
on was 2017. I did not see surviving code from any newer date than that.
Looking at the Git logs, Eelco has been working on other things, and
that's totally fine.

However, it means that our maintenance metadata is out of date on a lot
of packages, and *that*'s the reason I am submitting this change. There
are a lot of packages that don't have anyone with their name on them to
be pinged if they need attention, even if they have had recent activity
(although it is never clear if recent activity was just someone fixing
it because ZHF or because the package actually matters to them).
There are a lot of packages with storied history that maybe don't need
to be in the set anymore at all since they have not been touched in
years; or maybe they are simply finished.

Empty maintainer lists should be a sign that we need to figure out who
maintains it or potentially remove it if it has rotted, and allowing the
maintainer list to be empty if it is already not maintained is part of a
healthy repository ecology.

Either way, I would like to have the maintenance metadata not mislead
anyone into sending Eelco emails about packages he doesn't, in practice,
work on anymore. I have not removed his name from everything; there are
some things that he is the upstream for or has worked on more recently,
for instance, like Nix, which I have left alone.
2024-08-21 01:17:45 -07:00
Arian van Putten
7ece6d213e linuxPackages.ena: 2.12.1 -> 2.12.3
This now builds on 4.19 without the patch but needs a new patch for 6.10
2024-07-30 11:22:00 +02:00
Jörg Thalheim
37b2df819b linuxPackages.ena: add arianvp as maintainer 2024-07-29 18:00:07 +02:00
Enric Morales
91897777de linuxPackages.ena: 2.12.0 -> 2.12.1
Diff: https://github.com/amzn/amzn-drivers/compare/ena_linux_2.12.0...ena_linux_2.12.1
2024-07-29 18:00:07 +02:00
Enric Morales
f633fcf7b8 linuxPackages.ena: reformat, use upstream patch, remove problematic flag 2024-07-29 18:00:07 +02:00
Enric Morales
98bd35c20c linuxPackages.ena: patch kcompat.h for explicit compatibility with < 6.8 2024-05-14 23:58:20 +02:00
Enric Morales
1271a9d48c linuxPackages.ena: 2.8.9 -> 2.12.0 2024-05-14 09:38:15 +02:00
Nicholas Sielicki
32cd6f0e30 linuxPackages.ena: 2.8.6 -> 2.8.9
Removes several patches added in d915eb8 which are now included in-tree.

Notable commits, excluding aforementioned patches:
 + linux/ena: Add rx_overruns to ena-com structs
 + linux/ena: Report RX overrun errors via net device stats
 + linux/ena: Fix incorrect dma sync when SWIOTLB is on

full changelog: https://github.com/amzn/amzn-drivers/compare/ena_linux_2.8.6...ena_linux_2.8.9
2023-08-20 12:00:13 -05:00
Eelco Dolstra
d915eb8adf linuxPackages.ena: 2.8.3 -> 2.8.6 and fix build against Linux 6.3
This applies some patches that will be in the next version of ena, one
fixing the removal of the adjfreq field in ptp_clock_info, and the
others dealing with devlink changes.

https://hydra.nixos.org/build/221431596
2023-05-27 18:46:12 +02: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
Nicholas Sielicki
5dd7384427 linuxPackages.ena: 2.8.2 -> 2.8.3
Signed-off-by: Nicholas Sielicki <git@opensource.nslick.com>
2023-02-18 19:08:46 +00:00
Nicholas Sielicki
33397faec9 ena: 2.8.0 -> 2.8.2
* Notably, fixes build on kernel >= 5.17

Signed-off-by: Nicholas Sielicki <git@opensource.nslick.com>
2023-01-31 03:31:05 +00:00
Nicholas Sielicki
0927c6ee42 ena: 2.7.1 -> 2.8.0
* set ENA_PHC_INCLUDE=1 during build to enable ptp hardware stamping
* add sielicki to maintainers
* remove kernel 5.17 broken marker

Signed-off-by: Nicholas Sielicki <nix@opensource.nslick.com>
2022-11-30 02:35:46 +00:00
Euan Kemp
bb0210e327 ena: 2.5.0 -> 2.7.1
This update is supposed to give us support for the 5.17 kernel according to the
2.7.0 release notes here: https://github.com/amzn/amzn-drivers/releases/tag/ena_linux_2.7.0

Unfortunately, in practice, it does not build with `linuxPackages_5_17`,
so I left that marked as broken.

It does work for 5.15 though, so we can use that, woo!
2022-05-08 21:12:52 -07: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
07d1ce68d4 ena: pass makeFlags from kernel 2022-03-07 12:23:44 +08:00
Alyssa Ross
768c8ca162 linuxPackages.ena: mark broken on Linux 5.15 2021-11-06 11:43:56 -07:00
fortuneteller2k
9d57d41c17 linuxPackages.ena: 2.4.1 -> 2.5.0 2021-05-19 12:48:30 +08:00
Robert T. McGibbon
81e2319c1e kernelPackages.ena: 2.3.0 -> 2.4.1 2021-02-17 10:19:23 -05: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
Peter Hoeg
85298db412 kernelPackages.ena: 2.2.11 -> 2.3.0 2020-12-18 10:24:12 +08:00
Tim Steinbach
1687c719f8 ena: 2.2.7 -> 2.2.11 2020-10-05 12:38:43 -07:00
Peter Hoeg
ac3e909685 kernelPackages.ena: 2.1.2 -> 2.2.7 2020-05-18 10:29:57 +08:00
Michael Reilly
84cf00f980 treewide: Per RFC45, remove all unquoted URLs 2020-04-10 17:54:53 +01:00
danbst
4522648d0e linuxPackages/ena: 2.0.2 -> 2.1.2
Unbreak for newer kernels.
2019-08-15 10:10:25 +03:00
Samuel Dionne-Riel
7093970e1d linuxPackages.ena: 1.5.2 -> 2.0.2 2018-12-26 11:03:10 +00:00
volth
52f53c69ce pkgs/*: remove unreferenced function arguments 2018-07-21 02:48:04 +00:00
Piotr Bogdan
b353ff944a linuxPackages.ena: 1.5.0 -> 1.5.2 2018-03-27 22:28:58 +01:00
Jörg Thalheim
91f03e6b19 linuxPackages.ena: 1.2.0 -> 1.5.0; fix build dependencies 2018-01-05 10:02:25 +01:00
Jörg Thalheim
44f93731d6 linux_chromiumos_3_18: remove kernel due lack of maintainer/breakage
There is no maintainer for this package, probably not many users.
It requires effort to fix all third-party modules for this old kernel
versions. It might contain unpatched security holes.

For Pixel chromebooks, we have the samus-kernel.
Apart from that https://github.com/GalliumOS/linux might be a good choice.
2017-09-05 14:42:23 +02:00
Tim Steinbach
be17a1c525 ena: 20160629 -> 1.2.0 2017-08-28 16:45:48 -04:00
Domen Kožar
d199d5041a ena: mark as broken on chromiumos
(cherry picked from commit bc06f19efb)
Signed-off-by: Domen Kožar <domen@dev.si>
2016-09-21 12:04:17 +02:00
Robin Gloster
6a04de991c linuxPackages_3_12.ena: fix build 2016-08-29 16:35:13 +00:00
Robin Gloster
0f274be2fd linuxPackages.ena: disable pic 2016-08-13 10:12:07 +00:00