Commit Graph

684994 Commits

Author SHA1 Message Date
Alois Wohlschlager
3616cfb8d9 replaceDependencies: add support for ca-derivations
Unlike regular input-addressed or fixed-output derivations, floating and
deferred derivations do not have their store path available at evaluation time,
so their outPath is a placeholder. The following changes are needed for
replaceDependencies to continue working:
* Detect the placeholder and retrieve the store path using another IFD hack
  when collecting the rewrite plan.
* Try to obtain the derivation name needed for replaceDirectDependencies from
  the derivation arguments if a placeholder is detected.
* Move the length mismatch detection to build time, since the placeholder has a
  fixed length which is unrelated to the store path.
2024-09-24 12:20:15 +02:00
Alois Wohlschlager
59ca239d1a replaceDirectDependencies: split off from replaceDependencies
This allows both swapping out and reusing the rewrite machinery.
2024-09-24 12:20:15 +02:00
Alois Wohlschlager
fee5c7e1c2 replaceDependencies: add tests
The tests cannot be directly built by Hydra, because replaceDependencies relies
on IFD. Instead, they are put inside a NixOS test where they are built on the
guest.
2024-09-24 12:20:15 +02:00
Alois Wohlschlager
63d6a7037c nixos/top-level: wire up cutoffPackages for replaceDependencies
Move replaceRuntimeDependencies to the replaceDependencies namespace,
where the structure is more consistent with the replaceDependencies
function. This makes space for wiring up cutoffPackages as an option
too.

By default, the system's initrd is excluded. The replacement process does not
work properly anyway due to the structure of the initrd (the files being copied
into it, and it being compressed). In the worst case (which has been observed
to actually occur in practice), a store path makes it into the incompressible
parts of the archive, checksums are broken, and the system won't boot.
2024-09-24 12:20:15 +02:00
Alois Wohlschlager
d3abae8dee nixos/top-level: improve replaceRuntimeDependencies
Instead of iterating over all replacements and applying them one by one,
use the newly introduced replaceDependencies function to apply them all
at once for replaceRuntimeDependencies. The advantages are twofold in
case there are multiple replacements:
* Performance is significantly improved, because there is only one pass
  over the closure to be made.
* Correctness is improved, because replaceDependencies also replaces
  dependencies of the replacements themselves if applicable.

Fixes: https://github.com/NixOS/nixpkgs/issues/4336
2024-09-24 12:20:15 +02:00
Alois Wohlschlager
af3a3f64df replaceDependencies: evolve from replaceDependency
Rewrite replaceDependency so that it can apply multiple replacements in
one go. This includes correctly handling the case where one of the
replacements itself needs to have another replacement applied as well.
This rewritten function is now aptly called replaceDependencies.

For compatibility, replaceDependency is retained as a simple wrapper
over replaceDependencies. It will cause a rebuild because the unpatched
dependency is now referenced by derivation instead of by storePath, but
the functionality is equivalent.

Fixes: https://github.com/NixOS/nixpkgs/issues/199162
2024-09-24 12:20:15 +02:00
Yt
2232cae406
postgresqlPackages.pgvecto-rs: 0.2.1 -> 0.3.0 (#321617) 2024-09-24 05:56:28 -04:00
Yt
d026e3fa1a
immich: init at 1.115.0; nixos/immich: init module (#324127) 2024-09-24 05:56:12 -04:00
Jörg Thalheim
81c646c4e5
nixos/installer/tools: only enable tools if nix is enabled (#344132) 2024-09-24 11:22:51 +02:00
Jörg Thalheim
73e0dd91e2
deck: 1.39.6 -> 1.40.1 (#341935) 2024-09-24 11:21:16 +02:00
nvimtor
fc1402425f vimPlugins.aider-nvim: init at 2023-10-22 2024-09-24 10:36:21 +02:00
Gaétan Lepage
b4a4679372
vimPlugins.render-markdown-nvim: remove unneeded nvim-treesitter dependency (#344143) 2024-09-24 16:29:50 +08:00
Kait Lam
518fc09de0
ocamlPackages.mlbdd: init at 0.7.2 (#344136) 2024-09-24 10:26:35 +02:00
Aleksana
b659fa4ef8
ryujinx: 1.1.1385 -> 1.1.1398, fix updater script (#343969) 2024-09-24 16:17:01 +08:00
Gaetan Lepage
b4cde4d7f1 luaPackages.neorg: init at 9.1.1-1
Co-authored-by: Austin Horstman <khaneliman12@gmail.com>
2024-09-24 10:06:58 +02:00
Gaetan Lepage
d3e5730bbd python312Packages.ale-py: 0.9.1 -> 0.10.0
Diff: https://github.com/Farama-Foundation/Arcade-Learning-Environment/compare/refs/tags/v0.9.1...v0.10.0

Changelog: https://github.com/Farama-Foundation/Arcade-Learning-Environment/releases/tag/v0.10.0
2024-09-24 10:05:33 +02:00
Jörg Thalheim
32f0bfd993
freebsd.mkDerivation: use stdenvNoLibs instead of stdenvNoLibc to avoid compiler-rt (#344090) 2024-09-24 09:06:31 +02:00
Fabian Affolter
9a34ae4f35
onthespot: add async-timeout (#343700) 2024-09-24 08:53:36 +02:00
Fabian Affolter
3e9a4bdaee
python312Packages.cirq-*: refactor (#343807) 2024-09-24 08:53:06 +02:00
Fabian Affolter
9eb05103a8
python312Packages.aioitertools: 0.11.0 -> 0.12.0 (#342016) 2024-09-24 08:52:18 +02:00
Pol Dellaiera
33469bbd8d
python312Packages.huggingface-hub: 0.25.0 -> 0.25.1 (#343965) 2024-09-24 08:51:57 +02:00
Fabian Affolter
99b70e6d88
python312Packages.polyswarm-api: 3.9.0 -> 3.10.0 (#344115) 2024-09-24 08:51:32 +02:00
Fabian Affolter
e1fc3934fb
python312Packages.plugwise: 1.4.0 -> 1.4.1 (#344040) 2024-09-24 08:50:47 +02:00
Vincent Laporte
6c90049441 ocamlPackages.hpack: 0.11.0 → 0.13.0 2024-09-24 08:50:32 +02:00
Vincent Laporte
40f7c72b65 ocamlPackages.httpun-types: init at 0.2.0 2024-09-24 08:50:32 +02:00
Vincent Laporte
d6e9ce6329 ocamlPackages.paf: add missing dependency httpaf 2024-09-24 08:50:32 +02:00
Fabian Affolter
b4c420c9d4
python312Packages.textile: 4.0.2 -> 4.0.3 (#344033) 2024-09-24 08:50:19 +02:00
Fabian Affolter
607fb38afa
python312Packages.pysml: 0.1.2 -> 0.1.3 (#344027) 2024-09-24 08:50:08 +02:00
Fabian Affolter
5f5c6f31ac
python312Packages.pytenable: 1.5.1 -> 1.5.2 (#344028) 2024-09-24 08:49:46 +02:00
Fabian Affolter
403d5fd13b
python312Packages.pygitguardian: 1.16.0 -> 1.17.0 (#344029) 2024-09-24 08:49:10 +02:00
Fabian Affolter
f0575eb338
python312Packages.pyexploitdb: 0.2.35 -> 0.2.36 (#344030) 2024-09-24 08:48:54 +02:00
Fabian Affolter
4fa180cb8b
python312Packages.xknx: 3.1.1 -> 3.2.0 (#344121) 2024-09-24 08:42:42 +02:00
Fabian Affolter
289ba41eb0
python312Packages.azure-mgmt-privatedns: 1.1.0 -> 1.2.0 (#344045) 2024-09-24 08:38:09 +02:00
Fabian Affolter
0c39839d8e
python312Packages.aiogram: 3.13.0 -> 3.13.1 (#344046) 2024-09-24 08:37:58 +02:00
Fabian Affolter
a0dd7f0296
python312Packages.chromadb: 0.5.5 -> 0.5.7 (#344053) 2024-09-24 08:37:37 +02:00
Fabian Affolter
a222c3e4fa
python312Packages.pytelegrambotapi: 4.22.0 -> 4.23.0 (#344054) 2024-09-24 08:37:24 +02:00
Fabian Affolter
78d02633bf
python312Packages.yalexs: 8.6.4 -> 8.7.1 (#344126) 2024-09-24 08:33:07 +02:00
nixpkgs-merge-bot[bot]
7850b7e56b
aliae: 0.22.1 -> 0.22.2 (#344097) 2024-09-24 06:15:19 +00:00
7c6f434c
60ef43f346
renpy: 8.2.1 -> 8.3.1 (#343874) 2024-09-24 06:09:52 +00:00
7c6f434c
276817328a
ogre: 14.2.6 -> 14.3.0 (#343818) 2024-09-24 06:07:29 +00:00
nixpkgs-merge-bot[bot]
9d925b02af
terraform-local: 0.19.0 -> 0.20.0 (#343560) 2024-09-24 06:01:51 +00:00
Gaetan Lepage
0dab659ce6 python312Packages.ray: 2.36.0 -> 2.36.1
Diff: https://github.com/ray-project/ray/compare/ray-2.36.0...ray-2.36.1

Changelog: https://github.com/ray-project/ray/releases/tag/ray-2.36.1
2024-09-24 07:59:18 +02:00
Cabia Rangris
4b56eb0032
klipperscreen: 0.4.3 -> 0.4.4 (#343983) 2024-09-24 09:48:58 +04:00
nixpkgs-merge-bot[bot]
97411d42fe
api-linter: 1.67.2 -> 1.67.3 (#344120) 2024-09-24 05:47:43 +00:00
OTABI Tomoya
dfc19bdd56
python312Packages.graphrag: 0.3.3 -> 0.3.6 (#344023) 2024-09-24 14:30:47 +09:00
OTABI Tomoya
4595b0be56
python312Packages.marimo: 0.8.15 -> 0.8.18 (#343469) 2024-09-24 14:29:57 +09:00
OTABI Tomoya
77cb5c1bdc
python312Packages.dask-awkward: 2024.7.0 -> 2024.9.0 (#343174) 2024-09-24 14:29:43 +09:00
OTABI Tomoya
8714ddb2b5
python312Packages.dask-histogram: 2024.3.0 -> 2024.9.1 (#343167) 2024-09-24 14:29:28 +09:00
OTABI Tomoya
c9ab6f31f3
python312Packages.emoji: 2.12.1 -> 2.13.0 (#343172) 2024-09-24 14:28:56 +09:00
OTABI Tomoya
ed13500795
python312Packages.art: 6.2 -> 6.3 (#343170) 2024-09-24 14:28:35 +09:00