Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
493 commits
Select commit Hold shift + click to select a range
be9bc07
screen: fix build with libxcrypt
mweinelt Sep 27, 2022
43327d2
pppd: fix build with libxcrypt
mweinelt Sep 27, 2022
728c97f
pppd: inherit nixos test into passthru.tests
mweinelt Sep 27, 2022
fd94457
open-vm-tools: fix build with libxcrypt
mweinelt Sep 27, 2022
d438cee
conserver: fix build with libxcrypt
fpletz Sep 29, 2022
71dad51
dante: fix build with libxcrypt
fpletz Sep 29, 2022
c82e7ee
hiawatha: fix build with libxcrypt
fpletz Sep 29, 2022
5c34a53
ircdHybrid: fix build with libxcrypt
fpletz Sep 29, 2022
ce67773
libcli: fix build with libxcrypt
fpletz Sep 29, 2022
f51c3fd
ldapvi: fix build with libxcrypt
mweinelt Sep 29, 2022
d017316
atheme: fix build with libxcrypt
mweinelt Sep 29, 2022
dbf9333
xorg.xdm: fix build with libxcrypt
mweinelt Sep 29, 2022
0465c23
wmic-bin: fix build with libxcrypt
mweinelt Sep 29, 2022
555d39b
libreswan: fix build with libxcrypt
mweinelt Sep 29, 2022
167544c
tengine: fix build with libxcrypt
mweinelt Sep 29, 2022
3575e57
libguestfs: fix build with libxcrypt
fpletz Sep 29, 2022
ec31b96
leafnode: fix build with libxcrypt
fpletz Sep 29, 2022
84eda8b
lsh: fix build with libxcrypt
fpletz Sep 29, 2022
31e5ad8
pgpool: fix build with libxcrypt
fpletz Sep 29, 2022
47945f2
groonga: fix build with libxcrypt
fpletz Sep 29, 2022
da15c9c
mailutils: fix build with libxcrypt
fpletz Sep 29, 2022
2a7df1a
popa3d: fix build with libxcrypt
fpletz Sep 29, 2022
870b0eb
tcsh: fix build with libxcrypt
mweinelt Sep 29, 2022
c7b0317
swiProlog: fix build with libxcrypt
mweinelt Sep 29, 2022
7f0e9f0
sumo: fix build with libxcrypt
mweinelt Sep 29, 2022
eb2ed86
toybox: fix build with libxcrypt
mweinelt Sep 29, 2022
aac6de8
gcc10: fix build with libxcrypt
mweinelt Sep 29, 2022
21c552e
gcc12: fix build with libxcrypt
mweinelt Sep 29, 2022
126319f
xrootd: fix build with libxcrypt
fpletz Sep 29, 2022
897f5b2
pounce: fix build with libxcrypt
fpletz Sep 29, 2022
2939285
uwsgi: fix build with libxcrypt
fpletz Sep 29, 2022
a1c07a6
super: fix build with libxcrypt
fpletz Sep 29, 2022
e1f8bfb
policycoreutils: fix build with libxcrypt
fpletz Sep 29, 2022
77c50b0
pies: fix build with libxcrypt
fpletz Sep 29, 2022
eee1cec
partimage: fix build with libxcrypt
fpletz Sep 29, 2022
55a5763
otpw: fix build with libxcrypt
fpletz Sep 29, 2022
f9df47f
zeroc-ice: fix build with libxcrypt
fpletz Sep 30, 2022
2b899ee
luaPackages.luaposix: fix build with libxcrypt
fpletz Sep 30, 2022
fe91064
monit: fix build with libxcrypt
fpletz Sep 30, 2022
e963dde
libfilezilla: fix build with libxcrypt
fpletz Sep 30, 2022
2e7e473
libsigrokdecode: fix build with libxcrypt
fpletz Sep 30, 2022
67408de
hylafaxplus: fix build with libxcrypt
fpletz Sep 30, 2022
f0f14f1
dropbear: fix build with libxcrypt
fpletz Sep 30, 2022
64e160c
kodi: fix build with libxcrypt
fpletz Sep 30, 2022
24bc454
pure-ftpd: fix build with libxcrypt
fpletz Sep 30, 2022
31f1f36
cernlib: fix build with libxcrypt
fpletz Sep 30, 2022
e33af60
bozohttpd: fix build with libxcrypt
fpletz Sep 30, 2022
519b8c8
sawfish: fix build with libxcrypt
fpletz Sep 30, 2022
845ae8e
qnial: fix build with libxcrypt
fpletz Sep 30, 2022
09597d4
unicon-lang: fix build with libxcrypt
fpletz Sep 30, 2022
15f6c0a
gvm-libs: fix build with libxcrypt
fpletz Sep 30, 2022
8dde32e
snis: fix build with libxcrypt
fpletz Sep 30, 2022
125ec34
slock: fix build with libxcrypt
fpletz Sep 30, 2022
fd1bcb1
dico: fix build with libxcrypt
fpletz Sep 30, 2022
ccba311
dcap: fix build with libxcrypt
fpletz Sep 30, 2022
57f4391
haproxy: fix build with libxcrypt
fpletz Sep 30, 2022
cfc636c
srelay: fix build with libxcrypt
fpletz Sep 30, 2022
58bbfeb
nntp-proxy: fix build with libxcrypt
fpletz Sep 30, 2022
7b33ea4
shellhub-agent: fix build with libxcrypt
fpletz Sep 30, 2022
9fb94a8
pam_mysql: fix build with libxcrypt
fpletz Sep 30, 2022
94e54c6
pam_pgsql: fix build with libxcrypt
fpletz Sep 30, 2022
3edcff9
sysvinit: fix build with libxcrypt
fpletz Sep 30, 2022
fc4f68d
mokutil: fix build with libxcrypt
fpletz Sep 30, 2022
c755643
epic5: fix build with libxcrypt
fpletz Sep 30, 2022
bcdde95
kermit: fix build with libxcrypt
fpletz Sep 30, 2022
6264d94
root5: fix build with libxcrypt
fpletz Sep 30, 2022
2c10e08
root: fix build with libxcrypt
fpletz Sep 30, 2022
9430efb
pleroma: fix build with libxcrypt
fpletz Sep 30, 2022
3d6b548
sogo: fix build with libxcrypt
fpletz Sep 30, 2022
fb591b9
cde: fix build with libxcrypt
fpletz Sep 30, 2022
993839a
bftpd: fix build with libxcrypt
fpletz Sep 30, 2022
f64f770
llvmPackages_13.compiler-rt: fix build with libxcrypt
mweinelt Oct 1, 2022
efd944c
llvmPackages_12.compiler-rt: fix build with libxcrypt
mweinelt Oct 1, 2022
716a315
llvmPackages_10.compiler-rt: fix build with libxcrypt
mweinelt Oct 1, 2022
842a2c2
llvmPackages_rocm.llvm: fix build with libxcrypt
mweinelt Oct 1, 2022
284396c
haskellPackages.crypt-sha512: fix build with libxcrypt
mweinelt Oct 2, 2022
7670059
freeswitch: fix build with libxcrypt
mweinelt Oct 3, 2022
6f1812a
haskellPackages.Unixutils: fix build with libxcrypt
mweinelt Oct 3, 2022
3f4de6d
thttpd: fix build with libxcrypt
mweinelt Oct 3, 2022
2d19e7c
haskellPackages.nano-cryptr: fix build with libxcrypt
mweinelt Oct 3, 2022
9001f0d
haskellPackages.xmonad-utils: fix build with libxcrypt
mweinelt Oct 3, 2022
e02766b
ocserv: fix build with libxcrypt
mweinelt Oct 3, 2022
2b83e04
ladybird: fix build with libxcrypt
mweinelt Oct 3, 2022
0f7ef68
cdesktopenv: fix build with libxcrypt
mweinelt Oct 3, 2022
01f94c2
wiringpi: fix build with libxcrypt
mweinelt Oct 3, 2022
3cedef1
swift: fix build with libxcrypt
mweinelt Oct 3, 2022
73ffee8
util-linux: pass libxcrypt, so sulogin gets built
mweinelt Oct 4, 2022
1b8d6d3
python3Packages.twisted: Disable failing crypt test
mweinelt Oct 6, 2022
322b510
python3Packages.pillow{,-simd}: fix build with libxcrypt
mweinelt Oct 7, 2022
338d0cc
libxcrypt: Fix static build by using perl from buildPackages
mweinelt Oct 8, 2022
195aa58
boost: fix build with enablePython by passing libxcrypt
mweinelt Oct 8, 2022
9b734d1
liblc3: init at 1.0.1
jansol Oct 4, 2022
96dd839
pipewire: 0.3.58 -> 0.3.59
jansol Oct 4, 2022
bdb347b
dbus: 1.14.0 -> 1.14.4
mweinelt Oct 9, 2022
3b37795
Merge staging-next into staging
github-actions[bot] Oct 9, 2022
829f895
Merge pull request #181764 from mweinelt/glibc-without-libcrypt
mweinelt Oct 9, 2022
ed349ce
Merge remote-tracking branch 'origin/staging-next' into staging
mweinelt Oct 9, 2022
4e58b28
Merge pull request #195264 from mweinelt/dbus-1.14.4
mweinelt Oct 9, 2022
e92f9b3
Merge staging-next into staging
github-actions[bot] Oct 10, 2022
41c0964
autoPatchelfHook: fix turning `[ "*" ]` into bash array
adisbladis Oct 10, 2022
01535ff
autoPatchelfHook: support glob patterns
adisbladis Oct 10, 2022
579766d
Merge staging-next into staging
github-actions[bot] Oct 10, 2022
039e1a0
avahi: add patch for CVE-2021-3468
yorickvP Oct 10, 2022
8d32772
Merge staging-next into staging
github-actions[bot] Oct 10, 2022
f4ea120
treewide: *Flags convert to list from str
Artturin Oct 3, 2022
7e49471
treewide: optional -> optionals where the argument is a list
Artturin Oct 6, 2022
8c7813e
Merge pull request #195331 from yorickvP/avahi-fix
lovesegfault Oct 10, 2022
0b21851
Merge pull request #195306 from adisbladis/autopatchelf-globs
lovesegfault Oct 10, 2022
f5fb6e5
Merge pull request #194496 from jansol/pipewire
lovesegfault Oct 10, 2022
94705be
ethtool: 5.19 -> 6.0
r-ryantm Oct 10, 2022
e3419ce
Merge master into staging-next
github-actions[bot] Oct 11, 2022
5d957f3
Merge staging-next into staging
github-actions[bot] Oct 11, 2022
8918d77
libxcrypt: divert manpages into man output
mweinelt Oct 9, 2022
9c6406d
libxcrypt: add passthru tests
mweinelt Oct 9, 2022
5f7f739
libxcrypt: adopt
mweinelt Oct 9, 2022
161b9eb
Merge master into staging-next
github-actions[bot] Oct 11, 2022
aabca3e
Merge staging-next into staging
github-actions[bot] Oct 11, 2022
d26276e
weechat: re-enable docs
ncfavier Oct 9, 2022
2085ea1
Merge pull request #195271 from mweinelt/libxcrypt-continued
mweinelt Oct 11, 2022
27738d4
wavpack: 5.4.0 -> 5.5.0
yorickvP Oct 9, 2022
598a9e2
Merge master into staging-next
github-actions[bot] Oct 11, 2022
4144e4b
Merge pull request #194038 from sternenseemann/harfbuzz-5.2.0
mweinelt Oct 11, 2022
0c743ca
openssl: 3.0.5 -> 3.0.6
ajs124 Oct 11, 2022
c3ddd95
luarocks{,-nix}: add necessary programs to PATH
figsoda Oct 11, 2022
9efc3f8
Merge master into staging-next
github-actions[bot] Oct 11, 2022
0bf7095
openssl: 1.1.1q -> 1.1.1r
ajs124 Oct 11, 2022
9247a66
Revert "krb5: use openssl_1_1"
ajs124 Oct 11, 2022
071773d
ibm-sw-tpm2: 1661 -> 1682
ajs124 Oct 11, 2022
c4849d4
Revert "ibm-sw-tpm2: Fix build on RISC-V"
ajs124 Oct 11, 2022
3b9c30a
Revert "ibm-sw-tpm2: Pin OpenSSL 1.1.1"
ajs124 Oct 11, 2022
8a2b098
tzdata: 2022d -> 2022e
ajs124 Oct 11, 2022
1a0c8a4
Merge pull request #195539 from helsinki-systems/upd/openssl_1_1
mweinelt Oct 11, 2022
3ff0a8f
Merge pull request #189676 from zhaofengli/cryptenroll
flokli Oct 11, 2022
2c25e07
Merge master into staging-next
github-actions[bot] Oct 12, 2022
ee639b4
opencl-headers: 2022.09.23 -> 2022.09.30
r-ryantm Oct 12, 2022
4828dc9
Merge remote-tracking branch 'helsinki-systems/upd/openssl' into staging
mweinelt Oct 12, 2022
9dc4fc9
Merge master into staging-next
github-actions[bot] Oct 12, 2022
cbea92c
Merge pull request #195584 from helsinki-systems/upd/ibm-sw-tpm2
ajs124 Oct 12, 2022
e264d5c
muse: fixup build after `sord` update
vcunat Oct 12, 2022
d7ee639
Merge #194796: sord: unstable-2021-01-12 -> 0.16.14
vcunat Oct 12, 2022
02699f1
Merge master into staging-next
github-actions[bot] Oct 12, 2022
fd4c573
Merge pull request #194844 from lilyinstarlight/fix/p11-kit-macos
rnhmjoj Oct 12, 2022
9f6b923
Merge master into staging-next
github-actions[bot] Oct 12, 2022
9d24c1f
linux: XFS_ONLINE_SCRUB=y (#195266)
yuyuyureka Oct 12, 2022
3449367
Merge #192907: gpgme: fix i686 build
vcunat Oct 12, 2022
e66d2fd
Merge pull request #194256 from Artturin/treewides2
Artturin Oct 12, 2022
2a3f0a6
Merge pull request #195208 from yorickvP/wavpack
risicle Oct 12, 2022
b468fe7
Merge master into staging-next
github-actions[bot] Oct 13, 2022
516febf
Merge master into staging-next
github-actions[bot] Oct 13, 2022
00a757e
Merge branch 'master' into staging
vcunat Oct 13, 2022
2aff111
libxml2: 2.10.0 → 2.10.2
jtojnar Oct 13, 2022
f32e464
libxslt: 1.1.36 → 1.1.37
jtojnar Oct 13, 2022
8328a4d
Merge master into staging-next
github-actions[bot] Oct 13, 2022
62bcf0a
Merge staging-next into staging
github-actions[bot] Oct 13, 2022
1ee0e58
xterm: 373 -> 374
misuzu Oct 13, 2022
747e342
unbound: 1.16.3 -> 1.17.0
mweinelt Oct 13, 2022
b30d687
Revert "openssl: 1.1.1q -> 1.1.1r"
ajs124 Oct 13, 2022
0755f8c
Revert "openssl: 3.0.5 -> 3.0.6"
ajs124 Oct 13, 2022
5216997
Merge pull request #195828 from helsinki-systems/revert/openssl
mweinelt Oct 13, 2022
768c88b
Merge pull request #195812 from mweinelt/unbound-1.17.0
ajs124 Oct 13, 2022
32aefe2
Merge pull request #195804 from misuzu/xterm-update
mweinelt Oct 13, 2022
ef6a273
Merge pull request #195748 from jtojnar/libxml2
mweinelt Oct 13, 2022
8d7a17e
Merge #194802: libXft: 2.3.4 -> 2.3.6
vcunat Oct 13, 2022
dbcd78e
Merge #195586: tzdata: 2022d -> 2022e
vcunat Oct 13, 2022
2acce7d
vimPlugins: make usage of luaPackages less confusing
Sep 11, 2022
ba41689
Merge master into staging-next
github-actions[bot] Oct 13, 2022
7df9a7a
Merge staging-next into staging
github-actions[bot] Oct 13, 2022
445887f
mesa: 22.1.7 -> 22.2.1
PedroHLC Sep 21, 2022
b4b99f1
mesa: re-enable video-codecs
PedroHLC Oct 13, 2022
e0d8990
c-ares: add cmake to default, c-aresMinimal: init
jonringer Sep 14, 2022
4250a64
c-ares: add dev output
jonringer Sep 14, 2022
74f7adf
c-ares: remove passthru.cmake-config
jonringer Sep 14, 2022
fe2ffdc
c-ares: add downstream tests
jonringer Oct 13, 2022
58e3121
speex: 1.2.0 -> 1.2.1
LeSuisse Oct 13, 2022
07b4f3d
Merge pull request #191135 from jonringer/improve-c-ares
mweinelt Oct 13, 2022
249821f
Merge pull request #192906 from OPNA2608/fix/openblas-parallelism
mweinelt Oct 13, 2022
6fdfb88
Merge #193972: tzdata: enable cross-compilation for Windows
vcunat Oct 13, 2022
c1c65ce
Merge #192946: libfido2: 1.11.0 -> 1.12.0
vcunat Oct 13, 2022
98ebdc3
Merge #193609: libaom: 3.4.0 -> 3.5.0
vcunat Oct 13, 2022
46c3ebf
Merge #193489: libopenmpt: 0.6.5 -> 0.6.6
vcunat Oct 13, 2022
115a7e2
Merge #191423: git: Disable tests that fail on ZFS
vcunat Oct 13, 2022
b19537f
Merge #192532: popt: 1.18 -> 1.19
vcunat Oct 13, 2022
79dd787
Merge #192506: modemmanager: 1.18.10 -> 1.18.12
vcunat Oct 13, 2022
8ec485f
libksba: 1.6.0 -> 1.6.2
vcunat Oct 13, 2022
3e26c5e
Merge #195687: mesa: 22.1.7 -> 22.2.1
vcunat Oct 13, 2022
14e3245
Merge #195182: go, buildGoModule, buildGoPackage: default to 1.19
vcunat Oct 13, 2022
5c51f3d
Merge pull request #195245 from ncfavier/weechat-docs
mweinelt Oct 13, 2022
cf381e3
Merge pull request #195602 from r-ryantm/auto-update/opencl-headers
mweinelt Oct 13, 2022
1aed260
Merge pull request #195398 from r-ryantm/auto-update/ethtool
mweinelt Oct 13, 2022
1c9cf5d
Merge pull request #192017 from r-ryantm/auto-update/bpftools
mweinelt Oct 13, 2022
2b182bb
Merge pull request #195859 from LeSuisse/speex-1.2.1
mweinelt Oct 13, 2022
ffcab07
Merge pull request #194376 from tjni/hatch-fancy-pypi-readme
mweinelt Oct 13, 2022
088fdff
Merge remote-tracking branch 'origin/master' into staging-next
mweinelt Oct 13, 2022
c728598
Merge remote-tracking branch 'origin/staging-next' into staging
mweinelt Oct 13, 2022
28d31e8
python3Packages.pytz-deprecation-shim: Disable failing test
mweinelt Oct 14, 2022
182a210
Merge master into staging-next
github-actions[bot] Oct 14, 2022
283841a
Merge master into staging-next
github-actions[bot] Oct 14, 2022
d700d8e
stdenv cc-wrapper: revert a problematic change for non-Linux
vcunat Oct 14, 2022
f831be5
bpftools: strip path to the binary from prints
vcunat Oct 14, 2022
c3ee9d1
Merge pull request #195934 from vcunat/p/bpftools_strip-binary-name
Mic92 Oct 14, 2022
cc090d2
Merge master into staging-next
github-actions[bot] Oct 14, 2022
c2474f9
Revert "modemmanager: fix and re-enable tests"
mweinelt Oct 14, 2022
d5d9462
modemmanager: reenable install tests
mweinelt Oct 14, 2022
5f2785c
python3Packages.threadpoolctl: Disable failing tests
mweinelt Oct 14, 2022
a247f35
python3Packages.poetry-plugin-export: 1.0.6 -> 1.1.2
mweinelt Oct 14, 2022
844632d
python3Packages.poetry-core: 1.2.0 -> 1.3.2
mweinelt Oct 14, 2022
35b849d
python3Packages.poetry: 1.2.0 -> 1.2.2
mweinelt Oct 14, 2022
53d33ca
systemd: disable portabled on musl
yuyuyureka Oct 14, 2022
c3c8294
Merge pull request #196027 from yu-re-ka/musl-systemd
flokli Oct 14, 2022
14fe809
Merge master into staging-next
github-actions[bot] Oct 14, 2022
886633b
Merge master into staging-next
github-actions[bot] Oct 15, 2022
4f07e7f
Merge master into staging-next
github-actions[bot] Oct 15, 2022
36bb8d9
libxml2: use older version during stdenv bootstrap on darwin
vcunat Oct 15, 2022
51fcbf5
Merge remote-tracking branch 'origin/master' into staging-next
mweinelt Oct 15, 2022
e9c5a28
Merge master into staging-next
github-actions[bot] Oct 16, 2022
017cc2d
libical: fix tests with 32-bit time_t
r-burns Oct 16, 2022
e648107
Merge master into staging-next
github-actions[bot] Oct 16, 2022
05b5882
Merge pull request #196229 from r-burns/libical-i686
mweinelt Oct 16, 2022
7a3a8cb
Merge master into staging-next
github-actions[bot] Oct 16, 2022
3ec8d0d
gptfdisk: fix runtime problems with popt 1.19
yuyuyureka Oct 16, 2022
f52955a
Merge master into staging-next
github-actions[bot] Oct 16, 2022
18a6423
Merge master into staging-next
github-actions[bot] Oct 17, 2022
ab48494
Merge master into staging-next
github-actions[bot] Oct 17, 2022
969a179
Merge master into staging-next
github-actions[bot] Oct 17, 2022
3834216
Merge master into staging-next
github-actions[bot] Oct 17, 2022
7993cdf
linuxHeaders_5_19: init at 5.19.16
vcunat Oct 18, 2022
87d9283
python3Packages.torch: fix by using older kernel headers
vcunat Oct 18, 2022
a25e03e
pkgsMusl.netbsd.install: fix build (#196260)
yuyuyureka Oct 18, 2022
457f28f
Merge branch 'master' into staging-next
jtojnar Oct 19, 2022
cea1c3f
Merge master into staging-next
github-actions[bot] Oct 19, 2022
1511e46
virtualbox: 6.1.36 -> 6.1.40
vcunat Oct 18, 2022
bbaff9a
Merge master into staging-next
github-actions[bot] Oct 19, 2022
958cbc7
Merge master into staging-next
github-actions[bot] Oct 19, 2022
da85286
rustc: don't strip bootstrap on darwin
stephank Oct 19, 2022
aac580f
Merge master into staging-next
github-actions[bot] Oct 20, 2022
ad9975e
Merge #196571: python3Packages.torch: use older kernel headers
vcunat Oct 20, 2022
0eb4236
Merge #196570: virtualbox: 6.1.36 -> 6.1.40
vcunat Oct 20, 2022
6e9b36d
Merge master into staging-next
github-actions[bot] Oct 20, 2022
b8dfd96
openldap: fixup build on *-darwin
vcunat Oct 20, 2022
369a66e
Merge pull request #196893 from vcunat/p/openldap-darwin
mweinelt Oct 20, 2022
ee0190d
Merge master into staging-next
github-actions[bot] Oct 20, 2022
9cf461a
rr: fix build with new linuxHeaders
vcunat Oct 20, 2022
8031702
Merge master into staging-next
github-actions[bot] Oct 20, 2022
e674dd4
Merge #193861: luajit_2_0, luajit_2_1: update
vcunat Oct 20, 2022
c434165
Merge master into staging-next
github-actions[bot] Oct 21, 2022
bb96577
calibre-web: don't rely on flask_login alias
mweinelt Oct 21, 2022
80fc469
Merge remote-tracking branch 'origin/master' into staging-next
mweinelt Oct 21, 2022
c8a9826
Merge master into staging-next
github-actions[bot] Oct 22, 2022
3c2db12
Merge master into staging-next
github-actions[bot] Oct 22, 2022
71e4896
Merge master into staging-next
github-actions[bot] Oct 22, 2022
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
31 changes: 30 additions & 1 deletion lib/deprecated.nix
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,36 @@ rec {
}
);

closePropagation = list: (uniqList {inputList = (innerClosePropagation [] list);});
closePropagationSlow = list: (uniqList {inputList = (innerClosePropagation [] list);});

# This is an optimisation of lib.closePropagation which avoids the O(n^2) behavior
# Using a list of derivations, it generates the full closure of the propagatedXXXBuildInputs
# The ordering / sorting / comparison is done based on the `outPath`
# attribute of each derivation.
# On some benchmarks, it performs up to 15 times faster than lib.closePropagation.
# See https://github.com/NixOS/nixpkgs/pull/194391 for details.
closePropagationFast = list:
builtins.map (x: x.val) (builtins.genericClosure {
startSet = builtins.map (x: {
key = x.outPath;
val = x;
}) (builtins.filter (x: x != null) list);
operator = item:
if !builtins.isAttrs item.val then
[ ]
else
builtins.concatMap (x:
if x != null then [{
key = x.outPath;
val = x;
}] else
[ ]) ((item.val.propagatedBuildInputs or [ ])
++ (item.val.propagatedNativeBuildInputs or [ ]));
});

closePropagation = if builtins ? genericClosure
then closePropagationFast
else closePropagationSlow;

# calls a function (f attr value ) for each record item. returns a list
mapAttrsFlatten = f: r: map (attr: f attr r.${attr}) (attrNames r);
Expand Down
2 changes: 1 addition & 1 deletion lib/generators.nix
Original file line number Diff line number Diff line change
Expand Up @@ -378,7 +378,7 @@ rec {

attr = let attrFilter = name: value: name != "_module" && value != null;
in ind: x: libStr.concatStringsSep "\n" (lib.flatten (lib.mapAttrsToList
(name: value: lib.optional (attrFilter name value) [
(name: value: lib.optionals (attrFilter name value) [
(key "\t${ind}" name)
(expr "\t${ind}" value)
]) x));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ containers.database =
{ config =
{ config, pkgs, ... }:
{ services.postgresql.enable = true;
services.postgresql.package = pkgs.postgresql_10;
services.postgresql.package = pkgs.postgresql_14;
};
};
```
Expand Down
2 changes: 1 addition & 1 deletion nixos/doc/manual/configuration/config-file.section.md
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ Packages
pkgs.emacs
];

services.postgresql.package = pkgs.postgresql_10;
services.postgresql.package = pkgs.postgresql_14;
```

The latter option definition changes the default PostgreSQL package
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ containers.database =
{ config =
{ config, pkgs, ... }:
{ services.postgresql.enable = true;
services.postgresql.package = pkgs.postgresql_10;
services.postgresql.package = pkgs.postgresql_14;
};
};
</programlisting>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,7 @@ environment.systemPackages =
pkgs.emacs
];

services.postgresql.package = pkgs.postgresql_10;
services.postgresql.package = pkgs.postgresql_14;
</programlisting>
<para>
The latter option definition changes the default PostgreSQL
Expand Down
25 changes: 25 additions & 0 deletions nixos/doc/manual/from_md/release-notes/rl-2211.section.xml
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,15 @@
certificates by default.
</para>
</listitem>
<listitem>
<para>
Improved performances of
<literal>lib.closePropagation</literal> which was previously
quadratic. This is used in e.g.
<literal>ghcWithPackages</literal>. Please see backward
incompatibilities notes below.
</para>
</listitem>
<listitem>
<para>
Cinnamon has been updated to 5.4. While at it, the cinnamon
Expand Down Expand Up @@ -505,6 +514,16 @@
future Git update without notice.
</para>
</listitem>
<listitem>
<para>
<literal>openssh</literal> was updated to version 9.1,
disabling the generation of DSA keys when using
<literal>ssh-keygen -A</literal> as they are insecure. Also,
<literal>SetEnv</literal> directives in
<literal>ssh_config</literal> and
<literal>sshd_config</literal> are now first-match-wins
</para>
</listitem>
<listitem>
<para>
<literal>bsp-layout</literal> no longer uses the command
Expand Down Expand Up @@ -611,6 +630,12 @@
notes</link>.
</para>
</listitem>
<listitem>
<para>
<literal>lib.closePropagation</literal> now needs that all
gathered sets have an <literal>outPath</literal> attribute.
</para>
</listitem>
<listitem>
<para>
lemmy module option
Expand Down
6 changes: 6 additions & 0 deletions nixos/doc/manual/release-notes/rl-2211.section.md
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,8 @@ In addition to numerous new and upgraded packages, this release has the followin

- Perl has been updated to 5.36, and its core module `HTTP::Tiny` was patched to verify SSL/TLS certificates by default.

- Improved performances of `lib.closePropagation` which was previously quadratic. This is used in e.g. `ghcWithPackages`. Please see backward incompatibilities notes below.

- Cinnamon has been updated to 5.4. While at it, the cinnamon module now defaults to
blueman as bluetooth manager and slick-greeter as lightdm greeter to match upstream.

Expand Down Expand Up @@ -172,6 +174,8 @@ Available as [services.patroni](options.html#opt-services.patroni.enable).

- The `fetchgit` fetcher now uses [cone mode](https://www.git-scm.com/docs/git-sparse-checkout/2.37.0#_internalscone_mode_handling) by default for sparse checkouts. [Non-cone mode](https://www.git-scm.com/docs/git-sparse-checkout/2.37.0#_internalsnon_cone_problems) can be enabled by passing `nonConeMode = true`, but note that non-cone mode is deprecated and this option may be removed alongside a future Git update without notice.

- `openssh` was updated to version 9.1, disabling the generation of DSA keys when using `ssh-keygen -A` as they are insecure. Also, `SetEnv` directives in `ssh_config` and `sshd_config` are now first-match-wins

- `bsp-layout` no longer uses the command `cycle` to switch to other window layouts, as it got replaced by the commands `previous` and `next`.

- The Barco ClickShare driver/client package `pkgs.clickshare-csc1` and the option `programs.clickshare-csc1.enable` have been removed,
Expand Down Expand Up @@ -205,6 +209,8 @@ Available as [services.patroni](options.html#opt-services.patroni.enable).

- `teleport` has been upgraded to major version 10. Please see upstream [upgrade instructions](https://goteleport.com/docs/ver/10.0/management/operations/upgrading/) and [release notes](https://goteleport.com/docs/ver/10.0/changelog/#1000).

- `lib.closePropagation` now needs that all gathered sets have an `outPath` attribute.

- lemmy module option `services.lemmy.settings.database.createLocally`
moved to `services.lemmy.database.createLocally`.

Expand Down
2 changes: 1 addition & 1 deletion nixos/lib/make-options-doc/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ in rec {

optionsJSON = pkgs.runCommand "options.json"
{ meta.description = "List of NixOS options in JSON format";
buildInputs = [
nativeBuildInputs = [
pkgs.brotli
(let
self = (pkgs.python3Minimal.override {
Expand Down
2 changes: 1 addition & 1 deletion nixos/modules/config/users-groups.nix
Original file line number Diff line number Diff line change
Expand Up @@ -697,7 +697,7 @@ in {
value = "[a-zA-Z0-9/+.-]+";
options = "${id}(=${value})?(,${id}=${value})*";
scheme = "${id}(${sep}${options})?";
content = "${base64}${sep}${base64}";
content = "${base64}${sep}${base64}(${sep}${base64})?";
mcf = "^${sep}${scheme}${sep}${content}$";
in
if (allowsLogin user.hashedPassword
Expand Down
2 changes: 1 addition & 1 deletion nixos/modules/hardware/video/nvidia.nix
Original file line number Diff line number Diff line change
Expand Up @@ -261,7 +261,7 @@ in
in optional primeEnabled {
name = igpuDriver;
display = offloadCfg.enable;
modules = optional (igpuDriver == "amdgpu") [ pkgs.xorg.xf86videoamdgpu ];
modules = optionals (igpuDriver == "amdgpu") [ pkgs.xorg.xf86videoamdgpu ];
deviceSection = ''
BusID "${igpuBusId}"
${optionalString (syncCfg.enable && igpuDriver != "amdgpu") ''Option "AccelMethod" "none"''}
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
{
"context.properties": {
"log.level": 0
},
"context.spa-libs": {
"audio.convert.*": "audioconvert/libspa-audioconvert",
"support.*": "support/libspa-support"
},
"context.modules": [
{
"name": "libpipewire-module-rt",
"args": {},
"flags": [
"ifexists",
"nofail"
]
},
{
"name": "libpipewire-module-protocol-native"
},
{
"name": "libpipewire-module-client-node"
},
{
"name": "libpipewire-module-adapter"
}
]
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
{
"context.properties": {},
"context.spa-libs": {
"audio.convert.*": "audioconvert/libspa-audioconvert",
"support.*": "support/libspa-support"
},
"context.modules": [
{
"name": "libpipewire-module-rt",
"args": {
"nice.level": -11
},
"flags": [
"ifexists",
"nofail"
]
},
{
"name": "libpipewire-module-protocol-native"
},
{
"name": "libpipewire-module-client-node"
},
{
"name": "libpipewire-module-adapter"
},
{
"name": "libpipewire-module-avb",
"args": {}
}
],
"context.exec": [],
"stream.properties": {},
"avb.properties": {
"ifname": "enp3s0",
"vm.overrides": {}
}
}
2 changes: 1 addition & 1 deletion nixos/modules/services/misc/ethminer.nix
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ in
config = mkIf cfg.enable {

systemd.services.ethminer = {
path = optional (cfg.toolkit == "cuda") [ pkgs.cudaPackages.cudatoolkit ];
path = optionals (cfg.toolkit == "cuda") [ pkgs.cudaPackages.cudatoolkit ];
description = "ethminer ethereum mining service";
wantedBy = [ "multi-user.target" ];
after = [ "network.target" ];
Expand Down
2 changes: 1 addition & 1 deletion nixos/modules/services/misc/podgrab.nix
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ in
};
serviceConfig = {
DynamicUser = true;
EnvironmentFile = lib.optional (cfg.passwordFile != null) [
EnvironmentFile = lib.optionals (cfg.passwordFile != null) [
cfg.passwordFile
];
ExecStart = "${pkgs.podgrab}/bin/podgrab";
Expand Down
2 changes: 1 addition & 1 deletion nixos/modules/services/networking/hostapd.nix
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ in

environment.systemPackages = [ pkgs.hostapd ];

services.udev.packages = optional (cfg.countryCode != null) [ pkgs.crda ];
services.udev.packages = optionals (cfg.countryCode != null) [ pkgs.crda ];

systemd.services.hostapd =
{ description = "hostapd wireless AP";
Expand Down
4 changes: 2 additions & 2 deletions nixos/modules/services/networking/ntp/chrony.nix
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ let
${cfg.extraConfig}
'';

chronyFlags = "-n -m -u chrony -f ${configFile} ${toString cfg.extraFlags}";
chronyFlags = [ "-n" "-m" "-u" "chrony" "-f" "${configFile}" ] ++ cfg.extraFlags;
in
{
options = {
Expand Down Expand Up @@ -166,7 +166,7 @@ in
unitConfig.ConditionCapability = "CAP_SYS_TIME";
serviceConfig =
{ Type = "simple";
ExecStart = "${chronyPkg}/bin/chronyd ${chronyFlags}";
ExecStart = "${chronyPkg}/bin/chronyd ${builtins.toString chronyFlags}";

ProtectHome = "yes";
ProtectSystem = "full";
Expand Down
4 changes: 2 additions & 2 deletions nixos/modules/services/networking/ntp/ntpd.nix
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ let
${cfg.extraConfig}
'';

ntpFlags = "-c ${configFile} -u ntp:ntp ${toString cfg.extraFlags}";
ntpFlags = [ "-c" "${configFile}" "-u" "ntp:ntp" ] ++ cfg.extraFlags;

in

Expand Down Expand Up @@ -137,7 +137,7 @@ in
'';

serviceConfig = {
ExecStart = "@${ntp}/bin/ntpd ntpd -g ${ntpFlags}";
ExecStart = "@${ntp}/bin/ntpd ntpd -g ${builtins.toString ntpFlags}";
Type = "forking";
};
};
Expand Down
4 changes: 2 additions & 2 deletions nixos/modules/services/security/tor.nix
Original file line number Diff line number Diff line change
Expand Up @@ -816,13 +816,13 @@ in
always create a container/VM with a separate Tor daemon instance.
'' ++
flatten (mapAttrsToList (n: o:
optional (o.settings.HiddenServiceVersion == 2) [
optionals (o.settings.HiddenServiceVersion == 2) [
(optional (o.settings.HiddenServiceExportCircuitID != null) ''
HiddenServiceExportCircuitID is used in the HiddenService: ${n}
but this option is only for v3 hidden services.
'')
] ++
optional (o.settings.HiddenServiceVersion != 2) [
optionals (o.settings.HiddenServiceVersion != 2) [
(optional (o.settings.HiddenServiceAuthorizeClient != null) ''
HiddenServiceAuthorizeClient is used in the HiddenService: ${n}
but this option is only for v2 hidden services.
Expand Down
2 changes: 1 addition & 1 deletion nixos/modules/services/web-apps/netbox.nix
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ let
'';
})).override {
plugins = ps: ((cfg.plugins ps)
++ optional cfg.enableLdap [ ps.django-auth-ldap ]);
++ optionals cfg.enableLdap [ ps.django-auth-ldap ]);
};
netboxManageScript = with pkgs; (writeScriptBin "netbox-manage" ''
#!${stdenv.shell}
Expand Down
6 changes: 4 additions & 2 deletions nixos/modules/system/boot/luksroot.nix
Original file line number Diff line number Diff line change
Expand Up @@ -905,9 +905,11 @@ in
{ assertion = config.boot.initrd.systemd.enable -> !luks.gpgSupport;
message = "systemd stage 1 does not support GPG smartcards yet.";
}
# TODO
{ assertion = config.boot.initrd.systemd.enable -> !luks.fido2Support;
message = "systemd stage 1 does not support FIDO2 yet.";
message = ''
systemd stage 1 does not support configuring FIDO2 unlocking through `boot.initrd.luks.devices.<name>.fido2`.
Use systemd-cryptenroll(1) to configure FIDO2 support.
'';
}
# TODO
{ assertion = config.boot.initrd.systemd.enable -> !luks.yubikeySupport;
Expand Down
3 changes: 3 additions & 0 deletions nixos/modules/system/boot/systemd.nix
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,9 @@ let
] ++ optionals cfg.package.withHostnamed [
"dbus-org.freedesktop.hostname1.service"
"systemd-hostnamed.service"
] ++ optionals cfg.package.withPortabled [
"dbus-org.freedesktop.portable1.service"
"systemd-portabled.service"
] ++ [
"systemd-exit.service"
"systemd-update-done.service"
Expand Down
16 changes: 15 additions & 1 deletion nixos/modules/system/boot/systemd/initrd.nix
Original file line number Diff line number Diff line change
Expand Up @@ -332,7 +332,10 @@ in {
config = mkIf (config.boot.initrd.enable && cfg.enable) {
system.build = { inherit initialRamdisk; };

boot.initrd.availableKernelModules = [ "autofs4" ]; # systemd needs this for some features
boot.initrd.availableKernelModules = [
"autofs4" # systemd needs this for some features
"tpm-tis" "tpm-crb" # systemd-cryptenroll
];

boot.initrd.systemd = {
initrdBin = [pkgs.bash pkgs.coreutils cfg.package.kmod cfg.package] ++ config.system.fsPackages;
Expand Down Expand Up @@ -403,6 +406,17 @@ in {

# so NSS can look up usernames
"${pkgs.glibc}/lib/libnss_files.so.2"
] ++ optionals cfg.package.withCryptsetup [
# tpm2 support
"${cfg.package}/lib/cryptsetup/libcryptsetup-token-systemd-tpm2.so"
pkgs.tpm2-tss

# fido2 support
"${cfg.package}/lib/cryptsetup/libcryptsetup-token-systemd-fido2.so"
"${pkgs.libfido2}/lib/libfido2.so.1"

# the unwrapped systemd-cryptsetup executable
"${cfg.package}/lib/systemd/.systemd-cryptsetup-wrapped"
] ++ jobScripts;

targets.initrd.aliases = ["default.target"];
Expand Down
Loading