Commit Graph

26 Commits

Author SHA1 Message Date
jopejoe1
51fb91b5c4 linuxPackages.jool: add pname and version 2026-01-13 22:47:53 +01:00
Ashish SHUKLA
50b8fd1ff9 jool: Unbreak with linux kernel >= 6.18
Courtesy: 039d64c4c4
2025-12-20 00:33:06 +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
Franz Pletz
de3c22d390 jool: reformat 2024-07-21 20:43:45 +02:00
rnhmjoj
e5319b3512 {jool,jool-cli}: link tests to passthu 2023-07-21 09:08:40 +02:00
Franz Pletz
8b3971f6fc jool: 4.1.9 -> 4.1.10 2023-06-21 13:46:15 +02:00
Yureka
e6c8a2f3e3 linuxPackages_latest.jool: fix build (#219138) 2023-03-06 09:56:37 +01:00
Nick Cao
fd5ead0eed jool: prepend kernel.makeFlags to makeFlags 2022-03-07 12:23:45 +08:00
Joel
e0819e3c50 jool: 4.1.6 -> 4.1.7
Also add missing license.
2022-02-27 09:54:34 +10: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
Michael Reilly
84cf00f980 treewide: Per RFC45, remove all unquoted URLs 2020-04-10 17:54:53 +01:00
embr
d88c68167a jool: removed kernel version assertion
I don't think this really makes sense, because upstream doesn't list any constraints on supported kernel versions, and worst case it'll just fail to build.
2019-04-20 09:54:30 +01:00
embr
68b4cf39a9 jool: unstable-20180706 -> 4.0.0 2019-04-20 09:42:48 +01:00
xeji
f0e4b31eb2 linuxPackages.jool: 3.5.7 -> unstable-20180706 (#47284)
3.5.7 doesn't build with kernel 4.14.71.
Needs most recent upstream revision to build, which supports
kernels up to 4.17.
2018-09-28 11:52:39 +02:00
Franz Pletz
6c33223f5f jool: 3.5.4 -> 3.5.7 2018-07-15 20:11:05 +02:00
Franz Pletz
9719e43494 jool: 3.5.3 -> 3.5.4 2017-08-01 06:15:59 +02:00
Franz Pletz
c4b2f9f784 jool: 3.5.2 -> 3.5.3 2017-03-28 20:14:19 +02:00
Franz Pletz
d733d36cc6 linuxPackages.jool: only supported on linux < 4.10
cc #23253
2017-02-28 14:47:04 +01:00
Franz Pletz
beca8946ee jool: 3.4.5 -> 3.5.0 2016-10-03 18:25:28 +02:00
Robin Gloster
f60c9df0ba Merge remote-tracking branch 'upstream/master' into hardened-stdenv 2016-03-28 15:16:29 +00:00
Joachim Fasting
eeca73dfac jool: mark broken for kernel versions > 4.3
All hydra builds for kernel version >4.3 fail; the build failure
indicates changes to the kernel API used by the package.
2016-03-26 20:23:48 +01:00
Franz Pletz
aff1f4ab94 Use general hardening flag toggle lists
The following parameters are now available:

  * hardeningDisable
    To disable specific hardening flags
  * hardeningEnable
    To enable specific hardening flags

Only the cc-wrapper supports this right now, but these may be reused by
other wrappers, builders or setup hooks.

cc-wrapper supports the following flags:

  * fortify
  * stackprotector
  * pie (disabled by default)
  * pic
  * strictoverflow
  * format
  * relro
  * bindnow
2016-03-05 18:55:26 +01:00
Robin Gloster
f6d3b7a2ae switch hardening flags 2016-01-30 16:36:57 +00:00
Franz Pletz
954e9903ad Use a hardened stdenv by default 2016-01-30 16:36:57 +00:00
Franz Pletz
a21ead3d62 jool: init at 3.3.2
Jool is a SIIT and a NAT64 implementation for Linux.
2015-07-12 07:25:44 +02:00