Skip to content

Commit 962e041

Browse files
authored
Merge pull request #386 from DeterminateSystems/sync-2.34
Sync with upstream 2.34.6
2 parents 4dccfb8 + 92ad058 commit 962e041

868 files changed

Lines changed: 20871 additions & 9922 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/actions/install-nix-action/action.yaml

Lines changed: 0 additions & 124 deletions
This file was deleted.

.github/workflows/build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ jobs:
6666
SENTRY_AUTH_TOKEN: ${{ secrets.sentry_auth_token }}
6767
SENTRY_ORG: ${{ secrets.sentry_org }}
6868
SENTRY_PROJECT: ${{ secrets.sentry_project }}
69-
- uses: actions/upload-artifact@v4
69+
- uses: actions/upload-artifact@v6
7070
with:
7171
name: ${{ inputs.system }}
7272
path: ./tarball/*.xz

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ jobs:
109109
run: mkdir -p ./artifacts
110110

111111
- name: Fetch artifacts
112-
uses: actions/download-artifact@v4
112+
uses: actions/download-artifact@v7
113113
with:
114114
path: downloaded
115115
- name: Move downloaded artifacts to artifacts directory

.gitignore

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
# Default meson build dir
22
/build
3+
# Meson creates this file too
4+
src/.wraplock
35

46
# /tests/functional/
57
/tests/functional/common/subst-vars.sh
@@ -14,6 +16,10 @@
1416
/tests/functional/lang/*.err
1517
/tests/functional/lang/*.ast
1618

19+
# /tests/functional/cli-characterisation/
20+
/tests/functional/cli-characterisation/*.out
21+
/tests/functional/cli-characterisation/*.err
22+
1723
/outputs
1824

1925
*~

.version

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
2.33.4
1+
2.34.6

ci/gha/tests/default.nix

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,7 @@ rec {
7777
topLevel = {
7878
installerScriptForGHA = hydraJobs.installerScriptForGHA.${system};
7979
nixpkgsLibTests = hydraJobs.tests.nixpkgsLibTests.${system};
80+
nixpkgsLibTestsLazy = hydraJobs.tests.nixpkgsLibTestsLazy.${system};
8081
rl-next = pkgs.buildPackages.runCommand "test-rl-next-release-notes" { } ''
8182
LANG=C.UTF-8 ${pkgs.changelog-d}/bin/changelog-d ${../../../doc/manual/rl-next} >$out
8283
'';

ci/gha/tests/windows.nix

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
{
2+
nixFlake ? builtins.getFlake ("git+file://" + toString ../../..),
3+
system ? builtins.currentSystem,
4+
pkgs ? nixFlake.inputs.nixpkgs.legacyPackages.${system},
5+
}:
6+
7+
let
8+
packages = nixFlake.packages.${system};
9+
10+
fixOutput =
11+
test:
12+
test.overrideAttrs (prev: {
13+
nativeBuildInputs = prev.nativeBuildInputs or [ ] ++ [ pkgs.colorized-logs ];
14+
env.GTEST_COLOR = "no";
15+
# Wine's console emulation wraps every character in ANSI cursor
16+
# hide/show sequences, making logs unreadable in GitHub Actions.
17+
buildCommand = ''
18+
set -o pipefail
19+
{
20+
${prev.buildCommand}
21+
} 2>&1 | ansi2txt
22+
'';
23+
});
24+
in
25+
26+
{
27+
unitTests = {
28+
"nix-util-tests" = fixOutput packages."nix-util-tests-x86_64-w64-mingw32".passthru.tests.run;
29+
};
30+
}

doc/manual/meson.build

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ bash = find_program('bash', native : true)
1616
# HTML manual dependencies (conditional)
1717
if get_option('html-manual')
1818
mdbook = find_program('mdbook', native : true)
19-
rsync = find_program('rsync', required : true, native : true)
2019
endif
2120

2221
pymod = import('python')
@@ -116,7 +115,12 @@ if get_option('html-manual')
116115
@0@ @INPUT0@ @CURRENT_SOURCE_DIR@ > @DEPFILE@
117116
@0@ @INPUT1@ summary @2@ < @CURRENT_SOURCE_DIR@/source/SUMMARY.md.in > @2@/source/SUMMARY.md
118117
sed -e 's|@version@|@3@|g' < @INPUT2@ > @2@/book.toml
119-
@4@ -r -L --exclude='*.drv' --include='*.md' @CURRENT_SOURCE_DIR@/ @2@/
118+
# Copy source to build directory, excluding the build directory itself
119+
# (which is present when built as an individual component).
120+
# Use tar with --dereference to copy symlink targets (e.g., JSON examples from tests).
121+
(cd @CURRENT_SOURCE_DIR@ && find . -mindepth 1 -maxdepth 1 ! -name build | tar -c --dereference -T - -f -) | (cd @2@ && tar -xf -)
122+
chmod -R u+w @2@
123+
find @2@ -name '*.drv' -delete
120124
(cd @2@; RUST_LOG=warn @1@ build -d @2@ 3>&2 2>&1 1>&3) | { grep -Fv "because fragment resolution isn't implemented" || :; } 3>&2 2>&1 1>&3
121125
rm -rf @2@/manual
122126
mv @2@/html @2@/manual
@@ -128,7 +132,6 @@ if get_option('html-manual')
128132
mdbook.full_path(),
129133
meson.current_build_dir(),
130134
fs.read('../../.version-determinate').strip(),
131-
rsync.full_path(),
132135
),
133136
],
134137
input : [

doc/manual/package.nix

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
{
22
lib,
3+
stdenv,
34
callPackage,
45
mkMesonDerivation,
56
runCommand,
@@ -10,7 +11,6 @@
1011
mdbook,
1112
jq,
1213
python3,
13-
rsync,
1414
nix-cli,
1515
changelog-d,
1616
json-schema-for-humans,
@@ -55,6 +55,8 @@ mkMesonDerivation (finalAttrs: {
5555
../../src/libstore-tests/data/nar-info
5656
../../src/libstore-tests/data/build-result
5757
../../src/libstore-tests/data/dummy-store
58+
# For derivation examples referenced by symlinks in doc/manual/source/protocols/json/schema/
59+
../../tests/functional/derivation
5860
# Too many different types of files to filter for now
5961
../../doc/manual
6062
./.
@@ -91,13 +93,13 @@ mkMesonDerivation (finalAttrs: {
9193
]
9294
++ lib.optionals buildHtmlManual [
9395
mdbook
94-
rsync
9596
json-schema-for-humans
9697
]
97-
++ lib.optionals (!officialRelease && buildHtmlManual) [
98+
++ lib.optionals (!officialRelease && buildHtmlManual && !stdenv.hostPlatform.isi686) [
9899
# When not an official release, we likely have changelog entries that have
99100
# yet to be rendered.
100101
# When released, these are rendered into a committed file to save a dependency.
102+
# Broken on i686.
101103
changelog-d
102104
];
103105

doc/manual/rl-next/c-api-new-store-methods.md

Lines changed: 0 additions & 9 deletions
This file was deleted.

0 commit comments

Comments
 (0)