Commit Graph

8747 Commits

Author SHA1 Message Date
Aleksana
69251dc99c
buildRustPackage: fix passing depsExtraArgs to fetchCargoVendor (#359211) 2024-11-27 19:36:58 +08:00
Maximilian Bosch
6f3d8a72ea
runInLinuxVM: remove hwclock -s invocation
Commit 97ed6b4565 broke the systemd-boot
tests (among others) because of the `hwclock -s` invocation. This was
broken for a while, but not noticed because we didn't have a `set -e`
before.

The error

    hwclock: select() to /dev/rtc0 to wait for clock tick timed out

MAY be related to an open QEMU bug[1]: I can't reproduce the error on
aarch64-linux and x86_64-linux with `partitionTableType = "legacy";`.
Also, the issue disappears on x86_64-linux when adding `--directisa`.

However, the invocation was added in f73ff0529e
10 years ago which didn't give any reasoning or pointer to what KVM bug
this may be. Given that this must have happened on an ancient version,
we agreed on removing it altogether[2].

[1] https://gitlab.com/qemu-project/qemu/-/issues/1762
[2] https://github.com/NixOS/nixpkgs/pull/354535#issuecomment-2500791222
2024-11-26 15:51:11 +01:00
TomaSajt
455241a036
buildRustPackage: fix passing depsExtraArgs to fetchCargoVendor 2024-11-26 08:48:06 +01:00
Philip Taron
87f46ee633
fetchsvn: add system certificate authorities bundle (#356829) 2024-11-25 15:58:58 -08:00
Philip Taron
62742e9d5e
singularity-tools: enable __structuredAttrs and pass contents directly (#358723) 2024-11-25 10:05:42 -08:00
Someone
40f086a50e
Revert "singularity-tools: don't preserve store content ownership" (#358817) 2024-11-25 14:15:13 +00:00
Wolfgang Walther
c4461bbe1c
singularity-tools: remove deprecated shellScript and mkLayer
Scheduled for 25.05.
2024-11-24 21:09:34 +01:00
Emily
49d9ef16b1
treewide: remove deprecations up until 24.11 (#356732) 2024-11-24 19:46:12 +00:00
Yueh-Shun Li
f663b14524 Revert "singularity-tools: don't preserve store content ownership"
Use `cp -ar` instead of `cp -r` to preserve symbolic links
and other attributes whenever possible.

This reverts commit c2eb0aa56e.
2024-11-25 02:21:45 +08:00
Yueh-Shun Li
eff53a2135 singularity-tools: enable __structuredAttrs and pass contents directly 2024-11-24 22:19:31 +08:00
Maximilian Bosch
4e2ce1ba94
apptainer.tests.image-hello-cowsay: remove obsolete rmdir "$out" 2024-11-24 14:25:09 +01:00
Maximilian Bosch
26eba25577
runInLinuxVM: re-add sourcing of stdenv & .attrs.sh
This is required for `preVM` which can be arbitrary code: e.g.
`vmTools.createEmptyImage` assumes the presence of `$out` in its default
configuration.

Also, before this patch, `preVM` wasn't even set in the
`__structuredAttrs` case.
2024-11-24 14:24:37 +01:00
Maximilian Bosch
6deea16edc
Merge: runInLinuxVM: fix for structured attrs (#354535) 2024-11-23 09:35:18 +01:00
Wolfgang Walther
6646eeb500
makeSetupHook: remove deprecated deps argument
This had been scheduled for removal in 23.11.
2024-11-22 21:01:53 +01:00
Wolfgang Walther
51da8b6b00
writeReferencesToFile: remove
Had been deprecated and scheduled for removal in 24.11.
2024-11-22 21:01:53 +01:00
Maximilian Bosch
97ed6b4565
runInLinuxVM: fix for structured attrs
Closes #334705
Addresses #205690

The main issue was that the output variable (i.e. `$out` and friends)
didn't exist. I figured the easiest way to add those is to source
`stdenv` here. Given that we build another derivation in this builder,
it's pretty likely that `stdenv` gets pulled already, so I don't expect
a real overhead here.

Also, this mounts `/build` into the VM: this is required to make sure
`.attrs.json` & `.attrs.sh` are available. Dropped the mount of `xchg`
into `/tmp` now since it's also part of `/build`.
2024-11-22 20:02:22 +01:00
Robert Schütz
6c4d710b94 rustPlatform.buildRustPackage: allow specifying cargoDeps 2024-11-19 10:47:22 -08:00
Jörg Thalheim
bf20efd03c
rustPlatform.fetchCargoVendor: retry fetching tarballs (#357262) 2024-11-19 16:54:43 +01:00
Aleksana
0ecc88f77d
buildGoPackage: remove (#349478) 2024-11-19 22:41:50 +08:00
TomaSajt
63565778a2
rustPlatform.fetchCargoVendor: retry fetching tarballs 2024-11-19 14:11:12 +01:00
David McFarland
b0d941edb4
dotnet: november 2024 upgrades and infrastructure changes (#355753) 2024-11-18 20:20:45 -04:00
Paul Meyer
41d7136253 buildGoModule: remove goPackagePath warning
As buildGoPackage was removed, it is unlikely for attributes of
buildGoModule to get mixed up with those of buildGoPackage.

Signed-off-by: Paul Meyer <49727155+katexochen@users.noreply.github.com>
2024-11-18 14:36:08 +01:00
Masum Reza
99268a0696
cosmic-packages: move to new cargo fetcher (#356539) 2024-11-18 17:37:45 +05:30
Paul Meyer
4ad10975ec buildGoPackage: remove
Signed-off-by: Paul Meyer <49727155+katexochen@users.noreply.github.com>
2024-11-18 07:51:19 +01:00
Andrew Kvalheim
934079c635 fetchsvn: add system certificate authorities bundle
Resolves #356541
2024-11-17 14:39:47 -08:00
David McFarland
bfaca46529 dotnet-sdk/runtime/aspnetcore: 6.0 -> 8.0 2024-11-17 18:35:19 -04:00
TomaSajt
9fd5a8d09d
rustPlatform.fetchCargoVendor: decrease concurrency 2024-11-17 23:11:37 +01:00
David McFarland
112a4c48c6 dotnet: add passthru.runtime/aspnetcore to sdk packages 2024-11-17 14:19:25 -04:00
David McFarland
5b462ef57a buildDotnetModule: allow selfContainedBuild property to be omitted with null
Fixes #351892
2024-11-17 14:19:24 -04:00
David McFarland
aa0289eda4 buildDotnetModule: respect self-contained setting in restore 2024-11-17 14:19:24 -04:00
David McFarland
4219a94158 buildDotnetModule: make dotnet-runtime optional 2024-11-17 14:19:24 -04:00
David McFarland
42d69ab59a dotnet: move dotnet_root to $out/share/dotnet 2024-11-17 14:19:23 -04:00
David McFarland
ddd08e404f dotnet: split setup hooks into wrapper for runtime/sdk 2024-11-17 14:19:22 -04:00
Atemu
c5d3db7421
doc: document commonly used fetchgit flags (#355685) 2024-11-17 17:39:21 +01:00
lassulus
99df2ed6bb
writers: fix babashka docs format (#356643) 2024-11-17 13:17:06 +01:00
Masum Reza
e13831335f
treewide: stdenv.is -> stdenv.hostPlatform.is (#356363)
* treewide: stdenv.is -> stdenv.hostPlatform.is

* treewide: nixfmt due to ci error
2024-11-17 16:11:54 +05:30
sg-qwt
4cadc5e868
writers: fix babashka docs format 2024-11-17 14:12:47 +08:00
lassulus
386b1568f8
writers: make babashka interpreter and check configurable (#354760) 2024-11-16 21:09:31 +01:00
TomaSajt
374a1c53c1
rustPlatform.fetchCargoVendor: fetch git submodules 2024-11-16 10:15:23 +01:00
Masum Reza
76e7cb3fac
rustPlatform.fetchCargoVendor: init (#349360) 2024-11-16 09:30:53 +05:30
TomaSajt
66855adbbf
docs: mention fetchCargoVendor 2024-11-15 13:09:16 +01:00
TomaSajt
37ce479c7b
buildRustPackage: add useFetchCargoVendor flag 2024-11-15 13:09:16 +01:00
Atemu
ee97de3be9 fetchgit: nudge to update the manual when modifying parameters
Many parameters added over the past many years were not documented in the
manual. People likely simple didn't think to do that, so let's nudge them.
2024-11-14 23:50:13 +01:00
github-actions[bot]
b50e7536f8
Merge master into staging-next 2024-11-14 00:14:11 +00:00
Fernando Rodrigues
a793b4db06
xen: do not assume version reflects the actual package version
Signed-off-by: Fernando Rodrigues <alpha@sigmasquadron.net>
2024-11-13 14:43:55 -03:00
Fernando Rodrigues
a92df8c9b6
buildXenPackage: inherit everything from the top-level lib attribute
Signed-off-by: Fernando Rodrigues <alpha@sigmasquadron.net>
2024-11-13 17:06:42 +00:00
github-actions[bot]
80fdc8b778
Merge master into staging-next 2024-11-13 00:14:23 +00:00
Fernando Rodrigues
a1f03a04d4
xen: delete patching infrastructure
Overengineered for no good reason, especially since upstream Xen
recommends downstreams to use the latest stable branch anyway (instead
of the pinned release revision)

Signed-off-by: Fernando Rodrigues <alpha@sigmasquadron.net>
2024-11-12 19:14:14 -03:00
Fernando Rodrigues
ffd38a7044
xen: resolve some TODO comments
- Migrates to the new platform declaration style.
- Removes the separate output TODO, as it is an impossible task.
- Removes some superfluous comments.

Signed-off-by: Fernando Rodrigues <alpha@sigmasquadron.net>
2024-11-12 21:54:58 +00:00
Fernando Rodrigues
e3b83d4525
xen: fix IPXE sourcing
`xl` needs a full path to the efirom executable.
This does not fix the qemu-dm issue. A stubdom is still required.

Reported-by: HeHongbo <hehongbo@mail.com>
Signed-off-by: Fernando Rodrigues <alpha@sigmasquadron.net>
2024-11-12 21:52:03 +00:00