Commit Graph

74 Commits

Author SHA1 Message Date
Alexander Bantyev
2839911e81 various: add security-review team as a maintainer
Adds the @NixOS/security-review team as a maintainer to multiple
packages deemed to be important security-wise.

For the motivation of the package list, see:
https://github.com/NixOS/nixpkgs/issues/494349#issuecomment-4005099033
2026-03-05 15:19:44 +01:00
Silvan Mosberger
69fa44b302 kmod: add comments for all patches (#469930) 2026-02-26 10:51:47 +00:00
nixpkgs-ci[bot]
e217c74eac Merge staging-next into staging 2026-02-06 18:16:24 +00:00
Markus Sütter
196b385317 various: add meta.identifier.cpeParts to a batch of packages 2026-02-02 09:22:55 +01:00
Doron Behar
e56dcea6ab kmod: split man output 2026-01-22 14:18:41 +02:00
Alexander Bantyev
c2112944d7 kmod: add comments for all patches
Adds comments to all patches to make the derivation more readable and
conform with the style guide
2025-12-11 18:33:21 +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
Wolfgang Walther
5a0711127c treewide: run nixfmt 1.0.0 2025-07-24 13:55:40 +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
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
Alyssa Ross
0a4b34b209 kmod: backport patch for musl 1.2.5 (#322720)
This fixes a segfault that will break kernel builds when we update to
musl 1.2.5.
2024-06-27 01:04:03 +02:00
Sergei Trofimovich
edb0b85e62 kmod: 30 -> 31
Changes: https://www.mail-archive.com/linux-kernel@vger.kernel.org/msg2559568.html
2023-10-13 11:00:26 +01:00
Artturin
7f8c707312 kmod: enable strictDeps
gtk-doc is already behind withDevdoc so gtk-doc in buildInputs works

perhaps an improvement would be to apply https://git.yoctoproject.org/poky/plain/meta/recipes-gnome/gtk-doc/files/pkg-config-native.patch
2023-02-25 22:55:13 +02:00
José Romildo
01510c7ff3 treewide: no need to pass pname, version and attrPath to update scripts based on generic-updater 2022-09-27 23:41:53 -03:00
Sergei Trofimovich
65b9c17842 kmod: drop darwin support
commit 7a2c07d29b "kmod: enable on darwin" added darwin
support mostly for `depmod` to be able to build `linux` kernel
on `darwin`.

In version 30 kmod requires more and more linux syscalls to build.
Instead of patching it for darwin let's drop it's support instead.

Maybe `depmod` could be packaged using some other way if needed.

Related: https://github.com/NixOS/nixpkgs/pull/182720 removed
`kmod` use on `darwin` from rare packages that still pulled it in.
2022-07-25 18:58:36 +01:00
Sergei Trofimovich
3feca2a040 kmod: 29 -> 30
While at it added trivial updater.

Changes: https://git.kernel.org/pub/scm/utils/kernel/kmod/kmod.git/plain/NEWS?h=v30
2022-07-11 23:03:10 +01:00
Alyssa Ross
b173750213 kmod: build devdoc
Switch from autoreconfHook to running autogen.sh ourselves so that
gtkdocize gets run.  The GTK_DOC_CHECK autoconf macro isn't
cross-friendly, so we have to disable it when cross-compiling.
2022-05-23 07:48:50 +00:00
Alyssa Ross
dc1303185f kmod: add dev and lib outputs
Reduces the closure size of pkgsStatic.kmod from 51.0M to 541.6K.
2022-03-07 11:02:29 +00:00
Artturin
86ae2154c2 kmod: add myself(artturin) as a maintainer 2021-12-08 02:56:40 +02:00
Artturin
453968c01a kmod: switch the priority of module dirs
make "/run/booted-system/kernel-modules" be searched first

Fixes https://github.com/NixOS/nixpkgs/issues/146383
modprobe: ERROR: could not insert 'zram': Invalid argument
2021-12-07 06:20:59 +02:00
Abdelhakim Qbaich
ea93044e9e kmod: fixing darwin.patch 2021-08-31 22:16:27 -07:00
Abdelhakim Qbaich
605ccef432 kmod: proper license entry 2021-08-27 17:23:55 -07:00
Abdelhakim Qbaich
7179ce3717 kmod: build with zstd support 2021-08-26 23:48:50 -07:00
Abdelhakim Qbaich
42e20c4e79 kmod: 27 -> 29 2021-08-26 23:48:11 -07:00
Sandro
b1526be944 Merge pull request #107824 from mroi/patch-kmod
kmod: fix depmod crash on darwin
2021-03-21 23:04:46 +01:00
Jonathan Ringer
9bb3fccb5b treewide: pkgs.pkgconfig -> pkgs.pkg-config, move pkgconfig to alias.nix
continuation of #109595

pkgconfig was aliased in 2018, however, it remained in
all-packages.nix due to its wide usage. This cleans
up the remaining references to pkgs.pkgsconfig and
moves the entry to aliases.nix.

python3Packages.pkgconfig remained unchanged because
it's the canonical name of the upstream package
on pypi.
2021-01-19 01:16: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
John Ericson
5c2965145f treewide: Inline more of the static overlay
Picking up where #107238 left off. I think I'll have gotten all the easy
stuff with this.
2021-01-03 21:46:14 +00:00
Michael Roitzsch
4224476df6 kmod: fix kmod tools crash on darwin
include the proper header for basename(), otherwise the returned
pointer is truncated to 32 bit because an int return type is assumed
2020-12-28 20:02:45 +01:00
Dominik Xaver Hörl
40d33887db kmod: add patch to correct behaviour with --field
This came up in https://github.com/NixOS/nixpkgs/pull/96008.
Without this patch modinfo always prints the module name for builtin
modules, even if an explicit --field is passed.
2020-08-24 10:59:16 +02:00
Michael Weiss
1b6e357424 kmod: 26 -> 27 2020-06-13 10:57:19 +02:00
Michael Reilly
84cf00f980 treewide: Per RFC45, remove all unquoted URLs 2020-04-10 17:54:53 +01:00
Alexander Bantyev
8983cac44c kmod: fix --enable-static 2019-11-11 11:10:59 +03:00
Gabriel Ebner
a0e4ee3111 aggregateModules: support depmod.d configuration 2019-11-03 17:32:46 +01:00
Ben Wolsieffer
b6d906732c aggregateModules: use stdenvNoCC instead of stdenv (#67579) 2019-08-28 09:48:48 -04:00
volth
f3282c8d1e treewide: remove unused variables (#63177)
* treewide: remove unused variables

* making ofborg happy
2019-06-16 19:59:05 +00:00
Linus Heckemann
217cfbe11a aggregateModules: allow passing name 2019-04-13 23:22:07 +02:00
Will Dietz
c13a29e398 kmod: 25 -> 26
https://lwn.net/Articles/779249/
2019-03-11 12:33:45 -05:00
Matthew Bauer
808f05808b kmod: avoid mass rebuild
elf-header shouldn’t be needed on linux
2018-12-02 19:34:55 -06:00
Matthew Bauer
7a2c07d29b kmod: enable on darwin
This is needed to build linux kernels on darwin. While we can’t
actually use it to load kernel modules, we can use it to create
indexes of modules on macOS.

(cherry picked from commit ebb31480e8a45efbaff4c4a212bdfc0b053adde0)
2018-12-02 14:12:42 -06:00
Markus Kowalewski
a3f9340d93 kmod: add license 2018-08-30 21:28:03 +02:00
John Ericson
e5d630e99e kmod: Remove crossAttrs
Issue #21191 is indeed fixed now.
2018-07-24 18:39:41 -04:00
Robert Hensing
30bff42231 linux module handling: support kernels without modules 2018-04-05 17:00:00 +02:00
Tuomas Tynkkynen
10bcf978eb kmod: 24 -> 25 2018-01-17 12:53:22 +02:00
mimadrid
09e0cc7cc7 Update homepage attributes: http -> https
Homepage link "http://.../" is a permanent redirect to "https://.../" and should be updated
https://repology.org/repository/nix_stable/problems
2017-08-03 11:56:15 +02:00
Eric Litak
f89504d067 kmod: crossDrv should use native xz 2017-04-14 18:03:49 -07:00
Peter Hoeg
89724f152a kmod: 23 -> 24 2017-03-14 18:06:55 +08:00
Eelco Dolstra
88f10ad409 aggregateModules: Preserve kernel's modules.{builtin,order}
Fixes #19426.
2016-10-11 11:42:41 +02:00
Nikolay Amiantov
2abe917f18 kmod: 22 -> 23, add /lib/modules to module directories 2016-08-19 17:57:08 +03:00
Nikolay Amiantov
ff22705793 treewide: replace several /sbin paths by /bin 2016-08-19 17:56:45 +03:00