Commit Graph

8782 Commits

Author SHA1 Message Date
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
HeHongbo
68bf0eb022 xen: patch with XSA-464 2024-11-12 21:46:26 +08:00
Adrian Gierakowski
6cecfd8ad7 docker-tool: fix maxLayers assert 2024-11-11 18:45:13 +00:00
github-actions[bot]
88f2bd466e
Merge master into staging-next 2024-11-11 18:04:18 +00:00
TomaSajt
1911b1e399
rustPlatform.fetchCargoVendor: init 2024-11-11 15:52:54 +01:00
Sandro
8ebd730319
buildComposerRepository: show composer-repository in logs (eg: nix build) when building the vendor derivation (#355099) 2024-11-11 15:10:07 +01:00
無名氏
5647f0905b writers: make babashka interpreter and check configurable 2024-11-11 19:49:17 +08:00
Sandro Jäckel
7caed32d0b
build-support/php/buildComposerRepository: show composer-repository in logs (eg: nix build) when building the vendor derivation 2024-11-10 23:07:16 +01:00
github-actions[bot]
77ed9318b3
Merge master into staging-next 2024-11-10 12:04:52 +00:00
K900
b0b3a70891
buildFHSEnv: use LOCALE_ARCHIVE from environment if present (#354899) 2024-11-10 11:24:10 +03:00
Atemu
a59e625bb4 buildFHSEnv: use LOCALE_ARCHIVE from environment if present
If the environment provides the variable (as NixOS does when the i18n option is
set), keep it rather than overriding unconditionally.

Fixes https://github.com/NixOS/nixpkgs/issues/354887
2024-11-10 04:11:19 +01:00
Adrian Gierakowski
5b4a8db4d9 build-support/docker: customisable layering strategy
Allow customisation of the algorithm used to convert nix references
graph (created from docker image contents) to docker layers.

A collection of building blocks (python functions) is provided, which
use can assembled into a processing pipeline by specifying a list of
operations (and their initial arguments) via a nix list.

Nix references graph if first converted into a python igraph.Graph
object (with each vertex representing a nix path), which is then fed
into the user defined pipeline. Each stage in the pipeline represents a
function call, with initial arguments specified by the user in nix, and
the last argument being the result of the previous stage in the pipeline
(or the initial Graph object). Each step of the pipeline is expected to
produce a data structure consisting of arbitrarily  nested lists/dicts
with Graph objects (representing docker layers) at it's leafs. The
result of the last stage in the pipeline is recursively flattened (with
each dict converted into list of values), until a flat list of Graphs
remains. This is then output as a json array of arrays (each Graph
converted into an array of paths).

This functionality is made available via new `layeringPipeline` argument
to the `streamLayeredImage`/`buildLayeredImage` functions. The default
value of the argument has been chosen to to preserve current layering
behaviour.

Co-authored-by: Sandro <sandro.jaeckel@gmail.com>
2024-11-09 16:21:48 +00:00
Emily
ce788776a5 Merge master into staging-next 2024-11-09 12:51:01 +00:00
aleksana
571c71e6f7 treewide: migrate packages to pkgs/by-name, take 1
We are migrating packages that meet below requirements:

1. using `callPackage`
2. called path is a directory
3. overriding set is empty (`{ }`)
4. not containing path expressions other than relative path (to
makenixpkgs-vet happy)
5. not referenced by nix files outside of the directory, other
than`pkgs/top-level/all-packages.nix`
6. not referencing nix files outside of the directory
7. not referencing `default.nix` (since it's changed to `package.nix`)
8. `outPath` doesn't change after migration

The tool is here: https://github.com/Aleksanaa/by-name-migrate.
2024-11-09 20:04:51 +08:00
github-actions[bot]
3533282a88
Merge master into staging-next 2024-11-07 20:49:24 +00:00
Emily
3a6d4d006a
treewide: use getLib when accessing clang / libclang / stdenv.cc.cc (#354197) 2024-11-07 18:16:05 +00:00
github-actions[bot]
b3a0f2d3f1
Merge master into staging-next 2024-11-07 12:05:37 +00:00
Markus Kowalewski
b46372651a
mpiCheckPhaseHook: use preset topoloy file in sandbox for mpich (#354136) 2024-11-07 13:02:23 +01:00
Reno Dakota
52bf1163fa
treewide: use getLib when accessing clang / libclang / stdenv.cc.cc
In preparation to eliminate the lib output for the unwrapped clang, use
`lib.getLib` to access the `lib` output.
2024-11-07 10:27:41 +00:00
qbisi
93f58b50c0 mpiCheckPhaseHook: use preset topoloy file in sandbox for mpich 2024-11-07 11:59:08 +08:00
github-actions[bot]
f899bb5680
Merge staging-next into staging 2024-11-05 18:05:09 +00:00
Sandro
0168c4f291
buildNpmPackage: pass down patchFlags to fetchNpmDeps (#350761) 2024-11-05 15:49:50 +01:00
github-actions[bot]
e953c01873
Merge staging-next into staging 2024-11-05 00:14:28 +00:00
Fabián Heredia Montiel
6e80056430
buildFHSEnv: rewrite env building (#351928) 2024-11-04 17:21:12 -06:00
github-actions[bot]
7bea7cacca
Merge staging-next into staging 2024-11-04 18:04:50 +00:00
Philip Taron
2b12f69e85
spacenavd: resolve merge conflicts and address PR feedback 2024-11-04 09:02:39 -08:00
K900
a182a53243 buildFHSEnv: rewrite env building
This replaces the mess of buildEnvs with a single Rust binary that
spits out a mostly-complete root filesystem for an fhsenv.

The main goal is to have includeClosures, as we want all of the
dependencies to be in the fhsenv to avoid Steam's (and others')
LD_LIBRARY_PATH shenanigans, but without 32-bit libraries leaking
into lib64 when a 64-bit package like mangohud depends on a 32-bit
version of itself.

We "fix" this by actually looking at the files and explicitly moving
32-bit stuff to $out/lib32. This could be avoided if we had recursive
Nix, or at least system info in exportReferencesGraph, but alas.

For some reason this also shrinks the fhsenvs massively, even though
there's currently no layout optimization (e.g. a package with paths
like lib/foo/{bar,baz} will produce two symlinks in the output, even
when it's more optimal to symlink lib/foo to $out/lib/foo directly).
2024-11-04 10:13:04 +03:00
github-actions[bot]
bee49bdce0
Merge staging-next into staging 2024-11-03 18:04:43 +00:00
Philip Taron
e50c6cab11
treewide: fix links to specifications.freedesktop.org (#350918) 2024-11-03 09:06:56 -08:00
Victor Duarte
85f4044fc3
Update pkgs/build-support/setup-hooks/desktop-to-darwin-bundle.sh 2024-11-03 17:39:02 +01:00
K900
46a1f3aa58 Merge remote-tracking branch 'origin/staging-next' into staging 2024-11-03 11:04:59 +03:00
Jonas Chevalier
b508b87938
trivial-builders: add missing passthru argument (#320973) 2024-11-02 21:26:26 +01:00
Markus Kowalewski
17aacfb690
mpiCheckPhaseHook: disable openmpi's ssh plugin (#351473) 2024-11-02 13:33:57 +01:00
github-actions[bot]
6e6e33bd99
Merge staging-next into staging 2024-11-01 18:05:02 +00:00
zimbatm
d04d2858c9 writeShellApplication: add passthru argument 2024-11-01 17:16:58 +01:00
zimbatm
f4789133b8 concatTextFile: add passthru argument 2024-11-01 17:16:58 +01:00
zimbatm
c18e038097 writeTextFile: add support for passthru 2024-11-01 17:16:58 +01:00
Philip Taron
8d9fcbc47a
tests/srcOnly: init (#347548) 2024-11-01 09:13:09 -07:00
github-actions[bot]
8ef263c335
Merge staging-next into staging 2024-10-31 06:05:30 +00:00
Yureka
0f216e2578 tree-wide: switch initrd generators back to gnu cpio
Originally, we switched to bsdtar from libarchive to solve a reproducibility issue related to hardlinks

As of gnu cpio 2.14 the --ignore-dirnlink option is introduced and now included in --reproducible, which solves this issue

By switching back, we are in turn solving an issue in libarchive >=3.7.5 erroring out with "Error reading archive -: (null)"

Change-Id: Ib6140d599b6547d8e941b0251ce996e303c41fa6
2024-10-31 01:21:59 +01:00
github-actions[bot]
683f8efd0d
Merge staging-next into staging 2024-10-29 18:04:56 +00:00
github-actions[bot]
09d8c7ec2f
Merge master into staging-next 2024-10-29 18:04:32 +00:00
Lin Jian
cf3f6beff7
fetchFromSavannah: add passthru.gitRepoUrl
This can be used by update scripts such as unstableGitUpdater[1].

[1]: 1dcca7a82a/pkgs/common-updater/unstable-updater.nix (L15)
2024-10-29 18:11:52 +08:00
Emily
88a3f3e959
{bintools-wrapper,cc-wrapper}: export Darwin SDK variables (#351718) 2024-10-29 02:15:16 +00:00
github-actions[bot]
549b778c4e
Merge staging-next into staging 2024-10-28 18:05:09 +00:00
Philip Taron
9a18caa5cd
bintools-wrapper: fix late‐bound command references (#351531) 2024-10-28 07:05:32 -07:00
K900
66f01b7af9 Merge remote-tracking branch 'origin/master' into staging-next 2024-10-28 15:11:30 +03:00
Emery Hemingway
da6da7189e buildNimPackage: move into /pkgs/build-support, tidy OWNERS 2024-10-28 10:26:14 +00:00
github-actions[bot]
835a356a66
Merge staging-next into staging 2024-10-28 00:15:41 +00:00
Fabián Heredia Montiel
34b62f7c47 Merge remote-tracking branch 'origin/master' into staging-next 2024-10-27 16:10:56 -06:00
Emily
55dfed83c0 {bintools-wrapper,cc-wrapper}: export Darwin SDK variables
514b00cf08 exposed another bug in the
existing wrapper logic: Darwin SDK variables are only exported by
the SDK package hook, so if those variables aren’t already exported
inside the wrappers, the modified versions are not passed down to the
compiler tools, breaking the fallback SDK logic. This was previously
partially masked by passing down a normally‐redundant `-isysroot`
to the compiler, but now we fix it at the source.

This broke e.g. running `clang(1)` without any environment, something
the GHC binary package `installCheckPhase` does indirectly to verify
that there’s nothing missing from the wrapped GHC `$PATH`. It may
also have caused issues building for the build platform inside a
Darwin‐to‐non‐Darwin cross‐compilation build.
2024-10-27 17:52:07 +00:00
Thiago Kenji Okada
80e7a05eed buildGraalvmNativeImage: remove workaround for Nix environment variables 2024-10-27 12:22:37 +00:00
github-actions[bot]
b67a45959d
Merge staging-next into staging 2024-10-27 00:16:01 +00:00
Emily
04ba4d1a3b bintools-wrapper: fix late‐bound command references
This ports 985072e2ce to bintools-wrapper.

Co-authored-by: Artturin <Artturin@artturin.com>
Co-authored-by: IlyaNiklyaev <ilya.niklyaev@gmail.com>
2024-10-27 00:32:46 +03:00
K900
f21f4ca3ee Merge remote-tracking branch 'origin/master' into staging-next 2024-10-26 21:05:47 +03:00
Markus Kowalewski
6b6b6c3837 mpiCheckPhaseHook: disable openmpi's ssh plugin
openmpi requires SSH to run. Set flags to run off SSH usage.
2024-10-26 17:31:22 +02:00
Emily
e047c69ed4 {bintools-wrapper,cc-wrapper}: allow paths relative to the Darwin SDK
`-L` and `-I` are interpreted relative to the `$SDKROOT` by the
Darwin toolchain, so we have to avoid filtering out such paths in the
purity filter hacks in order to not break e.g. the .NET Core build
system. It’s also just the correct thing to do for the platform.
2024-10-26 15:28:50 +01:00
Thomas Gerbet
31ab653f7e fetchurl: revert enabling TLS verification when NIX_SSL_CERT_FILE
This reverts commit f829274128.
2024-10-26 13:58:19 +02:00
Emily
9142a07030 {bintools-wrapper,cc-wrapper}: factor out Darwin SDK logic
This reduces code duplication, makes the SDK variables available
earlier in the wrappers, and makes the behaviour between the two
wrappers more consistent.
2024-10-26 01:03:16 +01:00
Emily
4b8e58e813
clang: skip the -nostdlibinc patch on Darwin; ld64: search standard library locations (#349555) 2024-10-25 01:56:20 +01:00
github-actions[bot]
61074757b0
Merge staging-next into staging 2024-10-24 18:05:02 +00:00
github-actions[bot]
ef782655d2
Merge master into staging-next 2024-10-24 18:04:38 +00:00
Emily
b75c70282f ld64: search standard library locations
This is basically harmless for the same reason as it is for Clang, and
lets us avoid doing wrapper hacks to fix things like the .NET build.

This reverts commit 4340a5addb.
2024-10-24 18:11:34 +01:00
Artturin
22feb8f7ca
cc-wrapper: Hardcode path to mktemp and rm if possible (#349589) 2024-10-24 20:05:23 +03:00
Emily
514b00cf08 clang: skip the -nostdlibinc patch on Darwin 2024-10-24 17:55:27 +01:00
Victor Duarte
f2b58efde4 fix links to specifications.freedesktop.org 2024-10-24 13:00:55 +02:00
K900
dee94df6f2 Merge remote-tracking branch 'origin/master' into staging-next 2024-10-24 09:28:51 +03:00
Artemis Tosini
6da0a87109
bintools-wrapper: Set dynamic-linker on OpenBSD
Now that ld.so is symlinked into the libc derivation,
we can use it as a dynamic linker.
In my testing, OpenBSD does not have any issues with executing from
a symlinked ld.so.
2024-10-24 00:43:24 +00:00
Philip Taron
eee954a451
trivial: make symlinkJoin support pname+version alone (#344645) 2024-10-23 14:09:11 -07:00
Philip Taron
db44da13e1
fetchurl: enable TLS verification when NIX_SSL_CERT_FILE is set (#350222) 2024-10-23 14:07:17 -07:00