Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
212 commits
Select commit Hold shift + click to select a range
d7e6609
coreutils: 9.1 -> 9.3
dasJ Mar 21, 2023
65366c0
coreutils: Re-enable hole seeking on Darwin
dasJ Mar 21, 2023
6e27221
libopenmpt: 0.6.10 -> 0.7.1
OPNA2608 May 16, 2023
0bc3481
sord: extract "dev", "doc", "man" outputs
trofi May 17, 2023
8b0cc09
libcap_ng: extract dev, man outputs
trofi May 17, 2023
a7853ab
soxr: extract dev output
trofi May 17, 2023
39d2924
emscripten: 3.1.24 -> 3.1.39
willcohen May 19, 2023
8392a8b
binaryen: 112 -> 113
willcohen May 19, 2023
3ce3453
json-c: fix build on LLVM 15+
willcohen May 19, 2023
5d0918e
emscriptenPackages.libxml2: fix build on darwin
willcohen May 22, 2023
c59c879
openconnect: 9.01 -> 9.12
chivay May 22, 2023
ab59da8
apparmor: 3.1.3 -> 3.1.4
ajs124 May 24, 2023
2d63374
nixosTests.apparmor: fix after 5252e855952c555469f081306584dd8a12959ded
ajs124 May 24, 2023
4f64a5c
nixosTests.apparmor: fix expected.rules
ajs124 May 24, 2023
5dc3bb5
gst_all_1.gst-plugins-bad: add option to build without gui libraries
SuperSandro2000 May 14, 2023
94baf8b
nixos/no-x-libs: add gst-plugins-bad
SuperSandro2000 May 14, 2023
34cdc0a
gst_all_1.gst-plugins-rs: fix build if gst-plugins-base is build with…
SuperSandro2000 May 23, 2023
719a427
mupdf: 1.21.1 -> 1.22.1
idlip May 25, 2023
57c353f
tracker: pull fix pending upstream inclusion for sqlite-3.42.0 support
trofi May 25, 2023
dd6ebdc
Merge staging-next into staging
github-actions[bot] May 25, 2023
b201ad8
Merge pull request #232496 from trofi/sord-dev-output
trofi May 25, 2023
6270838
Merge pull request #232497 from trofi/libcap_ng-dev-output
trofi May 25, 2023
5843440
Merge pull request #232498 from trofi/soxr-dev-output
trofi May 25, 2023
8b001c3
ell: 0.56 -> 0.57
r-ryantm May 25, 2023
3c77ff1
Merge staging-next into staging
github-actions[bot] May 25, 2023
cf0c400
Merge pull request #234015 from r-ryantm/auto-update/ell
wegank May 25, 2023
7a47bec
Merge pull request #232304 from OPNA2608/update/libopenmpt
SuperSandro2000 May 25, 2023
b321044
kernelPatches.fix-em-ice-bonding: remove
alyssais May 24, 2023
ef12350
Merge pull request #233961 from idlip/mupdf
wegank May 25, 2023
83e9bcb
Merge pull request #231891 from SuperSandro2000/gst-plugins-bad
lilyinstarlight May 25, 2023
255911f
Merge staging-next into staging
github-actions[bot] May 26, 2023
a98aaa5
dbus: fix build with Darwin sandbox enabled
reckenrode May 20, 2023
51a0839
openldap: fix build on Darwin with sandbox enabled
reckenrode May 19, 2023
b1e1957
libglvnd: fix build with newer clang
reckenrode May 20, 2023
ea5c5d4
ffmpeg_4: 4.4.3 -> 4.4.4
henrirosten May 26, 2023
dca8139
gnu-efi: patch to fix build for riscv64
NickCao May 26, 2023
6a6598d
gnu-efi: add nickcao to maintainers
NickCao May 26, 2023
59b8a4f
Merge staging-next into staging
github-actions[bot] May 26, 2023
c5f569a
lua5_4: 5.4.4 -> 5.4.6
wegank May 25, 2023
6c71202
binutils: fix CVE-2023-1972
henrirosten May 26, 2023
1ccd8fa
Merge pull request #234082 from wegank/lua-bump
wegank May 26, 2023
f48f2c8
Merge pull request #234115 from reckenrode/openldap-darwin-sandbox
mweinelt May 26, 2023
4d743b1
Merge pull request #234128 from NickCao/gnu-efi
wegank May 26, 2023
2159f74
Merge branch 'staging-next' into staging
vcunat May 26, 2023
a9b654a
meson: fix build with case-sensitive store on Darwin
reckenrode May 19, 2023
50d1922
libssh: fix build with newer clang
reckenrode May 19, 2023
4890a4a
Merge pull request #229718 from willcohen/emscripten-3.1.30
RaitoBezarius May 26, 2023
64991e5
Merge pull request #234106 from reckenrode/dbus-darwin-sandbox
wegank May 26, 2023
6f02d8f
meson: save out-of-tree patches locally
wegank May 26, 2023
41b60d7
Merge pull request #234117 from reckenrode/libglvnd-darwin-sandbox
wegank May 26, 2023
c3f8494
Merge pull request #234105 from reckenrode/meson-fix
wegank May 26, 2023
239790c
Merge pull request #234219 from reckenrode/libssh-darwin-stdenv-fix
wegank May 26, 2023
2a1c962
Merge pull request #234152 from henrirosten/fix_CVE-2023-1972
lovesegfault May 26, 2023
191075f
Merge remote-tracking branch 'origin/staging-next' into staging
alyssais May 26, 2023
997323e
Merge staging-next into staging
github-actions[bot] May 27, 2023
2619e47
python310Packages.verspec: init at 0.1.0
marsam May 27, 2023
f6209b4
python310Packages.mike: init at 2023-05-06
marsam May 27, 2023
8939bd5
python310Packages.pydantic: 1.10.7 -> 1.10.8
marsam May 27, 2023
44a91fd
python310Packages.pydantic: add changelog to meta
marsam May 27, 2023
824f05f
Merge staging-next into staging
github-actions[bot] May 27, 2023
c78434b
gcc12: 12.2.0 -> 12.3.0
trofi May 15, 2023
5d119a2
mirrors/gcc: push 'bigsearch' lower
trofi May 27, 2023
8440fdd
Merge staging-next into staging
github-actions[bot] May 27, 2023
1aa2b6e
Merge pull request #233972 from henrirosten/ffmpeg_4_update_to_4_4_4
risicle May 27, 2023
675a273
http-parser: enable parallel building
alyssais May 19, 2023
9441fc2
Merge staging-next into staging
github-actions[bot] May 27, 2023
9b95891
Merge pull request #233491 from chivay/openconnect
marsam May 27, 2023
003f914
Merge staging-next into staging
github-actions[bot] May 28, 2023
dc6fd4b
graphviz: drop libdevil backend
K900 May 27, 2023
70807a3
Merge pull request #234481 from K900/begone-devil
K900 May 28, 2023
19efa11
Merge staging-next into staging
github-actions[bot] May 28, 2023
53c4a13
qt5: update patches
K900 May 28, 2023
883e2ff
Merge pull request #234600 from K900/qt5-security
K900 May 28, 2023
572e240
Merge staging-next into staging
github-actions[bot] May 28, 2023
d6ef662
lz4: fix cross compilation to linux
szlend May 27, 2023
c7b1d6b
ffmpeg: remove withLTO option
Atemu May 28, 2023
a981e2e
Merge staging-next into staging
github-actions[bot] May 28, 2023
d933e27
c-ares: 1.19.0 -> 1.19.1
Izorkin May 28, 2023
47f22c9
python310Packages.anyio: 3.6.2 -> 3.7.0
mweinelt May 28, 2023
7ff7700
Merge staging-next into staging
github-actions[bot] May 29, 2023
d6628cf
gettext: 0.21 -> 0.21.1
reckenrode May 28, 2023
43f61cf
libvterm-neovim: 0.3.1 -> 0.3.2
r-ryantm May 29, 2023
471df6f
Merge pull request #234714 from reckenrode/gettext-update
wegank May 29, 2023
e1356f9
Merge pull request #232075 from trofi/gcc12-update
trofi May 29, 2023
0b6c1a7
Merge pull request #233978 from trofi/tracker-for-sqlite
trofi May 29, 2023
d3edadc
mesa_22_3: drop
yuyuyureka May 27, 2023
fcb0199
mesa: mark as broken on darwin
yuyuyureka May 27, 2023
7f7ab8b
mesa: 23.0.3 -> 23.1.1
yuyuyureka May 27, 2023
061f3a1
gst-plugins: exclude mesa dependency on darwin
yuyuyureka May 28, 2023
4062535
SDL2: exclude mesa dependency on darwin
yuyuyureka May 28, 2023
f2d0add
python3Packages.flask: 2.2.3 -> 2.2.5
risicle May 29, 2023
d121e1c
SDL2_ttf: drop libGL on darwin
wegank May 29, 2023
a0de937
Merge staging-next into staging
github-actions[bot] May 29, 2023
31bd900
Merge pull request #234671 from mweinelt/anyio-3.7.0
mweinelt May 29, 2023
a9e2377
Merge pull request #234789 from wegank/sdl2-ttf-darwin
wegank May 29, 2023
5611fa7
Merge staging-next into staging
github-actions[bot] May 29, 2023
b9d1dde
pkg-config: fix build with newer clang
reckenrode May 10, 2023
db33597
python3Packages.poetry-core: fix build with newer clang
reckenrode May 20, 2023
50f1dbc
cairo: fix build with newer clang
reckenrode May 21, 2023
56480a7
darwin.adv_cmds: fix implicit int, which is an error in clang 16
reckenrode May 27, 2023
c9b9378
libidn2: drop Darwin error patch
reckenrode May 28, 2023
e10c339
nss_esr: backport gcc-13 fix
trofi May 29, 2023
1a29857
stdenv/setup.sh: deal with Nix < 2.4 structured attrs
sternenseemann May 29, 2023
0967ea4
Merge pull request #234872 from trofi/nss_esr-gcc-13-fix
mweinelt May 29, 2023
1df97ae
Merge staging-next into staging
github-actions[bot] May 30, 2023
0b499eb
python3Packages.cffi: fix build with newer clang
reckenrode May 21, 2023
22c392d
Merge pull request #234865 from reckenrode/python-cffi-fix
wegank May 30, 2023
c50ea29
Merge pull request #234854 from reckenrode/pkg-config-clang
wegank May 30, 2023
10e08f0
Merge pull request #234869 from reckenrode/adv_cmds-clang
wegank May 30, 2023
58eff6d
Merge pull request #234870 from reckenrode/libidn2-clang
wegank May 30, 2023
36b5c8d
Merge pull request #234866 from reckenrode/cairo-clang-fix
wegank May 30, 2023
36927e8
Merge staging-next into staging
github-actions[bot] May 30, 2023
6f554cc
sqlite: 3.41.2 -> 3.42.0
zowoq May 17, 2023
b3fb622
Merge pull request #234864 from reckenrode/poetry-clang-fix
wegank May 30, 2023
46e7cd1
Merge #222314: coreutils: 9.1 -> 9.3 and re-enable hole seeking
vcunat May 30, 2023
dd0dee4
autoPatchelfHook: Add support for single files
layus Mar 28, 2022
7443b1e
Merge staging-next into staging
github-actions[bot] May 30, 2023
9c289b4
Merge pull request #234994 from layus/autopatchelf-single-files
layus May 30, 2023
82ce18e
Merge pull request #234635 from Atemu/ffmpeg-remove-withLTO
Atemu May 30, 2023
4265b54
Merge staging-next into staging
github-actions[bot] May 30, 2023
1aa68d1
xnu: fix build with newer clang
reckenrode May 11, 2023
73e5ebf
openssl: 3.0.8 -> 3.0.9 (#235006)
mweinelt May 30, 2023
a91f6eb
buildGoPackage: remove `ldflags` and `with builtins`
zowoq May 28, 2023
aea73ad
buildGo{Module,Package}: remove input argument "tags"
ShamrockLee May 25, 2023
824421b
Merge pull request #234675 from Izorkin/update-c-ares
risicle May 30, 2023
6727bab
systemd-boot: Patch for firmwares that fail to load large files
ElvishJerricco May 30, 2023
df7b182
tetraproc: fix typo
fetsorn May 30, 2023
2f85a3c
tig: fix typo
fetsorn May 30, 2023
3565fdf
pkgs/build-support: fix typos
fetsorn May 31, 2023
29f3903
nix-prefetch-git: fix typo
fetsorn May 31, 2023
0eb3ea3
xen: fix typo
fetsorn May 31, 2023
cfb757d
Merge staging-next into staging
github-actions[bot] May 31, 2023
1c31f7e
Merge pull request #235052 from reckenrode/xnu-fix-mk2
lovesegfault May 31, 2023
58f559c
gperf: fix build with clang 16
reckenrode May 30, 2023
259b15f
rewrite-tbd: avoid infinite recursion when cmake is not cmakeMinimal
reckenrode May 10, 2023
e17f40d
Merge staging-next into staging
github-actions[bot] May 31, 2023
268a7ba
libssh2: 1.10.0 -> 1.11.0
chvp May 31, 2023
946580d
Merge pull request #234719 from r-ryantm/auto-update/libvterm-neovim
marsam May 31, 2023
957db96
Merge pull request #233850 from helsinki-systems/upd/apparmor
ajs124 May 31, 2023
7849b5f
Merge pull request #234855 from reckenrode/rewrite-tbd-fix
wegank May 31, 2023
5a13c00
Merge pull request #235082 from ElvishJerricco/systemd-uefi-bug-chunk…
arianvp May 31, 2023
fb96eaf
Merge master into staging-next
github-actions[bot] May 31, 2023
323e9a4
Merge staging-next into staging
github-actions[bot] May 31, 2023
95884fe
Merge pull request #235149 from chvp/bump-libssh2
SuperSandro2000 May 31, 2023
421a6f3
Merge pull request #235120 from reckenrode/gperf-clang-fix
trofi May 31, 2023
dae6b98
Merge pull request #234883 from sternenseemann/nix-structured-attrs
roberth May 31, 2023
f03b52f
Merge master into staging-next
github-actions[bot] May 31, 2023
e436cc2
Merge staging-next into staging
github-actions[bot] May 31, 2023
12e7ca9
Merge pull request #234783 from risicle/ris-flask-2.2.5
risicle May 31, 2023
0ad178d
tk: hardcode path to TK_LIBRARY
wegank May 31, 2023
8a6917f
thonny: drop TK_LIBRARY
wegank May 31, 2023
0c813b2
opencv: add patches for CVE-2023-2617 & CVE-2023-2618
risicle May 31, 2023
0feef9f
Merge master into staging-next
github-actions[bot] Jun 1, 2023
52e40d8
Merge staging-next into staging
github-actions[bot] Jun 1, 2023
bf78da6
Merge master into staging-next
github-actions[bot] Jun 1, 2023
20b83c6
Merge staging-next into staging
github-actions[bot] Jun 1, 2023
01e0654
util-linux: backport patches fixing mount on older kernels
K900 Jun 1, 2023
1e38a33
Merge master into staging-next
github-actions[bot] Jun 1, 2023
e8e9565
Merge staging-next into staging
github-actions[bot] Jun 1, 2023
31b198a
dtc: fix linker options so it also works in Darwin
otavio May 31, 2023
219b397
dtc: avoid building tests in case doCheck is disabled
otavio Jun 1, 2023
8f849ba
Merge pull request #235344 from K900/util-linux-mount-fixes
K900 Jun 1, 2023
54216d1
dtc: remove postFixup as meson installs the dylib properly
otavio Jun 1, 2023
324a8e6
Merge pull request #235268 from wegank/tk-guix
wegank Jun 1, 2023
3a0dde4
Merge master into staging-next
github-actions[bot] Jun 1, 2023
8985306
Merge staging-next into staging
github-actions[bot] Jun 1, 2023
4e05cc8
Merge pull request #235091 from fetsorn/fetsorn-typos-staging
drupol Jun 1, 2023
ca021b3
Merge master into staging-next
github-actions[bot] Jun 2, 2023
8b93c4f
Merge staging-next into staging
github-actions[bot] Jun 2, 2023
84fb288
cups: fix nixos test references
mweinelt Jun 1, 2023
2ca22f6
cups: 2.4.2 -> 2.4.3
mweinelt Jun 2, 2023
b2750f9
Merge master into staging-next
github-actions[bot] Jun 2, 2023
1625d79
Merge staging-next into staging
github-actions[bot] Jun 2, 2023
741a8ff
Merge #235271: opencv: patch CVE-2023-2617 & CVE-2023-2618
vcunat Jun 2, 2023
52df2ba
Merge #235373: cups: 2.4.2 -> 2.4.3
vcunat Jun 2, 2023
8699d2c
Merge branch 'staging' into staging-next
vcunat Jun 2, 2023
c8021f6
Merge master into staging-next
github-actions[bot] Jun 2, 2023
253d665
Merge pull request #234512 from marsam/update-pydantic
marsam Jun 2, 2023
2a5125b
llvmPackages_16: 16.0.1 -> 16.0.5
willcohen May 31, 2023
6084eca
Merge master into staging-next
github-actions[bot] Jun 2, 2023
cc3ee6d
Revert #230601: "gnu-efi: 3.0.15 -> 3.0.17"
vcunat Jun 2, 2023
6bd9402
cups: fix build on darwin
wegank Jun 2, 2023
4b2e2c8
Merge master into staging-next
github-actions[bot] Jun 3, 2023
6a837d8
Merge master into staging-next
github-actions[bot] Jun 3, 2023
9ea7d9a
Revert Merge #234128: gnu-efi: patch to fix build for riscv64
vcunat Jun 3, 2023
1f9efd4
Merge pull request #235671 from wegank/cups-darwin
mweinelt Jun 3, 2023
4e2bb74
Merge master into staging-next
github-actions[bot] Jun 3, 2023
e74dab4
Merge #235210: dtc: fix build issues in Darwin
vcunat Jun 3, 2023
d8ea5b9
Merge master into staging-next
github-actions[bot] Jun 3, 2023
d41df69
Merge master into staging-next
github-actions[bot] Jun 4, 2023
e50c762
Merge master into staging-next
github-actions[bot] Jun 4, 2023
d84131e
Merge master into staging-next
github-actions[bot] Jun 4, 2023
46f30a0
libvlc: fix build by providing openssl
vcunat Jun 4, 2023
7da2405
python3Packages.apsw: 3.41.0 -> 3.42.0 (#233027)
gador Jun 4, 2023
22e7031
Merge master into staging-next
github-actions[bot] Jun 4, 2023
1dbc304
google-cloud-cpp: extend .meta.platforms
vcunat Jun 4, 2023
efd6f2a
google-cloud-cpp: downgrade a warning on aarch64-linux
vcunat Jun 4, 2023
add8dd8
google-cloud-cpp: schedule on big-parallel machines
vcunat Jun 4, 2023
07310e5
Revert "google-cloud-cpp: schedule on big-parallel machines"
vcunat Jun 4, 2023
4a640f8
Merge master into staging-next
github-actions[bot] Jun 5, 2023
c8d485b
Merge #235219: llvmPackages_16: 16.0.1 -> 16.0.5
vcunat Jun 5, 2023
7789efc
Revert "Merge #235219: llvmPackages_16: 16.0.1 -> 16.0.5"
vcunat Jun 5, 2023
8f9be47
Merge master into staging-next
github-actions[bot] Jun 5, 2023
a49f2aa
python310Packages.imageio: unbreak on darwin
wegank Jun 5, 2023
02380c9
Merge pull request #236021 from wegank/imageio-darwin
wegank Jun 5, 2023
f3e5af3
alacritty: unbreak on darwin
wegank Jun 5, 2023
522463b
python310Packages.pyopengl: unbreak on darwin
wegank Jun 5, 2023
be32c59
Merge pull request #236059 from wegank/pyopengl-darwin
wegank Jun 5, 2023
ca62b4b
Merge pull request #236052 from wegank/alacritty-darwin
wegank Jun 5, 2023
fe6850b
Revert "binaryen: 112 -> 113" (part of PR #229718)
vcunat Jun 5, 2023
ba9cb93
Revert "emscripten: 3.1.24 -> 3.1.39" (part of PR #229718)
vcunat Jun 5, 2023
de4f02a
Merge master into staging-next
github-actions[bot] Jun 5, 2023
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 nixos/modules/config/no-x-libs.nix
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ with lib;
gpsd = super.gpsd.override { guiSupport = false; };
graphviz = super.graphviz-nox;
gst_all_1 = super.gst_all_1 // {
gst-plugins-bad = super.gst_all_1.gst-plugins-bad.override { guiSupport = false; };
gst-plugins-base = super.gst_all_1.gst-plugins-base.override { enableX11 = false; };
};
imagemagick = super.imagemagick.override { libX11Support = false; libXtSupport = false; };
Expand Down
10 changes: 8 additions & 2 deletions nixos/tests/apparmor.nix
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import ./make-test-python.nix ({ pkgs, ... } : {
import ./make-test-python.nix ({ pkgs, lib, ... } : {
name = "apparmor";
meta.maintainers = with lib.maintainers; [ julm ];

Expand Down Expand Up @@ -27,7 +27,7 @@ import ./make-test-python.nix ({ pkgs, ... } : {
# 4. Using `diff` against the expected output.
with subtest("apparmorRulesFromClosure"):
machine.succeed(
"${pkgs.diffutils}/bin/diff ${pkgs.writeText "expected.rules" ''
"${pkgs.diffutils}/bin/diff -u ${pkgs.writeText "expected.rules" ''
mr ${pkgs.bash}/lib/**.so*,
r ${pkgs.bash},
r ${pkgs.bash}/etc/**,
Expand Down Expand Up @@ -64,6 +64,12 @@ import ./make-test-python.nix ({ pkgs, ... } : {
r ${pkgs.libunistring}/lib/**,
r ${pkgs.libunistring}/share/**,
x ${pkgs.libunistring}/foo/**,
mr ${pkgs.glibc.libgcc}/lib/**.so*,
r ${pkgs.glibc.libgcc},
r ${pkgs.glibc.libgcc}/etc/**,
r ${pkgs.glibc.libgcc}/lib/**,
r ${pkgs.glibc.libgcc}/share/**,
x ${pkgs.glibc.libgcc}/foo/**,
''} ${pkgs.runCommand "actual.rules" { preferLocalBuild = true; } ''
${pkgs.gnused}/bin/sed -e 's:^[^ ]* ${builtins.storeDir}/[^,/-]*-\([^/,]*\):\1 \0:' ${
pkgs.apparmorRulesFromClosure {
Expand Down
25 changes: 25 additions & 0 deletions nixos/tests/systemd-boot-ovmf-broken-fat-driver.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
From d87a7513c6f2f2824203032ef27caeb84892ed7e Mon Sep 17 00:00:00 2001
From: Will Fancher <elvishjerricco@gmail.com>
Date: Tue, 30 May 2023 16:53:20 -0400
Subject: [PATCH] Intentionally break the fat driver

---
FatPkg/EnhancedFatDxe/ReadWrite.c | 5 +++++
1 file changed, 5 insertions(+)

diff --git a/FatPkg/EnhancedFatDxe/ReadWrite.c b/FatPkg/EnhancedFatDxe/ReadWrite.c
index 8f525044d1f1..32c62ff7817b 100644
--- a/FatPkg/EnhancedFatDxe/ReadWrite.c
+++ b/FatPkg/EnhancedFatDxe/ReadWrite.c
@@ -216,6 +216,11 @@ FatIFileAccess (
Volume = OFile->Volume;
Task = NULL;

+ if (*BufferSize > (10U * 1024U * 1024U)) {
+ IFile->Position += 10U * 1024U * 1024U;
+ return EFI_BAD_BUFFER_SIZE;
+ }
+
//
// Write to a directory is unsupported
//
25 changes: 25 additions & 0 deletions nixos/tests/systemd-boot.nix
Original file line number Diff line number Diff line change
Expand Up @@ -251,4 +251,29 @@ in
machine.succeed("test -e /boot/efi/nixos/.extra-files/efi/netbootxyz/netboot.xyz.efi")
'';
};

# See: [Firmware file size bug] in systemd/default.nix
uefiLargeFileWorkaround = makeTest {
name = "uefi-large-file-workaround";

nodes.machine = { pkgs, ... }: {
imports = [common];
virtualisation.efi.OVMF = pkgs.OVMF.overrideAttrs (old: {
# This patch deliberately breaks the FAT driver in EDK2 to
# exhibit (part of) the firmware bug that we are testing
# for. Files greater than 10MiB will fail to be read in a
# single Read() call, so systemd-boot will fail to load the
# initrd without a workaround. The number 10MiB was chosen
# because if it were smaller than the kernel size, even the
# LoadImage call would fail, which is not the failure mode
# we're testing for. It needs to be between the kernel size
# and the initrd size.
patches = old.patches or [] ++ [ ./systemd-boot-ovmf-broken-fat-driver.patch ];
});
};

testScript = ''
machine.wait_for_unit("multi-user.target")
'';
};
}
2 changes: 1 addition & 1 deletion pkgs/applications/audio/tetraproc/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ stdenv.mkDerivation rec {
'';

postInstall = ''
# Make sure Jack is avalable in $PATH for tetraproc
# Make sure Jack is available in $PATH for tetraproc
wrapProgram $out/bin/tetraproc --prefix PATH : "${jack2}/bin"
'';

Expand Down
3 changes: 1 addition & 2 deletions pkgs/applications/editors/thonny/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,6 @@ buildPythonApplication rec {

preFixup = ''
wrapProgram "$out/bin/thonny" \
--set TK_LIBRARY "${tk}/lib/${tk.libPrefix}" \
--prefix PYTHONPATH : $PYTHONPATH:$(toPythonPath ${python3.pkgs.jedi})
'';

Expand All @@ -64,6 +63,6 @@ buildPythonApplication rec {
homepage = "https://www.thonny.org/";
license = licenses.mit;
maintainers = with maintainers; [ leenaars ];
platforms = platforms.linux;
platforms = platforms.unix;
};
}
2 changes: 1 addition & 1 deletion pkgs/applications/misc/audio/soxr/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ stdenv.mkDerivation rec {
./arm64-check.patch
];

outputs = [ "out" "doc" ]; # headers are just two and very small
outputs = [ "out" "dev" "doc" ];

nativeBuildInputs = [ cmake ];

Expand Down
4 changes: 2 additions & 2 deletions pkgs/applications/misc/mupdf/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -47,12 +47,12 @@ let

in
stdenv.mkDerivation rec {
version = "1.21.1";
version = "1.22.1";
pname = "mupdf";

src = fetchurl {
url = "https://mupdf.com/downloads/archive/${pname}-${version}-source.tar.gz";
sha256 = "sha256-sk3b4SUGzILeCNXNSUYUugg0b4F12x2YvPk4/5SSWlQ=";
sha256 = "sha256-1i88DkVuu8QucfWkfw+M0SzsK/Co1yt541+jWmU4slo=";
};

patches = [ ./0001-Use-command-v-in-favor-of-which.patch
Expand Down
2 changes: 1 addition & 1 deletion pkgs/applications/terminal-emulators/alacritty/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -35,14 +35,14 @@ let
expat
fontconfig
freetype
] ++ lib.optionals stdenv.isLinux [
libGL
xorg.libX11
xorg.libXcursor
xorg.libXi
xorg.libXrandr
xorg.libXxf86vm
xorg.libxcb
] ++ lib.optionals stdenv.isLinux [
libxkbcommon
wayland
];
Expand Down
2 changes: 1 addition & 1 deletion pkgs/applications/version-management/tig/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ stdenv.mkDerivation rec {
cp contrib/vim.tigrc $out/etc/

# Note: Until https://github.com/jonas/tig/issues/940 is resolved it is best
# not to install the ZSH completion so that the fallback implemenation from
# not to install the ZSH completion so that the fallback implementation from
# ZSH can be used (Completion/Unix/Command/_git: "_tig () { _git-log }"):
#install -D contrib/tig-completion.zsh $out/share/zsh/site-functions/_tig

Expand Down
2 changes: 2 additions & 0 deletions pkgs/applications/video/vlc/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@
, lua5
, mpeg2dec
, ncurses
, openssl
, perl
, pkg-config
, removeReferencesTo
Expand Down Expand Up @@ -158,6 +159,7 @@ stdenv.mkDerivation rec {
libXvMC
xcbutilkeysyms
])
++ optional onlyLibVLC openssl # not sure why
++ optional (!stdenv.hostPlatform.isAarch && !onlyLibVLC) live555
++ optional jackSupport libjack2
++ optionals chromecastSupport [ libmicrodns protobuf ]
Expand Down
2 changes: 1 addition & 1 deletion pkgs/applications/virtualization/xen/generic.nix
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ stdenv.mkDerivation (rec {
# Remove in-tree qemu stuff in case we build from a tar-ball
rm -rf tools/qemu-xen tools/qemu-xen-traditional

# Fix shebangs, mainly for build-scipts
# Fix shebangs, mainly for build-scripts
# We want to do this before getting prefetched stuff to speed things up
# (prefetched stuff has lots of files)
find . -type f | xargs sed -i 's@/usr/bin/\(python\|perl\)@/usr/bin/env \1@g'
Expand Down
4 changes: 2 additions & 2 deletions pkgs/build-support/fetchgit/nix-prefetch-git
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ branchName=$NIX_PREFETCH_GIT_BRANCH_NAME
out=${out:-}
http_proxy=${http_proxy:-}

# allow overwritting cacert's ca-bundle.crt with a custom one
# this can be done by setting NIX_GIT_SSL_CAINFO and NIX_SSL_CERT_FILE enviroment variables for the nix-daemon
# allow overwriting cacert's ca-bundle.crt with a custom one
# this can be done by setting NIX_GIT_SSL_CAINFO and NIX_SSL_CERT_FILE environment variables for the nix-daemon
GIT_SSL_CAINFO=${NIX_GIT_SSL_CAINFO:-$GIT_SSL_CAINFO}

# populated by clone_user_rev()
Expand Down
2 changes: 1 addition & 1 deletion pkgs/build-support/fetchurl/mirrors.nix
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,8 @@

# GCC
gcc = [
"https://bigsearcher.com/mirrors/gcc/"
"https://mirror.koddos.net/gcc/"
"https://bigsearcher.com/mirrors/gcc/"
"ftp://ftp.nluug.nl/mirror/languages/gcc/"
"ftp://ftp.fu-berlin.de/unix/languages/gcc/"
"ftp://ftp.irisa.fr/pub/mirrors/gcc.gnu.org/gcc/"
Expand Down
5 changes: 1 addition & 4 deletions pkgs/build-support/go/module.nix
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,6 @@
, passthru ? { }
, patches ? [ ]

# Go tags, passed to go via -tag
, tags ? [ ]

# A function to override the go-modules derivation
, overrideModAttrs ? (_oldAttrs: { })

Expand Down Expand Up @@ -201,7 +198,7 @@ let

declare -a flags
flags+=($buildFlags "''${buildFlagsArray[@]}")
flags+=(''${tags:+-tags=${lib.concatStringsSep "," tags}})
flags+=(''${tags:+-tags=''${tags// /,}})
flags+=(''${ldflags:+-ldflags="$ldflags"})
flags+=("-p" "$NIX_BUILD_CORES")

Expand Down
11 changes: 1 addition & 10 deletions pkgs/build-support/go/package.nix
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,6 @@
, preFixup ? ""
, shellHook ? ""

# Go linker flags, passed to go via -ldflags
, ldflags ? []

# Go tags, passed to go via -tag
, tags ? []

# We want parallel builds by default
, enableParallelBuilding ? true

Expand Down Expand Up @@ -49,9 +43,6 @@

, meta ? {}, ... } @ args:


with builtins;

let
dep2src = goDep:
{
Expand Down Expand Up @@ -172,7 +163,7 @@ let

declare -a flags
flags+=($buildFlags "''${buildFlagsArray[@]}")
flags+=(''${tags:+-tags=${lib.concatStringsSep "," tags}})
flags+=(''${tags:+-tags=''${tags// /,}})
flags+=(''${ldflags:+-ldflags="$ldflags"})
flags+=("-p" "$NIX_BUILD_CORES")

Expand Down
22 changes: 17 additions & 5 deletions pkgs/build-support/setup-hooks/auto-patchelf.py
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,14 @@ def osabi_are_compatible(wanted: str, got: str) -> bool:


def glob(path: Path, pattern: str, recursive: bool) -> Iterator[Path]:
return path.rglob(pattern) if recursive else path.glob(pattern)
if path.is_dir():
return path.rglob(pattern) if recursive else path.glob(pattern)
else:
# path.glob won't return anything if the path is not a directory.
# We extend that behavior by matching the file name against the pattern.
# This allows to pass single files instead of dirs to auto_patchelf,
# for greater control on the files to consider.
return [path] if path.match(pattern) else []


cached_paths: Set[Path] = set()
Expand Down Expand Up @@ -305,16 +312,21 @@ def main() -> None:
"--no-recurse",
dest="recursive",
action="store_false",
help="Patch only the provided paths, and ignore their children")
help="Disable the recursive traversal of paths to patch.")
parser.add_argument(
"--paths", nargs="*", type=Path,
help="Paths whose content needs to be patched.")
help="Paths whose content needs to be patched."
" Single files and directories are accepted."
" Directories are traversed recursively by default.")
parser.add_argument(
"--libs", nargs="*", type=Path,
help="Paths where libraries are searched for.")
help="Paths where libraries are searched for."
" Single files and directories are accepted."
" Directories are not searched recursively.")
parser.add_argument(
"--runtime-dependencies", nargs="*", type=Path,
help="Paths to prepend to the runtime path of executable binaries.")
help="Paths to prepend to the runtime path of executable binaries."
" Subject to deduplication, which may imply some reordering.")
parser.add_argument(
"--append-rpaths",
nargs="*",
Expand Down
6 changes: 3 additions & 3 deletions pkgs/build-support/setup-hooks/role.bash
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
# Since the same derivation can be depend on in multiple ways, we need to
# Since the same derivation can be depended on in multiple ways, we need to
# accumulate *each* role (i.e. host and target platforms relative the depending
# derivation) in which the derivation is used.
#
# The role is intened to be use as part of other variables names like
# The role is intended to be used as part of other variables names like
# - $NIX_SOMETHING${role_post}

function getRole() {
Expand Down Expand Up @@ -49,7 +49,7 @@ function getTargetRoleEnvHook() {
getRole "$depTargetOffset"
}

# This variant is inteneded specifically for code-prodocing tool wrapper scripts
# This variant is intended specifically for code-producing tool wrapper scripts
# `NIX_@wrapperName@_TARGET_*_@suffixSalt@` tracks this (needs to be an exported
# env var so can't use fancier data structures).
function getTargetRoleWrapper() {
Expand Down
29 changes: 16 additions & 13 deletions pkgs/development/compilers/dtc/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -31,22 +31,22 @@ stdenv.mkDerivation rec {
sha256 = "sha256-C7OzwY0zq+2CV3SB5unI7Ill2M3deF7FXeQE3B/Kx2s=";
})

# meson.build: bump version to 1.7.0
# Use #ifdef NO_VALGRIND
(fetchpatch {
url = "https://github.com/dgibson/dtc/commit/64a907f08b9bedd89833c1eee674148cff2343c6.patch";
sha256 = "sha256-p2KGS5GW+3uIPgXfuIx6aDC54csM+5FZDkK03t58AL8=";
url = "https://github.com/dgibson/dtc/commit/41821821101ad8a9f83746b96b163e5bcbdbe804.patch";
sha256 = "sha256-7QEFDtap2DWbUGqtyT/RgJZJFldKB8oSubKiCtLZ0w4=";
})

# Fix version in libfdt/meson.build
# dtc: Fix linker options so it also works in Darwin
(fetchpatch {
url = "https://github.com/dgibson/dtc/commit/723545ebe9933b90ea58dc125e4987c6bcb04ade.patch";
sha256 = "sha256-5Oq7q+62ZObj3e7rguN9jhSpYoQkwjSfo/N893229dQ=";
url = "https://github.com/dgibson/dtc/commit/3acde70714df3623e112cf3ec99fc9b5524220b8.patch";
sha256 = "sha256-uLXL0Sjcn+bnMuF+A6PjUW1Rq6uNg1dQl58zbeYpP/U=";
})

# Use #ifdef NO_VALGRIND
# meson: allow disabling tests
(fetchpatch {
url = "https://github.com/dgibson/dtc/commit/41821821101ad8a9f83746b96b163e5bcbdbe804.patch";
sha256 = "sha256-7QEFDtap2DWbUGqtyT/RgJZJFldKB8oSubKiCtLZ0w4=";
url = "https://github.com/dgibson/dtc/commit/35f26d2921b68d97fefbd5a2b6e821a2f02ff65d.patch";
sha256 = "sha256-cO4f/jJX/pQL7kk4jpKUhsCVESW2ZuWaTr7z3BuvVkw=";
})
];

Expand All @@ -69,6 +69,12 @@ stdenv.mkDerivation rec {

postPatch = ''
patchShebangs setup.py

# meson.build: bump version to 1.7.0
substituteInPlace libfdt/meson.build \
--replace "version: '1.6.0'," "version: '${version}',"
substituteInPlace meson.build \
--replace "version: '1.6.0'," "version: '${version}',"
'';

# Required for installation of Python library and is innocuous otherwise.
Expand All @@ -77,12 +83,9 @@ stdenv.mkDerivation rec {
mesonAutoFeatures = "auto";
mesonFlags = [
(lib.mesonBool "static-build" stdenv.hostPlatform.isStatic)
(lib.mesonBool "tests" doCheck)
];

postFixup = lib.optionalString stdenv.isDarwin ''
install_name_tool -id $out/lib/libfdt.dylib $out/lib/libfdt-${version}.dylib
'';

# Checks are broken on aarch64 darwin
# https://github.com/NixOS/nixpkgs/pull/118700#issuecomment-885892436
doCheck = !stdenv.isDarwin;
Expand Down
Loading