Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions common/shlibs
Original file line number Diff line number Diff line change
Expand Up @@ -624,6 +624,7 @@ libboost_atomic.so.1.91.0 libboost_atomic-1.90.99_1
libboost_type_erasure.so.1.91.0 libboost_type_erasure-1.90.99_1
libboost_fiber.so.1.91.0 libboost_fiber-1.90.99_1
libboost_mpi.so.1.91.0 libboost_mpi-1.90.99_1
libboost_url.so.1.91.0 libboost_url-1.90.99_1
libboost_mpi_python314.so.1.91.0 libboost_mpi-python3-1.90.99_1
libboost_python314.so.1.91.0 boost-python3-1.90.99_1
libexempi.so.8 exempi-2.5.0_1
Expand Down
74 changes: 0 additions & 74 deletions srcpkgs/meson/patches/rust-proc-macro.patch

This file was deleted.

6 changes: 3 additions & 3 deletions srcpkgs/meson/template
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Template file for 'meson'
pkgname=meson
version=1.9.1
revision=4
version=1.11.1
revision=1
build_style=python3-module
hostmakedepends="python3-devel python3-setuptools"
depends="ninja python3-setuptools"
Expand All @@ -14,7 +14,7 @@ license="Apache-2.0"
homepage="https://mesonbuild.com"
changelog="https://raw.githubusercontent.com/mesonbuild/meson/master/docs/markdown/Release-notes-for-${version%.*}.0.md"
distfiles="https://github.com/mesonbuild/meson/releases/download/${version}/meson-${version}.tar.gz"
checksum=4e076606f2afff7881d195574bddcd8d89286f35a17b4977a216f535dc0c74ac
checksum=6788ae299979643f8d841bcaf64352558436cae45a0355148a3aeeccf7913866

# sanitizers aren't available on musl
if [ "$XBPS_TARGET_LIBC" = glibc ]; then
Expand Down
52 changes: 52 additions & 0 deletions srcpkgs/nix/patches/cross-build-use-qemu.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
--- a/doc/manual/meson.build 2026-07-11 03:46:19.307932177 +0200
+++ b/doc/manual/meson.build 2026-07-11 04:02:49.507361300 +0200
@@ -19,7 +19,17 @@
doc_url = 'https://nix.dev/manual/nix/latest'
endif

-nix = find_program('nix', native : true)
+nixx = find_program('nix', native : true)
+if meson.is_cross_build()
+ exe_wrapper = find_program('exe_wrapper', required: false)
+ if exe_wrapper.found()
+ nix = [exe_wrapper, nixx]
+ else
+ nix = nixx
+ endif
+else
+ nix = nixx
+endif

bash = find_program('bash', native : true)

--- a/tests/functional/meson.build 2026-07-11 03:46:19.308373652 +0200
+++ b/tests/functional/meson.build 2026-07-11 04:03:17.015729460 +0200
@@ -13,7 +13,18 @@

fs = import('fs')

-nix = find_program('nix')
+nixx = find_program('nix')
+if meson.is_cross_build()
+ exe_wrapper = find_program('exe_wrapper', required: false)
+ if exe_wrapper.found()
+ nix = [exe_wrapper, nixx]
+ else
+ nix = nixx
+ endif
+else
+ nix = nixx
+endif
+
bash = find_program('bash', native : true)
busybox = find_program('busybox', native : true, required : false)
# Look up `coreutils` package by searching for `ls` binary.
@@ -31,7 +31,7 @@
coreutils = find_program('ls', native : true)
dot = find_program('dot', native : true, required : false)

-nix_bin_dir = fs.parent(nix.full_path())
+nix_bin_dir = fs.parent(nixx.full_path())

subdir('nix-meson-build-support/default-system-cpu')

21 changes: 21 additions & 0 deletions srcpkgs/nix/patches/fix-tests.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
--- a/tests/functional/flakes/common.sh 2026-07-01 22:22:08.000000000 +0200
+++ b/tests/functional/flakes/common.sh 2026-07-11 02:19:49.259596893 +0200
@@ -100,7 +100,7 @@
}
EOF

- cp -n ../ifd.nix ../dependencies.nix ../dependencies.builder0.sh "${config_nix}" "$flakeDir/"
+ cp -n ../ifd.nix ../dependencies.nix ../dependencies.builder0.sh "${config_nix}" "$flakeDir/" || true
}

writeTrivialFlake() {
--- a/tests/functional/meson.build 2026-07-11 02:03:07.819465687 +0200
+++ b/tests/functional/meson.build 2026-07-11 02:23:46.408092209 +0200
@@ -132,7 +132,6 @@
'linux-sandbox.sh',
'supplementary-groups.sh',
'build-dry.sh',
- 'structured-attrs.sh',
'shell.sh',
'brotli.sh',
'zstd.sh',
88 changes: 0 additions & 88 deletions srcpkgs/nix/patches/lowdown-3.0.0.patch

This file was deleted.

62 changes: 62 additions & 0 deletions srcpkgs/nix/patches/nix-meson-1.11.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
--- nix-2.34.7/doc/manual/meson.build~ 2026-05-05 23:25:31.727208534 +0800
+++ nix-2.34.7/doc/manual/meson.build 2026-05-05 23:38:59.070126431 +0800
@@ -106,11 +106,11 @@

# Hacky way to figure out if `nix` is an `ExternalProgram` or
# `Executable`. Only the latter can occur in custom target input lists.
-if nix.full_path().startswith(meson.build_root())
- nix_input = nix
-else
- nix_input = []
-endif
+# if nix.full_path().startswith(meson.build_root())
+# nix_input = nix
+# else
+# nix_input = []
+# endif

# HTML manual build (conditional)
if get_option('html-manual')
@@ -160,7 +160,6 @@
rl_next_generated,
summary_rl_next,
json_schema_generated_files,
- nix_input,
],
output : [
'manual',
@@ -247,7 +246,6 @@
input : [
files('./render-manpage.sh'),
files('./expand-includes.py'),
- nix_input,
],
output : command[0] + '-' + page + '.1',
install : true,
@@ -370,7 +368,6 @@
files('./render-manpage.sh'),
files('./expand-includes.py'),
nix3_cli_files,
- nix_input,
],
output : page + '.1',
install : true,
@@ -425,7 +422,6 @@
files('./render-manpage.sh'),
files('./expand-includes.py'),
entry.get(3, []),
- nix_input,
],
output : '@0@.@1@'.format(entry[0], entry[1]),
install : true,
--- nix-2.34.7/src/nix-functional-tests/meson.build~ 2026-05-05 01:22:33.000000000 +0800
+++ nix-2.34.7/src/nix-functional-tests/meson.build 2026-05-05 23:51:52.004873253 +0800
@@ -276,7 +276,7 @@
# them more time than the default of 30 seconds.
timeout : 300,
# Used for target dependency/ordering tracking, not adding compiler flags or anything.
- depends : deps,
+ # depends : deps,
workdir : workdir,
)
endforeach
10 changes: 5 additions & 5 deletions srcpkgs/nix/patches/pkgconfig-toml11.patch
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
--- a/src/libexpr/meson.build
+++ b/src/libexpr/meson.build
@@ -69,7 +69,6 @@ configdata_pub.set('NIX_USE_BOEHMGC', bd
--- a/src/libexpr/meson.build 2026-07-10 23:59:24.438568316 +0200
+++ b/src/libexpr/meson.build 2026-07-10 23:59:34.813536383 +0200
@@ -80,7 +80,6 @@
toml11 = dependency(
'toml11',
version : '>=3.7.0',
- method : 'cmake',
include_type: 'system',
include_type : 'system',
)
deps_other += toml11

17 changes: 12 additions & 5 deletions srcpkgs/nix/template
Original file line number Diff line number Diff line change
@@ -1,14 +1,16 @@
# Template file for 'nix'
pkgname=nix
version=2.30.5
revision=2
version=2.34.8
revision=1
build_style=meson
build_helper=qemu
# Use /nix/var as suggested by the official Manual.
# configure_args="--localstatedir=/nix/var --with-sandbox-shell=/usr/bin/busybox.static"
# requires rapidcheck
configure_args="-Dunit-tests=false -Dlibstore:sandbox-shell=/usr/bin/busybox.static
-Ddoc-gen=true"
-Ddoc-gen=true -Djson-schema-checks=false -Dnix-manual:official-release=true
-Dnix-manual:html-manual=false" # broken
make_check_args="--no-suite libstoreconsumer --no-suite plugins"
hostmakedepends="curl pkg-config flex tar xz mdBook jq busybox-static lowdown
perl-DBD-SQLite xz lsof doxygen rsync"
makedepends="boost-devel-minimal libboost_context libboost_coroutine
Expand All @@ -19,15 +21,16 @@ makedepends="boost-devel-minimal libboost_context libboost_coroutine
libseccomp-devel editline-devel jq-devel libarchive-devel
gtest-devel lowdown-devel json-c++"
depends="curl tar xz busybox-static lsof"
checkdepends="$depends git grep"
short_desc="Purely functional package manager"
maintainer="Orphaned <orphan@voidlinux.org>"
license="LGPL-2.1-or-later"
homepage="https://nixos.org/nix/"
changelog="https://nixos.org/releases/nix/nix-${version}/manual/#sec-relnotes"
distfiles="https://github.com/NixOS/nix/archive/refs/tags/${version}.tar.gz"
checksum=8e9b2409677235b99f818871df7937427068da62d44a19db37da6a32914358bd
checksum=ecc2f226a1ba27ad56eb85f42af8f078067fe5a219fceb82cb3fda9ba24387a5
# disable_parallel_build="build is fine, only linking test"
make_check=no # requires repidcheck
# make_check=no # requires repidcheck

if [ "$XBPS_TARGET_LIBC" = "musl" ]; then
makedepends+=" musl-legacy-compat"
Expand All @@ -39,6 +42,10 @@ esac

CXXFLAGS="-Wno-deprecated-declarations -UNDEBUG"

# workaround for tests
export NIX_STORE=''
export shell="/bin/bash"

# Default configuration file.
conf_files="/etc/nix/nix.conf"
# Create required build users/groups.
Expand Down