Compare commits

..

734 Commits
24.11 ... 24.05

Author SHA1 Message Date
Weijia Wang
63dacb46bf Release NixOS 24.05 2024-05-31 20:18:33 +02:00
Francesco Gazzetta
d4a08c14ed nixos/ladybird: init
(cherry picked from commit 899c542291)
2024-05-31 17:19:23 +00:00
Francesco Gazzetta
c41846f758 ladybird: search for fonts in NixOS-specific paths
Fixes #314604

(cherry picked from commit 2058c78327)
2024-05-31 17:19:23 +00:00
Alyssa Ross
9df33e9518 minijail: 18 -> 2024.05.22
Fixes the build of minijail-tools.

Canonical repo seems to have changed.

(cherry picked from commit a3e2042d5e)
2024-05-31 18:29:19 +02:00
K900
60f5d9e596 Merge pull request #316206 from NixOS/backport-316200-to-release-24.05
[Backport release-24.05] plasma-workspace security updates: 5.27.11.1, 6.0.5.1
2024-05-31 19:24:36 +03:00
Matt Moriarity
ad732e66b0 plasma-workspace: 5.27.11 -> 5.27.11.1
(cherry picked from commit fc16891480)
2024-05-31 16:24:15 +00:00
Matt Moriarity
bebde4a6bf kdePackages.plasma-workspace: 6.0.5 -> 6.0.5.1
(cherry picked from commit a4e1477b61)
2024-05-31 16:24:15 +00:00
Pol Dellaiera
98db3eb284 Merge pull request #316195 from NixOS/backport-316069-to-release-24.05
[Backport release-24.05] telegram-desktop: 5.0.2 -> 5.0.6
2024-05-31 18:07:14 +02:00
Aleksana
60e848d4ec Merge pull request #314838 from NixOS/backport-314666-to-release-24.05
[Backport release-24.05] gnome.gnome-remote-desktop: 46.1 -> 46.2
2024-06-01 00:04:04 +08:00
Aleksana
16a3c1d60d Merge pull request #315542 from NixOS/backport-314071-to-release-24.05
[Backport release-24.05] lix: build in release mode with link time optimizations
2024-06-01 00:01:59 +08:00
Aleksana
77e4976d6b Merge pull request #315034 from NixOS/backport-314627-to-release-24.05
[Backport release-24.05] haskellPackages.di-core: unbreak on darwin
2024-06-01 00:01:47 +08:00
Aleksana
5c2584e964 Merge pull request #315829 from NixOS/backport-314957-to-release-24.05
[Backport release-24.05]  python311Packages.openrazer: fix gobjects, double wrapping
2024-06-01 00:01:09 +08:00
R. Ryantm
15586e4d04 telegram-desktop: 5.0.2 -> 5.0.6
(cherry picked from commit 46fff1439b)
2024-05-31 15:52:11 +00:00
Aleksana
4c2574e974 Merge pull request #315932 from NixOS/backport-315877-to-release-24.05
[Backport release-24.05] osc: 1.6.1 -> 1.7.0
2024-05-31 23:34:26 +08:00
Pol Dellaiera
459c008fda Merge pull request #316170 from NixOS/backport-315925-to-release-24.05
[Backport release-24.05] linux-doc: Remove docutils patch
2024-05-31 16:23:56 +02:00
Sigmanificient
153069229b linux-doc: Remove docutils patch
(cherry picked from commit 7345910b1b)
2024-05-31 14:22:41 +00:00
Weijia Wang
c38ed0cf00 Merge pull request #315315 from NixOS/backport-302635-to-release-24.05
[Backport release-24.05] motif: fix build with clang
2024-05-31 16:21:46 +02:00
Weijia Wang
c8cd15fcb9 Merge pull request #316147 from NixOS/backport-314968-to-release-24.05
[Backport release-24.05] pythonPackages.shiboken2: mark as broken on Python ≥ 3.12
2024-05-31 16:17:03 +02:00
Weijia Wang
c99e8f5d38 Merge pull request #315567 from NixOS/backport-311904-to-release-24.05
[Backport release-24.05] feishu: fix build error
2024-05-31 15:46:37 +02:00
Weijia Wang
94e665850f Merge pull request #315983 from NixOS/backport-315702-to-release-24.05
[Backport release-24.05] svg2tikz: 3.0.1 -> 3.1.0
2024-05-31 15:45:51 +02:00
Connor Baker
6f68a0b9b4 Merge pull request #316149 from NixOS/backport-314018-to-release-24.05
[Backport release-24.05] python311Packages.svgelements: fix tests
2024-05-31 08:46:56 -04:00
K900
bb4f336d79 Merge pull request #315993 from NixOS/backport-315930-to-release-24.05
[Backport release-24.05] Kernel updates for 2024-05-30
2024-05-31 15:45:27 +03:00
Weijia Wang
c79ea03d70 Merge pull request #316121 from NixOS/backport-314597-to-release-24.05
[Backport release-24.05] pdfplumber: disable additional tests depending on pypdfium2
2024-05-31 14:38:30 +02:00
Weijia Wang
c697fedcbe Merge pull request #315841 from NixOS/backport-315287-to-release-24.05
[Backport release-24.05] povray: build with gcc12
2024-05-31 14:37:45 +02:00
Weijia Wang
326b7f4e84 Merge pull request #315881 from NixOS/backport-315713-to-release-24.05
[Backport release-24.05] wasm-tools: 1.208.1 -> 1.209.1
2024-05-31 14:36:58 +02:00
Weijia Wang
3d446e2a92 Merge pull request #316093 from NixOS/backport-315405-to-release-24.05
[Backport release-24.05] powerpipe: 0.3.0 -> 0.3.1
2024-05-31 14:34:55 +02:00
Gaetan Lepage
2c695d49e3 python311Packages.svgelements: fix tests
(cherry picked from commit afffe11b2e)
2024-05-31 12:23:05 +00:00
Raphael Borun Das Gupta
90356cb4b8 pythonPackages.shiboken2: mark as broken on Python ≥ 3.12
shiboken2 uses distutils, which was removed in Python 3.12.
This is the case in the currently packaged shiboken2 5.15.11,
as well as in the latest 5.x upstream release 5.15.12.

We can't use the 6.x releases, as those are for shiboken6,
not shiboken2.

(cherry picked from commit 13baded6ae)
2024-05-31 12:20:17 +00:00
Aleksana
fe7d83b7de Merge pull request #315830 from NixOS/backport-314418-to-release-24.05
[Backport release-24.05] nixos/mopidy: add wants network-online.target to fix warning
2024-05-31 19:34:14 +08:00
Aleksana
12936357e4 Merge pull request #315971 from NixOS/backport-311696-to-release-24.05
[Backport release-24.05] licenses: Add NCBI-PD
2024-05-31 19:33:25 +08:00
Weijia Wang
97bc6b1a13 Merge pull request #315747 from NixOS/backport-310130-to-release-24.05
[Backport release-24.05] linuxPackages.apfs: 0.3.8 -> 0.3.9
2024-05-31 13:25:46 +02:00
Thomas Gerbet
cb34de1dcb Merge pull request #315884 from NixOS/backport-315707-to-release-24.05
[Backport release-24.05] palemoon-bin: 33.1.0 -> 33.1.1
2024-05-31 12:40:52 +02:00
Robert Hensing
cf5b9f8268 Merge pull request #316122 from NixOS/backport-316056-to-release-24.05
[Backport release-24.05] doc: fix testers.testEqualContents fragment link
2024-05-31 12:34:40 +02:00
Ivan Trubach
a2f94bf7ab doc: fix testers.testEqualContents fragment link
(cherry picked from commit b25101d1fb)
2024-05-31 10:34:05 +00:00
Weijia Wang
ae63e4aa52 Merge pull request #314949 from NixOS/backport-314557-to-release-24.05
[Backport release-24.05] zipfile2: Mark as broken on Python 3.12
2024-05-31 12:31:25 +02:00
Andreas Zweili
910ea38af9 pdfplumber: disable additional tests depending on pypdfium2
(cherry picked from commit 324c1ac315)
2024-05-31 10:31:17 +00:00
R. Ryantm
0334d7f5ca powerpipe: 0.3.0 -> 0.3.1
(cherry picked from commit 667d27d937)
2024-05-31 08:42:10 +00:00
Martin Weinelt
805a384895 Merge pull request #316090 from NixOS/backport-316026-to-release-24.05
[Backport release-24.05] doc/release-notes: highlight desktop environment updates
2024-05-31 10:32:57 +02:00
Weijia Wang
76c2576f2b doc/release-notes: highlight desktop environment updates
(cherry picked from commit 8c58b05881)
2024-05-31 08:24:37 +00:00
superherointj
05b444ac1d Merge pull request #315901 from NixOS/backport-315686-to-release-24.05
[Backport release-24.05] vscode-extensions.{xdebug.php-debug,phind.phind}: init
2024-05-30 22:43:32 -03:00
Robert Scott
0f1a94c815 Merge pull request #315988 from NixOS/backport-315943-to-release-24.05
[Backport release-24.05] schleuder: fix tests
2024-05-31 00:17:46 +01:00
Robert Scott
7f4d0a0de7 Merge pull request #315987 from NixOS/backport-315717-to-release-24.05
[Backport release-24.05] gtk-sharp-2_0: fix build on darwin
2024-05-31 00:13:59 +01:00
Robert Scott
b4a0f7e0b6 Merge pull request #315984 from NixOS/backport-315748-to-release-24.05
[Backport release-24.05] pe-parse: fix build on darwin
2024-05-30 23:25:02 +01:00
Robert Scott
d8cb910385 Merge pull request #315980 from NixOS/backport-315721-to-release-24.05
[Backport release-24.05] texinfo413: fix build on darwin
2024-05-30 23:05:39 +01:00
K900
88f80887b7 linux_6_8: 6.8.11 -> 6.8.12
(cherry picked from commit 97c87160f3)
2024-05-30 21:12:51 +00:00
K900
8a4c6b9542 linux_6_9: 6.9.2 -> 6.9.3
(cherry picked from commit f53fb88ea1)
2024-05-30 21:12:51 +00:00
teutat3s
e85237934a schleuder-cli: 0.1.0 -> 0.2.0
https://0xacab.org/schleuder/schleuder-cli/-/blob/schleuder-cli-0.2.0/CHANGELOG.md?ref_type=tags#020--2024-03-08
(cherry picked from commit dc4ec31c60)
2024-05-30 20:48:28 +00:00
teutat3s
a9cb41aebf schleuder: add net-smtp dependency to fix tests
(cherry picked from commit 1689257223)
2024-05-30 20:48:28 +00:00
Weijia Wang
06a54184f0 gtk-sharp-2_0: fix build on darwin
(cherry picked from commit dab160ba2c)
2024-05-30 20:47:36 +00:00
Weijia Wang
3a49fc3c75 pe-parse: fix build on darwin
(cherry picked from commit 4a90d51bb8)
2024-05-30 20:20:21 +00:00
Cosima Neidahl
75000c2cf4 Merge pull request #315638 from NixOS/backport-314943-to-release-24.05
[Backport release-24.05] nixos-artwork.wallpapers.*: Update
2024-05-30 22:20:21 +02:00
Jonas Meurer
4fb6f6bbf6 svg2tikz: 3.0.1 -> 3.1.0
Fix the build issue by relaxing lxml dependency.

Diff: https://github.com/xyz2tex/svg2tikz/compare/v3.0.1...v3.1.0
Changelog: https://github.com/xyz2tex/svg2tikz/releases/tag/v3.1.0
(cherry picked from commit f6cf233cb9)
2024-05-30 20:19:42 +00:00
Weijia Wang
6688c7c6f3 texinfo413: fix build on darwin
(cherry picked from commit 704ef039af)
2024-05-30 20:15:05 +00:00
Gavin John
b40bd4299e sratoolkit: Assign correct license
(cherry picked from commit 438273dac7)
2024-05-30 19:42:37 +00:00
Gavin John
47e87374c1 licenses: Add NCBI-PD
(cherry picked from commit 361874c944)
2024-05-30 19:42:37 +00:00
Kerstin
d24e7fdcfa Merge pull request #315951 from NixOS/backport-315915-to-release-24.05
[Backport release-24.05] mastodon: 4.2.8 -> 4.2.9
2024-05-30 19:41:22 +02:00
Kerstin Humm
33d8e27657 mastodon: 4.2.8 -> 4.2.9
(cherry picked from commit b5fe321055)
2024-05-30 17:12:04 +00:00
Kerstin Humm
be15fecdbb mastodon: remove outdated override for openssl 3 support
(cherry picked from commit c42df26a93)
2024-05-30 17:12:04 +00:00
Nicolas Benes
0805ae8016 osc: 1.6.1 -> 1.7.0
https://github.com/openSUSE/osc/blob/1.7.0/NEWS
(cherry picked from commit b897c50b7c)
2024-05-30 15:50:26 +00:00
Jörg Thalheim
a724abcfda Merge pull request #315898 from NixOS/backport-315680-to-release-24.05
[Backport release-24.05] switch-to-configuration-ng: retain escaped content in unit files
2024-05-30 17:05:09 +02:00
John Ericson
bc1066f849 Merge pull request #315912 from NixOS/backport-312703-to-release-24.05
[Backport release-24.05] llvmPackages_18: 18.1.5 -> 18.1.6
2024-05-30 10:57:10 -04:00
AMS21
273b0020a7 llvmPackages_18: 18.1.5 -> 18.1.6
(cherry picked from commit 10a00da799)
2024-05-30 14:46:25 +00:00
Niklas Hambüchen
1980044104 Merge pull request #315775 from NixOS/backport-315499-to-release-24.05
[Backport release-24.05] turbovnc.tests: Fix negative test
2024-05-30 14:43:47 +00:00
John Ericson
c963c4da17 Merge pull request #315904 from NixOS/backport-315790-to-release-24.05
[Backport release-24.05] llvmPackages_18.{clang,libcxx}: Revert redundant openbsd patches
2024-05-30 10:06:32 -04:00
Reno Dakota
72779eb94f Revert "llvmPackages.clang: Fix special-case for OpenBSD to be less special"
This reverts commit 222a29eb53.

(cherry picked from commit 30d42ba569)
2024-05-30 14:05:09 +00:00
Reno Dakota
cda8946099 Revert "llvmPackages.libcxx: Fix compiling for OpenBSD"
This reverts commit 0c6d2eee3c.

(cherry picked from commit 8110970af9)
2024-05-30 14:05:09 +00:00
Jonas Heinrich
b14424ce76 vscode-extensions.xdebug.php-debug: init at 1.34.0
(cherry picked from commit 24e8d20aaf)
2024-05-30 13:51:57 +00:00
Jonas Heinrich
d57d1cf2e5 vscode-extensions.phind.phind: init 0.22.2
(cherry picked from commit b0394aa571)
2024-05-30 13:51:57 +00:00
Jared Baur
c0d6b76338 switch-to-configuration-ng: retain escaped content in unit files
By default, the INI parser in `rust-ini` tries to unescape the content
it receives, causing issues such as those uncovered in
https://github.com/NixOS/nixpkgs/issues/315602. We don't ever need the
content to be unescaped for our purposes, so we can configure the parser
to retain escape characters.

(cherry picked from commit a67a3648e1)
2024-05-30 13:46:46 +00:00
Cosima Neidahl
d13f21097e Merge pull request #315648 from NixOS/backport-315627-to-release-24.05
[Backport release-24.05] nixos/coolercontrol: Use user-preferred nvidia package
2024-05-30 15:02:14 +02:00
Nick Cao
d1888a87e8 Merge pull request #315739 from NixOS/backport-315592-to-release-24.05
[Backport release-24.05] libfpx: remove register storage specifier
2024-05-30 08:48:05 -04:00
R. Ryantm
3d4bfdbe69 palemoon-bin: 33.1.0 -> 33.1.1
(cherry picked from commit cd991708e9)
2024-05-30 12:44:33 +00:00
Rafael Fernández López
6eea3dc247 wasm-tools: 1.208.1 -> 1.209.1
(cherry picked from commit b3f065d48c)
2024-05-30 12:41:35 +00:00
Nick Cao
0378dbfa30 Merge pull request #315668 from NixOS/backport-315430-to-release-24.05
[Backport release-24.05] webex: 43.11.0.28947 -> 44.5.0.29672
2024-05-30 08:38:19 -04:00
Martin Weinelt
132c225096 Merge pull request #315866 from NixOS/backport-315855-to-release-24.05
[Backport release-24.05] nixos/tests/networkd: make client reliable in dhcpserver-static-leases test
2024-05-30 13:56:05 +02:00
Martin Weinelt
8e89e58c4e nixos/tests/networkd: make client reliable in dhcpserver-static-leases test
Migrate the client to a native networkd configuration and reduce
unrelated log spam.

(cherry picked from commit 884a0835ef)
2024-05-30 11:55:48 +00:00
Francesco Gazzetta
3d1db4d736 ladybird: 0-unstable-2024-03-16 -> 0-unstable-2024-05-26
(cherry picked from commit f9ab10bd9b)
2024-05-30 11:14:33 +00:00
Francesco Gazzetta
94a66a52f1 ladybird: ensure data files versions are correct
(cherry picked from commit 25bbd06b64)
2024-05-30 11:14:33 +00:00
rewine
0326dbe8d0 Merge pull request #315831 from NixOS/backport-315626-to-release-24.05
[Backport release-24.05] punes-qt6: Fetch patch to fix Qt 6.7.1 compat
2024-05-30 19:12:08 +08:00
Weijia Wang
68fafe9810 Merge pull request #315836 from NixOS/backport-315528-to-release-24.05
[Backport release-24.05] python312Packages.paddle2onnx: disable
2024-05-30 13:10:42 +02:00
Martin Weinelt
356f19cc3b Merge pull request #315751 from NixOS/backport-274425-to-release-24.05
[Backport release-24.05] nixos/frr: adapt to frr-9
2024-05-30 12:57:41 +02:00
Francesco Gazzetta
1956171531 povray: build with gcc12
Building with gcc13 makes it fail to parse some scenes:
https://github.com/POV-Ray/povray/issues/460
Fixes #311017

(cherry picked from commit dac428114e)
2024-05-30 09:08:51 +00:00
Weijia Wang
0e9210127a python312Packages.paddle2onnx: disable
(cherry picked from commit 488b284ce8)
2024-05-30 08:59:24 +00:00
Francesco Gazzetta
76b997c6a6 domination: 1.3.0 -> 1.3.1
(cherry picked from commit 71d8de12b8)
2024-05-30 08:22:37 +00:00
Francesco Gazzetta
d60b01aea3 domination: 1.2.9 -> 1.3.0
(cherry picked from commit 9180836151)
2024-05-30 08:22:37 +00:00
OPNA2608
847ff296ff punes-qt6: Fetch patch to fix Qt 6.7.1 compat
(cherry picked from commit 079c31833c)
2024-05-30 08:21:22 +00:00
Sandro Jäckel
17913ae653 nixos/mopidy: add wants network-online.target to fix warning
(cherry picked from commit b064e2db69)
2024-05-30 08:17:02 +00:00
Sandro
fb29a558c8 Merge pull request #315577 from NixOS/backport-315369-to-release-24.05
[Backport release-24.05] ssh-audit: install man page
2024-05-30 10:14:23 +02:00
Weijia Wang
3981dd2b2a Merge pull request #315731 from NixOS/backport-315583-to-release-24.05
[Backport release-24.05] boxfs: add missing includes to fix clang build
2024-05-30 10:08:24 +02:00
K900
7fd53be8cb Merge pull request #315828 from NixOS/backport-315715-to-release-24.05
[Backport release-24.05] qt5.qtwayland: restrict platforms
2024-05-30 11:07:50 +03:00
Sandro Jäckel
36449687c8 python311Packages.openrazer: fix gobjects, double wrapping
(cherry picked from commit 9dd5cef498)
2024-05-30 08:07:36 +00:00
Sandro Jäckel
94c402f686 python311Packages.openrazer: fix indentation
(cherry picked from commit 0d8fe4b476)
2024-05-30 08:07:36 +00:00
Weijia Wang
dd69531b5c qt5.qtwayland: restrict platforms
(cherry picked from commit fc37780866)
2024-05-30 08:06:45 +00:00
Atemu
19f0660e75 Merge pull request #315791 from NixOS/backport-315773-to-release-24.05
[Backport release-24.05] radeontop: remove outdated note from description
2024-05-30 08:14:48 +02:00
Atemu
0baa224c87 radeontop: remove outdated note from description
It Just Works™ without root these days.

(cherry picked from commit d9b67159b0)
2024-05-30 05:13:11 +00:00
Atemu
2de7ca012a Merge pull request #315733 from NixOS/backport-315569-to-release-24.05
[Backport release-24.05] coan: fix compile error in configure.ac
2024-05-30 05:44:15 +02:00
Niklas Hambüchen
8b419f7b3d turbovnc.tests: Replace comment link by newer NixOS manual link
(cherry picked from commit 613d50c1d5)
2024-05-30 02:46:50 +00:00
Niklas Hambüchen
9157b72c40 turbovnc.tests: Don't override already-empty password to empty
(cherry picked from commit cd519b6101)
2024-05-30 02:46:50 +00:00
Niklas Hambüchen
06f31991d1 turbovnc.tests: Fix passwordless test VM root login
(cherry picked from commit 1f77a3c14b)
2024-05-30 02:46:50 +00:00
Niklas Hambüchen
89b861f2d2 turbovnc.tests: Fix negative test failing due to string grep
(cherry picked from commit 1be779cf3c)
2024-05-30 02:46:50 +00:00
superherointj
a38ef549c0 Merge pull request #315755 from NixOS/backport-315541-to-release-24.05
[Backport release-24.05] k3s_1_28: 1.28.9+k3s1 -> 1.28.10+k3s1
2024-05-29 21:50:19 -03:00
R. Ryantm
82788b81d6 k3s_1_28: 1.28.9+k3s1 -> 1.28.10+k3s1
(cherry picked from commit 228ec58c44)
2024-05-30 00:49:36 +00:00
Frank Doepper
665e247019 nixos/frr: adapt to frr-9
- fix #274286
- remove `-f configfile` from ExecStart
- use /etc/frr/${service}d.conf
- enable mgmtd when staticd is enabled
- don't frr-reload.py mgmtd
- remove obsolete lib.mdDoc

(cherry picked from commit 4df955130e)
2024-05-30 00:34:05 +00:00
John Ericson
a7b0b30004 Merge pull request #315687 from NixOS/backport-311836-to-release-24.05
[Backport release-24.05] openbsd: init at 7.5
2024-05-29 20:22:18 -04:00
Luflosi
80fb2a0e39 linuxPackages.apfs: 0.3.8 -> 0.3.9
https://github.com/linux-apfs/linux-apfs-rw/releases/tag/v0.3.9
(cherry picked from commit 21bd69a51e)
2024-05-30 00:13:17 +00:00
Reno Dakota
ade424e602 libfpx: use patch to fix clang build
register storage specifier which is not supported by c++17 and later
5f340b0a49

(cherry picked from commit 395122ffc1)
2024-05-29 22:56:31 +00:00
Reno Dakota
6b1f4a8f58 coan: fix compile error in configure.ac
fix the big-endian compile error (implicit return type) when built with
clang

(cherry picked from commit 522daeb8fa)
2024-05-29 22:14:51 +00:00
Robert Scott
cdbd8394aa Merge pull request #315719 from NixOS/backport-315482-to-release-24.05
[Backport release-24.05] disnix: include stdlib.h to fix implicit function declaration
2024-05-29 23:09:30 +01:00
Reno Dakota
e603dbe99f boxfs: add missing includes to fix clang build
(cherry picked from commit fd29e43fcb)
2024-05-29 22:00:41 +00:00
paparodeo
6bad1acda0 disnix: include stdlib.h to fix implicit function declaration
aa969f1d15.patch
(cherry picked from commit a42de3dcec)
2024-05-29 21:00:06 +00:00
Jonas Meurer
f6f09ae123 linuxPackages.lttng-modules: 2.13.10 -> 2.13.13
(cherry picked from commit 46d556370e)
2024-05-29 22:27:34 +02:00
Martin Weinelt
51948c1715 Merge pull request #315706 from NixOS/backport-313829-to-release-24.05
[Backport release-24.05] evcc: 0.126.3 -> 0.126.4
2024-05-29 22:25:26 +02:00
Martin Weinelt
ee71dc410c evcc: 0.126.3 -> 0.126.4
https://github.com/evcc-io/evcc/releases/tag/0.126.4
(cherry picked from commit 2eaea7071a)
2024-05-29 19:35:31 +00:00
Jan Tojnar
a3518cda5b gnome-firmware: 45.0 → 46.0
Only minor fixes and translations:
https://gitlab.gnome.org/World/gnome-firmware/-/compare/45.0...46.0

(cherry picked from commit 52e35bdafc)
2024-05-29 21:13:59 +02:00
Martin Weinelt
83fdc87b89 Merge pull request #315692 from NixOS/backport-315605-to-release-24.05
[Backport release-24.05] Firefox: 126.0 -> 126.0.1
2024-05-29 20:53:19 +02:00
Martin Weinelt
81afee0607 firefox-bin-unwrapped: 126.0 -> 126.0.1
https://www.mozilla.org/en-US/firefox/126.0.1/releasenotes/
(cherry picked from commit 151dc56998)
2024-05-29 18:25:56 +00:00
Martin Weinelt
791eaa54f0 firefox-unwrapped: 126.0 -> 126.0.1
https://www.mozilla.org/en-US/firefox/126.0.1/releasenotes/
(cherry picked from commit c89b25cd61)
2024-05-29 18:25:56 +00:00
Ali Abrar
2a2f78315c openbsd: init at 7.5
(cherry picked from commit 888dee445d)
2024-05-29 17:43:02 +00:00
John Ericson
036333d851 llvmPackages.compiler-rt: Add flag to force libcompiler-rt.a creation
See the code comments for details

Also replace a bad hard-coded `freebsd` with a flexible `*` wildcard in
the `doFakeLibgcc` implementation.

(cherry picked from commit ad6fa01c06)
2024-05-29 17:43:02 +00:00
Ali Abrar
1a8bcb4c2e llvmPackages: libcxx: link stdlib
See: https://github.com/NixOS/nixpkgs/pull/246577/files#r1600650238

This code was breaking some thing for me, and I believe it was a
mistake. I hink we *do* wanna link libc, since libc++ depends on it, but
*don't* want to link an already-existing C++ standard library
implementation. `-nostdlib++` without `-nostdlib` therefore seems
correct to me.

Without this change, we do indeed fail to link OpenBSD.

(cherry picked from commit d0b08ab5de)
2024-05-29 17:43:02 +00:00
John Ericson
9154e11339 llvmPackages.libcxx: Fix compiling for OpenBSD
(cherry picked from commit 0c6d2eee3c)
2024-05-29 17:43:02 +00:00
John Ericson
41856fe356 llvmPackages.clang: Fix special-case for OpenBSD to be less special
(cherry picked from commit 222a29eb53)
2024-05-29 17:43:02 +00:00
John Ericson
2da38653ff netbsd.makeMinimal: Make it possible to override the rules
Co-authored-by: Rahul Butani <rrbutani@users.noreply.github.com>
(cherry picked from commit d9c9da5d65)
2024-05-29 17:43:01 +00:00
Nick Cao
b23d19d18a Merge pull request #315607 from NixOS/backport-315382-to-release-24.05
[Backport release-24.05] protonmail-desktop: 1.0.2 -> 1.0.3
2024-05-29 13:41:12 -04:00
Nick Cao
5207075d4e Merge pull request #315623 from NixOS/backport-315438-to-release-24.05
[Backport release-24.05] gmnitohtml: 0.1.2 -> 0.1.3
2024-05-29 13:39:07 -04:00
Christina Rust
d163d73f61 Merge pull request #315410 from NixOS/backport-315263-to-release-24.05
[Backport release-24.05] nixos/devpi-server: fix loading credentials as DynamicUser
2024-05-29 18:40:06 +02:00
Weijia Wang
562c943fdf Merge pull request #315546 from NixOS/backport-315514-to-release-24.05
[Backport release-24.05] utm: 4.5.2 -> 4.5.3
2024-05-29 18:35:18 +02:00
nicoo
2a0c2f21e7 Merge #315349: init koboldcpp at 1.66
Backport to `release-24.05`
2024-05-29 16:04:12 +00:00
Nick Cao
54b64e9718 Merge pull request #315558 from NixOS/backport-315513-to-release-24.05
[Backport release-24.05] sgfutils: fix build on darwin
2024-05-29 11:50:08 -04:00
R. Ryantm
01de46f2b8 webex: 43.11.0.28947 -> 44.5.0.29672
(cherry picked from commit 1a78aa641b)
2024-05-29 15:40:44 +00:00
Nick Cao
b27a2e0874 Merge pull request #315418 from NixOS/backport-315122-to-release-24.05
[Backport release-24.05] linuxKernel.kernels.linux_lqx: 6.8.10-lqx1 -> 6.8.11-lqx1
2024-05-29 11:30:09 -04:00
Nick Cao
f86bee358b Merge pull request #315625 from NixOS/backport-315339-to-release-24.05
[Backport release-24.05] ginkgo: 2.18.0 -> 2.19.0
2024-05-29 11:29:38 -04:00
Nick Cao
63828b66e8 Merge pull request #315637 from NixOS/backport-314859-to-release-24.05
[Backport release-24.05] stats: 2.10.14 -> 2.10.15
2024-05-29 11:29:10 -04:00
Nick Cao
b97ebb1ef5 Merge pull request #315636 from NixOS/backport-315469-to-release-24.05
[Backport release-24.05] matrix-synapse-unwrapped: 1.107.0 -> 1.108.0
2024-05-29 11:28:43 -04:00
Sandro
275bc39f77 Merge pull request #315640 from NixOS/backport-315189-to-release-24.05
[Backport release-24.05] gitea,nixos/gitea: add SuperSandro2000 as maintainer, remove inactive…
2024-05-29 17:08:37 +02:00
OPNA2608
00a27d79e1 nixos/coolercontrol: Use user-preferred nvidia package
(cherry picked from commit 07b369b5aa)
2024-05-29 14:44:31 +00:00
Atemu
148355cf9c Merge pull request #315613 from NixOS/backport-315478-to-release-24.05
[Backport release-24.05] linux_xanmod, linux_xanmod_latest: 2024-05-25
2024-05-29 15:57:42 +02:00
Sandro Jäckel
54936852e5 gitea,nixos/gitea: add SuperSandro2000 as maintainer, remove inactive maintainers, unify maintainers
(cherry picked from commit 73c11de701)
2024-05-29 13:49:27 +00:00
OPNA2608
37dd4d8230 nixos-artwork.wallpapers.catppuccin-{frappe,latte,macchiato,mocha}: init at 2024-02-15
(cherry picked from commit 91da428e78)
2024-05-29 13:43:29 +00:00
OPNA2608
272b46a1f7 nixos-artwork.wallpapers.binary-{black,blue,red,white}: init at 2024-02-15
(cherry picked from commit 8fbd83c8a1)
2024-05-29 13:43:29 +00:00
OPNA2608
0be46595fb nixos-artwork.wallpapers.{gear,moonscape,recursive,waterfall,watersplash}: init at 2022-04-19
(cherry picked from commit a6ae8972a5)
2024-05-29 13:43:29 +00:00
OPNA2608
3bfcb467d3 nixos-artwork.wallpapers.nineish-solarized-dark,nixos-artwork.wallpapers.nineish-solarized-light: init at 2021-07-20
(cherry picked from commit 5968598e5f)
2024-05-29 13:43:29 +00:00
OPNA2608
77423ffbc3 nixos-artwork.wallpapers.gradient-grey: init at 2018-10-20
(cherry picked from commit 2daa66fdee)
2024-05-29 13:43:29 +00:00
OPNA2608
572e540409 nixos-artwork.wallpapers.*: Switch to SRI hash format
(cherry picked from commit 00e4a16478)
2024-05-29 13:43:28 +00:00
OPNA2608
928b53d3e4 nixos-artwork.wallpapers.*: Make license wallpaper-specific
Because not all of them are under the same license, and some lack licensing information in general.

(cherry picked from commit b1d4e99af4)
2024-05-29 13:43:28 +00:00
Nick Cao
ba4cdca40c Merge pull request #314522 from NixOS/backport-313498-to-release-24.05
[Backport release-24.05] hyprland: 0.40.0-unstable-2024-05-12 -> 0.40.0-unstable-2024-05-05, hyprwayland-scanner: 0.3.8 -> 0.3.4
2024-05-29 09:36:02 -04:00
DontEatOreo
e62a262fea stats: 2.10.14 -> 2.10.15
Diff: https://github.com/exelban/stats/compare/v2.10.14...v2.10.15
Changelog: https://github.com/exelban/stats/releases/tag/v2.10.15
(cherry picked from commit cf4d0c4e3f)
2024-05-29 13:35:57 +00:00
Guanran Wang
1a307bb870 matrix-synapse-unwrapped: 1.107.0 -> 1.108.0
Diff: https://github.com/element-hq/synapse/compare/v1.107.0...v1.108.0

Changelog: https://github.com/element-hq/synapse/releases/tag/v1.108.0
(cherry picked from commit b2b2a2d085)
2024-05-29 13:33:52 +00:00
R. Ryantm
c8551643e7 ginkgo: 2.18.0 -> 2.19.0
(cherry picked from commit aa07045ba1)
2024-05-29 13:09:17 +00:00
Ian M. Jones
fccbc0920d gmnitohtml: 0.1.2 -> 0.1.3
(cherry picked from commit b2fd245371)
2024-05-29 13:06:30 +00:00
Cosima Neidahl
45cef8da7c Merge pull request #315535 from NixOS/backport-315117-to-release-24.05
[Backport release-24.05] lomiri.*: Make buildable while waiting for GLib fix
2024-05-29 14:36:47 +02:00
zzzsyyy
544e6304fc linux_xanmod_latest: 6.8.10 -> 6.8.11
(cherry picked from commit 20776fcfee)
2024-05-29 12:34:17 +00:00
zzzsyyy
7f158bb962 linux_xanmod: 6.6.31 -> 6.6.32
(cherry picked from commit 584f168d53)
2024-05-29 12:34:17 +00:00
R. Ryantm
bbd1576a5f protonmail-desktop: 1.0.2 -> 1.0.3
(cherry picked from commit 3eff38ff21)
2024-05-29 12:17:58 +00:00
Francesco Gazzetta
9600c69366 gnome-obfuscate: 0.0.9 -> 0.0.10
Diff: https://gitlab.gnome.org/World/Obfuscate/-/compare/0.0.9...0.0.10
(cherry picked from commit 1a38444522)
2024-05-29 10:30:51 +00:00
Lucas Hoffmann
59c764c434 ssh-audit: install man page
(cherry picked from commit 4c5510e0cd)
2024-05-29 09:46:20 +00:00
Giel van Schijndel
8bdd5026f4 nixos/netboot: only install syslinux on platforms where it's available
Instead of maintaining an inevitably incomplete list of unsupported
architectures.

I discovered this while building for armv7-linux (32-bit ARM).

(cherry picked from commit af8a1f59eb)
2024-05-29 11:18:16 +02:00
Bill Huang
8d2e99efb5 feishu: add updateScript
(cherry picked from commit 2096243136)
2024-05-29 09:13:28 +00:00
Bill Huang
08ae39eea4 feishu: fix build error
(cherry picked from commit 5564130ecf)
2024-05-29 09:13:28 +00:00
Weijia Wang
83adb73f3b Merge pull request #315540 from NixOS/backport-315522-to-release-24.05
[Backport release-24.05] p3x-onenote: fix hash
2024-05-29 10:59:12 +02:00
Weijia Wang
c617da8663 sgfutils: fix build on darwin
(cherry picked from commit 757cfcf7d3)
2024-05-29 08:42:42 +00:00
Weijia Wang
566413f372 utm: 4.5.2 -> 4.5.3
(cherry picked from commit 9bd873881e)
2024-05-29 07:56:29 +00:00
Raito Bezarius
f0e4df797b lix: build in release mode with link time optimizations
This makes the binary size further reduced and may improve (?)
performance.

Signed-off-by: Raito Bezarius <masterancpp@gmail.com>
(cherry picked from commit 84419e5c37)
2024-05-29 07:24:04 +00:00
Weijia Wang
e3a4eed470 p3x-onenote: fix hash
(cherry picked from commit c30b51d180)
2024-05-29 07:15:16 +00:00
Weijia Wang
fafeae3d24 Merge pull request #315526 from NixOS/backport-315253-to-release-24.05
[Backport release-24.05] deepin.dtk6core: fix build on 6.7.1
2024-05-29 09:14:28 +02:00
Weijia Wang
9999aa37b0 Merge pull request #315531 from NixOS/backport-315021-to-release-24.05
[Backport release-24.05] deepin.dde-daemon: do not create /usr/share/uadp
2024-05-29 09:14:10 +02:00
Vincent Laporte
4d899ff014 hol_light: 2023-11-03 → 2024-05-10
(cherry picked from commit a832b67356)
2024-05-29 08:57:21 +02:00
OPNA2608
bbae47b2b6 lomiri.lomiri-indicator-network: Disable tests
Needs a GLib change to be fixed, which needs a staging cycle, which I was told won't happen in time anymore.
Seems like only the tests fail though.

(cherry picked from commit 137015743e)
2024-05-29 06:44:06 +00:00
OPNA2608
10837a8efe lomiri.telephony-service: Mark broken & exclude everywhere
Needs a GLib change to be fixed, which needs a staging cycle, which I was told won't happen in time anymore.
Luckily it's not a crucial component for the desktop mode.

(cherry picked from commit 3ef60ac499)
2024-05-29 06:44:06 +00:00
github-actions[bot]
6d45231912 doc/release-notes: tweaks (#315520)
* Clean up the curious dwarf-fortress note

(cherry picked from commit e36f83eac4)

* Various tweaks to release notes

(cherry picked from commit 9708aca853)

* Consistently use capitalized Nix in plain text

(cherry picked from commit 005ef76e9e)

* Further tweaks to release notes

(cherry picked from commit 9c6861249c)

---------

Co-authored-by: Jacek Generowicz <jacg@my-post-office.net>
2024-05-29 08:37:12 +02:00
Weijia Wang
78d7d55a66 Merge pull request #314894 from NixOS/backport-314273-to-release-24.05
[Backport release-24.05] remnote: 1.16.4 -> 1.16.18
2024-05-29 08:35:16 +02:00
Weijia Wang
0485c42252 Merge pull request #315436 from NixOS/backport-313492-to-release-24.05
[Backport release-24.05] _1password-gui: 8.10.30 -> 8.10.33
2024-05-29 08:34:33 +02:00
Weijia Wang
3fb5c5a23a Merge pull request #314788 from NixOS/backport-314409-to-release-24.05
[Backport release-24.05] wasmtime: fix build on aarch64
2024-05-29 08:33:03 +02:00
rewine
1e64ec0b6f deepin.dde-daemon: do not create /usr/share/uadp
fix: https://github.com/NixOS/nixpkgs/issues/314108
(cherry picked from commit 8fbe3b5589)
2024-05-29 06:19:47 +00:00
rewine
3de7ae0aa8 deepin.dtk6core: fix build on 6.7.1
(cherry picked from commit 73660e9351)
2024-05-29 05:57:43 +00:00
Martin Weinelt
0ff3d75bf8 Merge pull request #315468 from NixOS/backport-313817-to-release-24.05
[Backport release-24.05] python312Packages.ha-philipsjs: 3.1.1 -> 3.2.1
2024-05-29 02:04:27 +02:00
Martin Weinelt
cc76735bde Merge pull request #315466 from NixOS/backport-314222-to-release-24.05
[Backport release-24.05] python312Packages.pyswitchbot: 0.45.0 -> 0.46.1
2024-05-29 02:04:04 +02:00
Martin Weinelt
f333c0ce1f Merge pull request #315467 from NixOS/backport-313828-to-release-24.05
[Backport release-24.05] python312Packages.wled: 0.17.1 -> 0.18.0
2024-05-29 02:03:25 +02:00
Fabian Affolter
0aa0ff6949 python312Packages.ha-philipsjs: refactor
(cherry picked from commit 1896b9a5b8)
2024-05-28 23:57:07 +00:00
Fabian Affolter
2ca40f4f4a python312Packages.ha-philipsjs: 3.1.1 -> 3.2.1
Diff: https://github.com/danielperna84/ha-philipsjs/compare/refs/tags/3.1.1...3.2.1

Changelog: https://github.com/danielperna84/ha-philipsjs/releases/tag/3.2.1
(cherry picked from commit f0246f7796)
2024-05-28 23:57:07 +00:00
Martin Weinelt
76276870f2 Merge pull request #315459 from NixOS/backport-315458-to-release-24.05
[Backport release-24.05] python312Packages.amcrest: replace distutils usage
2024-05-29 01:57:04 +02:00
Fabian Affolter
8ff499b1d9 python312Packages.wled: refactor
- add optional-dependencies

(cherry picked from commit 4e30caab80)
2024-05-28 23:56:35 +00:00
Fabian Affolter
3716399b39 python312Packages.wled: 0.17.1 -> 0.18.0
Diff: https://github.com/frenck/python-wled/compare/refs/tags/v0.17.1...v0.18.0

Changelog: https://github.com/frenck/python-wled/releases/tag/v0.18.0
(cherry picked from commit ae18e3e998)
2024-05-28 23:56:35 +00:00
Fabian Affolter
62a9913e56 python312Packages.pyswitchbot: 0.45.0 -> 0.46.1
Diff: https://github.com/Danielhiversen/pySwitchbot/compare/refs/tags/0.45.0...0.46.1

Changelog: https://github.com/Danielhiversen/pySwitchbot/releases/tag/0.46.1
(cherry picked from commit 0eb6ab0e62)
2024-05-28 23:56:11 +00:00
Martin Weinelt
f87e54303c python312Packages.amcrest: replace distutils usage
(cherry picked from commit 5f294ad027)
2024-05-28 23:16:55 +00:00
Robert Scott
8dead30e3f Merge pull request #315447 from NixOS/backport-315316-to-release-24.05
[Backport release-24.05] netsurf.libparserutils: use libiconv for darwin
2024-05-28 23:59:55 +01:00
Robert Scott
addb1cf91a Merge pull request #315442 from NixOS/backport-315313-to-release-24.05
[Backport release-24.05] xqilla,dbxml: fix clang and darwin builds
2024-05-28 22:47:47 +01:00
Robert Scott
4d997dbcf3 Merge pull request #315433 from NixOS/backport-315423-to-release-24.05
[Backport release-24.05] apptainer: 1.3.1 -> 1.3.2
2024-05-28 22:45:03 +01:00
Robert Scott
9b2aab3301 Merge pull request #315439 from NixOS/backport-315195-to-release-24.05
[Backport release-24.05] fricas: 1.3.9 -> 1.3.10
2024-05-28 22:31:40 +01:00
Robert Scott
8ba1269a87 Merge pull request #315437 from NixOS/backport-315283-to-release-24.05
[Backport release-24.05] photofield: add patch for Go 1.22 support
2024-05-28 22:26:40 +01:00
paparodeo
7bf05cd984 netsurf.libparserutils: use libiconv for darwin
(cherry picked from commit 7546fd6123)
2024-05-28 21:21:37 +00:00
paparodeo
1d71d99673 dbxml: fix clang build
use std=c++14 due to use of register storage specifier

(cherry picked from commit 7343dde6d3)
2024-05-28 20:57:04 +00:00
paparodeo
1448866ccc xqilla: unbreak darwin; add required frameworks
(cherry picked from commit d32beebac2)
2024-05-28 20:57:04 +00:00
paparodeo
522856c028 xqilla: fix clang build
use std=c++14 due to use of register storage specifier

(cherry picked from commit c398cede57)
2024-05-28 20:57:04 +00:00
Someone
8872b57bcd Merge pull request #315347 from NixOS/backport-314840-to-release-24.05
[Backport release-24.05] hardware/nvidia-container-toolkit: mount `nvidia-driver/share`
2024-05-28 20:32:58 +00:00
Thomas Gerbet
a67e660584 gnome.gnome-remote-desktop: 46.1 -> 46.2
Fixes CVE-2024-5148.
https://security.opensuse.org/2024/05/22/gnome-remote-desktop-system-dbus.html

Changes:
https://gitlab.gnome.org/GNOME/gnome-remote-desktop/-/blob/46.2/NEWS?ref_type=tags
(cherry picked from commit 092ca8d1cf)
2024-05-28 22:20:21 +02:00
Jonas Meurer
57d839e7b8 fricas: 1.3.9 -> 1.3.10
Previous builds refused to build due to memory exhaustion. This was
already fixed by upstream in 759272d834538c54d69d3dbb9f31a2b1e51cf9a8.

(cherry picked from commit 4a2bbf27a8)
2024-05-28 20:19:22 +00:00
TomaSajt
770d2011f1 photofield: add patch for Go 1.22 support
(cherry picked from commit c4252653c1)
2024-05-28 20:04:13 +00:00
Sebastian Sellmeier
e578f66241 _1password-gui: 8.10.30 -> 8.10.33
_1password-gui-beta: 8.10.30-20.BETA -> 8.10.34-10.BETA

(cherry picked from commit 4fba1588a6)
2024-05-28 20:00:07 +00:00
Gaetan Lepage
c4e01c7a36 apptainer: 1.3.1 -> 1.3.2
Changelog: https://github.com/apptainer/apptainer/releases/tag/v1.3.2
(cherry picked from commit 315b8a0466)
2024-05-28 19:45:16 +00:00
Nick Cao
1c9af90d8b Merge pull request #315272 from NixOS/backport-314775-to-release-24.05
[Backport release-24.05] jellyfin, jellyfin-web: 10.9.1 -> 10.9.3, 10.9.2 -> 10.9.3
2024-05-28 15:20:51 -04:00
Nick Cao
6e318d1cb0 Merge pull request #315285 from NixOS/backport-315046-to-release-24.05
[Backport release-24.05] nixosTests.gnome-extensions: fix test
2024-05-28 15:20:35 -04:00
Nick Cao
fe83789156 Merge pull request #315301 from NixOS/backport-311176-to-release-24.05
[Backport release-24.05] tailscale: fix tailscale ssh
2024-05-28 15:18:17 -04:00
Nick Cao
55d3011ef4 Merge pull request #315191 from NixOS/backport-314988-to-release-24.05
[Backport release-24.05] samrewritten: change platforms to only x86_64-linux
2024-05-28 15:10:12 -04:00
Nick Cao
62149b4cb1 Merge pull request #315116 from NixOS/backport-315070-to-release-24.05
[Backport release-24.05] unison-fsmonitor: 0.3.3 -> 0.3.4
2024-05-28 15:07:43 -04:00
Jerry
4e3a040807 linuxKernel.kernels.linux_lqx: 6.8.10-lqx1 -> 6.8.11-lqx1
(cherry picked from commit b0f847dac2)
2024-05-28 18:03:01 +00:00
Sarah Brofeldt
cf546b0bf0 nixos/devpi-server: fix loading credentials as DynamicUser
(cherry picked from commit 4d4571b20a)
2024-05-28 17:23:05 +00:00
Connor Baker
39ffb04fef Merge pull request #315295 from NixOS/backport-314710-to-release-24.05
[Backport release-24.05] python312Packages.ax: disable tests
2024-05-28 13:07:46 -04:00
Robert Hensing
682b72ac26 Merge pull request #315017 from NixOS/backport-298665-to-release-24.05
[Backport release-24.05] testers.lycheeLinkCheck: init
2024-05-28 18:11:35 +02:00
Matthias Beyer
de2a297856 Merge pull request #315318 from NixOS/backport-314195-to-release-24.05
[Backport release-24.05] semgrep: 1.73.0 -> 1.74.0
2024-05-28 17:53:18 +02:00
Artturin
9f9e5cd6c7 Merge pull request #315328 from NixOS/backport-314634-to-release-24.05
[Backport release-24.05] Update discord packages
2024-05-28 16:04:56 +03:00
Maxwell Henderson
f63ff69547 koboldcpp: init at 1.66
This responds to issue #295900 by adding the koboldcpp package

Co-authored-by: DontEatOreo <57304299+DontEatOreo@users.noreply.github.com>
(cherry picked from commit 55291de146)
2024-05-28 12:58:15 +00:00
Maxwell Henderson
f3271228e1 maintainers: add maxstrid
(cherry picked from commit 79a678c2f5)
2024-05-28 12:58:14 +00:00
Rafael Fernández López
5a4bc7ddeb hardware/nvidia-container-toolkit: mount nvidia-driver/share
(cherry picked from commit 79c79671a7)
2024-05-28 12:51:03 +00:00
Artturin
45cbc299bb Update discord packages
discord-ptb: 0.0.84 -> 0.0.85

discord-canary: 0.0.382 -> 0.0.402

discord-development: 0.0.18 -> 0.0.19

pkgsCross.aarch64-darwin.discord: 0.0.303 -> 0.0.305

pkgsCross.aarch64-darwin.discord-ptb: 0.0.113 -> 0.0.114

pkgsCross.aarch64-darwin.discord-canary: 0.0.492 -> 0.0.510

pkgsCross.aarch64-darwin.discord-development: 0.0.40 -> 0.0.41

(cherry picked from commit 8d3e378f97)
2024-05-28 11:34:37 +00:00
Maciej Krüger
49ad869946 Merge pull request #315299 from NixOS/backport-315027-to-release-24.05
[Backport release-24.05] dbeaver-bin: add `wrapGAppsHook`
2024-05-28 13:33:16 +02:00
Aaron Andersen
5150b07a3d Merge pull request #315238 from NixOS/backport-315215-to-release-24.05
[Backport release-24.05] kodi.packages.invidious: add missing infotagger dependency
2024-05-28 11:07:20 +00:00
R. Ryantm
a71637856e semgrep: 1.73.0 -> 1.74.0
(cherry picked from commit 5e7a0de3b6)
2024-05-28 10:58:52 +00:00
Alyssa Ross
78ca2bef8a motif: prePatch -> postPatch
To avoid potentially breaking patches that modify Makefile.am or
Makefile.in.

(cherry picked from commit 3aeecd86ea)
2024-05-28 10:49:42 +00:00
Alyssa Ross
5c11d382f8 motif: fix build with clang
Fixes: https://github.com/NixOS/nixpkgs/issues/302449
(cherry picked from commit 5861ff78ab)
2024-05-28 10:49:42 +00:00
Alyssa Ross
14e88eacf7 motif: fix disabling demos
The previous sed expression didn't work, even in the commit that added
it.

Fixes: 68c003b256 ("motif: fixup build after automake update #28232")
(cherry picked from commit 9cfffcd54a)
2024-05-28 10:49:42 +00:00
Mauricio Collares
357c26c303 Merge pull request #315300 from NixOS/backport-315114-to-release-24.05
[Backport release-24.05] sageWithDoc: add sphinx 7.3 update patch
2024-05-28 12:39:54 +02:00
Jan Tojnar
32344320da gnome.geary: 44.1 → 46.0
https://gitlab.gnome.org/GNOME/geary/-/compare/44.1...46.0
(cherry picked from commit 07ae3d806b)
2024-05-28 11:56:26 +02:00
Jan Tojnar
9365420af6 libgtop: 2.41.2 → 2.41.3
https://gitlab.gnome.org/GNOME/libgtop/-/compare/2.41.2...2.41.3
(cherry picked from commit f4df7f0e7e)
2024-05-28 11:56:26 +02:00
Jan Tojnar
14f4653027 vte: 0.76.1 → 0.76.2
https://gitlab.gnome.org/GNOME/vte/-/compare/0.76.1...0.76.2
(cherry picked from commit c989059161)
2024-05-28 11:56:26 +02:00
Jan Tojnar
19c420aae8 gnome.gnome-shell: 46.1 → 46.2
https://gitlab.gnome.org/GNOME/gnome-shell/-/compare/46.1...46.2
(cherry picked from commit 1cf80c71d4)
2024-05-28 11:56:26 +02:00
Jan Tojnar
75420cc6aa gnome.nautilus: 46.1 → 46.2
https://gitlab.gnome.org/GNOME/nautilus/-/compare/46.1...46.2
(cherry picked from commit ca3b765cfb)
2024-05-28 11:56:26 +02:00
Jan Tojnar
460c0b9522 xdg-desktop-portal-gnome: 46.1 → 46.2
https://gitlab.gnome.org/GNOME/xdg-desktop-portal-gnome/-/compare/46.1...46.2
(cherry picked from commit 891e0fb10b)
2024-05-28 11:56:26 +02:00
Jan Tojnar
e8c1868904 gnome.mutter: remove unneeded dependencies
json-glib was removed in 03235773be
(part of bump in fde899eefd).

libcap-ng is not used at all. It was added in 9742df1595
required by an older version of the patch from https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/460
which was dropped in 8c5884ef4e.

Also update comment since mutter-clutter no longer depends on graphene, -cogl and -mtk libraries do.

(cherry picked from commit e6719289cd)
2024-05-28 11:56:26 +02:00
Jan Tojnar
710deda4d0 gnome.mutter: 46.1 → 46.2
https://gitlab.gnome.org/GNOME/mutter/-/compare/46.1...46.2
(cherry picked from commit 49097abda9)
2024-05-28 11:56:26 +02:00
Jan Tojnar
a70853f968 gnome.gnome-terminal: 3.52.1 → 3.52.2
https://gitlab.gnome.org/GNOME/gnome-terminal/-/compare/3.52.1...3.52.2
(cherry picked from commit 41e94d87d8)
2024-05-28 11:56:26 +02:00
Jan Tojnar
1e90922710 gnome.gnome-shell-extensions: 46.1 → 46.2
https://gitlab.gnome.org/GNOME/gnome-shell-extensions/-/compare/46.1...46.2
(cherry picked from commit 8c463bfeb0)
2024-05-28 11:56:26 +02:00
Jan Tojnar
57f58f1437 gnome.gucharmap: 15.1.2 → 15.1.5
https://gitlab.gnome.org/GNOME/gucharmap/-/compare/15.1.2...15.1.5
(cherry picked from commit 184ffd7bee)
2024-05-28 11:56:26 +02:00
Jan Tojnar
d323d9cdb8 gnome.aisleriot: 3.22.32 → 3.22.33
https://gitlab.gnome.org/GNOME/aisleriot/-/compare/3.22.32...3.22.33
(cherry picked from commit 2b0062f5fa)
2024-05-28 11:56:26 +02:00
Jan Tojnar
35aeffc076 libshumate: 1.2.1 → 1.2.2
https://gitlab.gnome.org/GNOME/libshumate/-/compare/1.2.1...1.2.2
(cherry picked from commit a90ad835fd)
2024-05-28 11:56:26 +02:00
Jan Tojnar
dcc604f5b3 libmsgraph: 0.2.1 → 0.2.2
https://gitlab.gnome.org/GNOME/msgraph/-/compare/0.2.1...0.2.2
(cherry picked from commit 8a08782e4d)
2024-05-28 11:56:26 +02:00
Jan Tojnar
08cac94c9c libadwaita: 1.5.0 → 1.5.1
https://gitlab.gnome.org/GNOME/libadwaita/-/compare/1.5.0...1.5.1
(cherry picked from commit 4653e5d070)
2024-05-28 11:56:26 +02:00
Jan Tojnar
4cbfdb3f4c gnome-online-accounts: 3.50.1 → 3.50.2
https://gitlab.gnome.org/GNOME/gnome-online-accounts/-/compare/3.50.1...3.50.2
(cherry picked from commit 62ee5cadbe)
2024-05-28 11:56:26 +02:00
Jan Tojnar
b4d510e4ad gnome-builder: 46.1 → 46.2
https://gitlab.gnome.org/GNOME/gnome-builder/-/compare/46.1...46.2
(cherry picked from commit fa4611e465)
2024-05-28 11:56:26 +02:00
Jan Tojnar
272535f598 gnome.rygel: 0.42.5 → 0.42.6
https://gitlab.gnome.org/GNOME/rygel/-/compare/rygel-0.42.5...rygel-0.42.6
(cherry picked from commit 46f9348479)
2024-05-28 11:56:26 +02:00
Jan Tojnar
00e12ebb5a gvfs: 1.54.0 → 1.54.1
https://gitlab.gnome.org/GNOME/gvfs/-/compare/1.54.0...1.54.1
(cherry picked from commit 1886558b27)
2024-05-28 11:56:26 +02:00
Jan Tojnar
7e3b2c6af2 gnome.gnome-software: 46.1 → 46.2
https://gitlab.gnome.org/GNOME/gnome-software/-/compare/46.1...46.2
(cherry picked from commit 15024190f5)
2024-05-28 11:56:26 +02:00
Jan Tojnar
bf5da9a4e7 gnome.gnome-maps: 46.10 → 46.11
https://gitlab.gnome.org/GNOME/gnome-maps/-/compare/v46.10...v46.11
(cherry picked from commit c130d93c68)
2024-05-28 11:56:26 +02:00
Jan Tojnar
92e004ec2d gnome.gnome-initial-setup: 46.0 → 46.2
https://gitlab.gnome.org/GNOME/gnome-initial-setup/-/compare/46.0...46.2
(cherry picked from commit dd7db60d7b)
2024-05-28 11:56:26 +02:00
Jan Tojnar
3ce3aded9f gnome.file-roller: 44.2 → 44.3
https://gitlab.gnome.org/GNOME/file-roller/-/compare/44.2...44.3
(cherry picked from commit aa2d96b2b8)
2024-05-28 11:56:26 +02:00
Jan Tojnar
880c51aadc evince: 46.1 → 46.3
https://gitlab.gnome.org/GNOME/evince/-/compare/46.1...46.3
(cherry picked from commit 1e5cbf8038)
2024-05-28 11:56:26 +02:00
Jan Tojnar
bd077e83f3 phoc: Add missing dependency
This was previously propagated by mutter.
(e6719289cd)

(cherry picked from commit b53ea07f5c)
2024-05-28 11:35:10 +02:00
Jan Tojnar
3380d2a9bf gnome-control-center: Add missing dependency
This was previously propagated by mutter.
(e6719289cd)

(cherry picked from commit 63197e9e3d)
2024-05-28 11:34:49 +02:00
github-actions[bot]
e0d79f2bfb python3Packages.zconfig: 4.0 -> 4.1 (#315284)
The pypi artifact has been renamed from ZConfig to zconfig.

Unbreaks the build.

(cherry picked from commit cdda685ca9)

Co-authored-by: Mathis Antony <sveitser@gmail.com>
2024-05-28 09:17:09 +00:00
github-actions[bot]
e0fa66fd95 grype: unbreak build (#315281)
(cherry picked from commit 9d97550a55)

Co-authored-by: sveitser <sveitser@gmail.com>
2024-05-28 09:13:32 +00:00
Sandro
576f015f2f Merge pull request #314919 from NixOS/backport-314408-to-release-24.05 2024-05-28 11:13:17 +02:00
Sandro
125daa7c1d Merge pull request #314764 from NixOS/backport-314433-to-release-24.05 2024-05-28 11:11:11 +02:00
Sandro Jäckel
7f2547a15b tailscale: fix tailscale ssh
Closes #310950

(cherry picked from commit d2eeeb450a)
2024-05-28 09:04:24 +00:00
github-actions[bot]
d74975e8e2 vinegar: 1.7.3 -> 1.7.4; Add childwindow patch; pinned Wine to 9.2-staging (#315297)
This PR adds the following:

- Updates the hash and version for vinegar
- Adds the childwindow patch (from the vinegar flatpak)
- Ping the WINE version to 9.2-staging (this is the version of WINE vinegar ships with in their flatpak)

and with this, the nix package will be the same functionally as the official Flatpak.

(cherry picked from commit 03eddf9906)

Co-authored-by: Liquidovski <109692107+liquidovski@users.noreply.github.com>
2024-05-28 09:01:17 +00:00
Mauricio Collares
79feebc8e0 sageWithDoc: add sphinx 7.3 update patch
(cherry picked from commit 544465ef98)
2024-05-28 08:58:53 +00:00
luoch
9c8cced0fa dbeaver-bin: add wrapGAppsHook3
(cherry picked from commit 4082d7e115)
2024-05-28 08:51:58 +00:00
Connor Baker
a6d2eba009 python312Packages.ax: disable tests on Python 3.12
The test suite has a number of failures (not limited to):

FAILED ax/analysis/helpers/tests/test_cross_validation_helpers.py::TestCrossValidationHelpers::test_get_min_max_with_errors - SystemError: <sys.legacy_event_handler object at 0x7ffc5029cdb0> returned a...
FAILED ax/analysis/helpers/tests/test_cross_validation_helpers.py::TestCrossValidationHelpers::test_obs_vs_pred_dropdown_plot - SystemError: <sys.legacy_event_handler object at 0x7ffc5029cdb0> returned a...
FAILED ax/analysis/helpers/tests/test_cross_validation_helpers.py::TestCrossValidationHelpers::test_store_df_to_file - SystemError: <sys.legacy_event_handler object at 0x7ffc5029cdb0> returned a...
FAILED ax/analysis/helpers/tests/test_cross_validation_helpers.py::TestCrossValidationHelpers::test_store_plot_as_dict - SystemError: <sys.legacy_event_handler object at 0x7ffc5029cdb0> returned a...
FAILED ax/analysis/helpers/tests/test_cv_consistency_checks.py::TestCVConsistencyCheck::test_error_scatter_data_branin - SystemError: <sys.legacy_event_handler object at 0x7ffc5029cdb0> returned a...
FAILED ax/analysis/helpers/tests/test_cv_consistency_checks.py::TestCVConsistencyCheck::test_error_scatter_trace_branin - SystemError: <sys.legacy_event_handler object at 0x7ffc5029cdb0> returned a...

Irritatingly enough, disabling those tests causes (or allows?) different tests to fail. After chasing these for some time, it proved easier to disable the test suite for Python 3.12.

(cherry picked from commit 13e2dcabbc)
2024-05-28 08:39:56 +00:00
Jörg Thalheim
755245893a Merge pull request #315271 from NixOS/backport-315040-to-release-24.05
[Backport release-24.05] nixos/hyprlock, nixos/hypridle: init module
2024-05-28 10:23:47 +02:00
Honnip
8175851944 gnomeExtensions.mullvad-indicator: remove outdated patch
(cherry picked from commit 709d326858)
2024-05-28 07:47:09 +00:00
Honnip
3fe54eb851 nixosTests.gnome-extensions: ENABLED and DISABLED states are renamed
01e9724d75
Fix the test failure caused by the renaming of the states name from `ENABLED`, `DISABLED` to `ACTIVE` and `INACTIVE`

(cherry picked from commit b2069e7fc7)
2024-05-28 07:47:09 +00:00
Honnip
268c53b55a nixosTests.gnome-extensions: emoji-selector has been removed
(cherry picked from commit d7062ba870)
2024-05-28 07:47:09 +00:00
Nano Twerpus
62f30688dc jellyfin-web: add assert version == jellyfin.version to src
(cherry picked from commit 30dac56dab)
2024-05-28 07:05:39 +00:00
Nano Twerpus
0ef09bf23d jellyfin-web: 10.9.2 -> 10.9.3
(cherry picked from commit 5cd7bbe6fe)
2024-05-28 07:05:39 +00:00
Nano Twerpus
e5c147151a jellyfin: 10.9.1 -> 10.9.3
The `default.nix` was also formatted with `nixfmt-rfc-style` to be `RFC 166`-compliant.

(cherry picked from commit a7441feb23)
2024-05-28 07:05:38 +00:00
John Titor
d318a15bca nixos/hypridle: init
(cherry picked from commit 353aa12446)
2024-05-28 07:04:11 +00:00
John Titor
0b15e543c6 nixos/hyprlock: init module
(cherry picked from commit 07a0b79ed1)
2024-05-28 07:04:11 +00:00
Aaron Andersen
512a3fd04a kodi.packages.invidious: add missing infotagger dependency
(cherry picked from commit ee947a38e2)
2024-05-28 03:50:34 +00:00
Adam C. Stephens
064b8bf531 Merge pull request #315123 from NixOS/backport-314738-to-release-24.05
[Backport release-24.05] firefoxpwa: 2.12.0 -> 2.12.1
2024-05-27 17:09:46 -04:00
Nick Cao
fb5fb7fd6f Merge pull request #314857 from NixOS/backport-314650-to-release-24.05
[Backport release-24.05] arc-browser: 1.43.1-50198 -> 1.44.2-50412
2024-05-27 17:03:46 -04:00
Ludovico Piero
bdbbbc2c74 samrewritten: change platforms to only x86_64-linux
Signed-off-by: Ludovico Piero <lewdovico@gnuweeb.org>
(cherry picked from commit 8259c8bd4d)
2024-05-27 21:00:51 +00:00
Robert Scott
42e3277186 Merge pull request #315182 from justinas/24-05-backport-314573
[24.05]  teleport_13: remove
2024-05-27 22:00:26 +01:00
Martin Weinelt
42e786fc8b Merge pull request #315171 from NixOS/backport-315162-to-release-24.05
[Backport release-24.05] discourse: update plugins
2024-05-27 22:19:18 +02:00
Justinas Stankevicius
dac0b86b6a teleport_13: remove 2024-05-27 23:14:53 +03:00
Martin Weinelt
55ee801174 discourse: build discourseAllPlugins in passthru.tests.
Useful to reveal failing plugin builds.

(cherry picked from commit 898d023384)
2024-05-27 19:32:18 +00:00
Martin Weinelt
432e435a69 discourse: update plugins
(cherry picked from commit 1d2d14cc1f)
2024-05-27 19:32:18 +00:00
Pol Dellaiera
60266426f0 Merge pull request #315165 from NixOS/backport-314534-to-release-24.05
[Backport release-24.05] gh-eco: added fetchpatch; modernize
2024-05-27 21:30:20 +02:00
isabel
102a07abb1 gh-eco: added fetchpatch; modernize
(cherry picked from commit 072363fc3e)
2024-05-27 19:16:45 +00:00
Weijia Wang
0ba80a0f4d Merge pull request #315120 from eclairevoyant/revert-steam-fonts
[24.05] Revert "nixos/steam: add option fontPackages"
2024-05-27 20:59:02 +02:00
Atemu
c5ddb6cbc7 Merge pull request #314815 from NixOS/backport-314337-to-release-24.05
[Backport release-24.05] nextcloudPackages.richdocuments: init
2024-05-27 19:44:48 +02:00
Maximilian Bosch
1df68e31d2 Merge pull request #315098 from NixOS/backport-314939-to-release-24.05
[Backport release-24.05] grafana-image-renderer: 3.10.2 -> 3.10.5
2024-05-27 16:16:46 +00:00
R. Ryantm
e58876b56a firefoxpwa: 2.12.0 -> 2.12.1
(cherry picked from commit 4e5a485d6a)
2024-05-27 15:53:27 +00:00
Martin Weinelt
0b1b49a45f Merge pull request #315094 from NixOS/backport-299269-to-release-24.05
[Backport release-24.05] discourse: 3.1.0 -> 3.2.2
2024-05-27 17:48:50 +02:00
éclairevoyant
8ed61d15ff Revert "nixos/steam: add option fontPackages"
This reverts commit 7f86c8842a.
2024-05-27 11:42:49 -04:00
Yongun Seong
f265769617 unison-fsmonitor: 0.3.3 -> 0.3.4
(cherry picked from commit 3b1b7987af)
2024-05-27 15:19:30 +00:00
Thiago Kenji Okada
050570e289 Merge pull request #315054 from NixOS/backport-314997-to-release-24.05
[Backport release-24.05] linuxKernel.kernels.linux_zen: 6.9.1-zen1 -> 6.9.2-zen1
2024-05-27 16:03:11 +01:00
Nick Cao
cbdd3f3d16 Merge pull request #314979 from NixOS/backport-314122-to-release-24.05
[Backport release-24.05] chatty: 0.8.2 -> 0.8.3
2024-05-27 10:42:15 -04:00
Maximilian Bosch
818e481946 grafana-image-renderer: 3.10.2 -> 3.10.5
ChangeLogs:
* https://github.com/grafana/grafana-image-renderer/releases/tag/v3.10.3
* https://github.com/grafana/grafana-image-renderer/releases/tag/v3.10.4
* https://github.com/grafana/grafana-image-renderer/releases/tag/v3.10.5

(cherry picked from commit 8dd0b1d0ab)
2024-05-27 14:14:49 +00:00
Martin Weinelt
4d2a8b2c58 discourse: 3.1.0 -> 3.2.2
https://meta.discourse.org/t/3-1-1-security-and-bug-fix-release/278760
https://meta.discourse.org/t/3-1-2-security-and-bug-fix-release/282427
https://meta.discourse.org/t/3-1-3-security-and-bug-fix-release/284973
https://meta.discourse.org/t/3-1-4-security-and-bug-fix-release/290939
https://blog.discourse.org/2024/01/celebrating-discourse-3-2/
https://meta.discourse.org/t/3-2-1-security-and-bug-fix-release/298237
https://meta.discourse.org/t/3-2-2-bug-fix-release/307780

Co-Authored-By: Christian Albrecht <christian.albrecht@mayflower.de>
Fixes: CVE-2023-38706, CVE-2023-40588, CVE-2023-41043, CVE-2023-41042,
       CVE-2023-44388, CVE-2023-43814, CVE-2023-45147, CVE-2023-43659,
       CVE-2023-44391, CVE-2023-45131, CVE-2023-47120, CVE-2023-45816,
       CVE-2023-46130, CVE-2023-47119, CVE-2023-47121, CVE-2023-45806,
       CVE-2023-49099, CVE-2024-21655, CVE-2024-21655, CVE-2023-48297,
       CVE-2024-24748, CVE-2024-24827, CVE-2024-27085, CVE-2024-27100,
       CVE-2024-28242
(cherry picked from commit 25755c0d20)
2024-05-27 13:56:11 +00:00
Martin Weinelt
427bdcc885 discourse: strip markers from plugin compat spec
The plugin updater would previously stumble over compat spec version
entries that begin with angled brackets.

````
< 3.3.0.beta1-dev: 56b0de3896361b6a87523537c8f5b450d2fe0807
3.2.0: 33c43ca51ac7b7baa8a309a269dcf8685b8bd638
< 3.2.0.beta2-dev: ac930c509e2a5b0c37b84bcea28d332e686add95
3.1.999: a304cd2028ccf1f5b00f5137633aa7027a1fd334
3.1.0.beta3: 9c270cac9abc1c2b30574d8c655fb3a90546236b
[...]
````

(cherry picked from commit 5cf005119a)
2024-05-27 13:56:11 +00:00
Martin Weinelt
54f359612f discourse: rely on packaging module for version comparison
The distutils module is deprecated and was removed in Python 3.12, which
would eventually break this updater.

(cherry picked from commit 3106519f14)
2024-05-27 13:56:11 +00:00
Maximilian Bosch
44b81bfaaf Merge pull request #315060 from NixOS/backport-314938-to-release-24.05
[Backport release-24.05] meshcentral: 1.1.22 -> 1.1.24
2024-05-27 13:28:34 +00:00
Robert Scott
a1e0c81816 Merge pull request #314555 from NixOS/backport-314091-to-release-24.05
[Backport release-24.05] python3Packages.shiboken6: restore backwards compatibility with 6.6
2024-05-27 14:04:44 +01:00
Maximilian Bosch
fc39836b7a Merge pull request #314946 from Ma27/grafana-2405
[24.05] grafana: 10.4.2 -> 10.4.3
2024-05-27 11:14:23 +00:00
Maximilian Bosch
51b088b4b5 meshcentral: 1.1.22 -> 1.1.24
ChangeLog: https://github.com/Ylianst/MeshCentral/releases/tag/1.1.23
ChangeLog: https://github.com/Ylianst/MeshCentral/releases/tag/1.1.24
(cherry picked from commit cc48fad505)
2024-05-27 11:11:37 +00:00
Maximilian Bosch
4095d7bdb9 Merge pull request #315031 from NixOS/backport-314944-to-release-24.05
[Backport release-24.05] nixVersions.git: 2.23.0pre20240520_b7709d14 -> 2.23.0pre20240526_7de033d6
2024-05-27 11:02:04 +00:00
Jerry
472cb2d381 linuxKernel.kernels.linux_zen: 6.9.1-zen1 -> 6.9.2-zen1
(cherry picked from commit 7359e7f57c)
2024-05-27 10:31:53 +00:00
rewine
3d62b9bc82 Merge pull request #315030 from NixOS/backport-315019-to-release-24.05
[Backport release-24.05] pyprland: 2.3.2 -> 2.3.4
2024-05-27 18:10:39 +08:00
Mathis Antony
02c22a632e haskellPackages.di-core: unbreak on darwin
One of the tests is flaky and fails sometimes on darwin, linux builds
don't seem to be affected. This change removes the failing assert on
darwin.

(cherry picked from commit 42ade6365d)
2024-05-27 08:36:38 +00:00
Maximilian Bosch
0080eea022 nixVersions.git: 2.23.0pre20240520_b7709d14 -> 2.23.0pre20240526_7de033d6
Changes: b7709d14...7de033d6
(cherry picked from commit bbc5af4fcc)
2024-05-27 08:17:35 +00:00
R. Ryantm
0bfb2dadbf pyprland: 2.3.2 -> 2.3.4
(cherry picked from commit 27f9914e58)
2024-05-27 07:54:09 +00:00
Vladimír Čunát
67a8b308ba Merge #315023: Revert "boehmgc: disable tests on aarch64-linux"
...into release-24.05.   Moving to staging-24.05.
2024-05-27 09:03:12 +02:00
Vladimír Čunát
0b5ea07801 Revert "[Backport release-24.05] boehmgc: disable tests on aarch64-linux" 2024-05-27 09:02:47 +02:00
Robert Hensing
6a668b71ee testers.lycheeLinkCheck: Clarify test data
(cherry picked from commit 5acbed79ee)
2024-05-27 05:55:46 +00:00
Robert Hensing
912abfa907 testers.lycheeLinkCheck: Edit documentation and messages
Co-authored-by: Valentin Gagarin <valentin.gagarin@tweag.io>
(cherry picked from commit 984b45c609)
2024-05-27 05:55:46 +00:00
Robert Hensing
871a6e4536 testers.lycheeLinkCheck: Validate regex...
... because of the odd choice of config syntax.

(cherry picked from commit 89092532e7)
2024-05-27 05:55:46 +00:00
Robert Hensing
5a51f54ec4 testers.lycheeLinkCheck: Fix plain derivation remap, showcase emptyDirectory
(cherry picked from commit 60536f85a3)
2024-05-27 05:55:46 +00:00
Robert Hensing
20fccd7b6c testers.lycheeLinkCheck: Update docs
A deep dive reveals that the needles in our haystack are actually
regular expressions.

(cherry picked from commit 076c5afd20)
2024-05-27 05:55:46 +00:00
Robert Hensing
25a5fced3c testers.lycheeLinkCheck: Generalize remapUrl convenience feature
(cherry picked from commit f6b7891368)
2024-05-27 05:55:46 +00:00
Robert Hensing
8bfb6afca9 testers.lycheeLinkCheck: Edit documentation
Co-authored-by: Valentin Gagarin <valentin.gagarin@tweag.io>
(cherry picked from commit 984b11685d)
2024-05-27 05:55:46 +00:00
Robert Hensing
3363b4e759 testers.lycheeLinkCheck: Test online runner
(cherry picked from commit 0291ebf782)
2024-05-27 05:55:46 +00:00
Robert Hensing
e2a9d4f64d doc/testers: Make lycheeLinkCheck section more accessible
- Explain the use case for audience who's new to the concept
- Be more explicit about what the return value "does"

(cherry picked from commit 444f8bf6eb)
2024-05-27 05:55:46 +00:00
Robert Hensing
8567fac505 testers.lycheeLinkCheck: Add online attribute for nix run
(cherry picked from commit c2ebd3ea60)
2024-05-27 05:55:46 +00:00
Robert Hensing
bf8c7334f8 testers.lycheeLinkCheck: init
(cherry picked from commit 6af49f27ed)
2024-05-27 05:55:46 +00:00
Vincent Laporte
e00cc19a9a coqPackages.mathcomp-infotheo: 0.6.1 → 0.7.1
(cherry picked from commit 2322144110)
2024-05-27 07:13:57 +02:00
K900
dd12f1e9cb Merge pull request #314970 from NixOS/backport-312268-to-release-24.05
[Backport release-24.05] nixos/steam: add option `extraPackages` `fontPackages`, fix CJK fonts on client
2024-05-27 07:33:01 +03:00
Connor Baker
4d34890c90 Merge pull request #314991 from NixOS/backport-314707-to-release-24.05
[Backport release-24.05] python3Packages.apricot-select: fixup dependency categories and disable tests
2024-05-27 00:06:27 -04:00
Connor Baker
45516b8d49 python3Packages.apricot-select: disable tests by default
They can run for hours on Hydra: https://hydra.nixos.org/build/261011861

(cherry picked from commit 7568ee06c9)
2024-05-27 03:12:41 +00:00
Connor Baker
f65c42eaf8 python3Packages.apricot-select: disable flaky tests
(cherry picked from commit b1c46e1d2e)
2024-05-27 03:12:41 +00:00
Connor Baker
18a489ea34 python3Packages.apricot-select: move scikit-learn and torchvision to dependencies
These are needed when building the package, not just during the checkPhase. This can be observed by setting
doCheck to false.

(cherry picked from commit b28f7c5303)
2024-05-27 03:12:40 +00:00
Robert Schütz
19f9b6672e chatty: 0.8.2 -> 0.8.3
Changelog: https://gitlab.gnome.org/World/Chatty/-/blob/v0.8.3/NEWS
(cherry picked from commit ead03f474a)
2024-05-27 02:03:54 +00:00
sternenseemann
92797acfb0 haskell.compiler.ghc9{6,8}: fix elfutils splicing
elfutils is used in the RTS (rts/Libdw.c), i.e. it will be used on the
target platform.

Tested via pkgsCross.gnu32.haskellPackages.ghc [1], though #304605 needs
to be cherry-picked for elfutils to build.

[1]: nix-shell -E 'with import ./. { crossSystem = "i686-linux"; };
       mkShell { nativeBuildInputs = [haskellPackages.ghc ]; }'

(cherry picked from commit b868aaab73)
2024-05-27 01:57:53 +02:00
OTABI Tomoya
d41199d0ff Merge pull request #314719 from NixOS/backport-312471-to-release-24.05
[Backport release-24.05] textlint: repackage with buildNpmPackage
2024-05-27 08:55:39 +09:00
Robert Scott
abcb661ced Merge pull request #314959 from NixOS/backport-314886-to-release-24.05
[Backport release-24.05] python312Packages.pyxnat: 1.6 -> 1.6.2
2024-05-27 00:46:40 +01:00
北雁 Cryolitia
7f86c8842a nixos/steam: add option fontPackages
fix #178121

(cherry picked from commit 164f66169a)
2024-05-26 23:36:29 +00:00
北雁 Cryolitia
6775ae8ed9 nixos/steam: add option extraPackages
(cherry picked from commit efef69a51d)
2024-05-26 23:36:29 +00:00
Robert Scott
c780432748 Merge pull request #314926 from NixOS/backport-314810-to-release-24.05
[Backport release-24.05] gnu-smalltalk: fix build
2024-05-27 00:02:52 +01:00
Ben Darwin
8f94fafe2d python312Packages.pyxnat: 1.6 -> 1.6.2
(cherry picked from commit 609f201988)
2024-05-26 22:29:39 +00:00
Andreas Zweili
9b92ac6e5d zipfile2: Mark as broken on Python 3.12
(cherry picked from commit d1828e7501)
2024-05-26 21:23:20 +00:00
K900
8026cc7433 python311Packages.pyside6: fix build with Qt 6.7.1
(Cherry-picked from 8402044163)

Fixes #313908
2024-05-26 21:18:28 +00:00
Maximilian Bosch
3f3c03a9b6 grafana: 10.4.2 -> 10.4.3
ChangeLog: https://github.com/grafana/grafana/releases/tag/v10.4.3
2024-05-26 23:05:17 +02:00
Connor Baker
baf5166949 Merge pull request #314895 from NixOS/backport-314709-to-release-24.05
[Backport release-24.05] python312Packages.accelerate: disable test_dynamo_extract_model
2024-05-26 16:35:43 -04:00
Connor Baker
2f048817b6 Merge pull request #314914 from NixOS/backport-314704-to-release-24.05
[Backport release-24.05] python3Packages.scikit-fmm: fix build on Python 3.12+
2024-05-26 16:35:11 -04:00
Robert Scott
1e8e25358e Merge pull request #314892 from NixOS/backport-314746-to-release-24.05
[Backport release-24.05] tetex: fix darwin build
2024-05-26 20:44:04 +01:00
Robert Scott
6d6eceb9cb Merge pull request #314866 from NixOS/backport-314721-to-release-24.05
[Backport release-24.05] python312Packages.foolscap: fix build
2024-05-26 20:42:39 +01:00
Giulio Cocconi
d50456ad28 gnu-smalltalk: Numbered the patch
(cherry picked from commit 7619c9693e)
2024-05-26 19:37:18 +00:00
Giulio Cocconi
9851bd8f4e gnu-smalltalk: fix-build
(cherry picked from commit 577e785181)
2024-05-26 19:37:18 +00:00
Sandro Jäckel
b21d3c8fd1 ledfx: 2.0.96 -> 2.0.99
(cherry picked from commit a6216de380)
2024-05-26 18:59:52 +00:00
Sandro Jäckel
d87ea2ce3c python3Packages.vnoise: init at 0.1.0
(cherry picked from commit a16d07db1d)
2024-05-26 18:59:52 +00:00
Sandro Jäckel
f1d7443aae python311Packages.pystray: 0.19.2 -> 0.19.5
(cherry picked from commit 53bbdc1a69)
2024-05-26 18:59:52 +00:00
Connor Baker
18900904a2 python3Packages.scikit-fmm: fix build on Python 3.12+
(cherry picked from commit dfb4af7f3e)
2024-05-26 18:44:20 +00:00
Artturin
0404741d97 Merge pull request #314897 from NixOS/backport-312720-to-release-24.05
[Backport release-24.05] pulsar: 1.114.0 -> 1.117.0
2024-05-26 20:24:52 +03:00
John Titor
f82bb581af pulsar: move to pkgs/by-name
(cherry picked from commit ae9df3abff)
2024-05-26 17:22:26 +00:00
John Titor
bdb82988e5 pulsar: 1.114.0 -> 1.117.0
cleanup

(cherry picked from commit 5aae3a45cb)
2024-05-26 17:22:26 +00:00
R. Ryantm
a3a3a2c388 pyradio: 0.9.3.6 -> 0.9.3.7
(cherry picked from commit 3358e97411)
2024-05-26 19:03:44 +02:00
Connor Baker
3ffd42482e python312Packages.accelerate: disable test_dynamo_extract_model
(cherry picked from commit b3e2432ca7)
2024-05-26 16:58:53 +00:00
John Garcia
96452a3d9b remnote: 1.16.4 -> 1.16.18
(cherry picked from commit 8577edcca8)
2024-05-26 16:56:42 +00:00
John Garcia
ba34f4e043 remnote: refactor code
(cherry picked from commit 4010f337cb)
2024-05-26 16:56:42 +00:00
paparodeo
85b86328ec tetex: fix darwin build
specify -std=gnu89 and -std=c++03 to fix the configure script and build.
the tarballs were last updated in 2006 and the package is no longer
maintain so use standards from the era.

(cherry picked from commit 61e89d1002)
2024-05-26 16:55:06 +00:00
Aleksana
b841269d85 Merge pull request #314558 from NixOS/backport-310893-to-release-24.05
[Backport release-24.05] cloudsmith-cli: Fix compatibility with urllib3 2.0
2024-05-26 23:59:37 +08:00
Aleksana
0b584ccdb0 Merge pull request #314571 from NixOS/backport-314475-to-release-24.05
[Backport release-24.05] evolution: 3.52.1 → 3.52.2
2024-05-26 23:58:06 +08:00
Aleksana
eca8d5fdbe Merge pull request #314813 from NixOS/backport-314101-to-release-24.05
[Backport release-24.05] python3Packages.mapclassify: init at 2.6.1
2024-05-26 23:57:53 +08:00
Maximilian Bosch
1c63eb563d Merge pull request #314782 from NixOS/backport-314096-to-release-24.05
[Backport release-24.05] nextcloud28: 28.0.5 -> 28.0.6, nextcloud29: 29.0.0 -> 29.0.1
2024-05-26 15:51:38 +00:00
Robert Scott
efd97682e4 Merge pull request #314830 from NixOS/backport-314705-to-release-24.05
[Backport release-24.05] python312Packages.pgmpy: patch assert in test suite for Python 3.12
2024-05-26 16:36:32 +01:00
Moraxyc
105f193844 python312Packages.foolscap: fix build
(cherry picked from commit 3a74cef93f)
2024-05-26 14:44:49 +00:00
Nick Cao
17e82d424c Merge pull request #314826 from NixOS/backport-313424-to-release-24.05
[Backport release-24.05] bcachefs-tools: 1.7.0 -> 1.7.0-unstable-2024-05-09
2024-05-26 10:31:28 -04:00
Nick Cao
d7e44cff15 Merge pull request #314790 from NixOS/backport-313223-to-release-24.05
[Backport release-24.05] webcord-vencord: fix runtime segfault
2024-05-26 10:22:31 -04:00
Nick Cao
f919f2978c Merge pull request #314793 from NixOS/backport-314361-to-release-24.05
[Backport release-24.05] bento4: fix build on darwin
2024-05-26 10:21:59 -04:00
Nick Cao
929d8b66fe Merge pull request #314805 from NixOS/backport-314135-to-release-24.05
[Backport release-24.05] dayon: 14.0.0 -> 14.0.1
2024-05-26 10:20:22 -04:00
DontEatOreo
f5c37d32f9 arc-browser: 1.43.1-50198 -> 1.44.2-50412
Changelog: https://arc.net/e/C56904FA-1C75-4D77-9A87-E7F1A52529CD
(cherry picked from commit 76ef308d2d)
2024-05-26 13:59:26 +00:00
Martin Weinelt
a9fc3b087f Merge pull request #314856 from NixOS/backport-314545-to-release-24.05
[Backport release-24.05] python312Packages.homeassistant-stubs: 2024.5.4 -> 2024.5.5
2024-05-26 15:57:45 +02:00
Nick Cao
a8443bd1a3 Merge pull request #314530 from NixOS/backport-314292-to-release-24.05
[Backport release-24.05] rnote: mark as broken on darwin
2024-05-26 09:45:21 -04:00
Nick Cao
6aadf6e084 Merge pull request #314531 from NixOS/backport-314448-to-release-24.05
[Backport release-24.05] nuclei: 3.2.7 -> 3.2.8
2024-05-26 09:45:01 -04:00
Martin Weinelt
4e6eae43a4 python312Packages.homeassistant-stubs: 2024.5.4 -> 2024.5.5
https://github.com/KapJI/homeassistant-stubs/releases/tag/2024.5.5
(cherry picked from commit fe41047e4c)
2024-05-26 13:44:50 +00:00
Nick Cao
75fef7bb88 Merge pull request #314537 from NixOS/backport-313112-to-release-24.05
[Backport release-24.05] firefly-iii: 6.1.15 -> 6.1.16
2024-05-26 09:44:41 -04:00
Nick Cao
f99f394249 Merge pull request #314567 from NixOS/backport-313925-to-release-24.05
[Backport release-24.05] openjdk11, openjfx11, corretto11: update
2024-05-26 09:43:10 -04:00
Nick Cao
cc5ae9c1e5 Merge pull request #314578 from justinas/backport-24-05-teleport-15-3-7
[24.05] teleport_15: 15.2.2 -> 15.3.7, teleport_14: 14.3.0 -> 14.3.20, teleport_13: 13.4.14 -> 13.4.26
2024-05-26 09:40:26 -04:00
OTABI Tomoya
d74a983e00 Merge pull request #314756 from NixOS/backport-314647-to-release-24.05
[Backport release-24.05] python312Packages.hyppo: unbreak
2024-05-26 22:27:01 +09:00
OTABI Tomoya
65c3e1cd07 Merge pull request #314762 from NixOS/backport-314731-to-release-24.05
[Backport release-24.05] python312Packages.python-fontconfig: fix build
2024-05-26 22:25:50 +09:00
Robert Scott
7c5dc0287e Merge pull request #314589 from NixOS/backport-313536-to-release-24.05
[Backport release-24.05] python311Packages.mne-python: 1.6.1 -> 1.7.0
2024-05-26 13:53:34 +01:00
R. Ryantm
33cc4250a1 shattered-pixel-dungeon: 2.4.0 -> 2.4.1
(cherry picked from commit 91213d3aad)
2024-05-26 12:49:40 +00:00
Connor Baker
f76b9e3f51 python3Packages.pgmpy: patch assert in test suite for Python 3.12
(cherry picked from commit dcf25f5f48)
2024-05-26 11:39:51 +00:00
John Titor
9f4c80f7a7 bcachefs-tools: replace -> replace-fail
(cherry picked from commit 4b7a2daf91)
2024-05-26 11:08:38 +00:00
John Titor
f79e28fb04 bcachefs-tools: 1.7.0 -> 1.7.0-unstable-2024-05-09
Moved temporarily to unstable to fix https://github.com/NixOS/nixpkgs/issues/313350

Also vendor the updated patch for https://github.com/NixOS/nixpkgs/issues/309388
from https://github.com/koverstreet/bcachefs-tools/pull/263

(cherry picked from commit 10378661e5)
2024-05-26 11:08:38 +00:00
John Titor
84bcce509d bcachefs-tools: move to pkgs/by-name
(cherry picked from commit d6043adf28)
2024-05-26 11:08:38 +00:00
Aleksana
4c827f2767 [Backport release-24.05] python3Packages.trainer: fix build
[Backport release-24.05] python3Packages.trainer: fix build
2024-05-26 18:56:49 +08:00
github-actions[bot]
cbf353fd83 luaPackages.toml-edit: unbreak on darwin (#314611)
* luaPackages.toml-edit: unbreak on darwin

(cherry picked from commit b0b63ae37c)

* use lua.pkgs.isLuaJIT

(cherry picked from commit a9bf74b3ad)

---------

Co-authored-by: Mathis Antony <sveitser@gmail.com>
2024-05-26 12:23:27 +02:00
Atemu
4b7560d97b nextcloudPackages.richdocuments: init
This is the "Nextcloud Office" app that offers Collabora CODE integration.

You still need Collabora CODE itself running somewhere but this is one step
towards https://github.com/NixOS/nixpkgs/issues/218878.

(cherry picked from commit 04445ac137)
2024-05-26 10:14:37 +00:00
Nikolay Korotkiy
94db9bb537 python3Packages.mapclassify: init at 2.6.1
(cherry picked from commit c01eae87e2)
2024-05-26 10:08:56 +00:00
Nikolay Korotkiy
3d81ae8a42 python3Packages.libpysal: init at 4.10
(cherry picked from commit 55f48eac29)
2024-05-26 10:08:56 +00:00
Nikolay Korotkiy
2d11dc2db1 python3Packages.geodatasets: init at 2023.12.0
(cherry picked from commit 535a575606)
2024-05-26 10:08:56 +00:00
Nikolay Korotkiy
e3ce7a99c5 python3Packages.pyogrio: init at 0.8.0
(cherry picked from commit 7b3f4fcdb2)
2024-05-26 10:08:56 +00:00
R. Ryantm
a92a5c3cb4 dayon: 14.0.0 -> 14.0.1
(cherry picked from commit cb2a42ed78)
2024-05-26 09:30:14 +00:00
Sandro
a515734c9b Merge pull request #314799 from NixOS/backport-314415-to-release-24.05
[Backport release-24.05] brave: 1.66.110 -> 1.66.115
2024-05-26 11:29:30 +02:00
Sean Buckley
0fb0eed01e brave: 1.66.110 -> 1.66.115
https://community.brave.com/t/release-channel-1-66-115/550022
(cherry picked from commit c15976a9a2)
2024-05-26 09:02:19 +00:00
Alex James
1b7457ee66 bento4: fix evaluation on darwin
CMakeLists.txt in v1.6.0-641 set `CMAKE_OSX_ARCHITECTURES`, which broke
evaluation on Darwin. Fix it by unsetting `CMAKE_OSX_ARCHITECTURES`.

(cherry picked from commit b7b04c42f8)
2024-05-26 08:04:07 +00:00
éclairevoyant
6913198c62 webcord-vencord: fix runtime segfault
(cherry picked from commit bfed80cb51)
2024-05-26 07:57:33 +00:00
Bas van Dijk
8df00c866a wasmtime: disable checks on all aarch64 platforms
(cherry picked from commit cbb848547a)
2024-05-26 07:56:00 +00:00
Bas van Dijk
29d3787cba wasmtime: fix build on aarch64-darwin
The check phase fails on aarch64-darwin because of:

```
$ nix-build -A wasmtime
...
buildPhase completed in 1 minutes 41 seconds
Running phase: checkPhase
Executing cargoCheckHook
++ cargo test -j 10 --profile release --target aarch64-apple-darwin --frozen -- --test-threads=10
...
       >   error: linker `rust-lld` not found
       >     |
       >     = note: No such file or directory (os error 2)
       >
       >   error: could not compile `wasi-preview1-component-adapter` (lib) due to 1 previous error
```

I tried to bring `lld` into scope and set `RUSTFLAGS = "-C linker=lld`
but I couldn't get the tests to build. So I just disabled them on aarch64-darwin.

(cherry picked from commit cca07f139d)
2024-05-26 07:56:00 +00:00
Aleksana
3d3a77714a Merge pull request #314761 from NixOS/backport-314736-to-release-24.05
[Backport release-24.05] python3Packages.python-twitter: fix
2024-05-26 15:51:59 +08:00
Connor Baker
33d76c13a9 python3Packages.trainer: fix Python 3.12+
(cherry picked from commit e54355ea20)
2024-05-26 07:42:27 +00:00
Robert Schütz
ad0eb7e0f3 nextcloud-notify_push: 0.6.10 -> 0.6.11
Diff: https://github.com/nextcloud/notify_push/compare/v0.6.10...v0.6.11

Changelog: https://github.com/nextcloud/notify_push/releases/tag/v0.6.11
(cherry picked from commit dd7a48b54f)
2024-05-26 07:40:30 +00:00
Robert Schütz
fbb6f191b4 nextcloudPackages: update
(cherry picked from commit ea23d5ac3d)
2024-05-26 07:40:30 +00:00
Robert Schütz
642d307f89 nextcloud29: 29.0.0 -> 29.0.1
Changelog: https://nextcloud.com/changelog/#29-0-1
(cherry picked from commit ff64ac2e17)
2024-05-26 07:40:30 +00:00
Robert Schütz
2ff5772672 nextcloud28: 28.0.5 -> 28.0.6
Changelog: https://nextcloud.com/changelog/#28-0-6
(cherry picked from commit 84c8e8af00)
2024-05-26 07:40:30 +00:00
Sandro Jäckel
65fc041173 nixos/no-x-libs: fix mpv build by disabling drmSupport, disable more GUI only relevant features
(cherry picked from commit b9ec2c14d8)
2024-05-26 05:57:15 +00:00
Sandro Jäckel
1ec9f0f58f nixos/no-x-libs: add libplacebo
(cherry picked from commit 2a8e5155c9)
2024-05-26 05:57:15 +00:00
Sandro Jäckel
1a9dbfb0da libplacebo: add vulkanSupport option
(cherry picked from commit e499cfa37b)
2024-05-26 05:57:15 +00:00
Sandro Jäckel
b3ea894889 rubberband: use headless jdk
This fixes the build with environment.noXlibs set to true

(cherry picked from commit 22df7fb99f)
2024-05-26 05:57:15 +00:00
Aleksana
c73138c590 Merge pull request #314495 from NixOS/backport-307571-to-release-24.05
[Backport release-24.05] insomnia: 8.6.1 -> 9.0.0
2024-05-26 13:44:39 +08:00
Aleksana
31de6674eb Merge pull request #314500 from NixOS/backport-309570-to-release-24.05
[Backport release-24.05] spicetify-cli: rename bin
2024-05-26 13:44:25 +08:00
Aleksana
5d569ccdec Merge pull request #314734 from NixOS/backport-314714-to-release-24.05
[Backport release-24.05] palemoon-bin: remove AndersonTorres from maintainers
2024-05-26 13:44:07 +08:00
Moraxyc
61eebf4471 python312Packages.python-fontconfig: fix build
(cherry picked from commit 66fd70a9fa)
2024-05-26 05:21:47 +00:00
Moraxyc
0e260e923d python3Packages.python-twitter: fix
(cherry picked from commit d3b9ef5962)
2024-05-26 05:20:16 +00:00
Ben Darwin
f623509cb2 python312Packages.hyppo: unbreak
Disabled doctests which seem not properly maintained/tested; disabled
test collection of non-source directories (e.g. 'tutorials' contains
some broken code, but no actual tests)

(cherry picked from commit 0eacecad36)
2024-05-26 05:15:19 +00:00
Anderson Torres
de6830cca5 palemoon-bin: remove AndersonTorres from maintainers
(cherry picked from commit 1d77540678)
2024-05-26 02:30:28 +00:00
natsukium
0baa634e8e textlint-rule-common-misspellings: repackage
There is no lock file in this package, but it is old and stable enough
so that we handle dependencies manually.

(cherry picked from commit 5f58c6a87d)
2024-05-26 00:24:19 +00:00
natsukium
edda1892d7 textlint-rule-no-start-duplicated-conjunction: repackage with fetchYarnDeps
(cherry picked from commit 950ff0df92)
2024-05-26 00:24:19 +00:00
natsukium
410be13e5c textlint-rule-abbr-within-parentheses: repackage with fetchYarnDeps
(cherry picked from commit 1e81326637)
2024-05-26 00:24:19 +00:00
natsukium
289d6c3751 textlint-rule-period-in-list-item: repackage with fetchYarnDeps
(cherry picked from commit e242a02edc)
2024-05-26 00:24:18 +00:00
natsukium
551d1d0dfb textlint-rule-unexpanded-acronym: repackage with fetchYarnDeps
(cherry picked from commit 2aaa9011e1)
2024-05-26 00:24:18 +00:00
natsukium
218d1791d0 textlint-rule-en-max-word-count: repackage with fetchYarnDeps
(cherry picked from commit 8fc1968cb2)
2024-05-26 00:24:18 +00:00
natsukium
b97023cd16 textlint-rule-terminology: repackage with buildNpmPackage
(cherry picked from commit 3109179f68)
2024-05-26 00:24:18 +00:00
natsukium
befdd4fcc9 textlint-plugin-latex: remove
(cherry picked from commit 9587d0c8f9)
2024-05-26 00:24:18 +00:00
natsukium
600786c8cd textlint-plugin-latex2e: init at 1.2.1-unstable-2024-02-05
(cherry picked from commit dc4a3ade28)
2024-05-26 00:24:18 +00:00
natsukium
9b0989a1a0 textlint-rule-stop-words: repackage with buildNpmPackage
(cherry picked from commit c4db484f14)
2024-05-26 00:24:18 +00:00
natsukium
6f2cd96b3d textlint-rule-diacritics: repackage with buildNpmPackage
(cherry picked from commit d47ef02451)
2024-05-26 00:24:18 +00:00
natsukium
d9bb9fd8db textlint-rule-write-good: repackage with fetchYarnDeps
(cherry picked from commit c28503fd79)
2024-05-26 00:24:18 +00:00
natsukium
0a9de878b9 textlint-rule-alex: repackage with buildNpmPackage
(cherry picked from commit e633e33303)
2024-05-26 00:24:18 +00:00
natsukium
a065c44013 textlint-rule-max-comma: repackage with fetchYarnDeps
(cherry picked from commit 95507da635)
2024-05-26 00:24:18 +00:00
natsukium
d666c6e82d textlint-rule-preset-ja-technical-writing: init at 10.0.1
(cherry picked from commit f26194c4f1)
2024-05-26 00:24:18 +00:00
natsukium
78b139ef58 textlint: add test utility
(cherry picked from commit 68c7f8e5ab)
2024-05-26 00:24:18 +00:00
natsukium
d25bcd6bda textlint: make textlint pluggable with passthru.withPackages
textlint isn't useful without rules and plugins.
This change will allow to provide a wrapper that can use them, using
`textlint.withPackages [ xxx ]` like the Python environment.

(cherry picked from commit cd59be301d)
2024-05-26 00:24:17 +00:00
natsukium
5d1ad25393 textlint: repackage with buildNpmPackage
(cherry picked from commit f1a746de73)
2024-05-26 00:24:17 +00:00
Nick Cao
7d850e3ae2 Merge pull request #314580 from NixOS/backport-314345-to-release-24.05
[Backport release-24.05] bearer: 1.43.5 -> 1.43.6
2024-05-25 17:52:55 -04:00
superherointj
145028d14f Merge pull request #314606 from NixOS/backport-314009-to-release-24.05
[Backport release-24.05] vscode-extensions.ms-vscode.cpptools: Use the bundled interpreter for cpptools*
2024-05-25 16:06:29 -03:00
Robert Scott
8219ecf351 Merge pull request #314563 from NixOS/backport-314340-to-release-24.05
[Backport release-24.05] pdfslicer: work around incompatibility with GCC 13
2024-05-25 17:54:57 +01:00
Robert Scott
f47514f5ac Merge pull request #314551 from NixOS/backport-314037-to-release-24.05
[Backport release-24.05] python3Packages.graph-tool: 2.45 -> 2.65
2024-05-25 17:53:33 +01:00
K900
58164045c0 Merge pull request #314641 from NixOS/backport-314630-to-release-24.05
[Backport release-24.05] Kernel updates for 2024-05-25
2024-05-25 19:37:14 +03:00
K900
6eeffe0fa7 linux_latest-libre: 19546 -> 19569
(cherry picked from commit fd29fa20c2)
2024-05-25 16:36:37 +00:00
K900
1b2108328e linux-rt_6_6: 6.6.30-rt30 -> 6.6.31-rt31
(cherry picked from commit 21493325b1)
2024-05-25 16:36:37 +00:00
K900
304c7d3859 linux-rt_6_1: 6.1.90-rt30 -> 6.1.91-rt31
(cherry picked from commit 6a79d74445)
2024-05-25 16:36:37 +00:00
K900
4f2aec5a5c linux_4_19: 4.19.314 -> 4.19.315
(cherry picked from commit 840294e13e)
2024-05-25 16:36:37 +00:00
K900
ebde1bca3b linux_5_4: 5.4.276 -> 5.4.277
(cherry picked from commit 38ec9aa6fc)
2024-05-25 16:36:37 +00:00
K900
e3de041c4f linux_5_10: 5.10.217 -> 5.10.218
(cherry picked from commit 8a6766a212)
2024-05-25 16:36:37 +00:00
K900
f54d7b4b49 linux_5_15: 5.15.159 -> 5.15.160
(cherry picked from commit 3b23ad31e1)
2024-05-25 16:36:37 +00:00
K900
349dc3fc79 linux_6_1: 6.1.91 -> 6.1.92
(cherry picked from commit cc0c6c244c)
2024-05-25 16:36:37 +00:00
K900
1430fe1d3f linux_6_6: 6.6.31 -> 6.6.32
(cherry picked from commit ff01ae0efc)
2024-05-25 16:36:37 +00:00
K900
3610e135af linux_6_8: 6.8.10 -> 6.8.11
(cherry picked from commit 3d7d6d517a)
2024-05-25 16:36:37 +00:00
K900
324166e974 linux_6_9: 6.9.1 -> 6.9.2
(cherry picked from commit ebbba195fb)
2024-05-25 16:36:37 +00:00
Markus Kowalewski
409f34af8e Merge pull request #314610 from NixOS/backport-314067-to-release-24.05
[Backport release-24.05] slurm: 23.11.6.1 -> 23.11.7.1
2024-05-25 16:07:04 +00:00
Nick Cao
4dab92a437 Merge pull request #314585 from NixOS/backport-314469-to-release-24.05
[Backport release-24.05] viceroy: 0.9.6 -> 0.9.7
2024-05-25 11:57:58 -04:00
Nick Cao
e2f1340d25 Merge pull request #314586 from NixOS/backport-314518-to-release-24.05
[Backport release-24.05] lightningcss: 1.25.0 -> 1.25.1
2024-05-25 11:57:34 -04:00
Ivan Mincik
84bd8e465b Merge pull request #314554 from NixOS/backport-314546-to-release-24.05
[Backport release-24.05] python3Packages.owslib: disable all online tests using marker
2024-05-25 14:58:30 +00:00
Markus Kowalewski
3f04d31161 slurm: 23.11.6.1 -> 23.11.7.1
(cherry picked from commit 958fbf7e62)
2024-05-25 14:14:33 +00:00
Jeremy Kolb
c7b7989e26 vscode-extensions.ms-vscode.cpptools: Use the bundled interpreter for binaries
Previously autoPatchelfHook would stomp on the interpreter for the bundled
cpptools* executables. Here we manually run the hook and then explicitly
patch the interpreter.

(cherry picked from commit 5b6363538b)
2024-05-25 14:04:51 +00:00
Jeremy Kolb
85def070eb vscode-extensions.ms-vscode-cpptools: Remove unused LLVM directory
Saves some bytes

(cherry picked from commit 437f15f5cd)
2024-05-25 14:04:50 +00:00
Robert Scott
39d47f377a Merge pull request #314572 from NixOS/backport-314543-to-release-24.05
[Backport release-24.05] foma: 0.10.0alpha -> 0.10.0alpha-unstable-03-13-2024; fix darwin
2024-05-25 15:02:43 +01:00
Nick Cao
17a2ffa91c Merge pull request #314544 from NixOS/backport-314524-to-release-24.05
[Backport release-24.05] python312Packages.msoffcrypto-tool: 5.4.0 -> 5.4.1
2024-05-25 09:26:32 -04:00
Nick Cao
3223077216 Merge pull request #314552 from NixOS/backport-314489-to-release-24.05
[Backport release-24.05] geoserver: 2.25.0 -> 2.25.1
2024-05-25 09:25:49 -04:00
Nick Cao
32822d5982 Merge pull request #314560 from NixOS/backport-314467-to-release-24.05
[Backport release-24.05] telegram-desktop: 5.0.1 -> 5.0.2
2024-05-25 09:24:11 -04:00
Ben Darwin
bfb4ea185d python311Packages.mne-python: 1.6.1 -> 1.7.0
Co-authored-by: nicoo <nicoo@debian.org>
(cherry picked from commit c952647769)
2024-05-25 13:20:53 +00:00
Nick Cao
ee404dcc1f Merge pull request #314499 from NixOS/backport-313938-to-release-24.05
[Backport release-24.05] f3d: unbreak on darwin
2024-05-25 09:18:13 -04:00
John Titor
bd99b64f32 lightningcss: 1.25.0 -> 1.25.1
cleanup

(cherry picked from commit 82bc7c5756)
2024-05-25 13:16:07 +00:00
Nick Cao
95006208e0 Merge pull request #314517 from NixOS/backport-314396-to-release-24.05
[Backport release-24.05] sqlfluff: 3.0.6 -> 3.0.7
2024-05-25 09:15:55 -04:00
Nick Cao
80ad008d22 Merge pull request #314519 from NixOS/backport-314394-to-release-24.05
[Backport release-24.05] vunnel: 0.23.0 -> 0.23.2
2024-05-25 09:15:05 -04:00
Nick Cao
9abbbbb674 Merge pull request #314520 from NixOS/backport-314393-to-release-24.05
[Backport release-24.05] trivy: 0.51.2 -> 0.51.4
2024-05-25 09:14:51 -04:00
R. Ryantm
ca7d2eeffd viceroy: 0.9.6 -> 0.9.7
(cherry picked from commit af8d330e9e)
2024-05-25 13:11:56 +00:00
Nick Cao
3a435d16ee Merge pull request #314432 from NixOS/backport-313965-to-release-24.05
[Backport release-24.05] fastfetch: 2.13.1 -> 2.13.2
2024-05-25 09:05:48 -04:00
Nick Cao
7874563e52 Merge pull request #314434 from NixOS/backport-314022-to-release-24.05
[Backport release-24.05] pdm: 2.15.2 -> 2.15.3
2024-05-25 09:05:33 -04:00
Nick Cao
64e9311e23 Merge pull request #314368 from NixOS/backport-314336-to-release-24.05
[Backport release-24.05] warp-terminal: 0.2024.05.14.08.01.stable_04 -> 0.2024.05.21.16.09.stable_02
2024-05-25 08:59:46 -04:00
Nick Cao
2fe67c9a64 Merge pull request #314417 from NixOS/backport-313748-to-release-24.05
[Backport release-24.05] ark-pixel-font: unbreak by suppressing debug logs, and remove extraneous builds
2024-05-25 08:57:27 -04:00
Nick Cao
361923778f Merge pull request #314342 from NixOS/backport-314306-to-release-24.05
[Backport release-24.05] codeberg-cli: fix darwin build
2024-05-25 08:49:16 -04:00
R. Ryantm
fb47060349 bearer: 1.43.5 -> 1.43.6
(cherry picked from commit 45437442ae)
2024-05-25 12:48:30 +00:00
Justinas Stankevicius
404c114982 teleport_13: 13.4.14 -> 13.4.26 2024-05-25 15:38:34 +03:00
Justinas Stankevicius
af3204c874 teleport_14: 14.3.0 -> 14.3.20 2024-05-25 15:38:29 +03:00
Justinas Stankevicius
7aeb0f9839 teleport_15: 15.2.2 -> 15.3.7 2024-05-25 15:38:23 +03:00
paparodeo
01a44ef32e foma: 0.10.0alpha -> 0.10.0alpha-unstable-03-13-2024
- 82f9acdef2...e0d8122bda
- build switched from make to cmake
- fixes darwin

(cherry picked from commit 57a2ace07e)
2024-05-25 12:19:13 +00:00
Bobby Rong
d81fe19156 evolution-ews: 3.52.1 → 3.52.2
https://gitlab.gnome.org/GNOME/evolution-ews/-/compare/3.52.1...3.52.2
(cherry picked from commit 088e0bee0b)
2024-05-25 12:16:59 +00:00
Bobby Rong
fc27b13e9a evolution-data-server: 3.52.1 → 3.52.2
https://gitlab.gnome.org/GNOME/evolution-data-server/-/compare/3.52.1...3.52.2
(cherry picked from commit 2688261096)
2024-05-25 12:16:59 +00:00
Bobby Rong
a7c6a9d1b5 evolution: 3.52.1 → 3.52.2
https://gitlab.gnome.org/GNOME/evolution/-/compare/3.52.1...3.52.2
(cherry picked from commit 628fa7954f)
2024-05-25 12:16:59 +00:00
Markus Kowalewski
6535911d16 Merge pull request #314369 from NixOS/backport-314078-to-release-24.05
[Backport release-24.05] nfs-ganesha: 5.7 -> 5.9
2024-05-25 12:16:38 +00:00
Infinidoge
b02f4c33cb corretto: 11.0.20.9.1 -> 11.0.23.9.1
(cherry picked from commit 9710ec0b8e)
2024-05-25 11:57:14 +00:00
Infinidoge
9699b1ed52 openjfx: 11.0.18+1 -> 11.0.20+1
(cherry picked from commit 6c26092a0e)
2024-05-25 11:57:13 +00:00
Infinidoge
43cd813da4 openjdk: 11.0.19+7 -> 11.0.23+9
(cherry picked from commit fd875d904c)
2024-05-25 11:57:13 +00:00
Andrew Kvalheim
dc24d15990 pdfslicer: work around incompatibility with GCC 13
GCC 13 introduced warning `-Wchanges-meaning`, resulting in build failure:

    /build/source/third-party/range-v3/include/meta/meta.hpp:3165:19: error: declaration of 'template<class Fn> template<class State, class A> using meta::detail::partition_<Fn>::invoke = meta::_t<meta::detail::partition_<Fn>::impl<State, A> >' changes meaning of 'invoke' [8;;https://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html#index-Wchanges-meaning-Wchanges-meaning8;;]
     3165 |             using invoke = _t<impl<State, A>>;
          |                   ^~~~~~
    /build/source/third-party/range-v3/include/meta/meta.hpp:3160:34: note: used here to mean 'using meta::invoke = typename Fn::invoke<A>'
     3160 |                 using type = if_<invoke<Fn, A>, pair<list<Yes..., A>, list<No...>>,
          |                                  ^~~~~~~~~~~~~
    /build/source/third-party/range-v3/include/meta/meta.hpp:541:11: note: declared here
      541 |     using invoke = typename Fn::template invoke<Args...>;
          |           ^~~~~~

Upstream appears to be unmaintained, so for now just disable the warning.

(cherry picked from commit 99f6cff91d)
2024-05-25 11:33:03 +00:00
R. Ryantm
99cddd7c52 telegram-desktop: 5.0.1 -> 5.0.2
(cherry picked from commit 5b47599905)
2024-05-25 11:14:12 +00:00
Nick Cao
4f6c99a39a Merge pull request #314430 from NixOS/backport-314027-to-release-24.05
[Backport release-24.05] element-{desktop,web}: 1.11.66 -> 1.11.67
2024-05-25 07:13:18 -04:00
Jan Tojnar
e888827914 cloudsmith-cli: Fix compatibility with urllib3 2.0
This requires a patch but we cannot really apply those to a wheel,
so I had to switch to fetching the source from GitHub.
As a side benefit, we can now run tests.

(cherry picked from commit bd366372ed)
2024-05-25 11:08:51 +00:00
Jonas Meurer
ad0be8c555 python3Packages.shiboken6: restore backwards compatibility with 6.6
Pyside 6.7.0 (more specific 5d05065b57f5e37c2229ff6a2d98d936c5c7f2bb)
introduced a change which is partly backwards compatible. This patch
allows packages (e.g. Cutter), which depend on the backwards
compatibility, to build again.

(cherry picked from commit 36e236ef49)
2024-05-25 11:05:35 +00:00
Ivan Mincik
ddf4e77f66 python3Packages.owslib: disable all online tests using marker
(cherry picked from commit c72e77b4c0)
2024-05-25 11:00:28 +00:00
R. Ryantm
09ff27e8ca geoserver: 2.25.0 -> 2.25.1
(cherry picked from commit bdac6aac99)
2024-05-25 10:47:45 +00:00
Moraxyc
948ce11c64 python3Packages.graph-tool: broken on darwin
(cherry picked from commit cf4b55fb4a)
2024-05-25 10:46:46 +00:00
Moraxyc
b87a101019 pythonPackages.graph-tool: 2.45 -> 2.65
(cherry picked from commit f56901a097)
2024-05-25 10:46:46 +00:00
Marcus Ramberg
4f6d278e74 Merge pull request #314411 from NixOS/backport-314329-to-release-24.05 2024-05-25 12:45:10 +02:00
OTABI Tomoya
74509481c5 Merge pull request #314419 from NixOS/backport-314307-to-release-24.05
[Backport release-24.05] python311Packages.bambi: mark as broken
2024-05-25 19:39:07 +09:00
Aleksana
bfec08915e Merge pull request #314320 from NixOS/backport-313719-to-release-24.05
[Backport release-24.05] mrtg: add ipv6-required perl packages
2024-05-25 18:30:49 +08:00
Aleksana
e91515372c [Backport release-24.05] perlPackages.FinanceQuote: 1.61 -> 1.62
[Backport release-24.05] perlPackages.FinanceQuote: 1.61 -> 1.62
2024-05-25 18:30:05 +08:00
Fabian Affolter
fafc989107 python312Packages.msoffcrypto-tool: 5.4.0 -> 5.4.1
Diff: https://github.com/nolze/msoffcrypto-tool/compare/refs/tags/v5.4.0...v5.4.1

Changelog: https://github.com/nolze/msoffcrypto-tool/blob/v5.4.1/CHANGELOG.md
(cherry picked from commit e1b5d0d756)
2024-05-25 10:15:30 +00:00
Savyasachee Jha
e55238de2b nixos/firefly-iii: Changes to module and tests
Module has been fixed and now uses the maintenance service to cache
settings so as to not require environment files wherever possible.

The tests now test using mariadb and postgresql as well as sqlite to be
more complete. A test has been added for testing whether app.js has been
compiled successfully, as well as to check whether the cronjob fires
successfully.

(cherry picked from commit eee8b0bff3)
2024-05-25 08:42:10 +00:00
Savyasachee Jha
2c0da29b41 firefly-iii: 6.1.15 -> 6.1.16
(cherry picked from commit 7d516d945d)
2024-05-25 08:42:10 +00:00
Jon Seager
e62719f4d2 Merge pull request #314516 from NixOS/backport-314505-to-release-24.05 2024-05-25 09:34:34 +01:00
Misaka13514
00a911ffac nuclei: 3.2.7 -> 3.2.8
Diff: https://github.com/projectdiscovery/nuclei/compare/v3.2.7...v3.2.8

Changelog: https://github.com/projectdiscovery/nuclei/releases/tag/v3.2.8
(cherry picked from commit 61d8d4619d)
2024-05-25 07:57:20 +00:00
Gutyina Gergő
3b11560d23 rnote: mark as broken on darwin
(cherry picked from commit 3a560bface)
2024-05-25 07:56:37 +00:00
Mihai Fufezan
a12dac416c hyprland: 0.40.0-unstable-2024-05-12 -> 0.40.0-unstable-2024-05-05
(cherry picked from commit 7c60f015be)
2024-05-25 07:13:54 +00:00
Mihai Fufezan
4bf94f8ad8 hyprwayland-scanner: 0.3.8 -> 0.3.4
(cherry picked from commit 7185b47557)
2024-05-25 07:13:54 +00:00
Fabian Affolter
0b35b91d13 trivy: 0.51.2 -> 0.51.4
Diff: https://github.com/aquasecurity/trivy/compare/refs/tags/v0.51.2...v0.51.4

Changelog: https://github.com/aquasecurity/trivy/releases/tag/v0.51.4
(cherry picked from commit a4618e9a78)
2024-05-25 07:02:13 +00:00
Fabian Affolter
f277c9249f vunnel: 0.23.0 -> 0.23.2
Diff: https://github.com/anchore/vunnel/compare/refs/tags/v0.23.0...v0.23.2

Changelog: https://github.com/anchore/vunnel/releases/tag/v0.23.2
(cherry picked from commit 8205e70c89)
2024-05-25 07:01:56 +00:00
Fabian Affolter
e9e8e7aeca sqlfluff: 3.0.6 -> 3.0.7
Diff: https://github.com/sqlfluff/sqlfluff/compare/refs/tags/3.0.6...3.0.7

Changelog: https://github.com/sqlfluff/sqlfluff/blob/3.0.7/CHANGELOG.md
(cherry picked from commit bc960dc252)
2024-05-25 07:01:38 +00:00
Vladimír Čunát
e10170a344 Merge #314514: knot-resolver: add luaPackages.psl
...into release-24.05
2024-05-25 08:47:52 +02:00
Clemens Fruhwirth
095421837e google-chrome: 125.0.6422.76 -> 125.0.6422.112
(cherry picked from commit 57de378343)
2024-05-25 06:47:24 +00:00
Sandro Jäckel
c05f821f65 knot-resolver: add luaPackages.psl
(cherry picked from commit f358fe97ec)
2024-05-25 06:46:54 +00:00
Sandro Jäckel
b4b099c6e9 luaPackages.psl: init at 0.3
(cherry picked from commit 12a5234a61)
2024-05-25 06:46:54 +00:00
K900
101b166756 Merge pull request #314513 from NixOS/backport-314511-to-release-24.05
[Backport release-24.05] KDE Frameworks 6.2.x respins
2024-05-25 09:42:48 +03:00
K900
adf585abee kdePackages.kwidgetsaddons: 6.2.0 -> 6.2.2
(cherry picked from commit 452d4f9e49)
2024-05-25 06:42:10 +00:00
K900
3213e51674 kdePackages.kwallet: 6.2.0 -> 6.2.1
(cherry picked from commit 11ba5d3119)
2024-05-25 06:42:10 +00:00
Aleksana
8b4a540e6b Merge pull request #314269 from NixOS/backport-313685-to-release-24.05
[Backport release-24.05] raycast: 1.74.1 -> 1.75.1
2024-05-25 14:34:00 +08:00
uncenter
1b77b095d1 spicetify-cli: rename bin
(cherry picked from commit 35d05033a8)
2024-05-25 05:19:31 +00:00
Peder Bergebakken Sundt
650b3719f0 f3d: add withManual option, by default disabled on darwin
should fix darwin

(cherry picked from commit dc4209a00a)
2024-05-25 05:15:43 +00:00
Peder Bergebakken Sundt
918d095665 f3d: condition autoPatchelfHook on isElf
should fix darwin

(cherry picked from commit 67d4cea69d)
2024-05-25 05:15:43 +00:00
Aleksana
21f02582dc Merge pull request #313957 from NixOS/backport-312495-to-release-24.05
[Backport release-24.05] hedgedoc: fix executing scripts
2024-05-25 13:08:56 +08:00
Aleksana
a63cfb2fd9 Merge pull request #314201 from NixOS/backport-314041-to-release-24.05
[Backport release-24.05] python312Packages.fastparquet: 2024.2.0 -> 2024.5.0
2024-05-25 13:08:01 +08:00
Aleksana
a9658a8b61 Merge pull request #314207 from NixOS/backport-314146-to-release-24.05
[Backport release-24.05] kubestroyer: 0.2 -> 0.3.0
2024-05-25 13:07:46 +08:00
Aleksana
3a253a1a0d Merge pull request #314184 from NixOS/backport-313623-to-release-24.05
[Backport release-24.05] plattenalbum: 1.11.0 -> 2.1.0; renamed from mpdevil
2024-05-25 13:05:54 +08:00
Aleksana
16a95e83cd Merge pull request #314217 from NixOS/backport-303969-to-release-24.05
[Backport release-24.05] openttd: 13.4 -> 14.1
2024-05-25 13:05:33 +08:00
Aleksana
83aab5e19f Merge pull request #314255 from NixOS/backport-309418-to-release-24.05
[Backport release-24.05] boehmgc: disable tests on aarch64-linux
2024-05-25 13:05:16 +08:00
DataHearth
bdb0208651 insomnia: 8.6.1 -> 9.0.0
(cherry picked from commit aac727eef0)
2024-05-25 05:04:50 +00:00
DataHearth
cdab3c6b89 maintainers: update datahearth fingerprints
(cherry picked from commit be0cfacc2e)
2024-05-25 05:04:50 +00:00
Aleksana
a4b0dd4b08 Merge pull request #314220 from NixOS/backport-312190-to-release-24.05
[Backport release-24.05] rasm: 0.117 -> 2.2.3, change upstream source
2024-05-25 12:41:23 +08:00
Aleksana
26f67da15b Merge pull request #314227 from NixOS/backport-311317-to-release-24.05
[Backport release-24.05] edk2: cross-compilation fix
2024-05-25 12:41:04 +08:00
Bernardo Meurer
c172507685 Merge pull request #314426 from NixOS/backport-309887-to-release-24.05 2024-05-24 21:54:43 -04:00
Emily
a36984dfb2 Merge pull request #314407 from NixOS/backport-314367-to-release-24.05
[Backport release-24.05] ungoogled-chromium: 125.0.6422.76-1 -> 125.0.6422.112-1
2024-05-25 02:56:01 +02:00
Martin Weinelt
987c5aef15 Merge pull request #314435 from NixOS/backport-314375-to-release-24.05
[Backport release-24.05] home-assistant: 2024.5.4 -> 2024.5.5
2024-05-25 02:14:35 +02:00
Martin Weinelt
59cc582cf7 home-assistant: 2024.5.4 -> 2024.5.5
https://github.com/home-assistant/core/releases/tag/2024.5.5
(cherry picked from commit 835e459556)
2024-05-25 00:14:23 +00:00
natsukium
62e3e22a64 pdm: 2.15.2 -> 2.15.3
Changelog: https://github.com/pdm-project/pdm/releases/tag/2.15.3
(cherry picked from commit 7a15b02077)
2024-05-25 00:12:54 +00:00
Sandro Jäckel
0d79ed09a1 fastfetch: 2.13.1 -> 2.13.2
Diff: https://github.com/fastfetch-cli/fastfetch/compare/2.13.1...2.13.2
(cherry picked from commit be3292f22d)
2024-05-25 00:00:01 +00:00
Sandro Jäckel
99ab617332 element-{desktop,web}: 1.11.66 -> 1.11.67
Changelog: https://github.com/element-hq/element-web/releases/tag/v1.11.67
(cherry picked from commit 70a5dd01fe)
2024-05-24 23:53:02 +00:00
Rahul Butani
226df74ffa ncurses: fix linking with lld 17+
Another fix like #309884 for fallout from `lld` 17's
`--no-undefined-version` default + hard error.

For context:
  - 241dbd3105
  - https://reviews.llvm.org/D135402
  - https://github.com/llvm/llvm-project/issues/61208

Error (without this fix):

```console
ncurses> x86_64-unknown-linux-gnu-clang  -Qunused-arguments -Wno-error=implicit-function-declaration  -shared -Wl,--version-script,resulting.map -Wl,-soname,`basename ../lib/libncursesw.so.6.4 .6.4`.6,-stats,-lc -o ../lib/libncursesw.so.6.4 ../obj_s/hardscroll.o ../obj_s/hashmap.o ../obj_s/lib_addch.o ../obj_s/lib_addstr.o ../obj_s/lib_beep.o ../obj_s/lib_bkgd.o ../obj_s/lib_box.o ../obj_s/lib_chgat.o ../obj_s/lib_clear.o ../obj_s/lib_clearok.o ../obj_s/lib_clrbot.o ../obj_s/lib_clreol.o ../obj_s/lib_color.o ../obj_s/lib_colorset.o ../obj_s/lib_delch.o ../obj_s/lib_delwin.o ../obj_s/lib_echo.o ../obj_s/lib_endwin.o ../obj_s/lib_erase.o ../obj_s/lib_flash.o ../obj_s/lib_gen.o ../obj_s/lib_getch.o ../obj_s/lib_getstr.o ../obj_s/lib_hline.o ../obj_s/lib_immedok.o ../obj_s/lib_inchstr.o ../obj_s/lib_initscr.o ../obj_s/lib_insch.o ../obj_s/lib_insdel.o ../obj_s/lib_insnstr.o ../obj_s/lib_instr.o ../obj_s/lib_isendwin.o ../obj_s/lib_leaveok.o ../obj_s/lib_mouse.o ../obj_s/lib_move.o ../obj_s/lib_mvcur.o ../obj_s/lib_mvwin.o ../obj_s/lib_newterm.o ../obj_s/lib_newwin.o ../obj_s/lib_nl.o ../obj_s/lib_overlay.o ../obj_s/lib_pad.o ../obj_s/lib_printw.o ../obj_s/lib_redrawln.o ../obj_s/lib_refresh.o ../obj_s/lib_restart.o ../obj_s/lib_scanw.o ../obj_s/lib_screen.o ../obj_s/lib_scroll.o ../obj_s/lib_scrollok.o ../obj_s/lib_scrreg.o ../obj_s/lib_set_term.o ../obj_s/lib_slk.o ../obj_s/lib_slkatr_set.o ../obj_s/lib_slkatrof.o ../obj_s/lib_slkatron.o ../obj_s/lib_slkatrset.o ../obj_s/lib_slkattr.o ../obj_s/lib_slkclear.o ../obj_s/lib_slkcolor.o ../obj_s/lib_slkinit.o ../obj_s/lib_slklab.o ../obj_s/lib_slkrefr.o ../obj_s/lib_slkset.o ../obj_s/lib_slktouch.o ../obj_s/lib_touch.o ../obj_s/lib_tstp.o ../obj_s/lib_ungetch.o ../obj_s/lib_vidattr.o ../obj_s/lib_vline.o ../obj_s/lib_wattroff.o ../obj_s/lib_wattron.o ../obj_s/lib_winch.o ../obj_s/lib_window.o ../obj_s/nc_panel.o ../obj_s/safe_sprintf.o ../obj_s/tty_update.o ../obj_s/varargs.o ../obj_s/vsscanf.o ../obj_s/lib_freeall.o ../obj_s/charable.o ../obj_s/lib_add_wch.o ../obj_s/lib_box_set.o ../obj_s/lib_cchar.o ../obj_s/lib_erasewchar.o ../obj_s/lib_get_wch.o ../obj_s/lib_get_wstr.o ../obj_s/lib_hline_set.o ../obj_s/lib_in_wch.o ../obj_s/lib_in_wchnstr.o ../obj_s/lib_ins_wch.o ../obj_s/lib_inwstr.o ../obj_s/lib_key_name.o ../obj_s/lib_pecho_wchar.o ../obj_s/lib_slk_wset.o ../obj_s/lib_unget_wch.o ../obj_s/lib_vid_attr.o ../obj_s/lib_vline_set.o ../obj_s/lib_wacs.o ../obj_s/lib_wunctrl.o ../obj_s/expanded.o ../obj_s/legacy_coding.o ../obj_s/lib_dft_fgbg.o ../obj_s/lib_print.o ../obj_s/new_pair.o ../obj_s/resizeterm.o ../obj_s/use_screen.o ../obj_s/use_window.o ../obj_s/wresize.o ../obj_s/access.o ../obj_s/add_tries.o ../obj_s/alloc_ttype.o ../obj_s/codes.o ../obj_s/comp_captab.o ../obj_s/comp_error.o ../obj_s/comp_hash.o ../obj_s/comp_userdefs.o ../obj_s/db_iterator.o ../obj_s/doalloc.o ../obj_s/entries.o ../obj_s/fallback.o ../obj_s/free_ttype.o ../obj_s/getenv_num.o ../obj_s/home_terminfo.o ../obj_s/init_keytry.o ../obj_s/lib_acs.o ../obj_s/lib_baudrate.o ../obj_s/lib_cur_term.o ../obj_s/lib_data.o ../obj_s/lib_has_cap.o ../obj_s/lib_kernel.o ../obj_s/lib_keyname.o ../obj_s/lib_longname.o ../obj_s/lib_napms.o ../obj_s/lib_options.o ../obj_s/lib_raw.o ../obj_s/lib_setup.o ../obj_s/lib_termcap.o ../obj_s/lib_termname.o ../obj_s/lib_tgoto.o ../obj_s/lib_ti.o ../obj_s/lib_tparm.o ../obj_s/lib_tputs.o ../obj_s/lib_trace.o ../obj_s/lib_ttyflags.o ../obj_s/lib_twait.o ../obj_s/name_match.o ../obj_s/names.o ../obj_s/obsolete.o ../obj_s/read_entry.o ../obj_s/read_termcap.o ../obj_s/strings.o ../obj_s/tries.o ../obj_s/trim_sgr0.o ../obj_s/unctrl.o ../obj_s/visbuf.o ../obj_s/alloc_entry.o ../obj_s/captoinfo.o ../obj_s/comp_expand.o ../obj_s/comp_parse.o ../obj_s/comp_scan.o ../obj_s/parse_entry.o ../obj_s/write_entry.o ../obj_s/define_key.o ../obj_s/hashed_db.o ../obj_s/key_defined.o ../obj_s/keybound.o ../obj_s/keyok.o ../obj_s/version.o -L../lib
ncurses> x86_64-unknown-linux-gnu-ld: error: version script assignment of 'NCURSES6_TIC_5.0.19991023' to symbol '_nc_check_termtype' failed: symbol not defined
ncurses> x86_64-unknown-linux-gnu-ld: error: version script assignment of 'NCURSES6_TIC_5.0.19991023' to symbol '_nc_resolve_uses' failed: symbol not defined
ncurses> x86_64-unknown-linux-gnu-ld: error: version script assignment of 'NCURSES6_TIC_5.5.20051010' to symbol '_nc_alloc_entry_leaks' failed: symbol not defined
ncurses> x86_64-unknown-linux-gnu-ld: error: version script assignment of 'NCURSES6_TIC_5.5.20051010' to symbol '_nc_captoinfo_leaks' failed: symbol not defined
ncurses> x86_64-unknown-linux-gnu-ld: error: version script assignment of 'NCURSES6_TIC_5.5.20051010' to symbol '_nc_comp_scan_leaks' failed: symbol not defined
ncurses> x86_64-unknown-linux-gnu-ld: error: version script assignment of 'NCURSES6_TIC_5.7.20081102' to symbol '_nc_free_tic' failed: symbol not defined
ncurses> x86_64-unknown-linux-gnu-ld: error: version script assignment of 'local' to symbol '_nc_comp_captab_leaks' failed: symbol not defined
ncurses> x86_64-unknown-linux-gnu-ld: error: version script assignment of 'local' to symbol '_nc_leaks_tic' failed: symbol not defined
ncurses> x86_64-unknown-linux-gnu-ld: error: version script assignment of 'NCURSES6_TINFO_5.0.19991023' to symbol '_nc_info_hash_table' failed: symbol not defined
ncurses> x86_64-unknown-linux-gnu-ld: error: version script assignment of 'NCURSES6_TINFO_5.0.19991023' to symbol '_nc_trace_buf' failed: symbol not defined
ncurses> x86_64-unknown-linux-gnu-ld: error: version script assignment of 'NCURSES6_TINFO_5.0.19991023' to symbol '_tracechar' failed: symbol not defined
ncurses> x86_64-unknown-linux-gnu-ld: error: version script assignment of 'NCURSES6_TINFO_5.0.19991023' to symbol 'trace' failed: symbol not defined
ncurses> x86_64-unknown-linux-gnu-ld: error: version script assignment of 'local' to symbol '_nc_cap_hash_table' failed: symbol not defined
ncurses> x86_64-unknown-linux-gnu-ld: error: version script assignment of 'local' to symbol '_nc_capalias_table' failed: symbol not defined
ncurses> x86_64-unknown-linux-gnu-ld: error: version script assignment of 'local' to symbol '_nc_infoalias_table' failed: symbol not defined
ncurses> x86_64-unknown-linux-gnu-ld: error: version script assignment of 'local' to symbol '_nc_key_names' failed: symbol not defined
ncurses> x86_64-unknown-linux-gnu-ld: error: version script assignment of 'local' to symbol '_nc_read_termcap_entry' failed: symbol not defined
ncurses> x86_64-unknown-linux-gnu-ld: error: version script assignment of 'local' to symbol '_nc_trace_tries' failed: symbol not defined
ncurses> x86_64-unknown-linux-gnu-ld: error: version script assignment of 'local' to symbol '_nc_tracebits' failed: symbol not defined
ncurses> x86_64-unknown-linux-gnu-ld: error: version script assignment of 'NCURSES6_TINFO_5.1.20000708' to symbol '_nc_utf8_outch' failed: symbol not defined
ncurses> x86_64-unknown-linux-gnu-ld: error: too many errors emitted, stopping now (use --error-limit=0 to see all errors)
```

Co-authored-by: Bernardo Meurer <bernardo@meurer.org>
(cherry picked from commit 6080bfb6cb)
2024-05-24 23:46:19 +00:00
Robert Scott
913611aa46 Merge pull request #314388 from NixOS/backport-314352-to-release-24.05
[Backport release-24.05] lemmy-server: fix darwin build
2024-05-25 00:08:38 +01:00
Gaetan Lepage
f1735c9e7b python311Packages.bambi: mark as broken
(cherry picked from commit 02f2a4b372)
2024-05-24 22:51:59 +00:00
Leah Amelia Chen
35aa5e7bf8 ark-pixel-font: unbreak by suppressing debug logs, and remove extraneous builds
For some reason build.py builds a lot of stuff that is completely
unrelated to the fonts themselves. Let's remove that!

Also the script is generating so much debug output that Hydra refuses to
evaluate the package — my fix is to pipe the output through grep to
filter out any log message below INFO, but I wish the script has a
built-in way to set the log level so that I don't have to do this hack

(cherry picked from commit aa7ba46ebb)
2024-05-24 22:43:50 +00:00
a-kenji
1663add616 gh-dash: 3.14.0 -> 4.0.0
(cherry picked from commit e597be5687)
2024-05-24 22:26:17 +00:00
networkException
82d8ec34d5 ungoogled-chromium: 125.0.6422.76-1 -> 125.0.6422.112-1
https://chromereleases.googleblog.com/2024/05/stable-channel-update-for-desktop_23.html

This update includes 1 security fix. Google is aware that an exploit for
CVE-2024-5274 exists in the wild.

CVEs:
CVE-2024-5274

(cherry picked from commit 8d5bbaab45)
2024-05-24 22:07:35 +00:00
Robert Scott
03309929e1 Merge pull request #314373 from NixOS/backport-314282-to-release-24.05
[Backport release-24.05] python3Packages.tokenlib: 0.3.1 -> 2.0.0
2024-05-24 22:36:47 +01:00
github-actions[bot]
f651e7d4d8 [Backport release-24.05] nixos/frigate: drop BindPaths from systemd service (#314325)
* frigate: drop BindPaths from systemd service

Migrations have been working well even with misconfigured BindPaths => removing

(cherry picked from commit f45e2f7604)
2024-05-24 23:11:22 +02:00
Olivér Falvai
15f3844c0c lemmy-server: fix darwin build
(cherry picked from commit 0fc86c4a7a)
2024-05-24 21:08:48 +00:00
Moraxyc
5ea7c6dce5 python3Packages.tokenlib: 0.3.1 -> 2.0.0
(cherry picked from commit ccd107e02d)
2024-05-24 20:31:16 +00:00
Markus Kowalewski
9598492fa1 nfs-ganesha: 5.7 -> 5.9
(cherry picked from commit 78eff3ce1a)
2024-05-24 20:25:14 +00:00
Markus Kowalewski
bd578db421 ntirpc: 5.0 -> 5.8
(cherry picked from commit c9022ee263)
2024-05-24 20:25:13 +00:00
R. Ryantm
747a6dcbf5 warp-terminal: 0.2024.05.14.08.01.stable_04 -> 0.2024.05.21.16.09.stable_02
(cherry picked from commit 30fc5f18f4)
2024-05-24 20:22:43 +00:00
Emily
97abf11bba Merge pull request #314277 from NixOS/backport-314144-to-release-24.05
[Backport release-24.05] chromedriver,chromium: 125.0.6422.76 -> 125.0.6422.112
2024-05-24 20:52:29 +02:00
Olivér Falvai
f6e7ee7a93 codeberg-cli: fix darwin build
(cherry picked from commit 2198797b30)
2024-05-24 18:01:04 +00:00
Nick Cao
de03ca596f Merge pull request #314317 from NixOS/backport-314012-to-release-24.05
[Backport release-24.05] goimports-reviser: 3.6.4 -> 3.6.5
2024-05-24 13:25:59 -04:00
Marcel
64e0388bc2 mrtg: add ipv6-required perl packages
(cherry picked from commit c95f967105)
2024-05-24 16:02:59 +00:00
R. Ryantm
000d2fae43 goimports-reviser: 3.6.4 -> 3.6.5
(cherry picked from commit c48dd1b43a)
2024-05-24 15:43:11 +00:00
Aleksana
5f4f61d976 [Backport release-24.05] rexml: 3.2.6 -> 3.2.8 (#314064)
[Backport release-24.05] rexml: 3.2.6 -> 3.2.8
2024-05-24 23:05:00 +08:00
Maciej Krüger
f97b5c6d30 Merge pull request #314297 from NixOS/backport-314262-to-release-24.05
[Backport release-24.05] dbeaver-bin: fix aarch64 build, add update script
2024-05-24 16:30:41 +02:00
Gutyina Gergő
56a4f9ffc4 dbeaver-bin: fix aarch64 hash mismatch
(cherry picked from commit 237485a9db)
2024-05-24 14:21:08 +00:00
Gutyina Gergő
d143ed989a dbeaver-bin: add update script
(cherry picked from commit 07fd54a4a2)
2024-05-24 14:21:07 +00:00
Yongun Seong
f9302fb19d perlPackages.FinanceQuote: 1.61 -> 1.62
(cherry picked from commit c0dfedf8b4)
2024-05-24 13:10:53 +00:00
Nick Cao
18d5bee0a9 Merge pull request #314202 from NixOS/backport-314073-to-release-24.05
[Backport release-24.05] lse: init at 4.14nw
2024-05-24 09:10:35 -04:00
Nick Cao
b6e2d5e43a Merge pull request #314203 from NixOS/backport-314044-to-release-24.05
[Backport release-24.05] nuclei-templates: 9.8.6 -> 9.8.7
2024-05-24 09:10:20 -04:00
Nick Cao
0c4a1ac485 Merge pull request #314204 from NixOS/backport-311820-to-release-24.05
[Backport release-24.05] imagemagick: fix passthru.tests.pkg-config
2024-05-24 09:10:13 -04:00
Nick Cao
2be299f549 Merge pull request #314206 from NixOS/backport-314026-to-release-24.05
[Backport release-24.05] yaralyzer: 0.9.3 -> 0.9.4
2024-05-24 09:09:52 -04:00
Nick Cao
9c69d0f109 Merge pull request #314209 from NixOS/backport-312250-to-release-24.05
[Backport release-24.05] ablog: move to by-name, fix build and update
2024-05-24 09:09:38 -04:00
Ben Siraphob
01ee9535d4 Merge pull request #314205 from NixOS/backport-313894-to-release-24.05
[Backport release-24.05] s9fes: fix build on darwin
2024-05-24 20:04:53 +07:00
Nick Cao
6aab26af23 Merge pull request #314105 from NixOS/backport-313474-to-release-24.05
[Backport release-24.05] python312Packages.webssh: fix test case
2024-05-24 08:56:16 -04:00
Nick Cao
cc432a168e Merge pull request #314110 from NixOS/backport-313729-to-release-24.05
[Backport release-24.05] gobang: unbreak, modernize
2024-05-24 08:55:31 -04:00
Nick Cao
15dec6c8d1 Merge pull request #314048 from NixOS/backport-314039-to-release-24.05
[Backport release-24.05] govulncheck: 1.1.0 -> 1.1.1
2024-05-24 08:51:17 -04:00
emilylange
12897f9484 chromium: 125.0.6422.76 -> 125.0.6422.112
https://chromereleases.googleblog.com/2024/05/stable-channel-update-for-desktop_23.html

This update includes 1 security fix. Google is aware that an exploit for
CVE-2024-5274 exists in the wild.

CVEs:
CVE-2024-5274

(cherry picked from commit fc37fd1ae2)
2024-05-24 12:37:23 +00:00
emilylange
41dab08042 chromedriver: 125.0.6422.76 -> 125.0.6422.112
(cherry picked from commit 42ddc8213f)
2024-05-24 12:37:23 +00:00
Jonas Heinrich
9ad334d85d Merge pull request #314265 from NixOS/backport-313958-to-release-24.05
[Backport release-24.05] wordpressPackages.themes.proton: init at 1.0.1
2024-05-24 14:17:50 +02:00
DontEatOreo
38ce655e24 raycast: 1.74.1 -> 1.75.1
(cherry picked from commit 8e26ccbdb4)
2024-05-24 12:07:11 +00:00
DontEatOreo
4abd2a83ab raycast: format with nixfmt-rfc-style
(cherry picked from commit 1ba6d73dfd)
2024-05-24 12:07:11 +00:00
DontEatOreo
ab27532775 raycast: refactor license in meta
(cherry picked from commit a4a7de5eda)
2024-05-24 12:07:11 +00:00
DontEatOreo
8a44b62817 raycast: sort meta
(cherry picked from commit 6a1d6150b9)
2024-05-24 12:07:11 +00:00
DontEatOreo
6d707deddb raycast: remove with lib; from meta
(cherry picked from commit 4ac7983d2c)
2024-05-24 12:07:10 +00:00
Jonas Heinrich
9043a9df41 wordpressPackages.themes.proton: init at 1.0.1
(cherry picked from commit ef13f279d1)
2024-05-24 11:41:56 +00:00
ckie
7ec944d290 boehmgc: disable tests on aarch64-linux
double whammy!

(cherry picked from commit 14c3b26610)
2024-05-24 10:54:26 +00:00
Martin Weinelt
d12251ef6e Merge pull request #314229 from NixOS/backport-294274-to-release-24.05
[Backport release-24.05] python311Packages.weatherflow4py: init at 0.2.20
2024-05-24 11:25:32 +02:00
Fabian Affolter
1481f5b59b home-assistant: update component-packages
(cherry picked from commit a6340441a8)
2024-05-24 08:46:32 +00:00
Fabian Affolter
0ba44b389f python311Packages.weatherflow4py: init at 0.2.20
Module to interact with the WeatherFlow REST API

https://github.com/jeeftor/weatherflow4py
(cherry picked from commit 477f540b11)
2024-05-24 08:46:31 +00:00
Jörg Thalheim
cf8a414d2b edk2: fix cross-compilation by using an upstream patch
(cherry picked from commit 7e2c76bb84)
2024-05-24 08:38:47 +00:00
Jörg Thalheim
e9a44efc95 edk2: use patchShebangs for fixing up shell wrappers
(cherry picked from commit 474fe1a905)
2024-05-24 08:38:47 +00:00
Alexander V. Nikolaev
486d5c8558 edk2: Fix OVMF cross compilation
(cherry picked from commit da5ec6b0c3)
2024-05-24 08:38:47 +00:00
Alexander V. Nikolaev
b22f573197 edk2: building of antlr and dlg should be built with native architecture.
They should be built with native architecture

(cherry picked from commit 560957bae1)
2024-05-24 08:38:47 +00:00
Aleksana
3a90e87c0b Merge pull request #313960 from NixOS/backport-313096-to-release-24.05
[Backport release-24.05] nixos/tests/stalwart-mail: Add test for server version >= 0.7
2024-05-24 16:16:55 +08:00
Sigmanificient
ea6f9766de rasm: migrate to by-name
(cherry picked from commit a1c8fe355c)
2024-05-24 08:15:25 +00:00
Sigmanificient
84cbb6059e rasm: 0.117 -> 2.2.3, change upstream source
(cherry picked from commit 8dc6448187)
2024-05-24 08:15:25 +00:00
Weijia Wang
cefd03fa0c Merge pull request #314199 from NixOS/backport-313676-to-release-24.05
[Backport release-24.05] share-preview: init at 0.5.0
2024-05-24 10:07:47 +02:00
K900
64782199db Merge pull request #314218 from NixOS/backport-307766-to-release-24.05
[Backport release-24.05] nixos/oauth2_proxy_nginx: fix proxy_set_header
2024-05-24 10:54:24 +03:00
Sandro Jäckel
29be0e61f3 nixos/oauth2_proxy_nginx: fix proxy_set_header
(cherry picked from commit f221b4f5f5)
2024-05-24 07:48:32 +00:00
DamitusThyYeetus123
d9b49b1747 openttd: 14.0 -> 14.1
(cherry picked from commit 09864485c5)
2024-05-24 07:46:59 +00:00
DamitusThyYeetus123
93bb428f31 openttd: 13.4 -> 14.0
openttd: switch fetchurl to fetchzip

openttd: remove fetchurl from input args
(cherry picked from commit f81ed653e1)
2024-05-24 07:46:59 +00:00
Aleksana
716176466b Merge pull request #314174 from NixOS/backport-314001-to-release-24.05
[Backport release-24.05] coqPackages.graph-theory: 0.9.3 → 0.9.4
2024-05-24 15:43:46 +08:00
Aleksana
737efe68d7 Merge pull request #314189 from NixOS/backport-291853-to-release-24.05
[Backport release-24.05] grafanaPlugins.grafana-oncall-app: init at 1.5.1
2024-05-24 15:43:26 +08:00
Aleksana
2b3dcb873c Merge pull request #314198 from NixOS/backport-314024-to-release-24.05
[Backport release-24.05] python3Packages.scikits-samplerate: remove
2024-05-24 15:43:03 +08:00
Aleksana
fa8069ba7d Merge pull request #313961 from NixOS/backport-312723-to-release-24.05
[Backport release-24.05] nitrokey-app2: 2.2.2 -> 2.3.0, unpin pynitrokey
2024-05-24 15:15:27 +08:00
lucasew
ffb350f8dc ablog: 0.11.8 -> 0.11.10
Signed-off-by: lucasew <lucas59356@gmail.com>
(cherry picked from commit 1e1685f116)
2024-05-24 07:12:39 +00:00
lucasew
a598d2d150 ablog: move to by-name, fix build
Signed-off-by: lucasew <lucas59356@gmail.com>
(cherry picked from commit 4d6e011773)
2024-05-24 07:12:39 +00:00
R. Ryantm
d3f69706a4 kubestroyer: 0.2 -> 0.3.0
(cherry picked from commit ca514fead1)
2024-05-24 07:08:21 +00:00
Fabian Affolter
f0f1b3eec8 Merge pull request #314077 from NixOS/backport-313909-to-release-24.05
[Backport release-24.05] python312Packages.aioquic: 0.9.25 -> 1.0.0
2024-05-24 09:06:55 +02:00
Martin Joerg
9b8bd6b72e yaralyzer: 0.9.3 -> 0.9.4
https://github.com/michelcrypt4d4mus/yaralyzer/blob/v0.9.4/CHANGELOG.md
https://github.com/michelcrypt4d4mus/yaralyzer/compare/v0.9.3...v0.9.4
(cherry picked from commit d5a6ef09a8)
2024-05-24 07:06:22 +00:00
Ben Siraphob
5cb6818960 s9fes: fix build on darwin
(cherry picked from commit cbcb982a1d)
2024-05-24 07:03:47 +00:00
Robert Schütz
bb7972a340 imagemagick: fix passthru.tests.pkg-config
The version suffix starting with "-" is not present in the pkg-config
file.

(cherry picked from commit 7f301eab1b)
2024-05-24 07:02:37 +00:00
R. Ryantm
fa72b9074e nuclei-templates: 9.8.6 -> 9.8.7
(cherry picked from commit 14fdf50a3c)
2024-05-24 07:01:30 +00:00
Fabian Affolter
9075e154ad lse: init at 4.14nw
Linux enumeration tool with verbosity levels

https://github.com/diego-treitos/linux-smart-enumeration
(cherry picked from commit 42d21c6147)
2024-05-24 06:59:58 +00:00
Fabian Affolter
954c399398 python312Packages.intake-parquet: remove vendorized versioneer.py
(cherry picked from commit 576acc7331)
2024-05-24 06:59:24 +00:00
Fabian Affolter
95f30a8834 python312Packages.fastparquet: 2024.2.0 -> 2024.5.0
Diff: https://github.com/dask/fastparquet/compare/refs/tags/2024.2.0...2024.5.0

Changelog: https://github.com/dask/fastparquet/blob/2024.5.0/docs/source/releasenotes.rst
(cherry picked from commit 5799862064)
2024-05-24 06:59:24 +00:00
Fabian Affolter
cb0e3947ca Merge pull request #314076 from NixOS/backport-313944-to-release-24.05
[Backport release-24.05] python312Packages.aiosasl: fix broken tests on Python 3.12
2024-05-24 08:57:21 +02:00
Weijia Wang
109dff3b44 share-preview: fix build on darwin
(cherry picked from commit bc26aacc97)
2024-05-24 06:49:23 +00:00
aleksana
c00fe4bb53 share-preview: init at 0.5.0
(cherry picked from commit 7d2316c7c8)
2024-05-24 06:49:23 +00:00
Moraxyc
715b0459f1 python3Packages.scikits-samplerate: remove
(cherry picked from commit cb8e62b899)
2024-05-24 06:45:21 +00:00
Aleksana
6082554de3 Merge pull request #314056 from NixOS/backport-307499-to-release-24.05
[Backport release-24.05] nixos/bitwarden-directory-connector-cli: add dependsOn network-online…
2024-05-24 14:37:36 +08:00
Aleksana
755ea87a94 Merge pull request #313976 from NixOS/backport-312497-to-release-24.05
[Backport release-24.05] python311Packages.python-ironicclient: fix dependencies after #310075
2024-05-24 14:37:17 +08:00
Aleksana
a5692ca5f3 Merge pull request #314124 from NixOS/backport-314099-to-release-24.05
[Backport release-24.05] nixos/snapper, nixos/borgbackup: Fix module doc typo
2024-05-24 14:37:02 +08:00
Aleksana
44574bde54 Merge pull request #313953 from NixOS/backport-313656-to-release-24.05
[Backport release-24.05] castxml: fix build on darwin
2024-05-24 14:34:08 +08:00
Greaka
81366e6c91 grafanaPlugins.grafana-oncall-app: init at 1.5.1
(cherry picked from commit 254dbdcc62)
2024-05-24 05:25:16 +00:00
Greaka
21c744b445 maintainers/team-list: add fslabs
(cherry picked from commit 0e5f44658e)
2024-05-24 05:25:16 +00:00
Greaka
8ab3d77d28 maintainers: add lpostula
(cherry picked from commit 8d6f8c9ed7)
2024-05-24 05:25:16 +00:00
Greaka
b847f3078a maintainers: add greaka
(cherry picked from commit 7bda925dac)
2024-05-24 05:25:16 +00:00
aleksana
3a4df78f4a plattenalbum: 1.11.0 -> 2.1.0; renamed from mpdevil
(cherry picked from commit 457fb33869)
2024-05-24 05:01:30 +00:00
Vincent Laporte
09f3028054 coqPackages.graph-theory: 0.9.3 → 0.9.4
(cherry picked from commit 9e274ea2cd)
2024-05-24 04:10:19 +00:00
OTABI Tomoya
f9b3e1d917 Merge pull request #314023 from NixOS/backport-313303-to-release-24.05
[Backport release-24.05] python311Packages.amazon-kclpy: mark as broken
2024-05-24 12:06:24 +09:00
Emily
5581031cba Merge pull request #314131 from NixOS/backport-314109-to-release-24.05
[Backport release-24.05] githooks.tests: fix eval
2024-05-24 03:13:18 +02:00
Nick Cao
5f72890a1a Merge pull request #314049 from NixOS/backport-313875-to-release-24.05
[Backport release-24.05] swego: 1.0 -> 1.1
2024-05-23 20:47:51 -04:00
Sergei Trofimovich
277c62dc58 githooks.tests: fix eval
Without the change the eval fails as:

    $ nix build --no-link -f. githooks.tests
    error:
           … while evaluating the 'name' attribute of a derivation

           … while evaluating a branch condition
             at lib/strings.nix:1194:3:
             1193|   # First detect the common case of already valid strings, to speed those up
             1194|   if stringLength string <= 207 && okRegex string != null
                 |   ^
             1195|   then unsafeDiscardStringContext string

           … in the left operand of the AND (&&) operator
             at lib/strings.nix:1194:33:
             1193|   # First detect the common case of already valid strings, to speed those up
             1194|   if stringLength string <= 207 && okRegex string != null
                 |                                 ^
             1195|   then unsafeDiscardStringContext string

           (stack trace truncated; use '--show-trace' to show the full, detailed trace)

           error: expected a set but found a string: "githooks-cli"

(cherry picked from commit 44744fc83f)
2024-05-24 00:06:30 +00:00
Matt Kline
6f85ce210b nixos/snapper, nixos/borgbackup: Fix module doc typo
The persistentTimer argument sets the _Persistent_ field in
systemd.timer(5).

Pointed out in #312549

(cherry picked from commit 234f4db797)
2024-05-23 23:15:48 +00:00
Nick Cao
c39b5a177c Merge pull request #314070 from NixOS/backport-314038-to-release-24.05
[Backport release-24.05] nixos/hydra: fix typo in hydra init script
2024-05-23 18:12:04 -04:00
Leona Maroni
bc089ca18a Merge pull request #314098 from NixOS/backport-314036-to-release-24.05
[Backport release-24.05] stalwart-mail: 0.8.0 -> 0.8.1
2024-05-24 00:03:41 +02:00
Leah Amelia Chen
0995bee381 gobang: unbreak, modernize
(cherry picked from commit a1090bebdc)
2024-05-23 22:02:34 +00:00
Jan van Esdonk
4f9fdc6b9d python312Packages.webssh: fix test case
(cherry picked from commit 78ef0a386e)
2024-05-23 21:44:09 +00:00
Robert Scott
12f830e496 Merge pull request #314088 from NixOS/backport-313856-to-release-24.05
[Backport release-24.05] python312Packages.ds4drv: fix build
2024-05-23 22:42:46 +01:00
Lin Jian
5fc645efae Merge pull request #314057 from NixOS/backport-313822-to-release-24.05
[Backport release-24.05] nixos/kanata: add a configFile option
2024-05-24 05:28:22 +08:00
Jonas Heinrich
c5a8c98598 stalwart-mail: 0.8.0 -> 0.8.1
(cherry picked from commit 72d5d19b57)
2024-05-23 21:12:33 +00:00
Robert Scott
93301b0b31 Merge pull request #314084 from NixOS/backport-313855-to-release-24.05
[Backport release-24.05] python312Packages.datashape: fix
2024-05-23 21:47:26 +01:00
Moraxyc
71e680a250 python312Packages.ds4drv: fix build
(cherry picked from commit e8553da1b1)
2024-05-23 20:27:24 +00:00
kirillrdy
5ebb852e0d Merge pull request #313899 from NixOS/backport-312426-to-release-24.05
[Backport release-24.05] stackql: init at 0.5.643
2024-05-24 06:24:53 +10:00
Moraxyc
e0d198225d python312Packages.datashape: fix build
(cherry picked from commit 7721a54cc1)
2024-05-23 20:20:59 +00:00
Fabian Affolter
2751c362e3 python312Packages.strawberry-graphql: 0.219.2 -> 0.230.0
Diff: https://github.com/strawberry-graphql/strawberry/compare/refs/tags/0.219.2...0.230.0

Changelog: https://github.com/strawberry-graphql/strawberry/blob/0.230.0/CHANGELOG.md
(cherry picked from commit 15a381be44)
2024-05-23 19:45:55 +00:00
Fabian Affolter
b4c2e9e329 python312Packages.strawberry-graphql: refactor
(cherry picked from commit e05e1737b3)
2024-05-23 19:45:55 +00:00
Fabian Affolter
95cbd461c6 wapiti: format with nixfmt
(cherry picked from commit aa7a7a91ed)
2024-05-23 19:45:55 +00:00
Fabian Affolter
21b06c04d3 wapiti: refactor
(cherry picked from commit 6abca390a1)
2024-05-23 19:45:55 +00:00
Fabian Affolter
90791b1d9b python312Packages.aiocache: disable performance tests
(cherry picked from commit 3107278806)
2024-05-23 19:45:55 +00:00
Fabian Affolter
1258ede199 dyndnsc: format with nixfmt
(cherry picked from commit a3b6962889)
2024-05-23 19:45:55 +00:00
Fabian Affolter
cd679902b2 dyndnsc: refactor
(cherry picked from commit ed907ddac8)
2024-05-23 19:45:55 +00:00
Fabian Affolter
a63e3cdac2 python312Packages.aioquic: 0.9.25 -> 1.0.0
(cherry picked from commit 1349027dbc)
2024-05-23 19:45:55 +00:00
Fabian Affolter
3054c6c492 Merge pull request #314072 from NixOS/backport-313947-to-release-24.05
[Backport release-24.05] metasploit: 6.4.9 -> 6.4.10
2024-05-23 21:44:04 +02:00
Fabian Affolter
72e74d62f7 python312Packages.aioxmpp: disable failing tests on Python 3.12
Upstream is archived

(cherry picked from commit 79cba4fa19)
2024-05-23 19:43:24 +00:00
Fabian Affolter
b0b8c61ee8 python311Packages.aioxmpp: refactor
(cherry picked from commit c4bfea54ca)
2024-05-23 19:43:24 +00:00
Fabian Affolter
cc8b4c4f28 python312Packages.aiosasl: fix broken tests on Python 3.12
https://github.com/horazont/aiosasl/issues/28
(cherry picked from commit f1dfd96632)
2024-05-23 19:43:24 +00:00
Fabian Affolter
618c5be39f Merge pull request #314075 from NixOS/backport-314008-to-release-24.05
[Backport release-24.05] python312Packages.faraday-agent-parameters-types: 1.5.1 -> 1.6.0, python312Packages.faraday-plugins: 1.17.0 -> 1.18.0
2024-05-23 21:43:22 +02:00
Fabian Affolter
54774dbef0 python312Packages.faraday-plugins: refactor
(cherry picked from commit 1c64a2fb11)
2024-05-23 19:42:23 +00:00
Fabian Affolter
e068e355eb python312Packages.faraday-plugins: 1.17.0 -> 1.18.0
Diff: https://github.com/infobyte/faraday_plugins/compare/refs/tags/1.17.0...1.18.0

Changelog: https://github.com/infobyte/faraday_plugins/releases/tag/1.18.0
(cherry picked from commit 2864759231)
2024-05-23 19:42:23 +00:00
Fabian Affolter
7b9798346d python312Packages.faraday-agent-parameters-types: refactor
(cherry picked from commit f3b254dae2)
2024-05-23 19:42:23 +00:00
Fabian Affolter
9630582ae3 python312Packages.faraday-agent-parameters-types: 1.5.1 -> 1.6.0
Changelog: https://github.com/infobyte/faraday_agent_parameters_types/blob/1.6.0/CHANGELOG.md
(cherry picked from commit cd71793bb2)
2024-05-23 19:42:23 +00:00
Fabian Affolter
40c4890eae metasploit: 6.4.9 -> 6.4.10
(cherry picked from commit 7c2e833237)
2024-05-23 19:38:56 +00:00
Jon Seager
a459b32b86 Merge pull request #314069 from NixOS/backport-314033-to-release-24.05
[Backport release-24.05] google-chrome: 125.0.6422.60 -> 125.0.6422.76
2024-05-23 20:34:27 +01:00
Robin Appelman
d31a12dcc8 nixos/hydra: fix typo in hydra init script
(cherry picked from commit c64e560c86)
2024-05-23 19:30:53 +00:00
Sandro
cc746d0cf8 Merge pull request #314046 from NixOS/backport-304893-to-release-24.05
[Backport release-24.05] nixos/portunus: add note about allowed characters to id
2024-05-23 21:29:22 +02:00
Jon Seager
cb1a819abd google-chrome: 125.0.6422.60 -> 125.0.6422.76
(cherry picked from commit cddbd42767)
2024-05-23 19:27:53 +00:00
Joé Dupuis
5936c60b2d rexml: 3.2.6 -> 3.2.8
(cherry picked from commit 0062a1d330)
2024-05-23 19:12:08 +00:00
Lin Jian
882082a411 nixos/kanata: add a configFile option
This brings two benefits.  For one thing, it exposes the generated
config file which users can build separately to validate it.  For
another, it allows users to provide their own config file.

(cherry picked from commit d679ddfcab)
2024-05-23 18:54:05 +00:00
Sandro Jäckel
6cb0be5b1e nixos/bitwarden-directory-connector-cli: add wants network-online.target
This fixes the following warning:

trace: warning: bitwarden-directory-connector-cli.timer is ordered after 'network-online.target' but doesn't depend on it
(cherry picked from commit e4de1c0b19)
2024-05-23 18:47:30 +00:00
Adam C. Stephens
47658d6cda Merge pull request #313999 from NixOS/backport-313757-to-release-24.05
[Backport release-24.05] forgejo: 7.0.2 -> 7.0.3
2024-05-23 14:22:40 -04:00
Fabian Affolter
c094663047 swego: format with nixfmt
(cherry picked from commit 51c39ac7ac)
2024-05-23 18:14:36 +00:00
Fabian Affolter
eb10990297 swego: refactor
(cherry picked from commit dc0118692a)
2024-05-23 18:14:36 +00:00
R. Ryantm
a98830b04c swego: 1.0 -> 1.1
(cherry picked from commit a7094f7697)
2024-05-23 18:14:36 +00:00
R. Ryantm
2c3541003c govulncheck: 1.1.0 -> 1.1.1
(cherry picked from commit 7ebf5ff345)
2024-05-23 18:13:21 +00:00
Sandro Jäckel
e2b73005ce nixos/portunus: add note about allowed characters to id
(cherry picked from commit 8c3a2b0a10)
2024-05-23 18:11:19 +00:00
natsukium
40d5481096 python311Packages.amazon-kclpy: mark as broken
amazon-kclpy requires download of jar files at build time, but we don't
know how to handle that

(cherry picked from commit 3260679a3e)
2024-05-23 15:43:10 +00:00
natsukium
2f5f46ea97 python311Packages.amazon-kclpy: 2.1.3 -> 2.1.4
Diff:
https://github.com/awslabs/amazon-kinesis-client-python/compare/refs/tags/v2.1.3...v2.1.4
(cherry picked from commit b5b9716c08)
2024-05-23 15:43:10 +00:00
Leona Maroni
3450eed3a2 Merge pull request #313943 from NixOS/backport-313800-to-release-24.05
[Backport release-24.05] pleroma: 2.6.2 -> 2.6.3
2024-05-23 17:01:37 +02:00
emilylange
25959fddfe CODEOWNERS: add adamcstephens to forgejo
(cherry picked from commit 8279d13a62)
2024-05-23 14:11:01 +00:00
emilylange
cc8d3f8be3 CODEOWNERS: fix forgejo package path
This slipped through the pkgs/by-name move in
3b4dad9b00.

(cherry picked from commit b8d9848dcb)
2024-05-23 14:11:01 +00:00
emilylange
8573a53394 forgejo: 7.0.2 -> 7.0.3
https://codeberg.org/forgejo/forgejo/releases/tag/v7.0.3

https://codeberg.org/forgejo/forgejo/src/branch/forgejo/RELEASE-NOTES.md#7-0-3

diff: https://codeberg.org/forgejo/forgejo/compare/v7.0.2...v7.0.3
(cherry picked from commit c9fe76d1f9)
2024-05-23 14:11:01 +00:00
Franz Pletz
f414ae2672 Merge pull request #313992 from NixOS/backport-313398-to-release-24.05 2024-05-23 15:58:32 +02:00
Franz Pletz
1da5513cfc Merge pull request #313988 from NixOS/backport-313267-to-release-24.05 2024-05-23 15:58:08 +02:00
R. Ryantm
da7ad2361f fluent-bit: 3.0.3 -> 3.0.4
(cherry picked from commit e8bf617348)
2024-05-23 13:51:12 +00:00
R. Ryantm
f0a25a1544 shotman: 0.4.5 -> 0.4.6
(cherry picked from commit 3c670621db)
2024-05-23 13:41:44 +00:00
Sandro Jäckel
af49c243b2 python311Packages.python-ironicclient: fix dependencies after #310075
(cherry picked from commit fd374e94e9)
2024-05-23 12:44:29 +00:00
Weijia Wang
69b8ae783b Merge pull request #313954 from NixOS/backport-313170-to-release-24.05
[Backport release-24.05] nekoray: add qtwayland to buildInputs
2024-05-23 14:15:29 +02:00
Nicolas Benes
dffe958775 nitrokey-app2: 2.2.2 -> 2.3.0, unpin pynitrokey
https://github.com/Nitrokey/nitrokey-app2/releases/tag/v2.3.0
(cherry picked from commit 4488f0a15c)
2024-05-23 11:57:09 +00:00
Jonas Heinrich
61f5ee69f5 nixos/stalwart-mail: use publicsuffix-list package
Co-authored-by: shawn8901 <shawn8901@googlemail.com>
(cherry picked from commit 2c4128ea01)
2024-05-23 11:55:05 +00:00
Jonas Heinrich
d4b0f03904 nixos/tests/stalwart-mail: Add test for server version >= 0.7
(cherry picked from commit 4c626c52b7)
2024-05-23 11:55:05 +00:00
Sandro Jäckel
aa465c1950 hedgedoc: fix executing scripts, delete unused setup script
(cherry picked from commit 10cadef027)
2024-05-23 11:06:54 +00:00
TomaSajt
a941b68182 nekoray: add qtwayland to buildInputs
(cherry picked from commit 20b978ef0a)
2024-05-23 10:58:18 +00:00
Weijia Wang
6999242e0a castxml: fix build on darwin
(cherry picked from commit 94490fd531)
2024-05-23 10:54:27 +00:00
Yaya
555d4451fc pleroma: 2.6.2 -> 2.6.3
https://pleroma.social/announcements/2024/05/22/pleroma-security-release-2.6.3/
(cherry picked from commit 8028253b54)
2024-05-23 09:45:07 +00:00
Weijia Wang
f750e84bf1 Merge pull request #313887 from NixOS/backport-313097-to-release-24.05
[Backport release-24.05] qgis+qgis-ltr: update qgis to 3.36.3 and qgis-ltr to 3.34.7
2024-05-23 11:37:06 +02:00
Weijia Wang
949de71e4c Merge pull request #313865 from NixOS/backport-313009-to-release-24.05
[Backport release-24.05] jellyfin-web: 10.9.1 -> 10.9.2
2024-05-23 11:16:18 +02:00
K900
99d0d12434 Merge pull request #313935 from NixOS/backport-313916-to-release-24.05
[Backport release-24.05] calamares-nixos-extensions: 0.3.15 -> 0.3.16
2024-05-23 12:10:01 +03:00
K900
ea2dca2e33 calamares-nixos-extensions: 0.3.15 -> 0.3.16
Diff: https://github.com/NixOS/calamares-nixos-extensions/compare/0.3.15...0.3.16
(cherry picked from commit 5085728341)
2024-05-23 09:08:48 +00:00
Martin Weinelt
db4350a1f7 Merge pull request #313930 from NixOS/backport-313926-to-release-24.05
[Backport release-24.05] nixos/wyoming*: depend on network-online.target
2024-05-23 10:49:43 +02:00
Martin Weinelt
4573e06799 nixos/wyoming*: depend on network-online.target
Ordering it after network-online.target only makes sense, if it actually
gets requested.

(cherry picked from commit aee13d3d9a)
2024-05-23 08:48:39 +00:00
Martin Weinelt
b0db6df90b Merge pull request #313922 from NixOS/backport-313919-to-release-24.05
[Backport release-24.05] nixos/kea: make ctrl-agent want network-online.target
2024-05-23 10:38:09 +02:00
Martin Weinelt
e5e351f224 nixos/kea: make ctrl-agent want network-online.target
If it wants to run after it, it needs to want it for it to be there.

(cherry picked from commit 5d515c373e)
2024-05-23 08:37:56 +00:00
Martin Weinelt
440ffcf90d Merge pull request #313903 from NixOS/backport-313178-to-release-24.05
[Backport release-24.05] python311Packages.marimo: 0.6.0 -> 0.6.2
2024-05-23 09:55:17 +02:00
dylan madisetti
30cb12959f python311Packages.marimo: 0.6.0 -> 0.6.2
(cherry picked from commit 36074c9462)
2024-05-23 07:40:19 +00:00
Jono Chang
04a88c13b7 stackql: init at 0.5.643
(cherry picked from commit af9c962bec)
2024-05-23 07:22:37 +00:00
Jono Chang
cb78e5f7b8 maintainers: add jonochang
(cherry picked from commit 7415f9eccf)
2024-05-23 07:22:37 +00:00
Ivan Mincik
09c5aea8de qgis-ltr: 3.34.6 -> 3.34.7
(cherry picked from commit b2803be044)
2024-05-23 06:38:01 +00:00
Ivan Mincik
5a265e7504 qgis: 3.36.2 -> 3.36.3
(cherry picked from commit 0a86610c1f)
2024-05-23 06:38:01 +00:00
Weijia Wang
1c531e721f Merge pull request #313873 from NixOS/backport-313790-to-release-24.05
[Backport release-24.05] python311Packages.dask-expr: fix src hash
2024-05-23 08:32:23 +02:00
Jan van Esdonk
afe7dabb9c python311Packages.dask-expr: fix src hash
(cherry picked from commit 8212628254)
2024-05-23 06:08:23 +00:00
Weijia Wang
d64432f953 Merge pull request #313872 from NixOS/backport-313692-to-release-24.05
[Backport release-24.05] python312Packages.circus: disable failing tests
2024-05-23 07:59:06 +02:00
Weijia Wang
7c20d4237e Merge pull request #313871 from NixOS/backport-313690-to-release-24.05
[Backport release-24.05] python312Packages.ics: disable failing test
2024-05-23 07:58:48 +02:00
Weijia Wang
3f37545348 Merge pull request #313869 from NixOS/backport-313687-to-release-24.05
[Backport release-24.05] python312Packages.mutag: refactor
2024-05-23 07:58:33 +02:00
Weijia Wang
c9dc290324 Merge pull request #313868 from NixOS/backport-313688-to-release-24.05
[Backport release-24.05]  python311Packages.pyannote-metrics: refactor
2024-05-23 07:58:15 +02:00
Fabian Affolter
2c855eeeb3 python312Packages.circus: disable failing tests
- refactor

(cherry picked from commit 78988dc6ed)
2024-05-23 05:58:08 +00:00
Weijia Wang
af0f8bfebf Merge pull request #313867 from NixOS/backport-313665-to-release-24.05
[Backport release-24.05] python312Packages.chromadb: limit platform support
2024-05-23 07:58:01 +02:00
Fabian Affolter
63956efd80 python312Packages.ics: disable failing test
(cherry picked from commit 17f73d6f9a)
2024-05-23 05:56:57 +00:00
Fabian Affolter
b24b9f58fa python312Packages.mutag: refactor
(cherry picked from commit 354f023b61)
2024-05-23 05:56:21 +00:00
Fabian Affolter
fd0db1af67 python311Packages.pyannote-metrics: refactor
- remove vendorized versioneer.py
- update build-system
- disable on unsupported Python releases

(cherry picked from commit 09756613cc)
2024-05-23 05:56:05 +00:00
Fabian Affolter
39db2efce9 python312Packages.chromadb: limit platform support
(cherry picked from commit b3f2b745c4)
2024-05-23 05:54:55 +00:00
R. Ryantm
7b46ae0078 jellyfin-web: 10.9.1 -> 10.9.2
(cherry picked from commit 10813396d3)
2024-05-23 05:45:18 +00:00
Weijia Wang
bcedd17714 Merge pull request #313837 from NixOS/backport-309880-to-release-24.05
[Backport release-24.05] cbmc: 5.91.0 -> 5.95.1
2024-05-23 07:27:32 +02:00
Weijia Wang
b1336424b8 Merge pull request #313839 from NixOS/backport-313770-to-release-24.05
[Backport release-24.05] python311Packages.gmpy2: disable failing test on Darwin
2024-05-23 07:27:05 +02:00
Weijia Wang
afa2f2fed2 Merge pull request #313840 from NixOS/backport-313765-to-release-24.05
[Backport release-24.05] csvlens: 0.9.0 -> 0.9.1
2024-05-23 07:26:32 +02:00
Weijia Wang
636e944a34 Merge pull request #313862 from NixOS/backport-313605-to-release-24.05
[Backport release-24.05] turtle: init at 0.8
2024-05-23 07:26:03 +02:00
Weijia Wang
63fb9c828e Merge pull request #313861 from NixOS/backport-313834-to-release-24.05
[Backport release-24.05] marge-bot: unbreak by disabling erroring test
2024-05-23 07:25:44 +02:00
aleksana
df9c49c7cd turtle: init at 0.8
(cherry picked from commit 05de507a98)
2024-05-23 05:11:43 +00:00
Ben Darwin
3651d112fe marge-bot: unbreak by disabling erroring test
(cherry picked from commit cdd08e0692)
2024-05-23 05:00:35 +00:00
Weijia Wang
505b8355eb Merge pull request #313860 from NixOS/backport-313166-to-release-24.05
[Backport release-24.05] python3Packages.ppscore: fix build with pandas 2
2024-05-23 06:25:32 +02:00
Sefa Eyeoglu
f8beb6a042 python3Packages.ppscore: fix build with pandas 2
Signed-off-by: Sefa Eyeoglu <contact@scrumplex.net>
(cherry picked from commit b745fcc7dd)
2024-05-23 04:24:57 +00:00
Weijia Wang
a57e7411bb Merge pull request #313795 from NixOS/backport-313739-to-release-24.05
[Backport release-24.05] mods: unbreak, modernize
2024-05-23 06:08:34 +02:00
Weijia Wang
2bc58f776e Merge pull request #313737 from NixOS/backport-313658-to-release-24.05
[Backport release-24.05] python311Packages.mitmproxy-macos: mark as broken
2024-05-23 06:08:19 +02:00
Weijia Wang
4689f3215a Merge pull request #313796 from NixOS/backport-313648-to-release-24.05
[Backport release-24.05] python3Packages.boltztrap2: fix build
2024-05-23 06:07:58 +02:00
github-actions[bot]
b64f8cbe95 doc/release-notes: more release note edits (#313858)
* Move watchdogd to correct section

(cherry picked from commit d5d3750270)

* Move FileSender to correct position

(cherry picked from commit 4ae89257e9)

* Reword

(cherry picked from commit 03f144fbd3)

* Add TODO querying meaning of dwarf-fortress note

(cherry picked from commit 8798e735be)

* Remove comments suggesting random item placement

(cherry picked from commit a4e51402e0)

* Add comments asking to maintain alphabetical order

(cherry picked from commit 07489ceed1)

---------

Co-authored-by: Jacek Generowicz <jacg@my-post-office.net>
2024-05-23 06:06:02 +02:00
Nick Cao
340699390a Merge pull request #313779 from NixOS/backport-313751-to-release-24.05
[Backport release-24.05] python312Packages.tableaudocumentapi: fix build
2024-05-22 21:10:02 -04:00
Martin Weinelt
7620f016f1 Merge pull request #313842 from NixOS/backport-313831-to-release-24.05
[Backport release-24.05] python312Packages.pyrympro: init at 0.0.8
2024-05-23 02:50:53 +02:00
Fabian Affolter
5fa1f992fe home-assistant: update component-packages
(cherry picked from commit 74ae274897)
2024-05-23 00:44:35 +00:00
Fabian Affolter
35d69f8ac5 python312Packages.pyrympro: init at 0.0.8
Module to interact with Read Your Meter Pro

https://github.com/OnFreund/pyrympro
(cherry picked from commit c8842e4222)
2024-05-23 00:44:35 +00:00
R. Ryantm
8f15388c16 csvlens: 0.9.0 -> 0.9.1
(cherry picked from commit fde85503c5)
2024-05-23 00:31:30 +00:00
TomaSajt
67048ed9ba python311Packages.gmpy2: disable failing test on Darwin
(cherry picked from commit b2ab986512)
2024-05-23 00:23:58 +00:00
Jiajie Chen
24ab15ce48 cbmc: 5.91.0 -> 5.95.1
(cherry picked from commit 6d35a341f8)
2024-05-23 00:14:22 +00:00
Moraxyc
95e1ba304d python3Packages.boltztrap2: fix build
(cherry picked from commit 57762ff36a)
2024-05-22 21:57:04 +00:00
Leah Amelia Chen
e258e5a92f mods: unbreak, modernize
There were two tests that required internet access, and so we just skip
them. Also moved to `pkgs/by-name` and reformatted with
`nixfmt-rfc-style`.

(cherry picked from commit caf25eb523)
2024-05-22 21:55:36 +00:00
Moraxyc
55639616c1 python312Packages.tableaudocumentapi: fix build
(cherry picked from commit 01b734834e)
2024-05-22 20:34:01 +00:00
Vladimír Čunát
1a7abfa62e Merge #313771: furmark: fix version to pass release checks
...into release-24.05
2024-05-22 22:09:47 +02:00
éclairevoyant
b7edf93455 furmark: fix version to pass release checks
(cherry picked from commit 1cf46c7e17)
2024-05-22 20:08:09 +00:00
Emily
271973a5c7 Merge pull request #313724 from NixOS/backport-313694-to-release-24.05
[Backport release-24.05] ungoogled-chromium: 125.0.6422.60-1 -> 125.0.6422.76-1
2024-05-22 22:06:57 +02:00
Weijia Wang
1a106c853a python311Packages.mitmproxy-macos: mark as broken
(cherry picked from commit 670d8681af)
2024-05-22 17:10:26 +00:00
networkException
380c172183 ungoogled-chromium: 125.0.6422.60-1 -> 125.0.6422.76-1
https://chromereleases.googleblog.com/2024/05/stable-channel-update-for-desktop_21.html

This update includes 6 security fixes.

CVEs:
CVE-2024-5157 CVE-2024-5158 CVE-2024-5159 CVE-2024-5160

(cherry picked from commit c24ddc2c7c)
2024-05-22 16:31:53 +00:00
Weijia Wang
3c80acabe4 24.05 beta release 2024-05-22 18:11:14 +02:00
41499 changed files with 1249143 additions and 1989915 deletions

View File

@@ -44,10 +44,6 @@ indent_size = 4
indent_size = 2
indent_style = space
# Match package.json, which are generally pulled from upstream and accept them as they are
[package.json]
indent_style = unset
# Disable file types or individual files
# some of these files may be auto-generated and/or require significant changes

View File

@@ -40,9 +40,6 @@ d1c1a0c656ccd8bd3b25d3c4287f2d075faf3cf3
# fix indentation in meteor default.nix
a37a6de881ec4c6708e6b88fd16256bbc7f26bbd
# pkgs/stdenv/make-derivation: Reindent
b4cc2a2479a7ab0f6440b2e1319221920ef72699
# treewide: automatically md-convert option descriptions
2e751c0772b9d48ff6923569adfa661b030ab6a2
@@ -112,10 +109,6 @@ fb0e5be84331188a69b3edd31679ca6576edb75a
# postgresql: move packages.nix to ext/default.nix
719034f6f6749d624faa28dff259309fc0e3e730
# php ecosystem: reformat with nixfmt-rfc-style
75ae7621330ff8db944ce4dff4374e182d5d151f
c759efa5e7f825913f9a69ef20f025f50f56dc4d
# pkgs/os-specific/bsd: Reformat with nixfmt-rfc-style 2024-03-01
3fe3b055adfc020e6a923c466b6bcd978a13069a
@@ -124,85 +117,3 @@ c759efa5e7f825913f9a69ef20f025f50f56dc4d
# python3Packages: format with nixfmt
59b1aef59071cae6e87859dc65de973d2cc595c0
# treewide description changes (#317959)
bf995e3641950f4183c1dd9010349263dfa0123b
755b915a158c9d588f08e9b08da9f7f3422070cc
f8c4a98e8e138e21353a2c33b90db3359f539b37
# vscode-extensions.*: format with nixfmt (RFC 166)
7bf9febfa6271012b1ef86647a3a06f06875fdcf
# remove uses of mdDoc (#303841)
1a24330f792c8625746d07d842290e6fd95ae6f9
acd0e3898feb321cb9a71a0fd376f1157d0f4553
1b28414d2886c57343864326dbb745a634d3e37d
6afb255d976f85f3359e4929abd6f5149c323a02
# azure-cli: move to by-name, nixfmt #325950
96cd538b68bd1d0a0a37979356d669abbba32ebc
# poptracker: format with nixfmt-rfc-style (#326697)
ff5c8f6cc3d1f2e017e86d50965c14b71f00567b
# mangal: format with nixfmt-rfc-style #328284
3bb5e993cac3a6e1c3056d2bc9bf43eb2c7a5951
# pico-sdk: switch to finalAttrs (#329438)
8946018b0391ae594d167f1e58497b18de068968
# ollama: format with nixfmt-rfc-style (#329353)
bdfde18037f8d9f9b641a4016c8ada4dc4cbf856
# nixos/ollama: format with nixfmt-rfc-style (#329561)
246d1ee533810ac1946d863bbd9de9b525818d56
# steam: cleanup (#216972)
ad815aebfbfe1415ff6436521d545029c803c3fb
# nixos/nvidia: apply nixfmt-rfc-style (#313440)
fbdcdde04a7caa007e825a8b822c75fab9adb2d6
# treewide: reformat files which need reformatting after (#341407)
e0464e47880a69896f0fb1810f00e0de469f770a
# step-cli: format package.nix with nixfmt (#331629)
fc7a83f8b62e90de5679e993d4d49ca014ea013d
# ndn-cxx: format with nixfmt-rfc-style
160b2b769c3b8a6d1ae9947afa77520fa2887db7
# ndn-tools: format with nixfmt-rfc-style
4882ef721ce3d7bb3b5e48ff80125255db515013
# nfd: format with nixfmt-rfc-style
548c2377fa81e2abfc192fbf4f521e601251c468
# darwin.stdenv: format with nixfmt-rfc-style (#333962)
93c10ac9e561c6594d3baaeaff2341907390d9b8
# nrr: format with nixfmt-rfc-style (#334578)
cffc27daf06c77c0d76bc35d24b929cb9d68c3c9
# nixos/kanidm: inherit lib, nixfmt
8f18393d380079904d072007fb19dc64baef0a3a
# fetchurl: nixfmt-rfc-style
ce21e97a1f20dee15da85c084f9d1148d84f853b
# percona: apply nixfmt
8d14fa2886fec877690c6d28cfcdba4503dbbcea
# nixos/virtualisation: format image-related files
# Original formatting commit that was reverted
04fadac429ca7d6b92025188652376c230205730
# Revert commit
4cec81a9959ce612b653860dcca53101a36f328a
# Final commit that does the formatting
88b285c01d84de82c0b2b052fd28eaf6709c2d26
# sqlc: format with nixfmt
2bdec131b2bb2c8563f4556d741d34ccb77409e2
# treewide: migrate packages to pkgs/by-name, take 1
571c71e6f73af34a229414f51585738894211408

2
.gitattributes vendored
View File

@@ -16,5 +16,3 @@ nixos/doc/default.nix linguist-documentation=false
nixos/modules/module-list.nix merge=union
# pkgs/top-level/all-packages.nix merge=union
ci/OWNERS linguist-language=CODEOWNERS

365
.github/CODEOWNERS vendored Normal file
View File

@@ -0,0 +1,365 @@
# CODEOWNERS file
#
# This file is used to describe who owns what in this repository. This file does not
# replace `meta.maintainers` but is instead used for other things than derivations
# and modules, like documentation, package sets, and other assets.
#
# For documentation on this file, see https://help.github.com/articles/about-codeowners/
# Mentioned users will get code review requests.
#
# IMPORTANT NOTE: in order to actually get pinged, commit access is required.
# This also holds true for GitHub teams. Since almost none of our teams have write
# permissions, you need to list all members of the team with commit access individually.
# GitHub actions
/.github/workflows @NixOS/Security @Mic92 @zowoq
# EditorConfig
/.editorconfig @Mic92 @zowoq
# Libraries
/lib @infinisil
/lib/systems @alyssais @ericson2314
/lib/generators.nix @infinisil @Profpatsch
/lib/cli.nix @infinisil @Profpatsch
/lib/debug.nix @infinisil @Profpatsch
/lib/asserts.nix @infinisil @Profpatsch
/lib/path.* @infinisil
/lib/fileset @infinisil
## Libraries / Module system
/lib/modules.nix @infinisil @roberth
/lib/types.nix @infinisil @roberth
/lib/options.nix @infinisil @roberth
/lib/tests/modules.sh @infinisil @roberth
/lib/tests/modules @infinisil @roberth
# Nixpkgs Internals
/default.nix @Ericson2314
/pkgs/top-level/default.nix @Ericson2314
/pkgs/top-level/impure.nix @Ericson2314
/pkgs/top-level/stage.nix @Ericson2314
/pkgs/top-level/splice.nix @Ericson2314
/pkgs/top-level/release-cross.nix @Ericson2314
/pkgs/stdenv/generic @Ericson2314
/pkgs/stdenv/generic/check-meta.nix @Ericson2314
/pkgs/stdenv/cross @Ericson2314
/pkgs/build-support/cc-wrapper @Ericson2314
/pkgs/build-support/bintools-wrapper @Ericson2314
/pkgs/build-support/setup-hooks @Ericson2314
/pkgs/build-support/setup-hooks/auto-patchelf.sh @layus
/pkgs/build-support/setup-hooks/auto-patchelf.py @layus
/pkgs/pkgs-lib @infinisil
## Format generators/serializers
/pkgs/pkgs-lib/formats/libconfig @ckiee @h7x4
/pkgs/pkgs-lib/formats/hocon @h7x4
# pkgs/by-name
/pkgs/test/check-by-name @infinisil
/pkgs/by-name/README.md @infinisil
/pkgs/top-level/by-name-overlay.nix @infinisil
/.github/workflows/check-by-name.yml @infinisil
# Nixpkgs build-support
/pkgs/build-support/writers @lassulus @Profpatsch
# Nixpkgs make-disk-image
/doc/build-helpers/images/makediskimage.section.md @raitobezarius
/nixos/lib/make-disk-image.nix @raitobezarius
# Nix, the package manager
pkgs/tools/package-management/nix/ @raitobezarius @ma27
nixos/modules/installer/tools/nix-fallback-paths.nix @raitobezarius @ma27
# Nixpkgs documentation
/maintainers/scripts/db-to-md.sh @jtojnar @ryantm
/maintainers/scripts/doc @jtojnar @ryantm
# Contributor documentation
/CONTRIBUTING.md @infinisil
/.github/PULL_REQUEST_TEMPLATE.md @infinisil
/doc/contributing/ @infinisil
/doc/contributing/contributing-to-documentation.chapter.md @jtojnar @infinisil
/lib/README.md @infinisil
/doc/README.md @infinisil
/nixos/README.md @infinisil
/pkgs/README.md @infinisil
/maintainers/README.md @infinisil
# User-facing development documentation
/doc/development.md @infinisil
/doc/development @infinisil
# NixOS Internals
/nixos/default.nix @infinisil
/nixos/lib/from-env.nix @infinisil
/nixos/lib/eval-config.nix @infinisil
/nixos/modules/system @dasJ
/nixos/modules/system/activation/bootspec.nix @grahamc @cole-h @raitobezarius
/nixos/modules/system/activation/bootspec.cue @grahamc @cole-h @raitobezarius
# NixOS integration test driver
/nixos/lib/test-driver @tfc
# NixOS QEMU virtualisation
/nixos/virtualisation/qemu-vm.nix @raitobezarius
# Systemd
/nixos/modules/system/boot/systemd.nix @NixOS/systemd
/nixos/modules/system/boot/systemd @NixOS/systemd
/nixos/lib/systemd-*.nix @NixOS/systemd
/pkgs/os-specific/linux/systemd @NixOS/systemd
# Systemd-boot
/nixos/modules/system/boot/loader/systemd-boot @JulienMalka
# Images and installer media
/nixos/modules/installer/cd-dvd/ @samueldr
/nixos/modules/installer/sd-card/ @samueldr
# Updaters
## update.nix
/maintainers/scripts/update.nix @jtojnar
/maintainers/scripts/update.py @jtojnar
## common-updater-scripts
/pkgs/common-updater/scripts/update-source-version @jtojnar
# Python-related code and docs
/doc/languages-frameworks/python.section.md @mweinelt
/pkgs/development/interpreters/python/hooks @jonringer
# Haskell
/doc/languages-frameworks/haskell.section.md @sternenseemann @maralorn @ncfavier
/maintainers/scripts/haskell @sternenseemann @maralorn @ncfavier
/pkgs/development/compilers/ghc @sternenseemann @maralorn @ncfavier
/pkgs/development/haskell-modules @sternenseemann @maralorn @ncfavier
/pkgs/test/haskell @sternenseemann @maralorn @ncfavier
/pkgs/top-level/release-haskell.nix @sternenseemann @maralorn @ncfavier
/pkgs/top-level/haskell-packages.nix @sternenseemann @maralorn @ncfavier
# Perl
/pkgs/development/interpreters/perl @stigtsp @zakame @dasJ @marcusramberg
/pkgs/top-level/perl-packages.nix @stigtsp @zakame @dasJ @marcusramberg
/pkgs/development/perl-modules @stigtsp @zakame @dasJ @marcusramberg
# R
/pkgs/applications/science/math/R @jbedo
/pkgs/development/r-modules @jbedo
# Rust
/pkgs/development/compilers/rust @Mic92 @zowoq @winterqt @figsoda
/pkgs/build-support/rust @zowoq @winterqt @figsoda
/doc/languages-frameworks/rust.section.md @zowoq @winterqt @figsoda
# C compilers
/pkgs/development/compilers/gcc
/pkgs/development/compilers/emscripten @raitobezarius
/doc/languages-frameworks/emscripten.section.md @raitobezarius
# Audio
/nixos/modules/services/audio/botamusique.nix @mweinelt
/nixos/modules/services/audio/snapserver.nix @mweinelt
/nixos/tests/modules/services/audio/botamusique.nix @mweinelt
/nixos/tests/snapcast.nix @mweinelt
# Browsers
/pkgs/applications/networking/browsers/firefox @mweinelt
/pkgs/applications/networking/browsers/chromium @emilylange
/nixos/tests/chromium.nix @emilylange
# Certificate Authorities
pkgs/data/misc/cacert/ @ajs124 @lukegb @mweinelt
pkgs/development/libraries/nss/ @ajs124 @lukegb @mweinelt
pkgs/development/python-modules/buildcatrust/ @ajs124 @lukegb @mweinelt
# Jetbrains
/pkgs/applications/editors/jetbrains @edwtjo
# Licenses
/lib/licenses.nix @alyssais
# Qt
/pkgs/development/libraries/qt-5 @K900 @NickCao @SuperSandro2000 @ttuegel
/pkgs/development/libraries/qt-6 @K900 @NickCao @SuperSandro2000 @ttuegel
# KDE / Plasma 5
/pkgs/applications/kde @K900 @NickCao @SuperSandro2000 @ttuegel
/pkgs/desktops/plasma-5 @K900 @NickCao @SuperSandro2000 @ttuegel
/pkgs/development/libraries/kde-frameworks @K900 @NickCao @SuperSandro2000 @ttuegel
# KDE / Plasma 6
/pkgs/kde @K900 @NickCao @SuperSandro2000 @ttuegel
/maintainers/scripts/kde @K900 @NickCao @SuperSandro2000 @ttuegel
# PostgreSQL and related stuff
/pkgs/servers/sql/postgresql @thoughtpolice
/nixos/modules/services/databases/postgresql.xml @thoughtpolice
/nixos/modules/services/databases/postgresql.nix @thoughtpolice
/nixos/tests/postgresql.nix @thoughtpolice
# Hardened profile & related modules
/nixos/modules/profiles/hardened.nix @joachifm
/nixos/modules/security/hidepid.nix @joachifm
/nixos/modules/security/lock-kernel-modules.nix @joachifm
/nixos/modules/security/misc.nix @joachifm
/nixos/tests/hardened.nix @joachifm
/pkgs/os-specific/linux/kernel/hardened-config.nix @joachifm
# Home Automation
/nixos/modules/services/misc/home-assistant.nix @mweinelt
/nixos/modules/services/misc/zigbee2mqtt.nix @mweinelt
/nixos/tests/home-assistant.nix @mweinelt
/nixos/tests/zigbee2mqtt.nix @mweinelt
/pkgs/servers/home-assistant @mweinelt
/pkgs/tools/misc/esphome @mweinelt
# Network Time Daemons
/pkgs/tools/networking/chrony @thoughtpolice
/pkgs/tools/networking/ntp @thoughtpolice
/pkgs/tools/networking/openntpd @thoughtpolice
/nixos/modules/services/networking/ntp @thoughtpolice
# Network
/pkgs/tools/networking/octodns @Janik-Haag
/pkgs/tools/networking/kea/default.nix @mweinelt
/pkgs/tools/networking/babeld/default.nix @mweinelt
/nixos/modules/services/networking/babeld.nix @mweinelt
/nixos/modules/services/networking/kea.nix @mweinelt
/nixos/modules/services/networking/knot.nix @mweinelt
nixos/modules/services/networking/networkmanager.nix @Janik-Haag
/nixos/modules/services/monitoring/prometheus/exporters/kea.nix @mweinelt
/nixos/tests/babeld.nix @mweinelt
/nixos/tests/kea.nix @mweinelt
/nixos/tests/knot.nix @mweinelt
/nixos/tests/networking/* @Janik-Haag
# Web servers
/doc/packages/nginx.section.md @raitobezarius
/pkgs/servers/http/nginx/ @raitobezarius
/nixos/modules/services/web-servers/nginx/ @raitobezarius
# Dhall
/pkgs/development/dhall-modules @Gabriella439 @Profpatsch @ehmry
/pkgs/development/interpreters/dhall @Gabriella439 @Profpatsch @ehmry
# Idris
/pkgs/development/idris-modules @Infinisil
# Bazel
/pkgs/development/tools/build-managers/bazel @Profpatsch
# NixOS modules for e-mail and dns services
/nixos/modules/services/mail/mailman.nix @peti
/nixos/modules/services/mail/postfix.nix @peti
/nixos/modules/services/networking/bind.nix @peti
/nixos/modules/services/mail/rspamd.nix @peti
# Emacs
/pkgs/applications/editors/emacs/elisp-packages @adisbladis
/pkgs/applications/editors/emacs @adisbladis
/pkgs/top-level/emacs-packages.nix @adisbladis
# Neovim
/pkgs/applications/editors/neovim @figsoda @jonringer @teto
# VimPlugins
/pkgs/applications/editors/vim/plugins @figsoda @jonringer
# VsCode Extensions
/pkgs/applications/editors/vscode/extensions @jonringer
# PHP interpreter, packages, extensions, tests and documentation
/doc/languages-frameworks/php.section.md @aanderse @drupol @globin @ma27 @talyz
/nixos/tests/php @aanderse @drupol @globin @ma27 @talyz
/pkgs/build-support/php/build-pecl.nix @aanderse @drupol @globin @ma27 @talyz
/pkgs/build-support/php @drupol
/pkgs/development/interpreters/php @jtojnar @aanderse @drupol @globin @ma27 @talyz
/pkgs/development/php-packages @aanderse @drupol @globin @ma27 @talyz
/pkgs/top-level/php-packages.nix @jtojnar @aanderse @drupol @globin @ma27 @talyz
# Docker tools
/pkgs/build-support/docker @roberth
/nixos/tests/docker-tools* @roberth
/doc/build-helpers/images/dockertools.section.md @roberth
# Blockchains
/pkgs/applications/blockchains @mmahut @RaghavSood
# Go
/doc/languages-frameworks/go.section.md @kalbasit @Mic92 @zowoq
/pkgs/build-support/go @kalbasit @Mic92 @zowoq
/pkgs/development/compilers/go @kalbasit @Mic92 @zowoq
# GNOME
/pkgs/desktops/gnome @jtojnar
/pkgs/desktops/gnome/extensions @jtojnar
/pkgs/build-support/make-hardcode-gsettings-patch @jtojnar
# Cinnamon
/pkgs/desktops/cinnamon @mkg20001
# nim
/pkgs/development/compilers/nim @ehmry
/pkgs/development/nim-packages @ehmry
/pkgs/top-level/nim-packages.nix @ehmry
# terraform providers
/pkgs/applications/networking/cluster/terraform-providers @zowoq
# Forgejo
nixos/modules/services/misc/forgejo.nix @adamcstephens @bendlas @emilylange
pkgs/by-name/fo/forgejo/package.nix @adamcstephens @bendlas @emilylange
# Dotnet
/pkgs/build-support/dotnet @IvarWithoutBones
/pkgs/development/compilers/dotnet @IvarWithoutBones
/pkgs/test/dotnet @IvarWithoutBones
/doc/languages-frameworks/dotnet.section.md @IvarWithoutBones
# Node.js
/pkgs/build-support/node/build-npm-package @lilyinstarlight @winterqt
/pkgs/build-support/node/fetch-npm-deps @lilyinstarlight @winterqt
/doc/languages-frameworks/javascript.section.md @lilyinstarlight @winterqt
# environment.noXlibs option aka NoX
/nixos/modules/config/no-x-libs.nix @SuperSandro2000
# OCaml
/pkgs/build-support/ocaml @ulrikstrid
/pkgs/development/compilers/ocaml @ulrikstrid
/pkgs/development/ocaml-modules @ulrikstrid
# ZFS
pkgs/os-specific/linux/zfs/2_1.nix @raitobezarius
pkgs/os-specific/linux/zfs/generic.nix @raitobezarius
nixos/modules/tasks/filesystems/zfs.nix @raitobezarius
nixos/tests/zfs.nix @raitobezarius
# Zig
/pkgs/development/compilers/zig @figsoda
/doc/hooks/zig.section.md @figsoda
# Buildbot
nixos/modules/services/continuous-integration/buildbot @Mic92 @zowoq
nixos/tests/buildbot.nix @Mic92 @zowoq
pkgs/development/tools/continuous-integration/buildbot @Mic92 @zowoq
# Pretix
pkgs/by-name/pr/pretix/ @mweinelt
pkgs/by-name/pr/pretalx/ @mweinelt
nixos/modules/services/web-apps/pretix.nix @mweinelt
nixos/modules/services/web-apps/pretalx.nix @mweinelt
nixos/tests/web-apps/pretix.nix @mweinelt
nixos/tests/web-apps/pretalx.nix @mweinelt
# incus/lxc/lxd
nixos/maintainers/scripts/lxd/ @adamcstephens
nixos/modules/virtualisation/incus.nix @adamcstephens
nixos/modules/virtualisation/lxc* @adamcstephens
nixos/modules/virtualisation/lxd* @adamcstephens
nixos/tests/incus/ @adamcstephens
nixos/tests/lxd/ @adamcstephens
pkgs/by-name/in/incus/ @adamcstephens
pkgs/by-name/lx/lxc* @adamcstephens
pkgs/by-name/lx/lxd* @adamcstephens
pkgs/os-specific/linux/lxc/ @adamcstephens

View File

@@ -8,4 +8,4 @@
## Technical details
<!-- Please insert the output of running `nix-shell -p nix-info --run "nix-info -m"` below this line -->
Please run `nix-shell -p nix-info --run "nix-info -m"` and paste the result.

View File

@@ -7,44 +7,38 @@ assignees: ''
---
## Describe the bug
<!-- A clear and concise description of what the bug is. -->
## Steps To Reproduce
### Describe the bug
A clear and concise description of what the bug is.
### Steps To Reproduce
Steps to reproduce the behavior:
1. ...
2. ...
3. ...
## Expected behavior
### Expected behavior
A clear and concise description of what you expected to happen.
<!-- A clear and concise description of what you expected to happen. -->
### Screenshots
If applicable, add screenshots to help explain your problem.
## Screenshots
### Additional context
Add any other context about the problem here.
<!-- If applicable, add screenshots to help explain your problem: -->
## Additional context
<!-- Add any other context about the problem here. -->
## Metadata
<!-- Please insert the output of running `nix-shell -p nix-info --run "nix-info -m"` below this line -->
## Notify maintainers
### Notify maintainers
<!--
Please @ people who are in the `meta.maintainers` list of the offending package or module.
If in doubt, check `git blame` for whoever last touched something.
-->
---
### Metadata
Please run `nix-shell -p nix-info --run "nix-info -m"` and paste the result.
Note for maintainers: Please tag this issue in your PR.
```console
[user@system:~]$ nix-shell -p nix-info --run "nix-info -m"
output here
```
---

View File

@@ -7,43 +7,36 @@ assignees: ''
---
## Steps To Reproduce
### Steps To Reproduce
Steps to reproduce the behavior:
1. build *X*
## Build log
<!-- insert build log in code block in collapsable section -->
<details>
<summary>Build Log</summary>
### Build log
```
log here if short otherwise a link to a gist
```
</details>
### Additional context
## Additional context
Add any other context about the problem here.
<!-- Add any other context about the problem here. -->
## Metadata
<!-- Please insert the output of running `nix-shell -p nix-info --run "nix-info -m"` below this line -->
## Notify maintainers
### Notify maintainers
<!--
Please @ people who are in the `meta.maintainers` list of the offending package or module.
If in doubt, check `git blame` for whoever last touched something.
-->
---
### Metadata
Note for maintainers: Please tag this issue in your PR.
Please run `nix-shell -p nix-info --run "nix-info -m"` and paste the result.
```console
[user@system:~]$ nix-shell -p nix-info --run "nix-info -m"
output here
```
---

View File

@@ -23,9 +23,12 @@ assignees: ''
- [ ] checked [open documentation issues] for possible duplicates
- [ ] checked [open documentation pull requests] for possible solutions
---
Note for maintainers: Please tag this issue in your PR.
[latest Nixpkgs manual]: https://nixos.org/manual/nixpkgs/unstable/
[latest NixOS manual]: https://nixos.org/manual/nixos/unstable/
[nixpkgs-source]: https://github.com/NixOS/nixpkgs/tree/master/doc
[nixos-source]: https://github.com/NixOS/nixpkgs/tree/master/nixos/doc/manual
[open documentation issues]: https://github.com/NixOS/nixpkgs/issues?q=is%3Aissue+is%3Aopen+label%3A%229.needs%3A+documentation%22
[open documentation pull requests]: https://github.com/NixOS/nixpkgs/pulls?q=is%3Aopen+is%3Apr+label%3A%228.has%3A+documentation%22%2C%226.topic%3A+documentation%22
---
@@ -33,9 +36,3 @@ Add a :+1: [reaction] to [issues you find important].
[reaction]: https://github.blog/2016-03-10-add-reactions-to-pull-requests-issues-and-comments/
[issues you find important]: https://github.com/NixOS/nixpkgs/issues?q=is%3Aissue+is%3Aopen+sort%3Areactions-%2B1-desc
[latest Nixpkgs manual]: https://nixos.org/manual/nixpkgs/unstable/
[latest NixOS manual]: https://nixos.org/manual/nixos/unstable/
[nixpkgs-source]: https://github.com/NixOS/nixpkgs/tree/master/doc
[nixos-source]: https://github.com/NixOS/nixpkgs/tree/master/nixos/doc/manual
[open documentation issues]: https://github.com/NixOS/nixpkgs/issues?q=is%3Aissue+is%3Aopen+label%3A%229.needs%3A+documentation%22
[open documentation pull requests]: https://github.com/NixOS/nixpkgs/pulls?q=is%3Aopen+is%3Apr+label%3A%228.has%3A+documentation%22%2C%226.topic%3A+documentation%22

View File

@@ -1,27 +0,0 @@
---
name: Module requests
about: For NixOS modules that you would like to see
title: 'Module request: MODULENAME'
labels: '9.needs: module (new)'
assignees: ''
---
## Description
<!-- Describe what the module should accomplish: -->
## Notify maintainers
<!-- If applicable, tag the maintainers of the package that corresponds to the module. If the search.nixos.org result shows no maintainers, tag the person that last updated the package. -->
-----
Note for maintainers: Please tag this issue in your PR.
---
Add a :+1: [reaction] to [issues you find important].
[reaction]: https://github.blog/2016-03-10-add-reactions-to-pull-requests-issues-and-comments/
[issues you find important]: https://github.com/NixOS/nixpkgs/issues?q=is%3Aissue+is%3Aopen+sort%3Areactions-%2B1-desc

View File

@@ -7,30 +7,23 @@ assignees: ''
---
## Package Information
<!-- Search for the package here: https://search.nixos.org/packages?channel=unstable -->
- Package name:
- Latest released version:
<!-- Search your package here: https://search.nixos.org/packages?channel=unstable -->
- Current version on the unstable channel:
- Current version on the stable/release channel:
## Checklist
<!--
Type the name of your package and try to find an open pull request for the package
If you find an open pull request, you can review it!
There's a high chance that you'll have the new version right away while helping the community!
-->
- [ ] Checked the [nixpkgs pull requests](https://github.com/NixOS/nixpkgs/pulls)
## Notify maintainers
**Notify maintainers**
<!-- If the search.nixos.org result shows no maintainers, tag the person that last updated the package. -->
---
-----
Note for maintainers: Please tag this issue in your PR.

View File

@@ -7,11 +7,11 @@ assignees: ''
---
## Project description
**Project description**
<!-- Describe the project a little: -->
## Metadata
**Metadata**
* homepage URL:
* source URL:
@@ -20,10 +20,6 @@ assignees: ''
---
Note for maintainers: Please tag this issue in your PR.
---
Add a :+1: [reaction] to [issues you find important].
[reaction]: https://github.blog/2016-03-10-add-reactions-to-pull-requests-issues-and-comments/

View File

@@ -31,12 +31,12 @@ Fixing bit-by-bit reproducibility also has additional advantages, such as
avoiding hard-to-reproduce bugs, making content-addressed storage more effective
and reducing rebuilds in such systems.
## Steps To Reproduce
### Steps To Reproduce
In the following steps, replace `<package>` with the canonical name of the
package.
### 1. Build the package
#### 1. Build the package
This step will build the package. Specific arguments are passed to the command
to keep the build artifacts so we can compare them in case of differences.
@@ -53,7 +53,7 @@ Or using the new command line style:
nix build nixpkgs#<package> && nix build nixpkgs#<package> --rebuild --keep-failed
```
### 2. Compare the build artifacts
#### 2. Compare the build artifacts
If the previous command completes successfully, no differences were found and
there's nothing to do, builds are reproducible.
@@ -67,7 +67,7 @@ metadata (*e.g. timestamp*) differences.
nix run nixpkgs#diffoscopeMinimal -- --exclude-directory-metadata recursive <Y> <Z>
```
### 3. Examine the build log
#### 3. Examine the build log
To examine the build log, use:
@@ -81,20 +81,10 @@ Or with the new command line style:
nix log $(nix path-info --derivation nixpkgs#<package>)
```
## Additional context
### Additional context
(please share the relevant fragment of the diffoscope output here, and any additional analysis you may have done)
## Notify maintainers
<!--
Please @ people who are in the `meta.maintainers` list of the offending package or module.
If in doubt, check `git blame` for whoever last touched something.
-->
---
Note for maintainers: Please tag this issue in your PR.
(please share the relevant fragment of the diffoscope output here, and any
additional analysis you may have done)
---

View File

@@ -1,7 +1,6 @@
## Description of changes
<!--
^ Please summarise the changes you have done and explain why they are necessary here ^
For package updates please link to a changelog or describe changes, this helps your fellow maintainers discover breaking updates.
For new packages please briefly describe the package or provide a link to its homepage.
-->
@@ -22,10 +21,10 @@ For new packages please briefly describe the package or provide a link to its ho
- [NixOS test(s)](https://nixos.org/manual/nixos/unstable/index.html#sec-nixos-tests) (look inside [nixos/tests](https://github.com/NixOS/nixpkgs/blob/master/nixos/tests))
- and/or [package tests](https://github.com/NixOS/nixpkgs/blob/master/pkgs/README.md#package-tests)
- or, for functions and "core" functionality, tests in [lib/tests](https://github.com/NixOS/nixpkgs/blob/master/lib/tests) or [pkgs/test](https://github.com/NixOS/nixpkgs/blob/master/pkgs/test)
- made sure NixOS tests are [linked](https://github.com/NixOS/nixpkgs/blob/master/pkgs/README.md#linking-nixos-module-tests-to-a-package) to the relevant packages
- made sure NixOS tests are [linked](https://nixos.org/manual/nixpkgs/unstable/#ssec-nixos-tests-linking) to the relevant packages
- [ ] Tested compilation of all packages that depend on this change using `nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD"`. Note: all changes have to be committed, also see [nixpkgs-review usage](https://github.com/Mic92/nixpkgs-review#usage)
- [ ] Tested basic functionality of all binary files (usually in `./result/bin/`)
- [24.11 Release Notes](https://github.com/NixOS/nixpkgs/blob/master/nixos/doc/manual/release-notes/rl-2411.section.md) (or backporting [23.11](https://github.com/NixOS/nixpkgs/blob/master/nixos/doc/manual/release-notes/rl-2311.section.md) and [24.05](https://github.com/NixOS/nixpkgs/blob/master/nixos/doc/manual/release-notes/rl-2405.section.md) Release notes)
- [24.05 Release Notes](https://github.com/NixOS/nixpkgs/blob/master/nixos/doc/manual/release-notes/rl-2405.section.md) (or backporting [23.05](https://github.com/NixOS/nixpkgs/blob/master/nixos/doc/manual/release-notes/rl-2305.section.md) and [23.11](https://github.com/NixOS/nixpkgs/blob/master/nixos/doc/manual/release-notes/rl-2311.section.md) Release notes)
- [ ] (Package updates) Added a release notes entry if the change is major or breaking
- [ ] (Module updates) Added a release notes entry if the change is significant
- [ ] (Module addition) Added a release notes entry if adding a new NixOS module

196
.github/labeler.yml vendored
View File

@@ -1,4 +1,3 @@
# NOTE: bsd, darwin and cross-compilation labels are handled by ofborg
"6.topic: agda":
- any:
- changed-files:
@@ -13,66 +12,9 @@
- any:
- changed-files:
- any-glob-to-any-file:
- pkgs/desktops/cinnamon/**/*
- nixos/modules/services/x11/desktop-managers/cinnamon.nix
- nixos/tests/cinnamon.nix
- nixos/tests/cinnamon-wayland.nix
- pkgs/by-name/ci/cinnamon-*/**/*
- pkgs/by-name/cj/cjs/**/*
- pkgs/by-name/mu/muffin/**/*
- pkgs/by-name/ne/nemo/**/*
- pkgs/by-name/ne/nemo-*/**/*
"6.topic: continuous integration":
- any:
- changed-files:
- any-glob-to-any-file:
- .github/**/*
- ci/**/*
"6.topic: coq":
- any:
- changed-files:
- any-glob-to-any-file:
- pkgs/applications/science/logic/coq/**/*
- pkgs/development/coq-modules/**/*
- pkgs/top-level/coq-packages.nix
"6.topic: crystal":
- any:
- changed-files:
- any-glob-to-any-file:
- pkgs/development/compilers/crystal/**/*
"6.topic: cuda":
- any:
- changed-files:
- any-glob-to-any-file:
- pkgs/development/cuda-modules/**/*
- pkgs/top-level/cuda-packages.nix
"6.topic: deepin":
- any:
- changed-files:
- any-glob-to-any-file:
- nixos/modules/services/desktops/deepin/**/*
- pkgs/desktops/deepin/**/*
"6.topic: docker tools":
- any:
- changed-files:
- any-glob-to-any-file:
- pkgs/applications/virtualization/docker/**/*
"6.topic: dotnet":
- any:
- changed-files:
- any-glob-to-any-file:
- doc/languages-frameworks/dotnet.section.md
- maintainers/scripts/update-dotnet-lockfiles.nix
- pkgs/build-support/dotnet/**/*
- pkgs/development/compilers/dotnet/**/*
- pkgs/test/dotnet/**/*
- pkgs/top-level/dotnet-packages.nix
"6.topic: emacs":
- any:
@@ -81,9 +23,9 @@
- nixos/modules/services/editors/emacs.nix
- nixos/modules/services/editors/emacs.xml
- nixos/tests/emacs-daemon.nix
- pkgs/applications/editors/emacs/build-support/**/*
- pkgs/applications/editors/emacs/elisp-packages/**/*
- pkgs/applications/editors/emacs/**/*
- pkgs/build-support/emacs/**/*
- pkgs/top-level/emacs-packages.nix
"6.topic: Enlightenment DE":
@@ -121,19 +63,6 @@
- lib/systems/flake-systems.nix
- nixos/modules/config/nix-flakes.nix
"6.topic: flutter":
- any:
- changed-files:
- any-glob-to-any-file:
- pkgs/build-support/flutter/*.nix
- pkgs/development/compilers/flutter/**/*.nix
"6.topic: games":
- any:
- changed-files:
- any-glob-to-any-file:
- pkgs/games/**/*
"6.topic: GNOME":
- any:
- changed-files:
@@ -153,12 +82,6 @@
- pkgs/build-support/go/**/*
- pkgs/development/compilers/go/**/*
"6.topic: hardware":
- any:
- changed-files:
- any-glob-to-any-file:
- nixos/modules/hardware/**/*
"6.topic: haskell":
- any:
- changed-files:
@@ -172,28 +95,6 @@
- pkgs/top-level/haskell-packages.nix
- pkgs/top-level/release-haskell.nix
"6.topic: java":
- any:
- changed-files:
- any-glob-to-any-file:
- nixos/modules/programs/java.nix
- pkgs/development/compilers/graalvm/**/*
- pkgs/development/compilers/openjdk/**/*
- pkgs/development/compilers/temurin-bin/**/*
- pkgs/development/compilers/zulu/**/*
- pkgs/development/java-modules/**/*
- pkgs/top-level/java-packages.nix
"6.topic: jitsi":
- any:
- changed-files:
- any-glob-to-any-file:
- nixos/modules/services/networking/jitsi-videobridge.nix
- nixos/modules/services/web-apps/jitsi-meet.nix
- pkgs/servers/web-apps/jitsi-meet/**/*
- pkgs/servers/jitsi-videobridge/**/*
- pkgs/applications/networking/instant-messengers/jitsi/**/*
"6.topic: julia":
- any:
- changed-files:
@@ -233,12 +134,6 @@
- any-glob-to-any-file:
- lib/**
"6.topic: llvm/clang":
- any:
- changed-files:
- any-glob-to-any-file:
- pkgs/development/compilers/llvm/**/*
"6.topic: lua":
- any:
- changed-files:
@@ -281,35 +176,21 @@
- lib/tests/modules.sh
- lib/tests/modules/**
"6.topic: musl":
- any:
- changed-files:
- any-glob-to-any-file:
- pkgs/os-specific/linux/musl/**/*
"6.topic: nixos":
- any:
- changed-files:
- any-glob-to-any-file:
- nixos/**/*
- pkgs/by-name/sw/switch-to-configuration-ng/**/*
- pkgs/os-specific/linux/nixos-rebuild/**/*
"6.topic: nixos-container":
- any:
- changed-files:
- any-glob-to-any-file:
- nixos/modules/virtualisation/nixos-containers.nix
- pkgs/tools/virtualization/nixos-container/**/*
"6.topic: nim":
- any:
- changed-files:
- any-glob-to-any-file:
- doc/languages-frameworks/nim.section.md
- pkgs/build-support/build-nim-package.nix
- pkgs/by-name/ni/nim*
- pkgs/top-level/nim-overrides.nix
- pkgs/development/compilers/nim/*
- pkgs/development/nim-packages/**/*
- pkgs/top-level/nim-packages.nix
"6.topic: nodejs":
- any:
@@ -320,18 +201,8 @@
- pkgs/development/node-packages/**/*
- pkgs/development/tools/yarn/*
- pkgs/development/tools/yarn2nix-moretea/**/*
- pkgs/development/tools/pnpm/**/*
- pkgs/development/web/nodejs/*
"6.topic: nvidia":
- any:
- changed-files:
- any-glob-to-any-file:
- nixos/modules/hardware/video/nvidia.nix
- nixos/modules/services/hardware/nvidia-container-toolkit/**/*
- nixos/modules/services/hardware/nvidia-optimus.nix
- pkgs/os-specific/linux/nvidia-x11/**/*
"6.topic: ocaml":
- any:
- changed-files:
@@ -358,9 +229,8 @@
- changed-files:
- any-glob-to-any-file:
- doc/languages-frameworks/php.section.md
- nixos/tests/php/**/*
- pkgs/build-support/php/**/*
- pkgs/development/interpreters/php/**/*
- pkgs/development/interpreters/php/*
- pkgs/development/php-packages/**/*
- pkgs/test/php/default.nix
- pkgs/top-level/php-packages.nix
@@ -370,12 +240,6 @@
- changed-files:
- any-glob-to-any-file:
- .github/**/*
- CONTRIBUTING.md
- pkgs/README.md
- nixos/README.md
- maintainers/README.md
- lib/README.md
- doc/README.md
"6.topic: printing":
- any:
@@ -405,19 +269,6 @@
- pkgs/development/libraries/kde-frameworks/**/*
- pkgs/development/libraries/qt-5/**/*
"6.topic: R":
- any:
- changed-files:
- any-glob-to-any-file:
- pkgs/applications/science/math/R/**/*
- pkgs/development/r-modules/**/*
"6.topic: rocm":
- any:
- changed-files:
- any-glob-to-any-file:
- pkgs/development/rocm-modules/**/*
"6.topic: ruby":
- any:
- changed-files:
@@ -453,15 +304,6 @@
- pkgs/os-specific/linux/systemd/**/*
- nixos/modules/system/boot/systemd*/**/*
"6.topic: tcl":
- any:
- changed-files:
- any-glob-to-any-file:
- doc/languages-frameworks/tcl.section.md
- pkgs/development/interpreters/tcl/*
- pkgs/development/tcl-modules/**/*
- pkgs/top-level/tcl-packages.nix
"6.topic: TeX":
- any:
- changed-files:
@@ -478,7 +320,6 @@
# *developed in this repo*;
# - not individual tests
# - not packages for test frameworks
- pkgs/build-support/testers/**
- nixos/lib/testing/**
- nixos/lib/test-driver/**
- nixos/tests/nixos-test-driver/**
@@ -486,12 +327,6 @@
- nixos/tests/make-test-python.nix # legacy
# lib/debug.nix has a test framework (runTests) but it's not the main focus
"6.topic: updaters":
- any:
- changed-files:
- any-glob-to-any-file:
- pkgs/common-updater/**/*
"6.topic: vim":
- any:
- changed-files:
@@ -508,25 +343,6 @@
- any-glob-to-any-file:
- pkgs/applications/editors/vscode/**/*
"6.topic: windows":
- any:
- changed-files:
- any-glob-to-any-file:
- pkgs/os-specific/windows/**/*
"6.topic: xen-project":
- any:
- changed-files:
- any-glob-to-any-file:
- nixos/modules/virtualisation/xen*
- pkgs/by-name/xe/xen/*
- pkgs/by-name/qe/qemu_xen/*
- pkgs/by-name/xe/xen-guest-agent/*
- pkgs/by-name/xt/xtf/*
- pkgs/build-support/xen/*
- pkgs/development/ocaml-modules/xen*/*
- pkgs/development/ocaml-modules/vchan/*
"6.topic: xfce":
- any:
- changed-files:

View File

@@ -20,11 +20,11 @@ jobs:
if: github.repository_owner == 'NixOS' && github.event.pull_request.merged == true && (github.event_name != 'labeled' || startsWith('backport', github.event.label.name))
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- uses: actions/checkout@44c2b7a8a4ea60a981eaca3cf939b5f4305c123b # v4.1.5
with:
ref: ${{ github.event.pull_request.head.sha }}
- name: Create backport PRs
uses: korthout/backport-action@bd410d37cdcae80be6d969823ff5a225fe5c833f # v3.0.2
uses: korthout/backport-action@ef20d86abccbac3ee3a73cb2efbdc06344c390e5 # v2.5.0
with:
# Config README: https://github.com/korthout/backport-action#backport-action
copy_labels_pattern: 'severity:\ssecurity'

View File

@@ -15,17 +15,15 @@ permissions:
jobs:
tests:
name: basic-eval-checks
runs-on: ubuntu-latest
# we don't limit this action to only NixOS repo since the checks are cheap and useful developer feedback
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- uses: cachix/install-nix-action@08dcb3a5e62fa31e2da3d490afc4176ef55ecd72 # v30
- uses: cachix/cachix-action@ad2ddac53f961de1989924296a1f236fcfbaa4fc # v15
- uses: actions/checkout@44c2b7a8a4ea60a981eaca3cf939b5f4305c123b # v4.1.5
- uses: cachix/install-nix-action@8887e596b4ee1134dae06b98d573bd674693f47c # v26
- uses: cachix/cachix-action@18cf96c7c98e048e10a83abd92116114cd8504be # v14
with:
# This cache is for the nixpkgs repo checks and should not be trusted or used elsewhere.
name: nixpkgs-ci
signingKey: '${{ secrets.CACHIX_SIGNING_KEY }}'
- run: nix --experimental-features 'nix-command flakes' flake check --all-systems --no-build
# explicit list of supportedSystems is needed until aarch64-darwin becomes part of the trunk jobset
- run: nix-build pkgs/top-level/release.nix -A release-checks --arg supportedSystems '[ "aarch64-darwin" "aarch64-linux" "x86_64-linux" "x86_64-darwin" ]'

123
.github/workflows/check-by-name.yml vendored Normal file
View File

@@ -0,0 +1,123 @@
# Checks pkgs/by-name (see pkgs/by-name/README.md)
# using the nixpkgs-check-by-name tool (see https://github.com/NixOS/nixpkgs-check-by-name)
#
# When you make changes to this workflow, also update pkgs/test/check-by-name/run-local.sh adequately
name: Check pkgs/by-name
on:
# Using pull_request_target instead of pull_request avoids having to approve first time contributors
pull_request_target:
# This workflow depends on the base branch of the PR,
# but changing the base branch is not included in the default trigger events,
# which would be `opened`, `synchronize` or `reopened`.
# Instead it causes an `edited` event, so we need to add it explicitly here
# While `edited` is also triggered when the PR title/body is changed,
# this PR action is fairly quick, and PR's don't get edited that often,
# so it shouldn't be a problem
types: [opened, synchronize, reopened, edited]
permissions: {}
# Create a check-by-name concurrency group based on the pull request number. if
# an event triggers a run on the same PR while a previous run is still in
# progress, the previous run will be canceled and the new one will start.
concurrency:
group: check-by-name-${{ github.event.pull_request.number }}
cancel-in-progress: true
jobs:
check:
# This needs to be x86_64-linux, because we depend on the tooling being pre-built in the GitHub releases
runs-on: ubuntu-latest
# This should take 1 minute at most, but let's be generous.
# The default of 6 hours is definitely too long
timeout-minutes: 10
steps:
# This step has to be in this file,
# because it's needed to determine which revision of the repository to fetch,
# and we can only use other files from the repository once it's fetched.
- name: Resolving the merge commit
env:
GH_TOKEN: ${{ github.token }}
run: |
# This checks for mergeability of a pull request as recommended in
# https://docs.github.com/en/rest/guides/using-the-rest-api-to-interact-with-your-git-database?apiVersion=2022-11-28#checking-mergeability-of-pull-requests
# Retry the API query this many times
retryCount=5
# Start with 5 seconds, but double every retry
retryInterval=5
while true; do
echo "Checking whether the pull request can be merged"
prInfo=$(gh api \
-H "Accept: application/vnd.github+json" \
-H "X-GitHub-Api-Version: 2022-11-28" \
/repos/"$GITHUB_REPOSITORY"/pulls/${{ github.event.pull_request.number }})
mergeable=$(jq -r .mergeable <<< "$prInfo")
mergedSha=$(jq -r .merge_commit_sha <<< "$prInfo")
if [[ "$mergeable" == "null" ]]; then
if (( retryCount == 0 )); then
echo "Not retrying anymore, probably GitHub is having internal issues"
exit 1
else
(( retryCount -= 1 )) || true
# null indicates that GitHub is still computing whether it's mergeable
# Wait a couple seconds before trying again
echo "GitHub is still computing whether this PR can be merged, waiting $retryInterval seconds before trying again ($retryCount retries left)"
sleep "$retryInterval"
(( retryInterval *= 2 )) || true
fi
else
break
fi
done
if [[ "$mergeable" == "true" ]]; then
echo "The PR can be merged, checking the merge commit $mergedSha"
echo "mergedSha=$mergedSha" >> "$GITHUB_ENV"
else
echo "The PR cannot be merged, it has a merge conflict, skipping the rest.."
fi
- uses: actions/checkout@44c2b7a8a4ea60a981eaca3cf939b5f4305c123b # v4.1.5
if: env.mergedSha
with:
# pull_request_target checks out the base branch by default
ref: ${{ env.mergedSha }}
# Fetches the merge commit and its parents
fetch-depth: 2
- name: Checking out base branch
if: env.mergedSha
run: |
base=$(mktemp -d)
git worktree add "$base" "$(git rev-parse HEAD^1)"
echo "base=$base" >> "$GITHUB_ENV"
- uses: cachix/install-nix-action@8887e596b4ee1134dae06b98d573bd674693f47c # v26
if: env.mergedSha
- name: Fetching the pinned tool
if: env.mergedSha
# Update the pinned version using pkgs/test/check-by-name/update-pinned-tool.sh
run: |
# The pinned version of the tooling to use
toolVersion=$(<pkgs/test/check-by-name/pinned-version.txt)
# Fetch the x86_64-linux-specific release artifact containing the Gzipped NAR of the pre-built tool
toolPath=$(curl -sSfL https://github.com/NixOS/nixpkgs-check-by-name/releases/download/"$toolVersion"/x86_64-linux.nar.gz \
| gzip -cd | nix-store --import | tail -1)
# Adds a result symlink as a GC root
nix-store --realise "$toolPath" --add-root result
- name: Running nixpkgs-check-by-name
if: env.mergedSha
env:
# Force terminal colors to be enabled. The library that
# nixpkgs-check-by-name uses respects: https://bixense.com/clicolors/
CLICOLOR_FORCE: 1
run: |
if result/bin/nixpkgs-check-by-name --base "$base" .; then
exit 0
else
exitCode=$?
echo "To run locally: ./maintainers/scripts/check-by-name.sh $GITHUB_BASE_REF https://github.com/$GITHUB_REPOSITORY.git"
exit "$exitCode"
fi

View File

@@ -4,17 +4,15 @@ on:
branches:
- 'release-**'
- 'staging-**'
- '!staging-next'
permissions: {}
jobs:
check:
name: cherry-pick-check
runs-on: ubuntu-latest
if: github.repository_owner == 'NixOS'
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- uses: actions/checkout@44c2b7a8a4ea60a981eaca3cf939b5f4305c123b # v4.1.5
with:
fetch-depth: 0
filter: blob:none

View File

@@ -9,11 +9,10 @@ permissions:
jobs:
nixos:
name: maintainer-list-check
runs-on: ubuntu-latest
if: github.repository_owner == 'NixOS'
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- uses: actions/checkout@44c2b7a8a4ea60a981eaca3cf939b5f4305c123b # v4.1.5
with:
# pull_request_target checks out the base branch by default
ref: refs/pull/${{ github.event.pull_request.number }}/merge
@@ -21,7 +20,7 @@ jobs:
sparse-checkout: |
lib
maintainers
- uses: cachix/install-nix-action@08dcb3a5e62fa31e2da3d490afc4176ef55ecd72 # v30
- uses: cachix/install-nix-action@8887e596b4ee1134dae06b98d573bd674693f47c # v26
with:
# explicitly enable sandbox
extra_nix_config: sandbox = true

View File

@@ -7,84 +7,56 @@ name: Check that Nix files are formatted
on:
pull_request_target:
# See the comment at the same location in ./nixpkgs-vet.yml
types: [opened, synchronize, reopened, edited]
permissions:
contents: read
jobs:
nixos:
name: nixfmt-check
runs-on: ubuntu-latest
if: "!contains(github.event.pull_request.title, '[skip treewide]')"
if: github.repository_owner == 'NixOS'
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- uses: actions/checkout@44c2b7a8a4ea60a981eaca3cf939b5f4305c123b # v4.1.5
with:
# pull_request_target checks out the base branch by default
ref: refs/pull/${{ github.event.pull_request.number }}/merge
# Fetches the merge commit and its parents
fetch-depth: 2
- name: Checking out base branch
run: |
base=$(mktemp -d)
baseRev=$(git rev-parse HEAD^1)
git worktree add "$base" "$baseRev"
echo "baseRev=$baseRev" >> "$GITHUB_ENV"
echo "base=$base" >> "$GITHUB_ENV"
- name: Get Nixpkgs revision for nixfmt
run: |
# pin to a commit from nixpkgs-unstable to avoid e.g. building nixfmt
# from staging
# This should not be a URL, because it would allow PRs to run arbitrary code in CI!
rev=$(jq -r .rev ci/pinned-nixpkgs.json)
echo "url=https://github.com/NixOS/nixpkgs/archive/$rev.tar.gz" >> "$GITHUB_ENV"
- uses: cachix/install-nix-action@08dcb3a5e62fa31e2da3d490afc4176ef55ecd72 # v30
- uses: cachix/install-nix-action@8887e596b4ee1134dae06b98d573bd674693f47c # v26
with:
# explicitly enable sandbox
extra_nix_config: sandbox = true
nix_path: nixpkgs=${{ env.url }}
# fix a commit from nixpkgs-unstable to avoid e.g. building nixfmt
# from staging
nix_path: nixpkgs=https://github.com/NixOS/nixpkgs/archive/4b455dc2048f73a79eb3713f342369ff58f93e0b.tar.gz
- name: Install nixfmt
run: "nix-env -f '<nixpkgs>' -iAP nixfmt-rfc-style"
- name: Check that Nix files are formatted according to the RFC style
# Each environment variable beginning with NIX_FMT_PATHS_ is a list of
# paths to check with nixfmt.
env:
NIX_FMT_PATHS_BSD: pkgs/os-specific/bsd
NIX_FMT_PATHS_MPVSCRIPTS: pkgs/applications/video/mpv/scripts
# Format paths related to the Nixpkgs CUDA ecosystem.
NIX_FMT_PATHS_CUDA: |
pkgs/development/cuda-modules
pkgs/test/cuda
pkgs/top-level/cuda-packages.nix
NIX_FMT_PATHS_K3S: |
nixos/modules/services/cluster/k3s
nixos/tests/k3s
pkgs/applications/networking/cluster/k3s
NIX_FMT_PATHS_VSCODE_EXTS: pkgs/applications/editors/vscode/extensions
NIX_FMT_PATHS_PHP_PACKAGES: pkgs/development/php-packages
NIX_FMT_PATHS_BUILD_SUPPORT_PHP: pkgs/build-support/php
# Iterate over all environment variables beginning with NIX_FMT_PATHS_.
run: |
unformattedFiles=()
# TODO: Make this more parallel
# Loop through all Nix files touched by the PR
while readarray -d '' -n 2 entry && (( ${#entry[@]} != 0 )); do
type=${entry[0]}
file=${entry[1]}
case $type in
A*)
source=""
dest=$file
;;
M*)
source=$file
dest=$file
;;
C*|R*)
source=$file
read -r -d '' dest
;;
*)
echo "Ignoring file $file with type $type"
continue
esac
# Ignore files that weren't already formatted
if [[ -n "$source" ]] && ! nixfmt --check ${{ env.base }}/"$source" 2>/dev/null; then
echo "Ignoring file $file because it's not formatted in the base commit"
elif ! nixfmt --check "$dest"; then
unformattedFiles+=("$dest")
for env_var in "${!NIX_FMT_PATHS_@}"; do
readarray -t paths <<< "${!env_var}"
if [[ "${paths[*]}" == "" ]]; then
echo "Error: $env_var is empty."
exit 1
fi
done < <(git diff -z --name-status ${{ env.baseRev }} -- '*.nix')
if (( "${#unformattedFiles[@]}" > 0 )); then
echo "Some new/changed Nix files are not properly formatted"
echo "Please go to the Nixpkgs root directory, run \`nix-shell\`, then:"
echo "nixfmt ${unformattedFiles[*]@Q}"
echo "If you're having trouble, please ping @NixOS/nix-formatting"
exit 1
fi
echo "Checking paths: ${paths[@]}"
if ! nixfmt --check "${paths[@]}"; then
echo "Error: nixfmt failed."
exit 1
fi
done

View File

@@ -1,129 +0,0 @@
name: Check changed Nix files with nixf-tidy (experimental)
on:
pull_request_target:
types: [opened, synchronize, reopened, edited]
permissions:
contents: read
jobs:
nixos:
name: exp-nixf-tidy-check
runs-on: ubuntu-latest
if: "!contains(github.event.pull_request.title, '[skip treewide]')"
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
with:
# pull_request_target checks out the base branch by default
ref: refs/pull/${{ github.event.pull_request.number }}/merge
# Fetches the merge commit and its parents
fetch-depth: 2
- name: Checking out base branch
run: |
base=$(mktemp -d)
baseRev=$(git rev-parse HEAD^1)
git worktree add "$base" "$baseRev"
echo "baseRev=$baseRev" >> "$GITHUB_ENV"
echo "base=$base" >> "$GITHUB_ENV"
- name: Get Nixpkgs revision for nixf
run: |
# pin to a commit from nixpkgs-unstable to avoid e.g. building nixf
# from staging
# This should not be a URL, because it would allow PRs to run arbitrary code in CI!
rev=$(jq -r .rev ci/pinned-nixpkgs.json)
echo "url=https://github.com/NixOS/nixpkgs/archive/$rev.tar.gz" >> "$GITHUB_ENV"
- uses: cachix/install-nix-action@08dcb3a5e62fa31e2da3d490afc4176ef55ecd72 # v30
with:
# explicitly enable sandbox
extra_nix_config: sandbox = true
nix_path: nixpkgs=${{ env.url }}
- name: Install nixf and jq
# provided jq is incompatible with our expression
run: "nix-env -f '<nixpkgs>' -iAP nixf jq"
- name: Check that Nix files pass nixf-tidy
run: |
# Filtering error messages we don't like
nixf_wrapper(){
nixf-tidy --variable-lookup < "$1" | jq -r '
[
"sema-escaping-with"
]
as $ignored_errors|[.[]|select(.sname as $s|$ignored_errors|index($s)|not)]
'
}
failedFiles=()
# Don't report errors to file overview
# to avoid duplicates when editing title and description
if [[ "${{ github.event.action }}" == 'edited' ]] && [[ -z "${{ github.event.edited.changes.base }}" ]]; then
DONT_REPORT_ERROR=1
else
DONT_REPORT_ERROR=
fi
# TODO: Make this more parallel
# Loop through all Nix files touched by the PR
while readarray -d '' -n 2 entry && (( ${#entry[@]} != 0 )); do
type=${entry[0]}
file=${entry[1]}
case $type in
A*)
source=""
dest=$file
;;
M*)
source=$file
dest=$file
;;
C*|R*)
source=$file
read -r -d '' dest
;;
*)
echo "Ignoring file $file with type $type"
continue
esac
if [[ -n "$source" ]] && [[ "$(nixf_wrapper ${{ env.base }}/"$source")" != '[]' ]] 2>/dev/null; then
echo "Ignoring file $file because it doesn't pass nixf-tidy in the base commit"
echo # insert blank line
else
nixf_report="$(nixf_wrapper "$dest")"
if [[ "$nixf_report" != '[]' ]]; then
echo "$dest doesn't pass nixf-tidy. Reported by nixf-tidy:"
errors=$(echo "$nixf_report" | jq -r --arg dest "$dest" '
def getLCur: "line=" + (.line+1|tostring) + ",col=" + (.column|tostring);
def getRCur: "endLine=" + (.line+1|tostring) + ",endColumn=" + (.column|tostring);
def getRange: "file=\($dest)," + (.lCur|getLCur) + "," + (.rCur|getRCur);
def getBody: . as $top|(.range|getRange) + ",title="+ .sname + "::" +
(.message|sub("{}" ; ($top.args.[]|tostring)));
def getNote: "\n::notice " + (.|getBody);
def getMessage: "::error " + (.|getBody) + (if (.notes|length)>0 then
([.notes.[]|getNote]|add) else "" end);
.[]|getMessage
')
if [[ -z "$DONT_REPORT_ERROR" ]]; then
echo "$errors"
else
# just print in plain text
echo "$errors" | sed 's/^:://'
echo # add one empty line
fi
failedFiles+=("$dest")
fi
fi
done < <(git diff -z --name-status ${{ env.baseRev }} -- '*.nix')
if [[ -n "$DONT_REPORT_ERROR" ]]; then
echo "Edited the PR but didn't change the base branch, only the description/title."
echo "Not reporting errors again to avoid duplication."
echo # add one empty line
fi
if (( "${#failedFiles[@]}" > 0 )); then
echo "Some new/changed Nix files don't pass nixf-tidy."
echo "See ${{ github.event.pull_request.html_url }}/files for reported errors."
echo "If you believe this is a false positive, ping @Aleksanaa and @inclyc in this PR."
exit 1
fi

View File

@@ -1,31 +0,0 @@
name: "Check shell"
on:
pull_request_target:
permissions: {}
jobs:
x86_64-linux:
name: shell-check-x86_64-linux
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
with:
# pull_request_target checks out the base branch by default
ref: refs/pull/${{ github.event.pull_request.number }}/merge
- uses: cachix/install-nix-action@08dcb3a5e62fa31e2da3d490afc4176ef55ecd72 # v30
- name: Build shell
run: nix-build shell.nix
aarch64-darwin:
name: shell-check-aarch64-darwin
runs-on: macos-latest
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
with:
# pull_request_target checks out the base branch by default
ref: refs/pull/${{ github.event.pull_request.number }}/merge
- uses: cachix/install-nix-action@08dcb3a5e62fa31e2da3d490afc4176ef55ecd72 # v30
- name: Build shell
run: nix-build shell.nix

View File

@@ -1,104 +0,0 @@
name: Codeowners v2
# This workflow depends on two GitHub Apps with the following permissions:
# - For checking code owners:
# - Permissions:
# - Repository > Administration: read-only
# - Organization > Members: read-only
# - Install App on this repository, setting these variables:
# - OWNER_RO_APP_ID (variable)
# - OWNER_RO_APP_PRIVATE_KEY (secret)
# - For requesting code owners:
# - Permissions:
# - Repository > Administration: read-only
# - Organization > Members: read-only
# - Repository > Pull Requests: read-write
# - Install App on this repository, setting these variables:
# - OWNER_APP_ID (variable)
# - OWNER_APP_PRIVATE_KEY (secret)
#
# This split is done because checking code owners requires handling untrusted PR input,
# while requesting code owners requires PR write access, and those shouldn't be mixed.
on:
pull_request_target:
types: [opened, ready_for_review, synchronize, reopened, edited]
# We don't need any default GitHub token
permissions: {}
env:
OWNERS_FILE: ci/OWNERS
# Don't do anything on draft PRs
DRY_MODE: ${{ github.event.pull_request.draft && '1' || '' }}
jobs:
# Check that code owners is valid
check:
name: Check
runs-on: ubuntu-latest
steps:
- uses: cachix/install-nix-action@08dcb3a5e62fa31e2da3d490afc4176ef55ecd72 # v30
- uses: cachix/cachix-action@ad2ddac53f961de1989924296a1f236fcfbaa4fc # v15
if: github.repository_owner == 'NixOS'
with:
# This cache is for the nixpkgs repo checks and should not be trusted or used elsewhere.
name: nixpkgs-ci
authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}'
# Important: Because we use pull_request_target, this checks out the base branch of the PR, not the PR itself.
# We later build and run code from the base branch with access to secrets,
# so it's important this is not the PRs code.
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
with:
path: base
- name: Build codeowners validator
run: nix-build base/ci -A codeownersValidator
- uses: actions/create-github-app-token@5d869da34e18e7287c1daad50e0b8ea0f506ce69 # v1.11.0
id: app-token
with:
app-id: ${{ vars.OWNER_RO_APP_ID }}
private-key: ${{ secrets.OWNER_RO_APP_PRIVATE_KEY }}
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
with:
ref: refs/pull/${{ github.event.number }}/merge
path: pr
- name: Validate codeowners
run: result/bin/codeowners-validator
env:
OWNERS_FILE: pr/${{ env.OWNERS_FILE }}
GITHUB_ACCESS_TOKEN: ${{ steps.app-token.outputs.token }}
REPOSITORY_PATH: pr
OWNER_CHECKER_REPOSITORY: ${{ github.repository }}
# Set this to "notowned,avoid-shadowing" to check that all files are owned by somebody
EXPERIMENTAL_CHECKS: "avoid-shadowing"
# Request reviews from code owners
request:
name: Request
runs-on: ubuntu-latest
steps:
- uses: cachix/install-nix-action@08dcb3a5e62fa31e2da3d490afc4176ef55ecd72 # v30
# Important: Because we use pull_request_target, this checks out the base branch of the PR, not the PR head.
# This is intentional, because we need to request the review of owners as declared in the base branch.
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- uses: actions/create-github-app-token@5d869da34e18e7287c1daad50e0b8ea0f506ce69 # v1.11.0
id: app-token
with:
app-id: ${{ vars.OWNER_APP_ID }}
private-key: ${{ secrets.OWNER_APP_PRIVATE_KEY }}
- name: Build review request package
run: nix-build ci -A requestReviews
- name: Request reviews
run: result/bin/request-reviews.sh ${{ github.repository }} ${{ github.event.number }} "$OWNERS_FILE"
env:
GH_TOKEN: ${{ steps.app-token.outputs.token }}

View File

@@ -1,44 +0,0 @@
name: "Checking EditorConfig v2"
permissions:
pull-requests: read
contents: read
on:
# avoids approving first time contributors
pull_request_target:
branches-ignore:
- 'release-**'
jobs:
tests:
name: editorconfig-check
runs-on: ubuntu-latest
if: "github.repository_owner == 'NixOS' && !contains(github.event.pull_request.title, '[skip treewide]')"
steps:
- name: Get list of changed files from PR
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
gh api \
repos/NixOS/nixpkgs/pulls/${{github.event.number}}/files --paginate \
| jq '.[] | select(.status != "removed") | .filename' \
> "$HOME/changed_files"
- name: print list of changed files
run: |
cat "$HOME/changed_files"
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
with:
# pull_request_target checks out the base branch by default
ref: refs/pull/${{ github.event.pull_request.number }}/merge
- uses: cachix/install-nix-action@08dcb3a5e62fa31e2da3d490afc4176ef55ecd72 # v30
with:
# nixpkgs commit is pinned so that it doesn't break
# editorconfig-checker 2.4.0
nix_path: nixpkgs=https://github.com/NixOS/nixpkgs/archive/c473cc8714710179df205b153f4e9fa007107ff9.tar.gz
- name: Checking EditorConfig
run: |
cat "$HOME/changed_files" | nix-shell -p editorconfig-checker --run 'xargs -r editorconfig-checker -disable-indent-size'
- if: ${{ failure() }}
run: |
echo "::error :: Hey! It looks like your changes don't follow our editorconfig settings. Read https://editorconfig.org/#download to configure your editor so you never see this error again."

41
.github/workflows/editorconfig.yml vendored Normal file
View File

@@ -0,0 +1,41 @@
name: "Checking EditorConfig"
permissions: read-all
on:
# avoids approving first time contributors
pull_request_target:
branches-ignore:
- 'release-**'
jobs:
tests:
runs-on: ubuntu-latest
if: "github.repository_owner == 'NixOS' && !contains(github.event.pull_request.title, '[skip treewide]')"
steps:
- name: Get list of changed files from PR
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
gh api \
repos/NixOS/nixpkgs/pulls/${{github.event.number}}/files --paginate \
| jq '.[] | select(.status != "removed") | .filename' \
> "$HOME/changed_files"
- name: print list of changed files
run: |
cat "$HOME/changed_files"
- uses: actions/checkout@44c2b7a8a4ea60a981eaca3cf939b5f4305c123b # v4.1.5
with:
# pull_request_target checks out the base branch by default
ref: refs/pull/${{ github.event.pull_request.number }}/merge
- uses: cachix/install-nix-action@8887e596b4ee1134dae06b98d573bd674693f47c # v26
with:
# nixpkgs commit is pinned so that it doesn't break
# editorconfig-checker 2.4.0
nix_path: nixpkgs=https://github.com/NixOS/nixpkgs/archive/c473cc8714710179df205b153f4e9fa007107ff9.tar.gz
- name: Checking EditorConfig
run: |
cat "$HOME/changed_files" | nix-shell -p editorconfig-checker --run 'xargs -r editorconfig-checker -disable-indent-size'
- if: ${{ failure() }}
run: |
echo "::error :: Hey! It looks like your changes don't follow our editorconfig settings. Read https://editorconfig.org/#download to configure your editor so you never see this error again."

View File

@@ -15,7 +15,6 @@ permissions:
jobs:
labels:
name: label-pr
runs-on: ubuntu-latest
if: "github.repository_owner == 'NixOS' && !contains(github.event.pull_request.title, '[skip treewide]')"
steps:

View File

@@ -1,33 +0,0 @@
name: "Build NixOS manual v2"
permissions:
contents: read
on:
pull_request_target:
branches:
- master
paths:
- 'nixos/**'
jobs:
nixos:
name: nixos-manual-build
runs-on: ubuntu-latest
if: github.repository_owner == 'NixOS'
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
with:
# pull_request_target checks out the base branch by default
ref: refs/pull/${{ github.event.pull_request.number }}/merge
- uses: cachix/install-nix-action@08dcb3a5e62fa31e2da3d490afc4176ef55ecd72 # v30
with:
# explicitly enable sandbox
extra_nix_config: sandbox = true
- uses: cachix/cachix-action@ad2ddac53f961de1989924296a1f236fcfbaa4fc # v15
with:
# This cache is for the nixpkgs repo checks and should not be trusted or used elsewhere.
name: nixpkgs-ci
authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}'
- name: Building NixOS manual
run: NIX_PATH=nixpkgs=$(pwd) nix-build --option restrict-eval true nixos/release.nix -A manual.x86_64-linux

31
.github/workflows/manual-nixos.yml vendored Normal file
View File

@@ -0,0 +1,31 @@
name: "Build NixOS manual"
permissions: read-all
on:
pull_request_target:
branches:
- master
paths:
- 'nixos/**'
jobs:
nixos:
runs-on: ubuntu-latest
if: github.repository_owner == 'NixOS'
steps:
- uses: actions/checkout@44c2b7a8a4ea60a981eaca3cf939b5f4305c123b # v4.1.5
with:
# pull_request_target checks out the base branch by default
ref: refs/pull/${{ github.event.pull_request.number }}/merge
- uses: cachix/install-nix-action@8887e596b4ee1134dae06b98d573bd674693f47c # v26
with:
# explicitly enable sandbox
extra_nix_config: sandbox = true
- uses: cachix/cachix-action@18cf96c7c98e048e10a83abd92116114cd8504be # v14
with:
# This cache is for the nixpkgs repo checks and should not be trusted or used elsewhere.
name: nixpkgs-ci
authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}'
- name: Building NixOS manual
run: NIX_PATH=nixpkgs=$(pwd) nix-build --option restrict-eval true nixos/release.nix -A manual.x86_64-linux

View File

@@ -1,35 +0,0 @@
name: "Build Nixpkgs manual v2"
permissions:
contents: read
on:
pull_request_target:
branches:
- master
paths:
- 'doc/**'
- 'lib/**'
- 'pkgs/tools/nix/nixdoc/**'
jobs:
nixpkgs:
name: nixpkgs-manual-build
runs-on: ubuntu-latest
if: github.repository_owner == 'NixOS'
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
with:
# pull_request_target checks out the base branch by default
ref: refs/pull/${{ github.event.pull_request.number }}/merge
- uses: cachix/install-nix-action@08dcb3a5e62fa31e2da3d490afc4176ef55ecd72 # v30
with:
# explicitly enable sandbox
extra_nix_config: sandbox = true
- uses: cachix/cachix-action@ad2ddac53f961de1989924296a1f236fcfbaa4fc # v15
with:
# This cache is for the nixpkgs repo checks and should not be trusted or used elsewhere.
name: nixpkgs-ci
authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}'
- name: Building Nixpkgs manual
run: NIX_PATH=nixpkgs=$(pwd) nix-build --option restrict-eval true pkgs/top-level/release.nix -A manual -A manual.tests

33
.github/workflows/manual-nixpkgs.yml vendored Normal file
View File

@@ -0,0 +1,33 @@
name: "Build Nixpkgs manual"
permissions: read-all
on:
pull_request_target:
branches:
- master
paths:
- 'doc/**'
- 'lib/**'
- 'pkgs/tools/nix/nixdoc/**'
jobs:
nixpkgs:
runs-on: ubuntu-latest
if: github.repository_owner == 'NixOS'
steps:
- uses: actions/checkout@44c2b7a8a4ea60a981eaca3cf939b5f4305c123b # v4.1.5
with:
# pull_request_target checks out the base branch by default
ref: refs/pull/${{ github.event.pull_request.number }}/merge
- uses: cachix/install-nix-action@8887e596b4ee1134dae06b98d573bd674693f47c # v26
with:
# explicitly enable sandbox
extra_nix_config: sandbox = true
- uses: cachix/cachix-action@18cf96c7c98e048e10a83abd92116114cd8504be # v14
with:
# This cache is for the nixpkgs repo checks and should not be trusted or used elsewhere.
name: nixpkgs-ci
authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}'
- name: Building Nixpkgs manual
run: NIX_PATH=nixpkgs=$(pwd) nix-build --option restrict-eval true pkgs/top-level/release.nix -A manual -A manual.tests

View File

@@ -1,45 +0,0 @@
name: "Check whether nix files are parseable v2"
permissions:
pull-requests: read
contents: read
on:
# avoids approving first time contributors
pull_request_target:
branches-ignore:
- 'release-**'
jobs:
tests:
name: nix-files-parseable-check
runs-on: ubuntu-latest
if: "github.repository_owner == 'NixOS' && !contains(github.event.pull_request.title, '[skip treewide]')"
steps:
- name: Get list of changed files from PR
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
gh api \
repos/NixOS/nixpkgs/pulls/${{github.event.number}}/files --paginate \
| jq --raw-output '.[] | select(.status != "removed" and (.filename | endswith(".nix"))) | .filename' \
> "$HOME/changed_files"
if [[ -s "$HOME/changed_files" ]]; then
echo "CHANGED_FILES=$HOME/changed_files" > "$GITHUB_ENV"
fi
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
with:
# pull_request_target checks out the base branch by default
ref: refs/pull/${{ github.event.pull_request.number }}/merge
if: ${{ env.CHANGED_FILES && env.CHANGED_FILES != '' }}
- uses: cachix/install-nix-action@08dcb3a5e62fa31e2da3d490afc4176ef55ecd72 # v30
with:
nix_path: nixpkgs=channel:nixpkgs-unstable
- name: Parse all changed or added nix files
run: |
ret=0
while IFS= read -r file; do
out="$(nix-instantiate --parse "$file")" || { echo "$out" && ret=1; }
done < "$HOME/changed_files"
exit "$ret"
if: ${{ env.CHANGED_FILES && env.CHANGED_FILES != '' }}

42
.github/workflows/nix-parse.yml vendored Normal file
View File

@@ -0,0 +1,42 @@
name: "Check whether nix files are parseable"
permissions: read-all
on:
# avoids approving first time contributors
pull_request_target:
branches-ignore:
- 'release-**'
jobs:
tests:
runs-on: ubuntu-latest
if: "github.repository_owner == 'NixOS' && !contains(github.event.pull_request.title, '[skip treewide]')"
steps:
- name: Get list of changed files from PR
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
gh api \
repos/NixOS/nixpkgs/pulls/${{github.event.number}}/files --paginate \
| jq --raw-output '.[] | select(.status != "removed" and (.filename | endswith(".nix"))) | .filename' \
> "$HOME/changed_files"
if [[ -s "$HOME/changed_files" ]]; then
echo "CHANGED_FILES=$HOME/changed_files" > "$GITHUB_ENV"
fi
- uses: actions/checkout@44c2b7a8a4ea60a981eaca3cf939b5f4305c123b # v4.1.5
with:
# pull_request_target checks out the base branch by default
ref: refs/pull/${{ github.event.pull_request.number }}/merge
if: ${{ env.CHANGED_FILES && env.CHANGED_FILES != '' }}
- uses: cachix/install-nix-action@8887e596b4ee1134dae06b98d573bd674693f47c # v26
with:
nix_path: nixpkgs=channel:nixpkgs-unstable
- name: Parse all changed or added nix files
run: |
ret=0
while IFS= read -r file; do
out="$(nix-instantiate --parse "$file")" || { echo "$out" && ret=1; }
done < "$HOME/changed_files"
exit "$ret"
if: ${{ env.CHANGED_FILES && env.CHANGED_FILES != '' }}

View File

@@ -1,86 +0,0 @@
# `nixpkgs-vet` is a tool to vet Nixpkgs: its architecture, package structure, and more.
# Among other checks, it makes sure that `pkgs/by-name` (see `../../pkgs/by-name/README.md`) follows the validity rules outlined in [RFC 140](https://github.com/NixOS/rfcs/pull/140).
# When you make changes to this workflow, please also update `ci/nixpkgs-vet.sh` to reflect the impact of your work to the CI.
# See https://github.com/NixOS/nixpkgs-vet for details on the tool and its checks.
name: Vet nixpkgs
on:
# Using pull_request_target instead of pull_request avoids having to approve first time contributors.
pull_request_target:
# This workflow depends on the base branch of the PR, but changing the base branch is not included in the default trigger events, which would be `opened`, `synchronize` or `reopened`.
# Instead it causes an `edited` event, so we need to add it explicitly here.
# While `edited` is also triggered when the PR title/body is changed, this PR action is fairly quick, and PRs don't get edited **that** often, so it shouldn't be a problem.
# There is a feature request for adding a `base_changed` event: https://github.com/orgs/community/discussions/35058
types: [opened, synchronize, reopened, edited]
permissions: {}
# We don't use a concurrency group here, because the action is triggered quite often (due to the PR edit trigger), and contributors would get notified on any canceled run.
# There is a feature request for suppressing notifications on concurrency-canceled runs: https://github.com/orgs/community/discussions/13015
jobs:
check:
name: nixpkgs-vet
# This needs to be x86_64-linux, because we depend on the tooling being pre-built in the GitHub releases.
runs-on: ubuntu-latest
# This should take 1 minute at most, but let's be generous. The default of 6 hours is definitely too long.
timeout-minutes: 10
steps:
# This checks out the base branch because of pull_request_target
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
with:
path: base
sparse-checkout: ci
- name: Resolving the merge commit
env:
GH_TOKEN: ${{ github.token }}
run: |
if mergedSha=$(base/ci/get-merge-commit.sh ${{ github.repository }} ${{ github.event.number }}); then
echo "Checking the merge commit $mergedSha"
echo "mergedSha=$mergedSha" >> "$GITHUB_ENV"
else
echo "Skipping the rest..."
fi
rm -rf base
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
if: env.mergedSha
with:
# pull_request_target checks out the base branch by default
ref: ${{ env.mergedSha }}
# Fetches the merge commit and its parents
fetch-depth: 2
- name: Checking out base branch
if: env.mergedSha
run: |
base=$(mktemp -d)
git worktree add "$base" "$(git rev-parse HEAD^1)"
echo "base=$base" >> "$GITHUB_ENV"
- uses: cachix/install-nix-action@08dcb3a5e62fa31e2da3d490afc4176ef55ecd72 # v30
if: env.mergedSha
- name: Fetching the pinned tool
if: env.mergedSha
# Update the pinned version using ci/nixpkgs-vet/update-pinned-tool.sh
run: |
# The pinned version of the tooling to use.
toolVersion=$(<ci/nixpkgs-vet/pinned-version.txt)
# Fetch the x86_64-linux-specific release artifact containing the gzipped NAR of the pre-built tool.
toolPath=$(curl -sSfL https://github.com/NixOS/nixpkgs-vet/releases/download/"$toolVersion"/x86_64-linux.nar.gz \
| gzip -cd | nix-store --import | tail -1)
# Adds a result symlink as a GC root.
nix-store --realise "$toolPath" --add-root result
- name: Running nixpkgs-vet
if: env.mergedSha
env:
# Force terminal colors to be enabled. The library that `nixpkgs-vet` uses respects https://bixense.com/clicolors/
CLICOLOR_FORCE: 1
run: |
if result/bin/nixpkgs-vet --base "$base" .; then
exit 0
else
exitCode=$?
echo "To run locally: ./ci/nixpkgs-vet.sh $GITHUB_BASE_REF https://github.com/$GITHUB_REPOSITORY.git"
echo "If you're having trouble, ping @NixOS/nixpkgs-vet"
exit "$exitCode"
fi

View File

@@ -16,7 +16,6 @@ permissions:
jobs:
action:
name: set-ofborg-pending
if: github.repository_owner == 'NixOS'
permissions:
statuses: write

View File

@@ -35,13 +35,13 @@ jobs:
pairs:
- from: master
into: haskell-updates
- from: release-24.05
into: staging-next-24.05
- from: staging-next-24.05
into: staging-24.05
- from: release-23.11
into: staging-next-23.11
- from: staging-next-23.11
into: staging-23.11
name: ${{ matrix.pairs.from }} → ${{ matrix.pairs.into }}
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- uses: actions/checkout@44c2b7a8a4ea60a981eaca3cf939b5f4305c123b # v4.1.5
- name: ${{ matrix.pairs.from }} → ${{ matrix.pairs.into }}
uses: devmasx/merge-branch@854d3ac71ed1e9deb668e0074781b81fdd6e771f # 1.4.0

View File

@@ -39,7 +39,7 @@ jobs:
into: staging
name: ${{ matrix.pairs.from }} → ${{ matrix.pairs.into }}
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- uses: actions/checkout@44c2b7a8a4ea60a981eaca3cf939b5f4305c123b # v4.1.5
- name: ${{ matrix.pairs.from }} → ${{ matrix.pairs.into }}
uses: devmasx/merge-branch@854d3ac71ed1e9deb668e0074781b81fdd6e771f # 1.4.0

View File

@@ -0,0 +1,69 @@
name: "Update terraform-providers"
on:
#schedule:
# - cron: "0 3 * * *"
workflow_dispatch:
permissions:
contents: read
jobs:
tf-providers:
permissions:
contents: write # for peter-evans/create-pull-request to create branch
pull-requests: write # for peter-evans/create-pull-request to create a PR
if: github.repository_owner == 'NixOS' && github.ref == 'refs/heads/master' # ensure workflow_dispatch only runs on master
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@44c2b7a8a4ea60a981eaca3cf939b5f4305c123b # v4.1.5
- uses: cachix/install-nix-action@8887e596b4ee1134dae06b98d573bd674693f47c # v26
with:
nix_path: nixpkgs=channel:nixpkgs-unstable
- name: setup
id: setup
run: |
echo "title=terraform-providers: update $(date -u +"%Y-%m-%d")" >> $GITHUB_OUTPUT
- name: update terraform-providers
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
git config user.name "github-actions[bot]"
echo | nix-shell \
maintainers/scripts/update.nix \
--argstr commit true \
--argstr keep-going true \
--argstr max-workers 2 \
--argstr path terraform-providers
- name: get failed updates
run: |
echo 'FAILED<<EOF' >> $GITHUB_ENV
git ls-files --others >> $GITHUB_ENV
echo 'EOF' >> $GITHUB_ENV
# cleanup logs of failed updates so they aren't included in the PR
- name: clean repo
run: |
git clean -f
- name: create PR
uses: peter-evans/create-pull-request@9153d834b60caba6d51c9b9510b087acf9f33f83 # v6.0.4
with:
body: |
Automatic update by [update-terraform-providers](https://github.com/NixOS/nixpkgs/blob/master/.github/workflows/update-terraform-providers.yml) action.
https://github.com/NixOS/nixpkgs/actions/runs/${{ github.run_id }}
These providers failed to update:
```
${{ env.FAILED }}
```
Check that all providers build with:
```
@ofborg build opentofu.full
```
If there is more than ten commits in the PR `ofborg` won't build it automatically and you will need to use the above command.
branch: terraform-providers-update
delete-branch: false
title: ${{ steps.setup.outputs.title }}
token: ${{ secrets.GITHUB_TOKEN }}

3
.gitignore vendored
View File

@@ -7,7 +7,6 @@
.idea/
.nixos-test-history
.vscode/
.helix/
outputs/
result-*
result
@@ -20,8 +19,6 @@ tags
/doc/manual.pdf
/source/
.version-suffix
.direnv
.envrc
.DS_Store
.mypy_cache

View File

@@ -1,25 +1,15 @@
ajs124 <git@ajs124.de> <ajs124@users.noreply.github.com>
Anderson Torres <torres.anderson.85@protonmail.com>
Atemu <git@atemu.net> <atemu.main@gmail.com>
Christina Sørensen <christina@cafkafk.com>
Christina Sørensen <christina@cafkafk.com> <christinaafk@gmail.com>
Christina Sørensen <christina@cafkafk.com> <89321978+cafkafk@users.noreply.github.com>
Daniel Løvbrøtte Olsen <me@dandellion.xyz> <daniel.olsen99@gmail.com>
Fabian Affolter <mail@fabian-affolter.ch> <fabian@affolter-engineering.ch>
Fiona Behrens <me@kloenk.dev>
Fiona Behrens <me@kloenk.dev> <me@kloenk.de>
goatastronaut0212 <goatastronaut0212@outlook.com> <goatastronaut0212@proton.me>
Janne Heß <janne@hess.ooo> <dasJ@users.noreply.github.com>
Jörg Thalheim <joerg@thalheim.io> <Mic92@users.noreply.github.com>
Lin Jian <me@linj.tech> <linj.dev@outlook.com>
Lin Jian <me@linj.tech> <75130626+jian-lin@users.noreply.github.com>
Martin Weinelt <hexa@darmstadt.ccc.de> <mweinelt@users.noreply.github.com>
R. RyanTM <ryantm-bot@ryantm.com>
Robert Hensing <robert@roberthensing.nl> <roberth@users.noreply.github.com>
Sandro Jäckel <sandro.jaeckel@gmail.com>
Sandro Jäckel <sandro.jaeckel@gmail.com> <sandro.jaeckel@sap.com>
superherointj <5861043+superherointj@users.noreply.github.com>
Tomodachi94 <tomodachi94@protonmail.com> Tomo <68489118+Tomodachi94@users.noreply.github.com>
Vladimír Čunát <v@cunat.cz> <vcunat@gmail.com>
Vladimír Čunát <v@cunat.cz> <vladimir.cunat@nic.cz>
Yifei Sun <ysun@hey.com> StepBroBD <Hi@StepBroBD.com>

View File

@@ -93,8 +93,6 @@ This section describes in some detail how changes can be made and proposed with
7. Respond to review comments, potential CI failures and potential merge conflicts by updating the pull request.
Always keep the pull request in a mergeable state.
This process is covered in more detail from the non-technical side in [I opened a PR, how do I get it merged?](#i-opened-a-pr-how-do-i-get-it-merged).
The custom [OfBorg](https://github.com/NixOS/ofborg) CI system will perform various checks to help ensure code quality, whose results you can see at the bottom of the pull request.
See [the OfBorg Readme](https://github.com/NixOS/ofborg#readme) for more details.
@@ -195,12 +193,19 @@ The last checkbox is about whether it fits the guidelines in this `CONTRIBUTING.
[rebase]: #rebasing-between-branches-ie-from-master-to-staging
From time to time, changes between branches must be rebased, for example, if the
number of new rebuilds they would cause is too large for the target branch.
number of new rebuilds they would cause is too large for the target branch. When
rebasing, care must be taken to include only the intended changes, otherwise
many CODEOWNERS will be inadvertently requested for review. To achieve this,
rebasing should not be performed directly on the target branch, but on the merge
base between the current and target branch. As an additional precautionary measure,
you should temporarily mark the PR as draft for the duration of the operation.
This reduces the probability of mass-pinging people. (OfBorg might still
request a couple of persons for reviews though.)
In the following example, we assume that the current branch, called `feature`,
is based on `master`, and we rebase it onto the merge base between
`master` and `staging` so that the PR can be retargeted to
`staging`. The example uses `upstream` as the remote for `NixOS/nixpkgs.git`
`master` and `staging` so that the PR can eventually be retargeted to
`staging` without causing a mess. The example uses `upstream` as the remote for `NixOS/nixpkgs.git`
while `origin` is the remote you are pushing to.
@@ -229,6 +234,36 @@ git status
git push origin feature --force-with-lease
```
#### Something went wrong and a lot of people were pinged
It happens. Remember to be kind, especially to new contributors.
There is no way back, so the pull request should be closed and locked
(if possible). The changes should be re-submitted in a new PR, in which the people
originally involved in the conversation need to manually be pinged again.
No further discussion should happen on the original PR, as a lot of people
are now subscribed to it.
The following message (or a version thereof) might be left when closing to
describe the situation, since closing and locking without any explanation
is kind of rude:
```markdown
It looks like you accidentally mass-pinged a bunch of people, which are now subscribed
and getting notifications for everything in this pull request. Unfortunately, they
cannot be automatically unsubscribed from the issue (removing review request does not
unsubscribe), therefore development cannot continue in this pull request anymore.
Please open a new pull request with your changes, link back to this one and ping the
people actually involved in here over there.
In order to avoid this in the future, there are instructions for how to properly
rebase between branches in our [contribution guidelines](https://github.com/NixOS/nixpkgs/blob/master/CONTRIBUTING.md#rebasing-between-branches-ie-from-master-to-staging).
Setting your pull request to draft prior to rebasing is strongly recommended.
In draft status, you can preview the list of people that are about to be requested
for review, which allows you to sidestep this issue.
This is not a bulletproof method though, as OfBorg still does review requests even on draft PRs.
```
## How to backport pull requests
[pr-backport]: #how-to-backport-pull-requests
@@ -280,22 +315,6 @@ When reviewing a pull request, please always be nice and polite. Controversial c
GitHub provides reactions as a simple and quick way to provide feedback to pull requests or any comments. The thumb-down reaction should be used with care and if possible accompanied with some explanation so the submitter has directions to improve their contribution.
When doing a review:
- Aim to drive the proposal to a timely conclusion.
- Focus on the proposed changes to keep the scope of the discussion narrow.
- Help the contributor prioritise their efforts towards getting their change merged.
If you find anything related that could be improved but is not immediately required for acceptance, consider
- Implementing the changes yourself in a follow-up pull request (and request review from the person who inspired you)
- Tracking your idea in an issue
- Offering the original contributor to review a follow-up pull request
- Making concrete [suggestions](https://docs.github.com/en/pull-requests/collaborating-with-pull-requests/reviewing-changes-in-pull-requests/incorporating-feedback-in-your-pull-request) in the same pull request.
For example, follow-up changes could involve refactoring code in the affected files.
But please remember not to make such additional considerations a blocker, and communicate that to the contributor, for example by following the [conventional comments](https://conventionalcomments.org/) pattern.
If the related change is essential for the contribution at hand, make clear why you think it is important to address that first.
Pull request reviews should include a list of what has been reviewed in a comment, so other reviewers and mergers can know the state of the review.
All the review template samples provided in this section are generic and meant as examples. Their usage is optional and the reviewer is free to adapt them to their liking.
@@ -308,18 +327,13 @@ If you consider having enough knowledge and experience in a topic and would like
Container system, boot system and library changes are some examples of the pull requests fitting this category.
## How to merge pull requests yourself
## How to merge pull requests
[pr-merge]: #how-to-merge-pull-requests
To streamline automated updates, leverage the nixpkgs-merge-bot by simply commenting `@NixOS/nixpkgs-merge-bot merge`. The bot will verify if the following conditions are met, refusing to merge otherwise:
The *Nixpkgs committers* are people who have been given
permission to merge.
- the PR author should be @r-ryantm;
- the commenter that issued the command should be among the package maintainers;
- the package should reside in `pkgs/by-name`.
Further, nixpkgs-merge-bot will ensure all ofBorg checks (except the Darwin-related ones) are successfully completed before merging the pull request. Should the checks still be underway, the bot patiently waits for ofBorg to finish before attempting the merge again.
For other pull requests, please see [I opened a PR, how do I get it merged?](#i-opened-a-pr-how-do-i-get-it-merged).
It is possible for community members that have enough knowledge and experience on a special topic to contribute by merging pull requests.
In case the PR is stuck waiting for the original author to apply a trivial
change (a typo, capitalisation change, etc.) and the author allowed the members
@@ -333,7 +347,7 @@ The following paragraphs about how to deal with unactive contributors is just a
Please note that contributors with commit rights unactive for more than three months will have their commit rights revoked.
-->
Please see the discussion in [GitHub nixpkgs issue #321665](https://github.com/NixOS/nixpkgs/issues/321665) for information on how to proceed to be granted this level of access.
Please see the discussion in [GitHub nixpkgs issue #50105](https://github.com/NixOS/nixpkgs/issues/50105) for information on how to proceed to be granted this level of access.
In a case a contributor definitively leaves the Nix community, they should create an issue or post on [Discourse](https://discourse.nixos.org) with references of packages and modules they maintain so the maintainership can be taken over by other contributors.
@@ -345,7 +359,7 @@ See [Nix Channel Status](https://status.nixos.org/) for the current channels and
Here's a brief overview of the main Git branches and what channels they're used for:
- `master`: The main branch, used for the unstable channels such as `nixpkgs-unstable`, `nixos-unstable` and `nixos-unstable-small`.
- `release-YY.MM` (e.g. `release-24.05`): The NixOS release branches, used for the stable channels such as `nixos-24.05`, `nixos-24.05-small` and `nixpkgs-24.05-darwin`.
- `release-YY.MM` (e.g. `release-23.11`): The NixOS release branches, used for the stable channels such as `nixos-23.11`, `nixos-23.11-small` and `nixpkgs-23.11-darwin`.
When a channel is updated, a corresponding Git branch is also updated to point to the corresponding commit.
So e.g. the [`nixpkgs-unstable` branch](https://github.com/nixos/nixpkgs/tree/nixpkgs-unstable) corresponds to the Git commit from the [`nixpkgs-unstable` channel](https://channels.nixos.org/nixpkgs-unstable).
@@ -358,12 +372,10 @@ See [this section][branch] to know when to use the release branches.
[staging]: #staging
The staging workflow exists to batch Hydra builds of many packages together.
It is coordinated in the [Staging room](https://matrix.to/#/#staging:nixos.org) on Matrix.
It works by directing commits that cause [mass rebuilds][mass-rebuild] to a separate `staging` branch that isn't directly built by Hydra.
Regularly, the `staging` branch is _manually_ merged into a `staging-next` branch to be built by Hydra using the [`nixpkgs:staging-next` jobset](https://hydra.nixos.org/jobset/nixpkgs/staging-next).
The `staging-next` branch should then only receive changes that fix Hydra builds;
**for anything else, ask the [Staging room](https://matrix.to/#/#staging:nixos.org) first**.
The `staging-next` branch should then only receive direct commits in order to fix Hydra builds.
Once it is verified that there are no major regressions, it is merged into `master` using [a pull request](https://github.com/NixOS/nixpkgs/pulls?q=head%3Astaging-next).
This is done manually in order to ensure it's a good use of Hydra's computing resources.
By keeping the `staging-next` branch separate from `staging`, this batching does not block developers from merging changes into `staging`.
@@ -393,10 +405,14 @@ Here is a Git history diagram showing the flow of commits between the three bran
} }%%
gitGraph
commit id:" "
branch staging
commit id:" "
branch staging-next
branch staging
checkout master
checkout staging
checkout master
commit id:" "
checkout staging-next
merge master id:"automatic"
checkout staging
merge staging-next id:"automatic "
@@ -512,7 +528,6 @@ To get a sense for what changes are considered mass rebuilds, see [previously me
- [Commit conventions](./doc/README.md#commit-conventions) for changes to `doc`, the Nixpkgs manual.
### Writing good commit messages
[writing-good-commit-messages]: #writing-good-commit-messages
In addition to writing properly formatted commit messages, it's important to include relevant information so other developers can later understand *why* a change was made. While this information usually can be found by digging code, mailing list/Discourse archives, pull request discussions or upstream changes, it may require a lot of work.
@@ -533,11 +548,138 @@ Names of files and directories should be in lowercase, with dashes between words
### Syntax
- Set up [editorconfig](https://editorconfig.org/) for your editor, such that [the settings](./.editorconfig) are automatically applied.
- Use 2 spaces of indentation per indentation level in Nix expressions, 4 spaces in shell scripts.
- Do not use tab characters, i.e. configure your editor to use soft tabs. For instance, use `(setq-default indent-tabs-mode nil)` in Emacs. Everybody has different tab settings so its asking for trouble.
- Use `lowerCamelCase` for variable names, not `UpperCamelCase`. Note, this rule does not apply to package attribute names, which instead follow the rules in [package naming](./pkgs/README.md#package-naming).
- New files must be formatted by entering the `nix-shell` from the repository root and running `nixfmt`.
- Function calls with attribute set arguments are written as
```nix
foo {
arg = <...>;
}
```
not
```nix
foo
{
arg = <...>;
}
```
Also fine is
```nix
foo { arg = <...>; }
```
if it's a short call.
- In attribute sets or lists that span multiple lines, the attribute names or list elements should be aligned:
```nix
{
# A long list.
list = [
elem1
elem2
elem3
];
# A long attribute set.
attrs = {
attr1 = short_expr;
attr2 =
if true then big_expr else big_expr;
};
# Combined
listOfAttrs = [
{
attr1 = 3;
attr2 = "fff";
}
{
attr1 = 5;
attr2 = "ggg";
}
];
}
```
- Short lists or attribute sets can be written on one line:
```nix
{
# A short list.
list = [ elem1 elem2 elem3 ];
# A short set.
attrs = { x = 1280; y = 1024; };
}
```
- Breaking in the middle of a function argument can give hard-to-read code, like
```nix
someFunction { x = 1280;
y = 1024; } otherArg
yetAnotherArg
```
(especially if the argument is very large, spanning multiple lines).
Better:
```nix
someFunction
{ x = 1280; y = 1024; }
otherArg
yetAnotherArg
```
or
```nix
let res = { x = 1280; y = 1024; };
in someFunction res otherArg yetAnotherArg
```
- The bodies of functions, asserts, and withs are not indented to prevent a lot of superfluous indentation levels, i.e.
```nix
{ arg1, arg2 }:
assert system == "i686-linux";
stdenv.mkDerivation { /* ... */ }
```
not
```nix
{ arg1, arg2 }:
assert system == "i686-linux";
stdenv.mkDerivation { /* ... */ }
```
- Function formal arguments are written as:
```nix
{ arg1, arg2, arg3 }: { /* ... */ }
```
but if they don't fit on one line they're written as:
```nix
{ arg1, arg2, arg3
, arg4
# Some comment...
, argN
}: { }
```
- Functions should list their expected arguments as precisely as possible. That is, write
@@ -597,7 +739,7 @@ Names of files and directories should be in lowercase, with dashes between words
```nix
{
buildInputs = lib.optional stdenv.hostPlatform.isDarwin iconv;
buildInputs = lib.optional stdenv.isDarwin iconv;
}
```
@@ -605,198 +747,9 @@ Names of files and directories should be in lowercase, with dashes between words
```nix
{
buildInputs = if stdenv.hostPlatform.isDarwin then [ iconv ] else null;
buildInputs = if stdenv.isDarwin then [ iconv ] else null;
}
```
As an exception, an explicit conditional expression with null can be used when fixing a important bug without triggering a mass rebuild.
If this is done a follow up pull request _should_ be created to change the code to `lib.optional(s)`.
# Practical contributing advice
To contribute effectively and efficiently, you need to be aware of how the contributing process generally works.
This section aims to document the process as we live it in Nixpkgs to set expectations right and give practical tips on how to work with it.
## I opened a PR, how do I get it merged?
[i-opened-a-pr-how-do-i-get-it-merged]:#i-opened-a-pr-how-do-i-get-it-merged
In order for your PR to be merged, someone with merge permissions on the repository ("committer") needs to review and merge it.
Because the group of people with merge permissions is mostly a collection of independent unpaid volunteers who do this in their own free time, this can take some time to happen.
It is entirely normal for your PR to sit around without any feedback for days, weeks or sometimes even months.
We strive to avoid the latter cases of course but the reality of it is that this does happen quite frequently.
Even when you get feedback, follow-up feedback may take similarly long.
Don't be intimidated by this and kindly ask for feedback again every so often.
If your change is good it will eventually be merged at some point.
There are some things you can do to help speed up the process of your PR being merged though.
In order to speed the process up, you need to know what needs to happen before a committer will actually hit the merge button.
This section intends to give a little overview and insight of what happens after you create your PR.
### The committer's perspective
PRs have varying quality and even the best people make mistakes.
It is the role of the committer team to assess whether any PR's changes are good changes or not.
In order for any PR to be merged, at least one committer needs to be convinced of its quality enough to merge it.
Committers typically assess three aspects of your PR:
1. Whether the change's intention is necessary and desirable
2. Whether the code quality of your changes is good
3. Whether the artefacts produced by the code are good
If you want your PR to get merged quickly and smoothly, it is in your best interest to help convince committers in these three aspects.
### How to help committers assess your PR
For the committer to judge your intention, it's best to explain why you've made your change.
This does not apply to trivial changes like version updates because the intention is obvious (though linking the changelog is appreciated).
For any more nuanced changed or even major version upgrades, it helps if you explain the background behind your change a bit.
E.g. if you're adding a package, explain what it is and why it should be in Nixpkgs.
This goes hand in hand with [Writing good commit messages](#writing-good-commit-messages).
For the code quality assessment, you cannot do anything yourself as only the committer can do this and they already have your code to look at.
In order to minimise the need for back and forth though, do take a look over your code changes yourself and try to put yourself into the shoes of someone who didn't just write that code.
Would you immediately know what the code does or why it is needed by glancing at it?
If not, reviewers will notice this and will ask you to clarify the code by refactoring it and/or adding a few explanations in code comments.
Doing this preemptively can save you and the committer a lot of time.
To better convey the "story" of your change, consider dividing your change into multiple atomic commits.
There is a balance to strike however: over-fragmentation causes friction.
The code artefacts are the hardest for committers to assess because PRs touch all sorts of components: applications, libraries, NixOS modules, editor plugins and many many other things.
Any individual committer can only really assess components that they themselves know how to use however and yet they must still be convinced somehow.
There isn't a good generic solution to this but there are some ways easing the committer's job here:
- Provide smoke tests that the committer can run without much research or setup.
Committers usually don't have the time or interest to learn how your component works and how they could test its functionality.
If you can provide a quick guide on how to use the component in a meaningful way or a ready-made command that demonstrates that the component works as expected, the committer can easily convince themselves that your change is good.
If it can be automated, you could even turn this smoke test into an automated NixOS test which reviewers could simply run via Nix.
- Invite other users of the component to try it out and report their findings.
If a committer sees the testimonials of other users trying your change and it works as expected for them, that too can convince the committer of your PR's quality.
- Describe what you have done to test your PR.
If you can convince the committer that you have done sufficient quality assurance on your changes and they trust your report, this too can convince them of your PR's quality, albeit not as strongly as the methods above.
- Become a maintainer of the component.
This isn't something you can do on your first few PRs touching a component but listed maintainers generally receive more trust when it comes to changes to their maintained components and committers may opt to merge changes without deeper review when they see they're done by their respective maintainer.
Even if you adhere to all of these recommendations, it is still quite possible for your PR to be forgotten or abandoned by any given committer.
Please remain mindful of the fact that they are doing this on their own volition and unpaid in their free time and therefore [owe you nothing](https://mikemcquaid.com/open-source-maintainers-owe-you-nothing/).
Causing a stink in such a situation is a surefire way to get any other potential committer to not want to look at your PR either.
Ask them nicely whether they still intend to review your PR and find yourself another committer to look at your PR if not.
### How can I get a committer to look at my PR?
- Improve skimmability: use a simple descriptive PR title (details go in commit titles) outlining _what_ is done and _why_.
- Improve discoverability: apply all relevant labels, tick all relevant PR body checkboxes.
- Wait. Reviewers frequently browse open PRs and may happen to run across yours and take a look.
- Get non-committers to review/approve. Many committers filter open PRs for low-hanging fruit that are already been reviewed.
- [@-mention](https://github.blog/news-insights/mention-somebody-they-re-notified/) someone and ask them nicely
- Post in one of the channels made for this purpose if there has been no activity for at least one week
- The current "PRs ready for review" or "PRs already reviewed" threads in the [NixOS Discourse](https://discourse.nixos.org/c/dev/14) (of course choose the one that applies to your situation)
- The [Nixpkgs Review Requests Matrix room](https://matrix.to/#/#review-requests:nixos.org).
### CI failed or got stuck on my PR, what do I do?
First ensure that the failure is actually related to your change.
Sometimes, the CI system simply has a hiccup or the check was broken by someone else before you made your changes.
Read through the error message; it's usually quite easy to tell whether it is caused by anything you did by checking whether it mentions the component you touched anywhere.
If it is indeed caused by your change, obviously try to fix it.
Don't be afraid of asking for advice if you're uncertain how to do that, others have likely fixed such issues dozens of times and can help you out.
Your PR is unlikely to be merged if it has a known issue and it is the purpose of CI to alert you aswell as reviewers to these issues.
ofBorg builds can often get stuck, particularly in PRs targeting `staging` and in builders for the Darwin platform. Reviewers will know how to handle them or when to ignore them.
Don't worry about it.
If there is a build failure however and it happened due to a package related to your change, you need to investigate it of course.
If ofBorg reveals the build to be broken on some platform and you don't have access to that platform, you should set your package's `meta.broken` accordingly.
When in any doubt, please ask via a comment in your PR or through one of the help channels.
## I received a review on my PR, how do I get it over the finish line?
In the review process, the committer will have left some sort of feedback on your PR.
They may have immediately approved of your PR or even merged it but the more likely case is that they want you to change a few things or that they require further input.
A reviewer may have taken a look at the code and it looked good to them ("Diff LGTM") but they still need to be convinced of the artefact's quality.
They might also be waiting on input from other users of the component or its listed maintainer on whether the intention of your PR makes sense for the component.
If you know of people who could help clarify any of this, please bring the PR to their attention.
The current state of the PR is frequently not clearly communicated, so please don't hesitate to ask about it if it's unclear to you.
It's also possible for the reviewer to not be convinced that your PR is necessary or that the method you've chose to achieve your intention is the right one.
Please explain your intentions and reasoning to the committer in such a case.
There may be constraints you had to work with which they're not aware of or qualities of your approach that they didn't immediately notice.
(If these weren't clear to the reviewer, that's a good sign you should explain them in your commit message or code comments!)
There are some further pitfalls and realities which this section intends to make you aware of.
### Aim to reduce cycles
Please be prepared for it to take a while before the reviewer gets back to you after you respond.
This is simply the reality of community projects at the scale of Nixpkgs.
As such, make sure to respond to _all_ feedback, either by applying suggested changes or argue in favor of something else or no change.
It wastes everyone time waiting for a couple of days just for the reviewer to remind you to address something they asked for.
### A reviewer requested a bunch of insubstantial changes on my PR
The people involved in Nixpkgs care about code quality because, once in Nixpkgs, it needs to be maintained for many years to come.
It is therefore likely that other people will ask you to do some things in another way or adhere to some standard.
Sometimes however, they also care a bit too much and may ask you to adhere to a personal preference of theirs.
It's not always easy to tell which is which and whether the requests are critically important to merging the PR.
Sometimes another reviewer may also come along with totally different opinions on some points too.
It is convention to mark review comments that are not critical to the PR as nitpicks but this is not always followed.
As the PR author, you should still take a look at these as they will often reveal best practices and unwritten rules that usually have good reasons behind them and you may want to incorporate them into your modus operandi.
Please keep in mind that reviewers almost always mean well here.
Their intent is not to denounce your code, they want your code to be as good as it can be.
Through their experience, they may also take notice of a seemingly insignificant issues that have caused significant burden before.
Sometimes however, they can also get a bit carried away and become too perfectionistic.
If you feel some of the requests are unreasonable, out of scope, or merely a matter of personal preference, try to nicely remind the reviewers that you may not intend this code to be 100% perfect or that you have different taste in some regards and press them on whether they think that these requests are *critical* to the PR's success.
While we do have a set of [official standards for the Nix community](https://github.com/NixOS/rfcs/), we don't have standards for everything and there are often multiple valid ways to achieve the same goal.
Unless there are standards forbidding the patterns used in your code or there are serious technical, maintainability or readability issues with your code, you can insist to keep the code the way you made it and disregard the requests.
Please communicate this clearly though; a simple "I prefer it this way and see no major issue with it" can save you a lot of arguing.
If you are unsure about some change requests, please ask reviewers *why* they requested them.
This will usually reveal how important they deem it to be and will help educate you about standards, best practices, unwritten rules aswell as preferences people have and why.
Some committers may have stronger opinions on some things and therefore (understandably) may not want to merge your PR if you don't follow their requests.
It is totally fine to get yourself a second or third opinion in such a case.
### Committers work on a push-basis
It's possible for you to get a review but nothing happens afterwards, even if you reply to review comments.
A committer not following up on your PR does not necessarily mean they're disinterested or unresponsive, they may have simply forgotten to follow up on it or had some other circumstances preventing them from doing so.
Committers typically handle many other PRs besides yours and it is not realistic for them to keep up with all of them to a degree where they could reasonably remember to follow up on all PRs that they had intended following up upon.
If someone left an approving review on your PR and didn't merge a few days later, the most likely case is that they simply forgot.
Please see it as your responsibility to actively remind reviewers of your open PRs.
The easiest way to do so is to cause them a Github notification.
Github notifies people involved in the PR whenever you add a comment to your PR, push your PR or re-request their review.
Doing any of that will get you people's attention again.
Everyone deserves proper attention, and yes that includes you!
However please be mindful that committers can sadly not always give everyone the attention they deserve.
It may very well be the case that you have to do this every time you need the committer to follow up upon your PR.
Again, this is a community project so please be mindful of people's circumstances here; be nice when requesting reviews again.
It may also be the case that the committer has lost interest or isn't familiar enough with the component you're touching to be comfortable merging your PR.
They will likely not immediately state that fact however, so please ask for clarification and don't hesitate to find yourself another committer to take a look at your PR.
### Nothing helped
If you followed these guidelines but still got no results or if you feel that you have been wronged in some way, please explicitly reach out to the greater community via its communication channels.
The [NixOS Discourse](https://discourse.nixos.org/) is a great place to do this as it has historically been the asynchronous medium with the greatest concentration of committers and other people who are significantly involved in Nixpkgs.
There is a dedicated discourse thread [PRs in distress](https://discourse.nixos.org/t/prs-in-distress/3604) where you can link your PR if everything else fails.
The [Nixpkgs / NixOS contributions Matrix channel](https://matrix.to/#/#dev:nixos.org) is the best synchronous channel with the same qualities.
Please reserve these for cases where you've made a serious effort in trying to get the attention of multiple active committers and provided realistic means for them to assess your PR's quality though.
As mentioned previously, it is unfortunately perfectly normal for a PR to sit around for weeks on end due to the realities of this being a community project.
Please don't blow up situations where progress is happening but is merely not going fast enough for your tastes.
Honking in a traffic jam will not make you go any faster.

View File

@@ -9,7 +9,7 @@
</p>
<p align="center">
<a href="CONTRIBUTING.md"><img src="https://img.shields.io/github/contributors-anon/NixOS/nixpkgs" alt="Contributors badge" /></a>
<a href="https://github.com/NixOS/nixpkgs/blob/master/CONTRIBUTING.md"><img src="https://img.shields.io/github/contributors-anon/NixOS/nixpkgs" alt="Contributors badge" /></a>
<a href="https://opencollective.com/nixos"><img src="https://opencollective.com/nixos/tiers/supporter/badge.svg?label=supporters&color=brightgreen" alt="Open Collective supporters" /></a>
</p>
@@ -74,7 +74,7 @@ Community contributions are always welcome through GitHub Issues and
Pull Requests.
For more information about contributing to the project, please visit
the [contributing page](CONTRIBUTING.md).
the [contributing page](https://github.com/NixOS/nixpkgs/blob/master/CONTRIBUTING.md).
# Donations

431
ci/OWNERS
View File

@@ -1,431 +0,0 @@
# This file is used to describe who owns what in this repository.
# Users/teams will get review requests for PRs that change their files.
#
# This file does not replace `meta.maintainers`
# but is instead used for other things than derivations and modules,
# like documentation, package sets, and other assets.
#
# This file uses the same syntax as the natively supported CODEOWNERS file,
# see https://help.github.com/articles/about-codeowners/ for documentation.
# However it comes with some notable differences:
# - There is no need for user/team listed here to have write access.
# - No reviews will be requested for PRs that target the wrong base branch.
#
# Processing of this file is implemented in workflows/codeowners-v2.yml
# CI
/.github/workflows @NixOS/Security @Mic92 @zowoq
/.github/workflows/check-nix-format.yml @infinisil
/.github/workflows/nixpkgs-vet.yml @infinisil @philiptaron
/.github/workflows/codeowners-v2.yml @infinisil
/ci @infinisil @philiptaron @NixOS/Security
/ci/OWNERS @infinisil @philiptaron
# Development support
/.editorconfig @Mic92 @zowoq
/shell.nix @infinisil @NixOS/Security
# Libraries
/lib @infinisil
/lib/systems @alyssais @ericson2314 @NixOS/stdenv
/lib/generators.nix @infinisil @Profpatsch
/lib/cli.nix @infinisil @Profpatsch
/lib/debug.nix @infinisil @Profpatsch
/lib/asserts.nix @infinisil @Profpatsch
/lib/path/* @infinisil
/lib/fileset @infinisil
## Libraries / Module system
/lib/modules.nix @infinisil @roberth
/lib/types.nix @infinisil @roberth
/lib/options.nix @infinisil @roberth
/lib/tests/modules.sh @infinisil @roberth
/lib/tests/modules @infinisil @roberth
# Nixpkgs Internals
/default.nix @Ericson2314
/pkgs/top-level/default.nix @Ericson2314
/pkgs/top-level/impure.nix @Ericson2314
/pkgs/top-level/stage.nix @Ericson2314
/pkgs/top-level/splice.nix @Ericson2314
/pkgs/top-level/release-cross.nix @Ericson2314
/pkgs/top-level/by-name-overlay.nix @infinisil @philiptaron
/pkgs/stdenv @philiptaron @NixOS/stdenv
/pkgs/stdenv/generic @Ericson2314 @NixOS/stdenv
/pkgs/stdenv/generic/check-meta.nix @Ericson2314 @NixOS/stdenv
/pkgs/stdenv/cross @Ericson2314 @NixOS/stdenv
/pkgs/build-support @philiptaron
/pkgs/build-support/cc-wrapper @Ericson2314
/pkgs/build-support/bintools-wrapper @Ericson2314
/pkgs/build-support/setup-hooks @Ericson2314
/pkgs/build-support/setup-hooks/auto-patchelf.sh @layus
/pkgs/by-name/au/auto-patchelf @layus
/pkgs/pkgs-lib @infinisil
## Format generators/serializers
/pkgs/pkgs-lib/formats/libconfig @h7x4
/pkgs/pkgs-lib/formats/hocon @h7x4
# Nixpkgs build-support
/pkgs/build-support/writers @lassulus @Profpatsch
# Nixpkgs make-disk-image
/doc/build-helpers/images/makediskimage.section.md @raitobezarius
/nixos/lib/make-disk-image.nix @raitobezarius
# Nix, the package manager
# @raitobezarius is not "code owner", but is listed here to be notified of changes
# pertaining to the Nix package manager.
# i.e. no authority over those files.
pkgs/tools/package-management/nix/ @NixOS/nix-team @raitobezarius
nixos/modules/installer/tools/nix-fallback-paths.nix @NixOS/nix-team @raitobezarius
# Nixpkgs documentation
/maintainers/scripts/db-to-md.sh @jtojnar @ryantm
/maintainers/scripts/doc @jtojnar @ryantm
# Contributor documentation
/CONTRIBUTING.md @infinisil
/.github/PULL_REQUEST_TEMPLATE.md @infinisil
/doc/contributing/ @infinisil
/doc/contributing/contributing-to-documentation.chapter.md @jtojnar @infinisil
/lib/README.md @infinisil
/doc/README.md @infinisil
/nixos/README.md @infinisil
/pkgs/README.md @infinisil
/pkgs/by-name/README.md @infinisil
/maintainers/README.md @infinisil
# User-facing development documentation
/doc/development.md @infinisil
/doc/development @infinisil
# NixOS Internals
/nixos/default.nix @infinisil
/nixos/lib/from-env.nix @infinisil
/nixos/lib/eval-config.nix @infinisil
/nixos/modules/system/activation/bootspec.nix @grahamc @cole-h @raitobezarius
/nixos/modules/system/activation/bootspec.cue @grahamc @cole-h @raitobezarius
# NixOS integration test driver
/nixos/lib/test-driver @tfc
# NixOS QEMU virtualisation
/nixos/modules/virtualisation/qemu-vm.nix @raitobezarius
# ACME
/nixos/modules/security/acme @NixOS/acme
# Systemd
/nixos/modules/system/boot/systemd.nix @NixOS/systemd
/nixos/modules/system/boot/systemd @NixOS/systemd
/nixos/lib/systemd-*.nix @NixOS/systemd
/pkgs/os-specific/linux/systemd @NixOS/systemd
# Systemd-boot
/nixos/modules/system/boot/loader/systemd-boot @JulienMalka
# Images and installer media
/nixos/modules/profiles/installation-device.nix @ElvishJerricco
/nixos/modules/installer/cd-dvd/ @ElvishJerricco
/nixos/modules/installer/sd-card/
# Amazon
/nixos/modules/virtualisation/amazon-init.nix @arianvp
/nixos/modules/virtualisation/ec2-data.nix @arianvp
/nixos/modules/virtualisation/amazon-options.nix @arianvp
/nixos/modules/virtualisation/amazon-image.nix @arianvp
/nixos/maintainers/scripts/ec2/ @arianvp
/nixos/modules/services/misc/amazon-ssm-agent.nix @arianvp
/nixos/tests/amazon-ssm-agent.nix @arianvp
/nixos/modules/system/boot/grow-partition.nix @arianvp
# Updaters
## update.nix
/maintainers/scripts/update.nix @jtojnar
/maintainers/scripts/update.py @jtojnar
## common-updater-scripts
/pkgs/common-updater/scripts/update-source-version @jtojnar
# Python-related code and docs
/doc/languages-frameworks/python.section.md @mweinelt @natsukium
/maintainers/scripts/update-python-libraries @mweinelt @natsukium
/pkgs/development/interpreters/python @mweinelt @natsukium
/pkgs/top-level/python-packages.nix @natsukium
/pkgs/top-level/release-python.nix @natsukium
# Haskell
/doc/languages-frameworks/haskell.section.md @sternenseemann @maralorn
/maintainers/scripts/haskell @sternenseemann @maralorn
/pkgs/development/compilers/ghc @sternenseemann @maralorn
/pkgs/development/haskell-modules @sternenseemann @maralorn
/pkgs/test/haskell @sternenseemann @maralorn
/pkgs/top-level/release-haskell.nix @sternenseemann @maralorn
/pkgs/top-level/haskell-packages.nix @sternenseemann @maralorn
# Perl
/pkgs/development/interpreters/perl @stigtsp @zakame @marcusramberg
/pkgs/top-level/perl-packages.nix @stigtsp @zakame @marcusramberg
/pkgs/development/perl-modules @stigtsp @zakame @marcusramberg
# R
/pkgs/applications/science/math/R @jbedo
/pkgs/development/r-modules @jbedo
# Rust
/pkgs/development/compilers/rust @alyssais @Mic92 @zowoq @winterqt @figsoda
/pkgs/build-support/rust @zowoq @winterqt @figsoda
/doc/languages-frameworks/rust.section.md @zowoq @winterqt @figsoda
# Tcl
/pkgs/development/interpreters/tcl @fgaz
/pkgs/development/libraries/tk @fgaz
/pkgs/top-level/tcl-packages.nix @fgaz
/pkgs/development/tcl-modules @fgaz
/doc/languages-frameworks/tcl.section.md @fgaz
# C compilers
/pkgs/development/compilers/gcc
/pkgs/development/compilers/llvm @alyssais @RossComputerGuy @NixOS/llvm
/pkgs/development/compilers/emscripten @raitobezarius
/doc/languages-frameworks/emscripten.section.md @raitobezarius
# Audio
/nixos/modules/services/audio/botamusique.nix @mweinelt
/nixos/modules/services/audio/snapserver.nix @mweinelt
/nixos/tests/botamusique.nix @mweinelt
/nixos/tests/snapcast.nix @mweinelt
# Browsers
/pkgs/applications/networking/browsers/firefox @mweinelt
/pkgs/applications/networking/browsers/chromium @emilylange
/nixos/tests/chromium.nix @emilylange
# Certificate Authorities
pkgs/data/misc/cacert/ @ajs124 @lukegb @mweinelt
pkgs/development/libraries/nss/ @ajs124 @lukegb @mweinelt
pkgs/development/python-modules/buildcatrust/ @ajs124 @lukegb @mweinelt
# Java
/doc/languages-frameworks/java.section.md @NixOS/java
/doc/languages-frameworks/gradle.section.md @NixOS/java
/doc/languages-frameworks/maven.section.md @NixOS/java
/pkgs/top-level/java-packages.nix @NixOS/java
# Jetbrains
/pkgs/applications/editors/jetbrains @edwtjo
# Licenses
/lib/licenses.nix @alyssais
# Qt
/pkgs/development/libraries/qt-5 @K900 @NickCao @SuperSandro2000 @ttuegel
/pkgs/development/libraries/qt-6 @K900 @NickCao @SuperSandro2000 @ttuegel
# KDE / Plasma 5
/pkgs/applications/kde @K900 @NickCao @SuperSandro2000 @ttuegel
/pkgs/desktops/plasma-5 @K900 @NickCao @SuperSandro2000 @ttuegel
/pkgs/development/libraries/kde-frameworks @K900 @NickCao @SuperSandro2000 @ttuegel
# KDE / Plasma 6
/pkgs/kde @K900 @NickCao @SuperSandro2000 @ttuegel
/maintainers/scripts/kde @K900 @NickCao @SuperSandro2000 @ttuegel
# PostgreSQL and related stuff
/pkgs/servers/sql/postgresql @NixOS/postgres
/nixos/modules/services/databases/postgresql.md @NixOS/postgres
/nixos/modules/services/databases/postgresql.nix @NixOS/postgres
/nixos/tests/postgresql @NixOS/postgres
# Hardened profile & related modules
/nixos/modules/profiles/hardened.nix @joachifm
/nixos/modules/security/lock-kernel-modules.nix @joachifm
/nixos/modules/security/misc.nix @joachifm
/nixos/tests/hardened.nix @joachifm
/pkgs/os-specific/linux/kernel/hardened/ @fabianhjr @joachifm
# Home Automation
/nixos/modules/services/home-automation/home-assistant.nix @mweinelt
/nixos/modules/services/home-automation/zigbee2mqtt.nix @mweinelt
/nixos/tests/home-assistant.nix @mweinelt
/nixos/tests/zigbee2mqtt.nix @mweinelt
/pkgs/servers/home-assistant @mweinelt
/pkgs/tools/misc/esphome @mweinelt
# Network Time Daemons
/pkgs/by-name/ch/chrony @thoughtpolice
/pkgs/by-name/nt/ntp @thoughtpolice
/pkgs/by-name/op/openntpd @thoughtpolice
/nixos/modules/services/networking/ntp @thoughtpolice
# Network
/pkgs/by-name/ke/kea @mweinelt
/pkgs/by-name/ba/babeld @mweinelt
/nixos/modules/services/networking/babeld.nix @mweinelt
/nixos/modules/services/networking/kea.nix @mweinelt
/nixos/modules/services/networking/knot.nix @mweinelt
/nixos/modules/services/monitoring/prometheus/exporters/kea.nix @mweinelt
/nixos/tests/babeld.nix @mweinelt
/nixos/tests/kea.nix @mweinelt
/nixos/tests/knot.nix @mweinelt
# Web servers
/doc/packages/nginx.section.md @raitobezarius
/pkgs/servers/http/nginx/ @raitobezarius
/nixos/modules/services/web-servers/nginx/ @raitobezarius
# Dhall
/pkgs/development/dhall-modules @Gabriella439 @Profpatsch @ehmry
/pkgs/development/interpreters/dhall @Gabriella439 @Profpatsch @ehmry
# Idris
/pkgs/development/idris-modules @Infinisil
/pkgs/development/compilers/idris2 @mattpolzin
# Bazel
/pkgs/development/tools/build-managers/bazel @Profpatsch
# NixOS modules for e-mail and dns services
/nixos/modules/services/mail/mailman.nix @peti
/nixos/modules/services/mail/postfix.nix @peti
/nixos/modules/services/networking/bind.nix @peti
/nixos/modules/services/mail/rspamd.nix @peti
# Emacs
/pkgs/applications/editors/emacs/elisp-packages @NixOS/emacs
/pkgs/applications/editors/emacs @NixOS/emacs
/pkgs/top-level/emacs-packages.nix @NixOS/emacs
/doc/packages/emacs.section.md @NixOS/emacs
/nixos/modules/services/editors/emacs.md @NixOS/emacs
# Kakoune
/pkgs/applications/editors/kakoune @philiptaron
# Neovim
/pkgs/applications/editors/neovim @NixOS/neovim
# VimPlugins
/pkgs/applications/editors/vim/plugins @NixOS/neovim
# VsCode Extensions
/pkgs/applications/editors/vscode/extensions
# PHP interpreter, packages, extensions, tests and documentation
/doc/languages-frameworks/php.section.md @aanderse @drupol @globin @ma27 @talyz
/nixos/tests/php @aanderse @drupol @globin @ma27 @talyz
/pkgs/build-support/php/build-pecl.nix @aanderse @drupol @globin @ma27 @talyz
/pkgs/build-support/php @drupol
/pkgs/development/interpreters/php @jtojnar @aanderse @drupol @globin @ma27 @talyz
/pkgs/development/php-packages @aanderse @drupol @globin @ma27 @talyz
/pkgs/top-level/php-packages.nix @jtojnar @aanderse @drupol @globin @ma27 @talyz
# Docker tools
/pkgs/build-support/docker @roberth
/nixos/tests/docker-tools* @roberth
/doc/build-helpers/images/dockertools.section.md @roberth
# Blockchains
/pkgs/applications/blockchains @mmahut @RaghavSood
# Go
/doc/languages-frameworks/go.section.md @kalbasit @katexochen @Mic92 @zowoq
/pkgs/build-support/go @kalbasit @katexochen @Mic92 @zowoq
/pkgs/development/compilers/go @kalbasit @katexochen @Mic92 @zowoq
# GNOME
/pkgs/desktops/gnome @jtojnar
/pkgs/desktops/gnome/extensions @jtojnar
/pkgs/build-support/make-hardcode-gsettings-patch @jtojnar
# Cinnamon
/pkgs/by-name/ci/cinnamon-* @mkg20001
/pkgs/by-name/cj/cjs @mkg20001
/pkgs/by-name/mu/muffin @mkg20001
/pkgs/by-name/ne/nemo @mkg20001
/pkgs/by-name/ne/nemo-* @mkg20001
# Xfce
/doc/hooks/xfce4-dev-tools.section.md @NixOS/xfce
# nim
/doc/languages-frameworks/nim.section.md @ehmry
/pkgs/build-support/build-nim-package.nix @ehmry
/pkgs/top-level/nim-overrides.nix @ehmry
# terraform providers
/pkgs/applications/networking/cluster/terraform-providers @zowoq
# Forgejo
nixos/modules/services/misc/forgejo.nix @adamcstephens @bendlas @emilylange
pkgs/by-name/fo/forgejo/ @adamcstephens @bendlas @emilylange
# Dotnet
/pkgs/build-support/dotnet @corngood
/pkgs/development/compilers/dotnet @corngood
/pkgs/test/dotnet @corngood
/doc/languages-frameworks/dotnet.section.md @corngood
# Node.js
/pkgs/build-support/node/build-npm-package @winterqt
/pkgs/build-support/node/fetch-npm-deps @winterqt
/doc/languages-frameworks/javascript.section.md @winterqt
/pkgs/development/tools/pnpm @Scrumplex @gepbird
# OCaml
/pkgs/build-support/ocaml @ulrikstrid
/pkgs/development/compilers/ocaml @ulrikstrid
/pkgs/development/ocaml-modules @ulrikstrid
# ZFS
pkgs/os-specific/linux/zfs/2_1.nix @raitobezarius
pkgs/os-specific/linux/zfs/generic.nix @raitobezarius
nixos/modules/tasks/filesystems/zfs.nix @raitobezarius
nixos/tests/zfs.nix @raitobezarius
# Zig
/pkgs/development/compilers/zig @figsoda
/doc/hooks/zig.section.md @figsoda
# Buildbot
nixos/modules/services/continuous-integration/buildbot @Mic92 @zowoq
nixos/tests/buildbot.nix @Mic92 @zowoq
pkgs/development/tools/continuous-integration/buildbot @Mic92 @zowoq
# Pretix
pkgs/by-name/pr/pretix/ @mweinelt
pkgs/by-name/pr/pretalx/ @mweinelt
nixos/modules/services/web-apps/pretix.nix @mweinelt
nixos/modules/services/web-apps/pretalx.nix @mweinelt
nixos/tests/web-apps/pretix.nix @mweinelt
nixos/tests/web-apps/pretalx.nix @mweinelt
# incus/lxc
nixos/maintainers/scripts/incus/ @adamcstephens
nixos/modules/virtualisation/incus.nix @adamcstephens
nixos/modules/virtualisation/lxc* @adamcstephens
nixos/tests/incus/ @adamcstephens
pkgs/by-name/in/incus/ @adamcstephens
pkgs/by-name/lx/lxc* @adamcstephens
# ExpidusOS, Flutter
/pkgs/development/compilers/flutter @RossComputerGuy
/pkgs/desktops/expidus @RossComputerGuy
# GNU Tar & Zip
/pkgs/tools/archivers/gnutar @RossComputerGuy
/pkgs/by-name/zi/zip @RossComputerGuy
# SELinux
/pkgs/by-name/ch/checkpolicy @RossComputerGuy
/pkgs/by-name/li/libselinux @RossComputerGuy
/pkgs/by-name/li/libsepol @RossComputerGuy
# installShellFiles
/pkgs/by-name/in/installShellFiles/* @Ericson2314
/pkgs/test/install-shell-files/* @Ericson2314
/doc/hooks/installShellFiles.section.md @Ericson2314
# Darwin
/pkgs/by-name/ap/apple-sdk @NixOS/darwin-core
/pkgs/os-specific/darwin/apple-source-releases @NixOS/darwin-core
/pkgs/stdenv/darwin @NixOS/darwin-core

View File

@@ -1,98 +0,0 @@
# CI support files
This directory contains files to support CI, such as [GitHub Actions](https://github.com/NixOS/nixpkgs/tree/master/.github/workflows) and [Ofborg](https://github.com/nixos/ofborg).
This is in contrast with [`maintainers/scripts`](../maintainers/scripts) which is for human use instead.
## Pinned Nixpkgs
CI may need certain packages from Nixpkgs.
In order to ensure that the needed packages are generally available without building,
[`pinned-nixpkgs.json`](./pinned-nixpkgs.json) contains a pinned Nixpkgs version tested by Hydra.
Run [`update-pinned-nixpkgs.sh`](./update-pinned-nixpkgs.sh) to update it.
## `ci/nixpkgs-vet.sh BASE_BRANCH [REPOSITORY]`
Runs the [`nixpkgs-vet` tool](https://github.com/NixOS/nixpkgs-vet) on the HEAD commit, closely matching what CI does. This can't do exactly the same as CI, because CI needs to rely on GitHub's server-side Git history to compute the mergeability of PRs before the check can be started.
In turn, when contributors are running this tool locally, we don't want to have to push commits to test them, and we can also rely on the local Git history to do the mergeability check.
Arguments:
- `BASE_BRANCH`: The base branch to use, e.g. master or release-24.05
- `REPOSITORY`: The repository from which to fetch the base branch. Defaults to <https://github.com/NixOS/nixpkgs.git>.
## `ci/nixpkgs-vet`
This directory contains scripts and files used and related to [`nixpkgs-vet`](https://github.com/NixOS/nixpkgs-vet/), which the CI uses to implement `pkgs/by-name` checks, along with many other Nixpkgs architecture rules.
See also the [CI GitHub Action](../.github/workflows/nixpkgs-vet.yml).
## `ci/nixpkgs-vet/update-pinned-tool.sh`
Updates the pinned [`nixpkgs-vet` tool](https://github.com/NixOS/nixpkgs-vet) in [`ci/nixpkgs-vet/pinned-version.txt`](./nixpkgs-vet/pinned-version.txt) to the latest [release](https://github.com/NixOS/nixpkgs-vet/releases).
Each release contains a pre-built `x86_64-linux` version of the tool which is used by CI.
This script currently needs to be called manually when the CI tooling needs to be updated.
Why not just build the tooling right from the PRs Nixpkgs version?
- Because it allows CI to check all PRs, even if they would break the CI tooling.
- Because it makes the CI check very fast, since no Nix builds need to be done, even for mass rebuilds.
- Because it improves security, since we don't have to build potentially untrusted code from PRs.
The tool only needs a very minimal Nix evaluation at runtime, which can work with [readonly-mode](https://nixos.org/manual/nix/stable/command-ref/opt-common.html#opt-readonly-mode) and [restrict-eval](https://nixos.org/manual/nix/stable/command-ref/conf-file.html#conf-restrict-eval).
## `get-merge-commit.sh GITHUB_REPO PR_NUMBER`
Check whether a PR is mergeable and return the test merge commit as
[computed by GitHub](https://docs.github.com/en/rest/guides/using-the-rest-api-to-interact-with-your-git-database?apiVersion=2022-11-28#checking-mergeability-of-pull-requests).
Arguments:
- `GITHUB_REPO`: The repository of the PR, e.g. `NixOS/nixpkgs`
- `PR_NUMBER`: The PR number, e.g. `1234`
Exit codes:
- 0: The PR can be merged, the test merge commit hash is returned on stdout
- 1: The PR cannot be merged because it's not open anymore
- 2: The PR cannot be merged because it has a merge conflict
- 3: The merge commit isn't being computed, GitHub is likely having internal issues, unknown if the PR is mergeable
### Usage
This script can be used in GitHub Actions workflows as follows:
```yaml
on: pull_request_target
# We need a token to query the API, but it doesn't need any special permissions
permissions: {}
jobs:
build:
name: Build
runs-on: ubuntu-latest
steps:
# Important: Because of `pull_request_target`, this doesn't check out the PR,
# but rather the base branch of the PR, which is needed so we don't run untrusted code
- uses: actions/checkout@<VERSION>
with:
path: base
sparse-checkout: ci
- name: Resolving the merge commit
env:
GH_TOKEN: ${{ github.token }}
run: |
if mergedSha=$(base/ci/get-merge-commit.sh ${{ github.repository }} ${{ github.event.number }}); then
echo "Checking the merge commit $mergedSha"
echo "mergedSha=$mergedSha" >> "$GITHUB_ENV"
else
# Skipping so that no notifications are sent
echo "Skipping the rest..."
fi
rm -rf base
- uses: actions/checkout@<VERSION>
# Add this to _all_ subsequent steps to skip them
if: env.mergedSha
with:
ref: ${{ env.mergedSha }}
- ...
```

View File

@@ -1,31 +0,0 @@
{
buildGoModule,
fetchFromGitHub,
fetchpatch,
}:
buildGoModule {
name = "codeowners-validator";
src = fetchFromGitHub {
owner = "mszostok";
repo = "codeowners-validator";
rev = "f3651e3810802a37bd965e6a9a7210728179d076";
hash = "sha256-5aSmmRTsOuPcVLWfDF6EBz+6+/Qpbj66udAmi1CLmWQ=";
};
patches = [
# https://github.com/mszostok/codeowners-validator/pull/222
(fetchpatch {
name = "user-write-access-check";
url = "https://github.com/mszostok/codeowners-validator/compare/f3651e3810802a37bd965e6a9a7210728179d076...840eeb88b4da92bda3e13c838f67f6540b9e8529.patch";
hash = "sha256-t3Dtt8SP9nbO3gBrM0nRE7+G6N/ZIaczDyVHYAG/6mU=";
})
# Undoes part of the above PR: We don't want to require write access
# to the repository, that's only needed for GitHub's native CODEOWNERS.
# Furthermore, it removes an unneccessary check from the code
# that breaks tokens generated for GitHub Apps.
./permissions.patch
# Allows setting a custom CODEOWNERS path using the OWNERS_FILE env var
./owners-file-name.patch
];
postPatch = "rm -r docs/investigation";
vendorHash = "sha256-R+pW3xcfpkTRqfS2ETVOwG8PZr0iH5ewroiF7u8hcYI=";
}

View File

@@ -1,15 +0,0 @@
diff --git a/pkg/codeowners/owners.go b/pkg/codeowners/owners.go
index 6910bd2..e0c95e9 100644
--- a/pkg/codeowners/owners.go
+++ b/pkg/codeowners/owners.go
@@ -39,6 +39,10 @@ func NewFromPath(repoPath string) ([]Entry, error) {
// openCodeownersFile finds a CODEOWNERS file and returns content.
// see: https://help.github.com/articles/about-code-owners/#codeowners-file-location
func openCodeownersFile(dir string) (io.Reader, error) {
+ if file, ok := os.LookupEnv("OWNERS_FILE"); ok {
+ return fs.Open(file)
+ }
+
var detectedFiles []string
for _, p := range []string{".", "docs", ".github"} {
pth := path.Join(dir, p)

View File

@@ -1,36 +0,0 @@
diff --git a/internal/check/valid_owner.go b/internal/check/valid_owner.go
index a264bcc..610eda8 100644
--- a/internal/check/valid_owner.go
+++ b/internal/check/valid_owner.go
@@ -16,7 +16,6 @@ import (
const scopeHeader = "X-OAuth-Scopes"
var reqScopes = map[github.Scope]struct{}{
- github.ScopeReadOrg: {},
}
type ValidOwnerConfig struct {
@@ -223,10 +222,7 @@ func (v *ValidOwner) validateTeam(ctx context.Context, name string) *validateErr
for _, t := range v.repoTeams {
// GitHub normalizes name before comparison
if strings.EqualFold(t.GetSlug(), team) {
- if t.Permissions["push"] {
- return nil
- }
- return newValidateError("Team %q cannot review PRs on %q as neither it nor any parent team has write permissions.", team, v.orgRepoName)
+ return nil
}
}
@@ -245,10 +241,7 @@ func (v *ValidOwner) validateGitHubUser(ctx context.Context, name string) *valid
for _, u := range v.repoUsers {
// GitHub normalizes name before comparison
if strings.EqualFold(u.GetLogin(), userName) {
- if u.Permissions["push"] {
- return nil
- }
- return newValidateError("User %q cannot review PRs on %q as they don't have write permissions.", userName, v.orgRepoName)
+ return nil
}
}

View File

@@ -1,29 +0,0 @@
let
pinnedNixpkgs = builtins.fromJSON (builtins.readFile ./pinned-nixpkgs.json);
in
{
system ? builtins.currentSystem,
nixpkgs ? null,
}:
let
nixpkgs' =
if nixpkgs == null then
fetchTarball {
url = "https://github.com/NixOS/nixpkgs/archive/${pinnedNixpkgs.rev}.tar.gz";
sha256 = pinnedNixpkgs.sha256;
}
else
nixpkgs;
pkgs = import nixpkgs' {
inherit system;
config = { };
overlays = [ ];
};
in
{
inherit pkgs;
requestReviews = pkgs.callPackage ./request-reviews { };
codeownersValidator = pkgs.callPackage ./codeowners-validator { };
}

View File

@@ -1,62 +0,0 @@
#!/usr/bin/env bash
# See ./README.md for docs
set -euo pipefail
log() {
echo "$@" >&2
}
if (( $# < 2 )); then
log "Usage: $0 GITHUB_REPO PR_NUMBER"
exit 99
fi
repo=$1
prNumber=$2
# Retry the API query this many times
retryCount=5
# Start with 5 seconds, but double every retry
retryInterval=5
while true; do
log "Checking whether the pull request can be merged"
prInfo=$(gh api \
-H "Accept: application/vnd.github+json" \
-H "X-GitHub-Api-Version: 2022-11-28" \
"/repos/$repo/pulls/$prNumber")
# Non-open PRs won't have their mergeability computed no matter what
state=$(jq -r .state <<< "$prInfo")
if [[ "$state" != open ]]; then
log "PR is not open anymore"
exit 1
fi
mergeable=$(jq -r .mergeable <<< "$prInfo")
if [[ "$mergeable" == "null" ]]; then
if (( retryCount == 0 )); then
log "Not retrying anymore. It's likely that GitHub is having internal issues: check https://www.githubstatus.com/"
exit 3
else
(( retryCount -= 1 )) || true
# null indicates that GitHub is still computing whether it's mergeable
# Wait a couple seconds before trying again
log "GitHub is still computing whether this PR can be merged, waiting $retryInterval seconds before trying again ($retryCount retries left)"
sleep "$retryInterval"
(( retryInterval *= 2 )) || true
fi
else
break
fi
done
if [[ "$mergeable" == "true" ]]; then
log "The PR can be merged"
jq -r .merge_commit_sha <<< "$prInfo"
else
log "The PR has a merge conflict"
exit 2
fi

View File

@@ -1,71 +0,0 @@
#!/usr/bin/env nix-shell
#!nix-shell -i bash -p jq
set -o pipefail -o errexit -o nounset
trace() { echo >&2 "$@"; }
tmp=$(mktemp -d)
cleanup() {
# Don't exit early if anything fails to cleanup
set +o errexit
trace -n "Cleaning up.. "
[[ -e "$tmp/base" ]] && git worktree remove --force "$tmp/base"
[[ -e "$tmp/merged" ]] && git worktree remove --force "$tmp/merged"
rm -rf "$tmp"
trace "Done"
}
trap cleanup exit
repo=https://github.com/NixOS/nixpkgs.git
if (( $# != 0 )); then
baseBranch=$1
shift
else
trace "Usage: $0 BASE_BRANCH [REPOSITORY]"
trace "BASE_BRANCH: The base branch to use, e.g. master or release-23.11"
trace "REPOSITORY: The repository to fetch the base branch from, defaults to $repo"
exit 1
fi
if (( $# != 0 )); then
repo=$1
shift
fi
if [[ -n "$(git status --porcelain)" ]]; then
trace -e "\e[33mWarning: Dirty tree, uncommitted changes won't be taken into account\e[0m"
fi
headSha=$(git rev-parse HEAD)
trace -e "Using HEAD commit \e[34m$headSha\e[0m"
trace -n "Creating Git worktree for the HEAD commit in $tmp/merged.. "
git worktree add --detach -q "$tmp/merged" HEAD
trace "Done"
trace -n "Fetching base branch $baseBranch to compare against.. "
git fetch -q "$repo" refs/heads/"$baseBranch"
baseSha=$(git rev-parse FETCH_HEAD)
trace -e "\e[34m$baseSha\e[0m"
trace -n "Creating Git worktree for the base branch in $tmp/base.. "
git worktree add -q "$tmp/base" "$baseSha"
trace "Done"
trace -n "Merging base branch into the HEAD commit in $tmp/merged.. "
git -C "$tmp/merged" merge -q --no-edit "$baseSha"
trace -e "\e[34m$(git -C "$tmp/merged" rev-parse HEAD)\e[0m"
trace -n "Reading pinned nixpkgs-vet version from pinned-version.txt.. "
toolVersion=$(<"$tmp/merged/ci/nixpkgs-vet/pinned-version.txt")
trace -e "\e[34m$toolVersion\e[0m"
trace -n "Building tool.. "
nix-build https://github.com/NixOS/nixpkgs-vet/tarball/"$toolVersion" -o "$tmp/tool" -A build
trace "Running nixpkgs-vet.."
"$tmp/tool/bin/nixpkgs-vet" --base "$tmp/base" "$tmp/merged"

View File

@@ -1 +0,0 @@
0.1.4

View File

@@ -1,4 +0,0 @@
{
"rev": "4de4818c1ffa76d57787af936e8a23648bda6be4",
"sha256": "0l3b9jr5ydzqgvd10j12imc9jqb6jv5v2bdi1gyy5cwkwplfay67"
}

View File

@@ -1,43 +0,0 @@
{
lib,
stdenvNoCC,
makeWrapper,
coreutils,
codeowners,
jq,
curl,
github-cli,
gitMinimal,
}:
stdenvNoCC.mkDerivation {
name = "request-reviews";
src = lib.fileset.toSource {
root = ./.;
fileset = lib.fileset.unions [
./get-reviewers.sh
./request-reviews.sh
./verify-base-branch.sh
./dev-branches.txt
];
};
nativeBuildInputs = [ makeWrapper ];
dontBuild = true;
installPhase = ''
mkdir -p $out/bin
mv dev-branches.txt $out/bin
for bin in *.sh; do
mv "$bin" "$out/bin"
wrapProgram "$out/bin/$bin" \
--set PATH ${
lib.makeBinPath [
coreutils
codeowners
jq
curl
github-cli
gitMinimal
]
}
done
'';
}

View File

@@ -1,7 +0,0 @@
# Trusted development branches:
# These generally require PRs to update and are built by Hydra.
master
staging
release-*
staging-*
haskell-updates

View File

@@ -1,126 +0,0 @@
#!/usr/bin/env bash
# Get the code owners of the files changed by a PR,
# suitable to be consumed by the API endpoint to request reviews:
# https://docs.github.com/en/rest/pulls/review-requests?apiVersion=2022-11-28#request-reviewers-for-a-pull-request
set -euo pipefail
log() {
echo "$@" >&2
}
if (( "$#" < 7 )); then
log "Usage: $0 GIT_REPO OWNERS_FILE BASE_REPO BASE_REF HEAD_REF PR_NUMBER PR_AUTHOR"
exit 1
fi
gitRepo=$1
ownersFile=$2
baseRepo=$3
baseRef=$4
headRef=$5
prNumber=$6
prAuthor=$7
tmp=$(mktemp -d)
trap 'rm -rf "$tmp"' exit
git -C "$gitRepo" diff --name-only --merge-base "$baseRef" "$headRef" > "$tmp/touched-files"
readarray -t touchedFiles < "$tmp/touched-files"
log "This PR touches ${#touchedFiles[@]} files"
# Get the owners file from the base, because we don't want to allow PRs to
# remove code owners to avoid pinging them
git -C "$gitRepo" show "$baseRef":"$ownersFile" > "$tmp"/codeowners
# Associative array with the user as the key for easy de-duplication
# Make sure to always lowercase keys to avoid duplicates with different casings
declare -A users=()
for file in "${touchedFiles[@]}"; do
result=$(codeowners --file "$tmp"/codeowners "$file")
read -r file owners <<< "$result"
if [[ "$owners" == "(unowned)" ]]; then
log "File $file is unowned"
continue
fi
log "File $file is owned by $owners"
# Split up multiple owners, separated by arbitrary amounts of spaces
IFS=" " read -r -a entries <<< "$owners"
for entry in "${entries[@]}"; do
# GitHub technically also supports Emails as code owners,
# but we can't easily support that, so let's not
if [[ ! "$entry" =~ @(.*) ]]; then
warn -e "\e[33mCodeowner \"$entry\" for file $file is not valid: Must start with \"@\"\e[0m" >&2
# Don't fail, because the PR for which this script runs can't fix it,
# it has to be fixed in the base branch
continue
fi
# The first regex match is everything after the @
entry=${BASH_REMATCH[1]}
if [[ "$entry" =~ (.*)/(.*) ]]; then
# Teams look like $org/$team
org=${BASH_REMATCH[1]}
team=${BASH_REMATCH[2]}
# Instead of requesting a review from the team itself,
# we request reviews from the individual users.
# This is because once somebody from a team reviewed the PR,
# the API doesn't expose that the team was already requested for a review,
# so we wouldn't be able to avoid rerequesting reviews
# without saving some some extra state somewhere
# We could also consider implementing a more advanced heuristic
# in the future that e.g. only pings one team member,
# but escalates to somebody else if that member doesn't respond in time.
gh api \
--cache=1h \
-H "Accept: application/vnd.github+json" \
-H "X-GitHub-Api-Version: 2022-11-28" \
"/orgs/$org/teams/$team/members" \
--jq '.[].login' > "$tmp/team-members"
readarray -t members < "$tmp/team-members"
log "Team $entry has these members: ${members[*]}"
for user in "${members[@]}"; do
users[${user,,}]=
done
else
# Everything else is a user
users[${entry,,}]=
fi
done
done
# Cannot request a review from the author
if [[ -v users[${prAuthor,,}] ]]; then
log "One or more files are owned by the PR author, ignoring"
unset 'users[${prAuthor,,}]'
fi
gh api \
-H "Accept: application/vnd.github+json" \
-H "X-GitHub-Api-Version: 2022-11-28" \
"/repos/$baseRepo/pulls/$prNumber/reviews" \
--jq '.[].user.login' > "$tmp/already-reviewed-by"
# And we don't want to rerequest reviews from people who already reviewed
while read -r user; do
if [[ -v users[${user,,}] ]]; then
log "User $user is a code owner but has already left a review, ignoring"
unset 'users[${user,,}]'
fi
done < "$tmp/already-reviewed-by"
# Turn it into a JSON for the GitHub API call to request PR reviewers
jq -n \
--arg users "${!users[*]}" \
'{
reviewers: $users | split(" "),
}'

View File

@@ -1,95 +0,0 @@
#!/usr/bin/env bash
# Requests reviews for a PR after verifying that the base branch is correct
set -euo pipefail
tmp=$(mktemp -d)
trap 'rm -rf "$tmp"' exit
SCRIPT_DIR=$(dirname "$0")
log() {
echo "$@" >&2
}
effect() {
if [[ -n "${DRY_MODE:-}" ]]; then
log "Skipping in dry mode:" "${@@Q}"
else
"$@"
fi
}
if (( $# < 3 )); then
log "Usage: $0 GITHUB_REPO PR_NUMBER OWNERS_FILE"
exit 1
fi
baseRepo=$1
prNumber=$2
ownersFile=$3
log "Fetching PR info"
prInfo=$(gh api \
-H "Accept: application/vnd.github+json" \
-H "X-GitHub-Api-Version: 2022-11-28" \
"/repos/$baseRepo/pulls/$prNumber")
baseBranch=$(jq -r .base.ref <<< "$prInfo")
log "Base branch: $baseBranch"
prRepo=$(jq -r .head.repo.full_name <<< "$prInfo")
log "PR repo: $prRepo"
prBranch=$(jq -r .head.ref <<< "$prInfo")
log "PR branch: $prBranch"
prAuthor=$(jq -r .user.login <<< "$prInfo")
log "PR author: $prAuthor"
extraArgs=()
if pwdRepo=$(git rev-parse --show-toplevel 2>/dev/null); then
# Speedup for local runs
extraArgs+=(--reference-if-able "$pwdRepo")
fi
log "Fetching Nixpkgs commit history"
# We only need the commit history, not the contents, so we can do a tree-less clone using tree:0
# https://github.blog/open-source/git/get-up-to-speed-with-partial-clone-and-shallow-clone/#user-content-quick-summary
git clone --bare --filter=tree:0 --no-tags --origin upstream "${extraArgs[@]}" https://github.com/"$baseRepo".git "$tmp"/nixpkgs.git
log "Fetching the PR commit history"
# Fetch the PR
git -C "$tmp/nixpkgs.git" remote add fork https://github.com/"$prRepo".git
# This remote config is the same as --filter=tree:0 when cloning
git -C "$tmp/nixpkgs.git" config remote.fork.partialclonefilter tree:0
git -C "$tmp/nixpkgs.git" config remote.fork.promisor true
git -C "$tmp/nixpkgs.git" fetch --no-tags fork "$prBranch"
headRef=$(git -C "$tmp/nixpkgs.git" rev-parse refs/remotes/fork/"$prBranch")
log "Checking correctness of the base branch"
if ! "$SCRIPT_DIR"/verify-base-branch.sh "$tmp/nixpkgs.git" "$headRef" "$baseRepo" "$baseBranch" "$prRepo" "$prBranch" | tee "$tmp/invalid-base-error" >&2; then
log "Posting error as comment"
if ! response=$(effect gh api \
--method POST \
-H "Accept: application/vnd.github+json" \
-H "X-GitHub-Api-Version: 2022-11-28" \
"/repos/$baseRepo/issues/$prNumber/comments" \
-F "body=@$tmp/invalid-base-error"); then
log "Failed to post the comment: $response"
fi
exit 1
fi
log "Getting code owners to request reviews from"
"$SCRIPT_DIR"/get-reviewers.sh "$tmp/nixpkgs.git" "$ownersFile" "$baseRepo" "$baseBranch" "$headRef" "$prNumber" "$prAuthor" > "$tmp/reviewers.json"
log "Requesting reviews from: $(<"$tmp/reviewers.json")"
if ! response=$(effect gh api \
--method POST \
-H "Accept: application/vnd.github+json" \
-H "X-GitHub-Api-Version: 2022-11-28" \
"/repos/$baseRepo/pulls/$prNumber/requested_reviewers" \
--input "$tmp/reviewers.json"); then
log "Failed to request reviews: $response"
exit 1
fi
log "Successfully requested reviews"

View File

@@ -1,104 +0,0 @@
#!/usr/bin/env bash
# Check that a PR doesn't include commits from other development branches.
# Fails with next steps if it does
set -euo pipefail
tmp=$(mktemp -d)
trap 'rm -rf "$tmp"' exit
SCRIPT_DIR=$(dirname "$0")
log() {
echo "$@" >&2
}
# Small helper to check whether an element is in a list
# Usage: `elementIn foo "${list[@]}"`
elementIn() {
local e match=$1
shift
for e; do
if [[ "$e" == "$match" ]]; then
return 0
fi
done
return 1
}
if (( $# < 6 )); then
log "Usage: $0 LOCAL_REPO HEAD_REF BASE_REPO BASE_BRANCH PR_REPO PR_BRANCH"
exit 1
fi
localRepo=$1
headRef=$2
baseRepo=$3
baseBranch=$4
prRepo=$5
prBranch=$6
# All development branches
devBranchPatterns=()
while read -r pattern; do
if [[ "$pattern" != '#'* ]]; then
devBranchPatterns+=("$pattern")
fi
done < "$SCRIPT_DIR/dev-branches.txt"
git -C "$localRepo" branch --list --format "%(refname:short)" "${devBranchPatterns[@]}" > "$tmp/dev-branches"
readarray -t devBranches < "$tmp/dev-branches"
if [[ "$baseRepo" == "$prRepo" ]] && elementIn "$prBranch" "${devBranches[@]}"; then
log "This PR merges $prBranch into $baseBranch, no commit check necessary"
exit 0
fi
# The current merge base of the PR
prMergeBase=$(git -C "$localRepo" merge-base "$baseBranch" "$headRef")
log "The PR's merge base with the base branch $baseBranch is $prMergeBase"
# This is purely for debugging
git -C "$localRepo" rev-list --reverse "$baseBranch".."$headRef" > "$tmp/pr-commits"
log "The PR includes these $(wc -l < "$tmp/pr-commits") commits:"
cat <"$tmp/pr-commits" >&2
for testBranch in "${devBranches[@]}"; do
if [[ -z "$(git -C "$localRepo" rev-list -1 --since="1 month ago" "$testBranch")" ]]; then
log "Not checking $testBranch, was inactive for the last month"
continue
fi
log "Checking if commits from $testBranch are included in the PR"
# We need to check for any commits that are in the PR which are also in the test branch.
# We could check each commit from the PR individually, but that's unnecessarily slow.
#
# This does _almost_ what we want: `git rev-list --count headRef testBranch ^baseBranch`,
# except that it includes commits that are reachable from _either_ headRef or testBranch,
# instead of restricting it to ones reachable by both
# Easily fixable though, because we can use `git merge-base testBranch headRef`
# to get the least common ancestor (aka merge base) commit reachable by both.
# If the branch being tested is indeed the right base branch,
# this is then also the commit from that branch that the PR is based on top of.
testMergeBase=$(git -C "$localRepo" merge-base "$testBranch" "$headRef")
# And then use the `git rev-list --count`, but replacing the non-working
# `headRef testBranch` with the merge base of the two.
extraCommits=$(git -C "$localRepo" rev-list --count "$testMergeBase" ^"$baseBranch")
if (( extraCommits != 0 )); then
log -e "\e[33m"
echo "The PR's base branch is set to $baseBranch, but $extraCommits commits from the $testBranch branch are included. Make sure you know the [right base branch for your changes](https://github.com/NixOS/nixpkgs/blob/master/CONTRIBUTING.md#branch-conventions), then:"
echo "- If the changes should go to the $testBranch branch, [change the base branch](https://docs.github.com/en/pull-requests/collaborating-with-pull-requests/proposing-changes-to-your-work-with-pull-requests/changing-the-base-branch-of-a-pull-request) to $testBranch"
echo "- If the changes should go to the $baseBranch branch, rebase your PR onto the merge base with the $baseBranch branch:"
echo " \`\`\`bash"
echo " # git rebase --onto \$(git merge-base upstream/$baseBranch HEAD) \$(git merge-base upstream/$testBranch HEAD)"
echo " git rebase --onto $prMergeBase $testMergeBase"
echo " git push --force-with-lease"
echo " \`\`\`"
log -e "\e[m"
exit 1
fi
done
log "Base branch is correct, no commits from development branches are included"

View File

@@ -1,17 +0,0 @@
#!/usr/bin/env nix-shell
#!nix-shell -i bash -p jq
set -euo pipefail
# https://stackoverflow.com/a/246128
SCRIPT_DIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )
repo=https://github.com/nixos/nixpkgs
branch=nixpkgs-unstable
file=$SCRIPT_DIR/pinned-nixpkgs.json
defaultRev=$(git ls-remote "$repo" refs/heads/"$branch" | cut -f1)
rev=${1:-$defaultRev}
sha256=$(nix-prefetch-url --unpack "$repo/archive/$rev.tar.gz" --name source)
jq -n --arg rev "$rev" --arg sha256 "$sha256" '$ARGS.named' | tee /dev/stderr > $file

View File

@@ -2,20 +2,10 @@
This directory houses the sources files for the Nixpkgs reference manual.
> [!IMPORTANT]
> We are actively restructuring our documentation to follow the [Diátaxis framework](https://diataxis.fr/)
>
> Going forward, this directory should **only** contain [reference documentation](https://nix.dev/contributing/documentation/diataxis#reference).
> For tutorials, guides and explanations, contribute to <https://nix.dev/> instead.
>
> We are actively working to generate **all** reference documentation from the [doc-comments](https://github.com/NixOS/rfcs/blob/master/rfcs/0145-doc-strings.md) present in code.
> This also provides the benefit of using `:doc` in the `nix repl` to view reference documentation locally on the fly.
Going forward, it should only contain [reference](https://nix.dev/contributing/documentation/diataxis#reference) documentation.
For tutorials, guides and explanations, contribute to <https://nix.dev/> instead.
For documentation only relevant for contributors, use Markdown files next to the source and regular code comments.
> [!TIP]
> Feedback for improving support for parsing and rendering doc-comments is highly appreciated.
> [Open an issue](https://github.com/NixOS/nixpkgs/issues/new?labels=6.topic%3A+documentation&title=Doc%3A+) to request bugfixes or new features.
For documentation only relevant for contributors, use Markdown files and code comments in the source code.
Rendered documentation:
- [Unstable (from master)](https://nixos.org/manual/nixpkgs/unstable/)
@@ -176,138 +166,109 @@ When needed, each convention explain why it exists, so you can make a decision w
Note that these conventions are about the **structure** of the manual (and its source files), not about the content that goes in it.
You, as the writer of documentation, are still in charge of its content.
### One sentence per line
- Put each sentence in its own line.
This makes reviews and suggestions much easier, since GitHub's review system is based on lines.
It also helps identifying long sentences at a glance.
Put each sentence in its own line.
This makes reviews and suggestions much easier, since GitHub's review system is based on lines.
It also helps identifying long sentences at a glance.
- Use the [admonition syntax](#admonitions) for callouts and examples.
### Callouts and examples
- Provide at least one example per function, and make examples self-contained.
This is easier to understand for beginners.
It also helps with testing that it actually works especially once we introduce automation.
Use the [admonition syntax](#admonitions) for callouts and examples.
Example code should be such that it can be passed to `pkgs.callPackage`.
Instead of something like:
### Provide self-contained examples
```nix
pkgs.dockerTools.buildLayeredImage {
name = "hello";
contents = [ pkgs.hello ];
}
```
Provide at least one example per function, and make examples self-contained.
This is easier to understand for beginners.
It also helps with testing that it actually works especially once we introduce automation.
Write something like:
Example code should be such that it can be passed to `pkgs.callPackage`.
Instead of something like:
```nix
{ dockerTools, hello }:
dockerTools.buildLayeredImage {
name = "hello";
contents = [ hello ];
}
```
```nix
pkgs.dockerTools.buildLayeredImage {
name = "hello";
contents = [ pkgs.hello ];
}
```
- When showing inputs/outputs of any [REPL](https://en.wikipedia.org/wiki/Read%E2%80%93eval%E2%80%93print_loop), such as a shell or the Nix REPL, use a format as you'd see in the REPL, while trying to visually separate inputs from outputs.
This means that for a shell, you should use a format like the following:
```shell
$ nix-build -A hello '<nixpkgs>' \
--option require-sigs false \
--option trusted-substituters file:///tmp/hello-cache \
--option substituters file:///tmp/hello-cache
/nix/store/zhl06z4lrfrkw5rp0hnjjfrgsclzvxpm-hello-2.12.1
```
Note how the input is preceded by `$` on the first line and indented on subsequent lines, and how the output is provided as you'd see on the shell.
Write something like:
For the Nix REPL, you should use a format like the following:
```shell
nix-repl> builtins.attrNames { a = 1; b = 2; }
[ "a" "b" ]
```
Note how the input is preceded by `nix-repl>` and the output is provided as you'd see on the Nix REPL.
```nix
{ dockerTools, hello }:
dockerTools.buildLayeredImage {
name = "hello";
contents = [ hello ];
}
```
- When documenting functions or anything that has inputs/outputs and example usage, use nested headings to clearly separate inputs, outputs, and examples.
Keep examples as the last nested heading, and link to the examples wherever applicable in the documentation.
### REPLs
The purpose of this convention is to provide a familiar structure for navigating the manual, so any reader can expect to find content related to inputs in an "inputs" heading, examples in an "examples" heading, and so on.
An example:
```
## buildImage
When showing inputs/outputs of any [REPL](https://en.wikipedia.org/wiki/Read%E2%80%93eval%E2%80%93print_loop), such as a shell or the Nix REPL, use a format as you'd see in the REPL, while trying to visually separate inputs from outputs.
This means that for a shell, you should use a format like the following:
```shell
$ nix-build -A hello '<nixpkgs>' \
--option require-sigs false \
--option trusted-substituters file:///tmp/hello-cache \
--option substituters file:///tmp/hello-cache
/nix/store/zhl06z4lrfrkw5rp0hnjjfrgsclzvxpm-hello-2.12.1
```
Note how the input is preceded by `$` on the first line and indented on subsequent lines, and how the output is provided as you'd see on the shell.
Some explanation about the function here.
Describe a particular scenario, and point to [](#ex-dockerTools-buildImage), which is an example demonstrating it.
For the Nix REPL, you should use a format like the following:
```shell
nix-repl> builtins.attrNames { a = 1; b = 2; }
[ "a" "b" ]
```
Note how the input is preceded by `nix-repl>` and the output is provided as you'd see on the Nix REPL.
### Inputs
### Headings for inputs, outputs and examples
Documentation for the inputs of `buildImage`.
Perhaps even point to [](#ex-dockerTools-buildImage) again when talking about something specifically linked to it.
When documenting functions or anything that has inputs/outputs and example usage, use nested headings to clearly separate inputs, outputs, and examples.
Keep examples as the last nested heading, and link to the examples wherever applicable in the documentation.
### Passthru outputs
The purpose of this convention is to provide a familiar structure for navigating the manual, so any reader can expect to find content related to inputs in an "inputs" heading, examples in an "examples" heading, and so on.
An example:
```
## buildImage
Documentation for any passthru outputs of `buildImage`.
Some explanation about the function here.
Describe a particular scenario, and point to [](#ex-dockerTools-buildImage), which is an example demonstrating it.
### Examples
### Inputs
Note that this is the last nested heading in the `buildImage` section.
Documentation for the inputs of `buildImage`.
Perhaps even point to [](#ex-dockerTools-buildImage) again when talking about something specifically linked to it.
:::{.example #ex-dockerTools-buildImage}
### Passthru outputs
# Using `buildImage`
Documentation for any passthru outputs of `buildImage`.
Example of how to use `buildImage` goes here.
### Examples
:::
```
Note that this is the last nested heading in the `buildImage` section.
- Use [definition lists](#definition-lists) to document function arguments, and the attributes of such arguments as well as their [types](https://nixos.org/manual/nix/stable/language/values).
For example:
:::{.example #ex-dockerTools-buildImage}
```markdown
# pkgs.coolFunction
# Using `buildImage`
Description of what `coolFunction` does.
Example of how to use `buildImage` goes here.
## Inputs
:::
```
`coolFunction` expects a single argument which should be an attribute set, with the following possible attributes:
### Function arguments
`name` (String)
Use [definition lists](#definition-lists) to document function arguments, and the attributes of such arguments as well as their [types](https://nixos.org/manual/nix/stable/language/values).
For example:
: The name of the resulting image.
```markdown
# pkgs.coolFunction {#pkgs.coolFunction}
`tag` (String; _optional_)
`pkgs.coolFunction` *`name`* *`config`*
: Tag of the generated image.
Description of what `callPackage` does.
## Inputs {#pkgs-coolFunction-inputs}
If something's special about `coolFunction`'s general argument handling, you can say so here.
Otherwise, just describe the single argument or start the arguments' definition list without introduction.
*`name`* (String)
: The name of the resulting image.
*`config`* (Attribute set)
: Introduce the parameter. Maybe you have a test to make sure `{ }` is a sensible default; then you can say: these attributes are optional; `{ }` is a valid argument.
`outputHash` (String; _optional_)
: A brief explanation including when and when not to pass this attribute.
: _Default:_ the output path's hash.
```
Checklist:
- Start with a synopsis, to show the order of positional arguments.
- Metavariables are in emphasized code spans: ``` *`arg1`* ```. Metavariables are placeholders where users may write arbitrary expressions. This includes positional arguments.
- Attribute names are regular code spans: ``` `attr1` ```. These identifiers can _not_ be picked freely by users, so they are _not_ metavariables.
- _optional_ attributes have a _`Default:`_ if it's easily described as a value.
- _optional_ attributes have a _`Default behavior:`_ if it's not easily described using a value.
- Nix types aren't in code spans, because they are not code
- Nix types are capitalized, to distinguish them from the camelCase Module System types, which _are_ code and behave like functions.
_Default:_ the output path's hash.
```
#### Examples
@@ -332,7 +293,7 @@ Though this is not shown in the rendered documentation on nixos.org.
#### Figures
To define a referenceable figure use the following fencing:
To define a referencable figure use the following fencing:
```markdown
::: {.figure #nixos-logo}

View File

@@ -20,7 +20,6 @@ There is no uniform interface for build helpers.
build-helpers/fetchers.chapter.md
build-helpers/trivial-build-helpers.chapter.md
build-helpers/testers.chapter.md
build-helpers/dev-shell-tools.chapter.md
build-helpers/special.md
build-helpers/images.md
hooks/index.md

View File

@@ -1,75 +0,0 @@
# Development Shell helpers {#chap-devShellTools}
The `nix-shell` command has popularized the concept of transient shell environments for development or testing purposes.
<!--
We should try to document the product, not its development process in the Nixpkgs reference manual,
but *something* needs to be said to provide context for this library.
This is the most future proof sentence I could come up with while Nix itself does yet make use of this.
Relevant is the current status of the devShell attribute "project": https://github.com/NixOS/nix/issues/7501
-->
However, `nix-shell` is not the only way to create such environments, and even `nix-shell` itself can indirectly benefit from this library.
This library provides a set of functions that help create such environments.
## `devShellTools.valueToString` {#sec-devShellTools-valueToString}
Converts Nix values to strings in the way the [`derivation` built-in function](https://nix.dev/manual/nix/2.23/language/derivations) does.
:::{.example}
## `valueToString` usage examples
```nix
devShellTools.valueToString (builtins.toFile "foo" "bar")
=> "/nix/store/...-foo"
```
```nix
devShellTools.valueToString false
=> ""
```
:::
## `devShellTools.unstructuredDerivationInputEnv` {#sec-devShellTools-unstructuredDerivationInputEnv}
Convert a set of derivation attributes (as would be passed to [`derivation`]) to a set of environment variables that can be used in a shell script.
This function does not support `__structuredAttrs`, but does support `passAsFile`.
:::{.example}
## `unstructuredDerivationInputEnv` usage example
```nix
devShellTools.unstructuredDerivationInputEnv {
drvAttrs = {
name = "foo";
buildInputs = [ hello figlet ];
builder = bash;
args = [ "-c" "${./builder.sh}" ];
};
}
=> {
name = "foo";
buildInputs = "/nix/store/...-hello /nix/store/...-figlet";
builder = "/nix/store/...-bash";
}
```
Note that `args` is not included, because Nix does not added it to the builder process environment.
:::
## `devShellTools.derivationOutputEnv` {#sec-devShellTools-derivationOutputEnv}
Takes the relevant parts of a derivation and returns a set of environment variables, that would be present in the derivation.
:::{.example}
## `derivationOutputEnv` usage example
```nix
let
pkg = hello;
in
devShellTools.derivationOutputEnv { outputList = pkg.outputs; outputMap = pkg; }
```
:::

View File

@@ -157,12 +157,6 @@ Here are security considerations for this scenario:
In more concrete terms, if you use any other hash, the [`--insecure` flag](https://curl.se/docs/manpage.html#-k) will be passed to the underlying call to `curl` when downloading content.
## Proxy usage {#sec-pkgs-fetchers-proxy}
Nixpkgs fetchers can make use of a http(s) proxy. Each fetcher will automatically inherit proxy-related environment variables (`http_proxy`, `https_proxy`, etc) via [impureEnvVars](https://nixos.org/manual/nix/stable/language/advanced-attributes#adv-attr-impureEnvVars).
The environment variable `NIX_SSL_CERT_FILE` is also inherited in fetchers, and can be used to provide a custom certificate bundle to fetchers. This is usually required for a https proxy to work without certificate validation errors.
[]{#fetchurl}
## `fetchurl` {#sec-pkgs-fetchers-fetchurl}
@@ -371,8 +365,8 @@ If `pname` and `version` are specified, `fetchurl` will use those values and wil
_Default value:_ `{}`.
`passthru` (Attribute Set; _optional_)
: Specifies any extra [`passthru`](#chap-passthru) attributes for the derivation returned by `fetchurl`.
Note that `fetchurl` defines [`passthru` attributes of its own](#ssec-pkgs-fetchers-fetchurl-passthru-outputs).
: Specifies any extra [passthru](#var-stdenv-passthru) attributes for the derivation returned by `fetchurl`.
Note that `fetchurl` defines [passthru attributes of its own](#ssec-pkgs-fetchers-fetchurl-passthru-outputs).
Attributes specified in `passthru` can override the default attributes returned by `fetchurl`.
_Default value:_ `{}`.
@@ -393,7 +387,7 @@ If `pname` and `version` are specified, `fetchurl` will use those values and wil
### Passthru outputs {#ssec-pkgs-fetchers-fetchurl-passthru-outputs}
`fetchurl` also defines its own [`passthru`](#chap-passthru) attributes:
`fetchurl` also defines its own [`passthru`](#var-stdenv-passthru) attributes:
`url` (String)
@@ -875,7 +869,7 @@ It produces packages that cannot be built automatically.
fetchtorrent {
config = { peer-limit-global = 100; };
url = "magnet:?xt=urn:btih:dd8255ecdc7ca55fb0bbf81323d87062db1f6d1c";
hash = "";
sha256 = "";
}
```

View File

@@ -64,7 +64,7 @@ let
src = fetchurl {
url = "https://github.com/irccloud/irccloud-desktop/releases/download/v${version}/IRCCloud-${version}-linux-x86_64.AppImage";
hash = "sha256-/hMPvYdnVB1XjKgU2v47HnVvW4+uC3rhRjbucqin4iI=";
sha256 = "sha256-/hMPvYdnVB1XjKgU2v47HnVvW4+uC3rhRjbucqin4iI=";
};
in appimageTools.wrapType2 {
inherit pname version src;
@@ -100,7 +100,7 @@ let
src = fetchurl {
url = "https://github.com/irccloud/irccloud-desktop/releases/download/v${version}/IRCCloud-${version}-linux-x86_64.AppImage";
hash = "sha256-/hMPvYdnVB1XjKgU2v47HnVvW4+uC3rhRjbucqin4iI=";
sha256 = "sha256-/hMPvYdnVB1XjKgU2v47HnVvW4+uC3rhRjbucqin4iI=";
};
appimageContents = appimageTools.extract {
@@ -117,7 +117,7 @@ in appimageTools.wrapType2 {
install -m 444 -D ${appimageContents}/usr/share/icons/hicolor/512x512/apps/irccloud.png \
$out/share/icons/hicolor/512x512/apps/irccloud.png
substituteInPlace $out/share/applications/irccloud.desktop \
--replace-fail 'Exec=AppRun' 'Exec=${pname}'
--replace 'Exec=AppRun' 'Exec=${pname}'
'';
}
```
@@ -141,13 +141,13 @@ let
src = fetchurl {
url = "https://github.com/irccloud/irccloud-desktop/releases/download/v${version}/IRCCloud-${version}-linux-x86_64.AppImage";
hash = "sha256-/hMPvYdnVB1XjKgU2v47HnVvW4+uC3rhRjbucqin4iI=";
sha256 = "sha256-/hMPvYdnVB1XjKgU2v47HnVvW4+uC3rhRjbucqin4iI=";
};
appimageContents = appimageTools.extract {
inherit pname version src;
postExtract = ''
substituteInPlace $out/irccloud.desktop --replace-fail 'Exec=AppRun' 'Exec=${pname}'
substituteInPlace $out/irccloud.desktop --replace 'Exec=AppRun' 'Exec=${pname}'
'';
};
in appimageTools.wrapType2 {

View File

@@ -50,10 +50,6 @@ Similarly, if you encounter errors similar to `Error_Protocol ("certificate has
If specified, the layer created by `buildImage` will be appended to the layers defined in the base image, resulting in an image with at least two layers (one or more layers from the base image, and the layer created by `buildImage`).
Otherwise, the resulting image with contain the single layer created by `buildImage`.
:::{.note}
Only **Env** configuration is inherited from the base image.
:::
_Default value:_ `null`.
`fromImageName` (String or Null; _optional_)
@@ -189,26 +185,13 @@ Similarly, if you encounter errors similar to `Error_Protocol ("certificate has
_Default value:_ `"gz"`.\
_Possible values:_ `"none"`, `"gz"`, `"zstd"`.
`includeNixDB` (Boolean; _optional_)
: Populate the nix database in the image with the dependencies of `copyToRoot`.
The main purpose is to be able to use nix commands in the container.
:::{.caution}
Be careful since this doesn't work well in combination with `fromImage`. In particular, in a multi-layered image, only the Nix paths from the lower image will be in the database.
This also neglects to register the store paths that are pulled into the image as a dependency of one of the other values, but aren't a dependency of `copyToRoot`.
:::
_Default value:_ `false`.
`contents` **DEPRECATED**
: This attribute is deprecated, and users are encouraged to use `copyToRoot` instead.
### Passthru outputs {#ssec-pkgs-dockerTools-buildImage-passthru-outputs}
`buildImage` defines a few [`passthru`](#chap-passthru) attributes:
`buildImage` defines a few [`passthru`](#var-stdenv-passthru) attributes:
`buildArgs` (Attribute Set)
@@ -453,7 +436,7 @@ See [](#ex-dockerTools-streamLayeredImage-exploringlayers) to understand how the
`streamLayeredImage` allows scripts to be run when creating the additional layer with symlinks, allowing custom behaviour to affect the final results of the image (see the documentation of the `extraCommands` and `fakeRootCommands` attributes).
The resulting repository tarball will list a single image as specified by the `name` and `tag` attributes.
By default, that image will use a static creation date (see documentation for the `created` and `mtime` attributes).
By default, that image will use a static creation date (see documentation for the `created` attribute).
This allows the function to produce reproducible images.
### Inputs {#ssec-pkgs-dockerTools-streamLayeredImage-inputs}
@@ -516,7 +499,6 @@ This allows the function to produce reproducible images.
`created` (String; _optional_)
: Specifies the time of creation of the generated image.
This date will be used for the image metadata.
This should be either a date and time formatted according to [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) or `"now"`, in which case the current date will be used.
:::{.caution}
@@ -525,18 +507,6 @@ This allows the function to produce reproducible images.
_Default value:_ `"1970-01-01T00:00:01Z"`.
`mtime` (String; _optional_)
: Specifies the time used for the modification timestamp of files within the layers of the generated image.
This should be either a date and time formatted according to [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) or `"now"`, in which case the current date will be used.
:::{.caution}
Using a non-constant date will cause built layers to have a different hash each time, preventing deduplication.
Using `"now"` also means that the generated image will not be reproducible anymore (because the date will always change whenever it's built).
:::
_Default value:_ `"1970-01-01T00:00:01Z"`.
`uid` (Number; _optional_) []{#dockerTools-buildLayeredImage-arg-uid}
`gid` (Number; _optional_) []{#dockerTools-buildLayeredImage-arg-gid}
`uname` (String; _optional_) []{#dockerTools-buildLayeredImage-arg-uname}
@@ -604,28 +574,15 @@ This allows the function to produce reproducible images.
_Default value:_ `true`
`includeNixDB` (Boolean; _optional_)
: Populate the nix database in the image with the dependencies of `copyToRoot`.
The main purpose is to be able to use nix commands in the container.
:::{.caution}
Be careful since this doesn't work well in combination with `fromImage`. In particular, in a multi-layered image, only the Nix paths from the lower image will be in the database.
This also neglects to register the store paths that are pulled into the image as a dependency of one of the other values, but aren't a dependency of `copyToRoot`.
:::
_Default value:_ `false`.
`passthru` (Attribute Set; _optional_)
: Use this to pass any attributes as [`passthru`](#chap-passthru) for the resulting derivation.
: Use this to pass any attributes as [passthru](#var-stdenv-passthru) for the resulting derivation.
_Default value:_ `{}`
### Passthru outputs {#ssec-pkgs-dockerTools-streamLayeredImage-passthru-outputs}
`streamLayeredImage` also defines its own [`passthru`](#chap-passthru) attributes:
`streamLayeredImage` also defines its own [`passthru`](#var-stdenv-passthru) attributes:
`imageTag` (String)

View File

@@ -85,14 +85,14 @@ let
in
make-disk-image {
inherit pkgs lib;
inherit (evalConfig {
config = evalConfig {
modules = [
{
fileSystems."/" = { device = "/dev/vda"; fsType = "ext4"; autoFormat = true; };
boot.grub.device = "/dev/vda";
}
];
}) config;
};
format = "qcow2";
onlyNixStore = false;
partitionTableType = "legacy+gpt";
@@ -104,3 +104,5 @@ in
memSize = 2048; # Qemu VM memory size in megabytes. Defaults to 1024M.
}
```

View File

@@ -9,40 +9,22 @@ pkgs.makeSetupHook {
name = "something-hook";
propagatedBuildInputs = [ pkgs.commandsomething ];
depsTargetTargetPropagated = [ pkgs.libsomething ];
} ./script.sh;
} ./script.sh
```
### setup hook that depends on the hello package and runs hello and @shell@ is substituted with path to bash {#sec-pkgs.makeSetupHook-usage-example}
```nix
pkgs.makeSetupHook
{
pkgs.makeSetupHook {
name = "run-hello-hook";
# Put dependencies here if they have hooks or necessary dependencies propagated
# otherwise prefer direct paths to executables.
propagatedBuildInputs = [
pkgs.hello
pkgs.cowsay
];
substitutions = {
shell = "${pkgs.bash}/bin/bash";
cowsay = "${pkgs.cowsay}/bin/cowsay";
};
}
(
writeScript "run-hello-hook.sh" ''
#!@shell@
# the direct path to the executable has to be here because
# this will be run when the file is sourced
# at which point '$PATH' has not yet been populated with inputs
@cowsay@ cow
_printHelloHook() {
hello
}
preConfigureHooks+=(_printHelloHook)
''
);
propagatedBuildInputs = [ pkgs.hello ];
substitutions = { shell = "${pkgs.bash}/bin/bash"; };
passthru.tests.greeting = callPackage ./test { };
meta.platforms = lib.platforms.linux;
} (writeScript "run-hello-hook.sh" ''
#!@shell@
hello
'')
```
## Attributes {#sec-pkgs.makeSetupHook-attributes}

View File

@@ -125,8 +125,6 @@ A set of functions that build a predefined set of minimal Linux distributions im
* `debian10x86_64`
* `debian11i386`
* `debian11x86_64`
* `debian12i386`
* `debian12x86_64`
### Attributes {#vm-tools-diskImageFuns-attributes}

View File

@@ -116,63 +116,13 @@ It has two modes:
: The `lychee` package to use.
## `shellcheck` {#tester-shellcheck}
Runs files through `shellcheck`, a static analysis tool for shell scripts.
:::{.example #ex-shellcheck}
# Run `testers.shellcheck`
A single script
```nix
testers.shellcheck {
name = "shellcheck";
src = ./script.sh;
}
```
Multiple files
```nix
let
inherit (lib) fileset;
in
testers.shellcheck {
name = "shellcheck";
src = fileset.toSource {
root = ./.;
fileset = fileset.unions [
./lib.sh
./nixbsd-activate
];
};
}
```
:::
### Inputs {#tester-shellcheck-inputs}
[`src` (path or string)]{#tester-shellcheck-param-src}
: The path to the shell script(s) to check.
This can be a single file or a directory containing shell files.
All files in `src` will be checked, so you may want to provide `fileset`-based source instead of a whole directory.
### Return value {#tester-shellcheck-return}
A derivation that runs `shellcheck` on the given script(s).
The build will fail if `shellcheck` finds any issues.
## `testVersion` {#tester-testVersion}
Checks that the output from running a command contains the specified version string in it as a whole word.
NOTE: In most cases, [`versionCheckHook`](#versioncheckhook) should be preferred, but this function is provided and documented here anyway. The motivation for adding either tests would be:
- Catch dynamic linking errors and such and missing environment variables that should be added by wrapping.
- Probable protection against accidentally building the wrong version, for example when using an "old" hash in a fixed-output derivation.
Although simplistic, this test assures that the main program can run.
While there's no substitute for a real test case, it does catch dynamic linking errors and such.
It also provides some protection against accidentally building the wrong version, for example when using an "old" hash in a fixed-output derivation.
By default, the command to be run will be inferred from the given `package` attribute:
it will check `meta.mainProgram` first, and fall back to `pname` or `name`.
@@ -339,41 +289,6 @@ once to get a derivation hash, and again to produce the final fixed output deriv
:::
## `runCommand` {#tester-runCommand}
`runCommand :: { name, script, stdenv ? stdenvNoCC, hash ? "...", ... } -> Derivation`
This is a wrapper around `pkgs.runCommandWith`, which
- produces a fixed-output derivation, enabling the command(s) to access the network ;
- salts the derivation's name based on its inputs, ensuring the command is re-run whenever the inputs changes.
It accepts the following attributes:
- the derivation's `name` ;
- the `script` to be executed ;
- `stdenv`, the environment to use, defaulting to `stdenvNoCC` ;
- the derivation's output `hash`, defaulting to the empty file's.
The derivation's `outputHashMode` is set by default to recursive, so the `script` can output a directory as well.
All other attributes are passed through to [`mkDerivation`](#sec-using-stdenv),
including `nativeBuildInputs` to specify dependencies available to the `script`.
:::{.example #ex-tester-runCommand-nix}
# Run a command with network access
```nix
testers.runCommand {
name = "access-the-internet";
command = ''
curl -o /dev/null https://example.com
touch $out
'';
nativeBuildInputs = with pkgs; [ cacert curl ];
}
```
:::
## `runNixOSTest` {#tester-runNixOSTest}
A helper function that behaves exactly like the NixOS `runTest`, except it also assigns this Nixpkgs package set as the `pkgs` of the test and makes the `nixpkgs.*` options read-only.

View File

@@ -3,122 +3,32 @@
Nixpkgs provides a variety of wrapper functions that help build commonly useful derivations.
Like [`stdenv.mkDerivation`](#sec-using-stdenv), each of these build helpers creates a derivation, but the arguments passed are different (usually simpler) from those required by `stdenv.mkDerivation`.
## `runCommand` {#trivial-builder-runCommand}
## `runCommandWith` {#trivial-builder-runCommandWith}
`runCommand :: String -> AttrSet -> String -> Derivation`
The function `runCommandWith` returns a derivation built using the specified command(s), in a specified environment.
The result of `runCommand name drvAttrs buildCommand` is a derivation that is built by running the specified shell commands.
It is the underlying base function of all [`runCommand*` variants].
The general behavior is controlled via a single attribute set passed
as the first argument, and allows specifying `stdenv` freely.
By default `runCommand` runs in a stdenv with no compiler environment, whereas [`runCommandCC`](#trivial-builder-runCommandCC) uses the default stdenv, `pkgs.stdenv`.
The following [`runCommand*` variants] exist: `runCommand`, `runCommandCC`, and `runCommandLocal`.
`name :: String`
: The name that Nix will append to the store path in the same way that `stdenv.mkDerivation` uses its `name` attribute.
[`runCommand*` variants]: #trivial-builder-runCommand
`drvAttr :: AttrSet`
: Attributes to pass to the underlying call to [`stdenv.mkDerivation`](#chap-stdenv).
### Type {#trivial-builder-runCommandWith-Type}
```
runCommandWith :: {
name :: name;
stdenv? :: Derivation;
runLocal? :: Bool;
derivationArgs? :: { ... };
} -> String -> Derivation
```
### Inputs {#trivial-builder-runCommandWith-Inputs}
`name` (String)
: The derivation's name, which Nix will append to the store path; see [`mkDerivation`](#sec-using-stdenv).
`runLocal` (Boolean)
: If set to `true` this forces the derivation to be built locally, not using [substitutes] nor remote builds.
This is intended for very cheap commands (<1s execution time) which can be sped up by avoiding the network round-trip(s).
Its effect is to set [`preferLocalBuild = true`][preferLocalBuild] and [`allowSubstitutes = false`][allowSubstitutes].
::: {.note}
This prevents the use of [substituters][substituter], so only set `runLocal` (or use `runCommandLocal`) when certain the user will
always have a builder for the `system` of the derivation. This should be true for most trivial use cases
(e.g., just copying some files to a different location or adding symlinks) because there the `system`
is usually the same as `builtins.currentSystem`.
:::
`stdenv` (Derivation)
: The [standard environment](#chap-stdenv) to use, defaulting to `pkgs.stdenv`
`derivationArgs` (Attribute set)
: Additional arguments for [`mkDerivation`](#sec-using-stdenv).
`buildCommand` (String)
`buildCommand :: String`
: Shell commands to run in the derivation builder.
::: {.note}
You have to create a file or directory `$out` for Nix to be able to run the builder successfully.
:::
[allowSubstitutes]: https://nixos.org/nix/manual/#adv-attr-allowSubstitutes
[preferLocalBuild]: https://nixos.org/nix/manual/#adv-attr-preferLocalBuild
[substituter]: https://nix.dev/manual/nix/latest/glossary#gloss-substituter
[substitutes]: https://nix.dev/manual/nix/2.23/glossary#gloss-substitute
::: {.example #ex-runcommandwith}
# Invocation of `runCommandWith`
```nix
runCommandWith {
name = "example";
derivationArgs.nativeBuildInputs = [ cowsay ];
} ''
cowsay > $out <<EOMOO
'runCommandWith' is a bit cumbersome,
so we have more ergonomic wrappers.
EOMOO
''
```
:::
## `runCommand` and `runCommandCC` {#trivial-builder-runCommand}
The function `runCommand` returns a derivation built using the specified command(s), in the `stdenvNoCC` environment.
`runCommandCC` is similar but uses the default compiler environment. To minimize dependencies, `runCommandCC`
should only be used when the build command needs a C compiler.
`runCommandLocal` is also similar to `runCommand`, but forces the derivation to be built locally.
See the note on [`runCommandWith`] about `runLocal`.
[`runCommandWith`]: #trivial-builder-runCommandWith
### Type {#trivial-builder-runCommand-Type}
```
runCommand :: String -> AttrSet -> String -> Derivation
runCommandCC :: String -> AttrSet -> String -> Derivation
runCommandLocal :: String -> AttrSet -> String -> Derivation
```
### Input {#trivial-builder-runCommand-Input}
While the type signature(s) differ from [`runCommandWith`], individual arguments with the same name will have the same type and meaning:
`name` (String)
: The derivation's name
`derivationArgs` (Attribute set)
: Additional parameters passed to [`mkDerivation`]
`buildCommand` (String)
: The command(s) run to build the derivation.
::: {.example #ex-runcommand-simple}
# Invocation of `runCommand`
```nix
runCommand "my-example" {} ''
(import <nixpkgs> {}).runCommand "my-example" {} ''
echo My example command is running
mkdir $out
@@ -139,24 +49,18 @@ runCommand "my-example" {} ''
```
:::
## `runCommandCC` {#trivial-builder-runCommandCC}
This works just like `runCommand`. The only difference is that it also provides a C compiler in `buildCommand`'s environment. To minimize your dependencies, you should only use this if you are sure you will need a C compiler as part of running your command.
## `runCommandLocal` {#trivial-builder-runCommandLocal}
Variant of `runCommand` that forces the derivation to be built locally, it is not substituted. This is intended for very cheap commands (<1s execution time). It saves on the network round-trip and can speed up a build.
::: {.note}
`runCommand name derivationArgs buildCommand` is equivalent to
```nix
runCommandWith {
inherit name derivationArgs;
stdenv = stdenvNoCC;
} buildCommand
```
Likewise, `runCommandCC name derivationArgs buildCommand` is equivalent to
```nix
runCommandWith {
inherit name derivationArgs;
} buildCommand
```
This sets [`allowSubstitutes` to `false`](https://nixos.org/nix/manual/#adv-attr-allowSubstitutes), so only use `runCommandLocal` if you are certain the user will always have a builder for the `system` of the derivation. This should be true for most trivial use cases (e.g., just copying some files to a different location or adding symlinks) because there the `system` is usually the same as `builtins.currentSystem`.
:::
## Writing text files {#trivial-builder-text-writing}
Nixpkgs provides the following functions for producing derivations which write text files or executable scripts into the Nix store.
@@ -337,7 +241,7 @@ Write a text file to the Nix store.
`allowSubstitutes` (Bool, _optional_)
: Whether to allow substituting from a binary cache.
Passed through to [`allowSubstitutes`](https://nixos.org/manual/nix/stable/language/advanced-attributes#adv-attr-allowSubstitutes) of the underlying call to `builtins.derivation`.
Passed through to [`allowSubsitutes`](https://nixos.org/manual/nix/stable/language/advanced-attributes#adv-attr-allowSubstitutes) of the underlying call to `builtins.derivation`.
It defaults to `false`, as running the derivation's simple `builder` executable locally is assumed to be faster than network operations.
Set it to true if the `checkPhase` step is expensive.
@@ -501,7 +405,7 @@ writeTextFile {
text = ''
Contents of File
'';
destination = "/share/my-file";
destination = "share/my-file";
}
```
@@ -533,6 +437,7 @@ writeScript "my-file"
Contents of File
''
```
:::
This is equivalent to:
@@ -545,11 +450,10 @@ writeTextFile {
executable = true;
}
```
:::
### `writeScriptBin` {#trivial-builder-writeScriptBin}
Write a script within a `bin` subdirectory of a directory in the Nix store.
Write a script within a `bin` subirectory of a directory in the Nix store.
This is for consistency with the convention of software packages placing executables under `bin`.
`writeScriptBin` takes the following arguments:
@@ -564,7 +468,7 @@ This is for consistency with the convention of software packages placing executa
The created file is marked as executable.
The file's contents will be put into `/nix/store/<store path>/bin/<name>`.
The store path will include the name, and it will be a directory.
The store path will include the the name, and it will be a directory.
::: {.example #ex-writeScriptBin}
# Usage of `writeScriptBin`
@@ -586,7 +490,7 @@ writeTextFile {
echo "hi"
'';
executable = true;
destination = "/bin/my-script";
destination = "bin/my-script";
}
```
@@ -674,7 +578,7 @@ writeTextFile {
echo "hi"
'';
executable = true;
destination = "/bin/my-script";
destination = "bin/my-script";
}
```
@@ -732,7 +636,7 @@ writeShellApplication {
## `symlinkJoin` {#trivial-builder-symlinkJoin}
This can be used to put many derivations into the same directory structure. It works by creating a new derivation and adding symlinks to each of the paths listed. It expects two arguments, `name`, and `paths`. `name` (or alternatively `pname` and `version`) is the name used in the Nix store path for the created derivation. `paths` is a list of paths that will be symlinked. These paths can be to Nix store derivations or any other subdirectory contained within.
This can be used to put many derivations into the same directory structure. It works by creating a new derivation and adding symlinks to each of the paths listed. It expects two arguments, `name`, and `paths`. `name` is the name used in the Nix store path for the created derivation. `paths` is a list of paths that will be symlinked. These paths can be to Nix store derivations or any other subdirectory contained within.
Here is an example:
```nix
# adds symlinks of hello and stack to current build and prints "links added"

4
doc/common.nix Normal file
View File

@@ -0,0 +1,4 @@
{
outputPath = "share/doc/nixpkgs";
indexPath = "manual.html";
}

View File

@@ -1,6 +1,176 @@
{
pkgs ? (import ./.. { }),
nixpkgs ? { },
}:
{ pkgs ? (import ./.. { }), nixpkgs ? { }}:
let
inherit (pkgs) lib;
inherit (lib) hasPrefix removePrefix;
pkgs.nixpkgs-manual.override { inherit nixpkgs; }
common = import ./common.nix;
lib-docs = import ./doc-support/lib-function-docs.nix {
inherit pkgs nixpkgs;
libsets = [
{ name = "asserts"; description = "assertion functions"; }
{ name = "attrsets"; description = "attribute set functions"; }
{ name = "strings"; description = "string manipulation functions"; }
{ name = "versions"; description = "version string functions"; }
{ name = "trivial"; description = "miscellaneous functions"; }
{ name = "fixedPoints"; baseName = "fixed-points"; description = "explicit recursion functions"; }
{ name = "lists"; description = "list manipulation functions"; }
{ name = "debug"; description = "debugging functions"; }
{ name = "options"; description = "NixOS / nixpkgs option handling"; }
{ name = "path"; description = "path functions"; }
{ name = "filesystem"; description = "filesystem functions"; }
{ name = "fileset"; description = "file set functions"; }
{ name = "sources"; description = "source filtering functions"; }
{ name = "cli"; description = "command-line serialization functions"; }
{ name = "gvariant"; description = "GVariant formatted string serialization functions"; }
{ name = "customisation"; description = "Functions to customise (derivation-related) functions, derivatons, or attribute sets"; }
{ name = "meta"; description = "functions for derivation metadata"; }
{ name = "derivations"; description = "miscellaneous derivation-specific functions"; }
];
};
epub = pkgs.runCommand "manual.epub" {
nativeBuildInputs = with pkgs; [ libxslt zip ];
epub = ''
<book xmlns="http://docbook.org/ns/docbook"
xmlns:xlink="http://www.w3.org/1999/xlink"
version="5.0"
xml:id="nixpkgs-manual">
<info>
<title>Nixpkgs Manual</title>
<subtitle>Version ${pkgs.lib.version}</subtitle>
</info>
<chapter>
<title>Temporarily unavailable</title>
<para>
The Nixpkgs manual is currently not available in EPUB format,
please use the <link xlink:href="https://nixos.org/nixpkgs/manual">HTML manual</link>
instead.
</para>
<para>
If you've used the EPUB manual in the past and it has been useful to you, please
<link xlink:href="https://github.com/NixOS/nixpkgs/issues/237234">let us know</link>.
</para>
</chapter>
</book>
'';
passAsFile = [ "epub" ];
} ''
mkdir scratch
xsltproc \
--param chapter.autolabel 0 \
--nonet \
--output scratch/ \
${pkgs.docbook_xsl_ns}/xml/xsl/docbook/epub/docbook.xsl \
$epubPath
echo "application/epub+zip" > mimetype
zip -0Xq "$out" mimetype
cd scratch && zip -Xr9D "$out" *
'';
# NB: This file describes the Nixpkgs manual, which happens to use module
# docs infra originally developed for NixOS.
optionsDoc = pkgs.nixosOptionsDoc {
inherit (pkgs.lib.evalModules {
modules = [ ../pkgs/top-level/config.nix ];
class = "nixpkgsConfig";
}) options;
documentType = "none";
transformOptions = opt:
opt // {
declarations =
map
(decl:
if hasPrefix (toString ../..) (toString decl)
then
let subpath = removePrefix "/" (removePrefix (toString ../.) (toString decl));
in { url = "https://github.com/NixOS/nixpkgs/blob/master/${subpath}"; name = subpath; }
else decl)
opt.declarations;
};
};
in pkgs.stdenv.mkDerivation {
name = "nixpkgs-manual";
nativeBuildInputs = with pkgs; [
nixos-render-docs
];
src = ./.;
postPatch = ''
ln -s ${optionsDoc.optionsJSON}/share/doc/nixos/options.json ./config-options.json
'';
buildPhase = ''
cat \
./functions/library.md.in \
${lib-docs}/index.md \
> ./functions/library.md
substitute ./manual.md.in ./manual.md \
--replace-fail '@MANUAL_VERSION@' '${pkgs.lib.version}'
mkdir -p out/media
mkdir -p out/highlightjs
cp -t out/highlightjs \
${pkgs.documentation-highlighter}/highlight.pack.js \
${pkgs.documentation-highlighter}/LICENSE \
${pkgs.documentation-highlighter}/mono-blue.css \
${pkgs.documentation-highlighter}/loader.js
cp -t out ./style.css ./anchor.min.js ./anchor-use.js
nixos-render-docs manual html \
--manpage-urls ./manpage-urls.json \
--revision ${pkgs.lib.trivial.revisionWithDefault (pkgs.rev or "master")} \
--stylesheet style.css \
--stylesheet highlightjs/mono-blue.css \
--script ./highlightjs/highlight.pack.js \
--script ./highlightjs/loader.js \
--script ./anchor.min.js \
--script ./anchor-use.js \
--toc-depth 1 \
--section-toc-depth 1 \
manual.md \
out/index.html
'';
installPhase = ''
dest="$out/${common.outputPath}"
mkdir -p "$(dirname "$dest")"
mv out "$dest"
mv "$dest/index.html" "$dest/${common.indexPath}"
cp ${epub} "$dest/nixpkgs-manual.epub"
mkdir -p $out/nix-support/
echo "doc manual $dest ${common.indexPath}" >> $out/nix-support/hydra-build-products
echo "doc manual $dest nixpkgs-manual.epub" >> $out/nix-support/hydra-build-products
'';
passthru.tests.manpage-urls = with pkgs; testers.invalidateFetcherByDrvHash
({ name ? "manual_check-manpage-urls"
, script
, urlsFile
}: runCommand name {
nativeBuildInputs = [
cacert
(python3.withPackages (p: with p; [
aiohttp
rich
structlog
]))
];
outputHash = "sha256-47DEQpj8HBSa+/TImW+5JCeuQeRkm5NMpJWZG3hSuFU="; # Empty output
} ''
python3 ${script} ${urlsFile}
touch $out
'') {
script = ./tests/manpage-urls.py;
urlsFile = ./manpage-urls.json;
};
}

View File

@@ -1,54 +0,0 @@
# To build this derivation, run `nix-build -A nixpkgs-manual.epub`
{
lib,
runCommand,
docbook_xsl_ns,
libxslt,
zip,
}:
runCommand "manual.epub"
{
nativeBuildInputs = [
libxslt
zip
];
epub = ''
<book xmlns="http://docbook.org/ns/docbook"
xmlns:xlink="http://www.w3.org/1999/xlink"
version="5.0"
xml:id="nixpkgs-manual">
<info>
<title>Nixpkgs Manual</title>
<subtitle>Version ${lib.version}</subtitle>
</info>
<chapter>
<title>Temporarily unavailable</title>
<para>
The Nixpkgs manual is currently not available in EPUB format,
please use the <link xlink:href="https://nixos.org/nixpkgs/manual">HTML manual</link>
instead.
</para>
<para>
If you've used the EPUB manual in the past and it has been useful to you, please
<link xlink:href="https://github.com/NixOS/nixpkgs/issues/237234">let us know</link>.
</para>
</chapter>
</book>
'';
passAsFile = [ "epub" ];
}
''
mkdir scratch
xsltproc \
--param chapter.autolabel 0 \
--nonet \
--output scratch/ \
${docbook_xsl_ns}/xml/xsl/docbook/epub/docbook.xsl \
$epubPath
echo "application/epub+zip" > mimetype
zip -0Xq -b "$TMPDIR" "$out" mimetype
cd scratch && zip -Xr9D -b "$TMPDIR" "$out" *
''

View File

@@ -1,123 +1,27 @@
# Generates the documentation for library functions via nixdoc.
# To build this derivation, run `nix-build -A nixpkgs-manual.lib-docs`
{
lib,
stdenvNoCC,
nixdoc,
nix,
nixpkgs ? { },
libsets ? [
{
name = "asserts";
description = "assertion functions";
}
{
name = "attrsets";
description = "attribute set functions";
}
{
name = "strings";
description = "string manipulation functions";
}
{
name = "versions";
description = "version string functions";
}
{
name = "trivial";
description = "miscellaneous functions";
}
{
name = "fixedPoints";
baseName = "fixed-points";
description = "explicit recursion functions";
}
{
name = "lists";
description = "list manipulation functions";
}
{
name = "debug";
description = "debugging functions";
}
{
name = "options";
description = "NixOS / nixpkgs option handling";
}
{
name = "path";
description = "path functions";
}
{
name = "filesystem";
description = "filesystem functions";
}
{
name = "fileset";
description = "file set functions";
}
{
name = "sources";
description = "source filtering functions";
}
{
name = "cli";
description = "command-line serialization functions";
}
{
name = "generators";
description = "functions that create file formats from nix data structures";
}
{
name = "gvariant";
description = "GVariant formatted string serialization functions";
}
{
name = "customisation";
description = "Functions to customise (derivation-related) functions, derivations, or attribute sets";
}
{
name = "meta";
description = "functions for derivation metadata";
}
{
name = "derivations";
description = "miscellaneous derivation-specific functions";
}
],
}:
stdenvNoCC.mkDerivation {
{ pkgs, nixpkgs, libsets }:
with pkgs;
let
locationsJSON = import ./lib-function-locations.nix { inherit pkgs nixpkgs libsets; };
in
stdenv.mkDerivation {
name = "nixpkgs-lib-docs";
src = ../../lib;
src = lib.fileset.toSource {
root = ../..;
fileset = ../../lib;
};
buildInputs = [
nixdoc
nix
];
buildInputs = [ nixdoc ];
installPhase = ''
export NIX_STATE_DIR=$(mktemp -d)
nix-instantiate --eval --strict --json ${./lib-function-locations.nix} \
--arg nixpkgsPath "./." \
--argstr revision ${nixpkgs.rev or "master"} \
--argstr libsetsJSON ${lib.escapeShellArg (builtins.toJSON libsets)} \
--store $(mktemp -d) \
> locations.json
function docgen {
name=$1
baseName=$2
description=$3
# TODO: wrap lib.$name in <literal>, make nixdoc not escape it
if [[ -e "lib/$baseName.nix" ]]; then
nixdoc -c "$name" -d "lib.$name: $description" -l locations.json -f "lib/$baseName.nix" > "$out/$name.md"
if [[ -e "../lib/$baseName.nix" ]]; then
nixdoc -c "$name" -d "lib.$name: $description" -l ${locationsJSON} -f "$baseName.nix" > "$out/$name.md"
else
nixdoc -c "$name" -d "lib.$name: $description" -l locations.json -f "lib/$baseName/default.nix" > "$out/$name.md"
nixdoc -c "$name" -d "lib.$name: $description" -l ${locationsJSON} -f "$baseName/default.nix" > "$out/$name.md"
fi
echo "$out/$name.md" >> "$out/index.md"
}
@@ -128,16 +32,9 @@ stdenvNoCC.mkDerivation {
```{=include=} sections auto-id-prefix=auto-generated
EOF
${lib.concatMapStrings (
{
name,
baseName ? name,
description,
}:
''
docgen ${name} ${baseName} ${lib.escapeShellArg description}
''
) libsets}
${lib.concatMapStrings ({ name, baseName ? name, description }: ''
docgen ${name} ${baseName} ${lib.escapeShellArg description}
'') libsets}
echo '```' >> "$out/index.md"
'';

View File

@@ -1,14 +1,13 @@
{ nixpkgsPath, revision, libsetsJSON }:
{ pkgs, nixpkgs ? { }, libsets }:
let
lib = import (nixpkgsPath + "/lib");
libsets = builtins.fromJSON libsetsJSON;
revision = pkgs.lib.trivial.revisionWithDefault (nixpkgs.rev or "master");
libDefPos = prefix: set:
builtins.concatMap
(name: [{
name = builtins.concatStringsSep "." (prefix ++ [name]);
location = builtins.unsafeGetAttrPos name set;
}] ++ lib.optionals
}] ++ nixpkgsLib.optionals
(builtins.length prefix == 0 && builtins.isAttrs set.${name})
(libDefPos (prefix ++ [name]) set.${name})
) (builtins.attrNames set);
@@ -21,6 +20,8 @@ let
})
(builtins.map (x: x.name) libsets);
nixpkgsLib = pkgs.lib;
flattenedLibSubset = { subsetname, functions }:
builtins.map
(fn: {
@@ -37,13 +38,13 @@ let
substr = builtins.substring prefixLen filenameLen filename;
in substr;
removeNixpkgs = removeFilenamePrefix (builtins.toString nixpkgsPath);
removeNixpkgs = removeFilenamePrefix (builtins.toString pkgs.path);
liblocations =
builtins.filter
(elem: elem.value != null)
(lib.lists.flatten
(locatedlibsets lib));
(nixpkgsLib.lists.flatten
(locatedlibsets nixpkgsLib));
fnLocationRelative = { name, value }:
{
@@ -71,4 +72,4 @@ let
relativeLocs);
in
jsonLocs
pkgs.writeText "locations.json" (builtins.toJSON jsonLocs)

View File

@@ -1,28 +0,0 @@
# To build this derivation, run `nix-build -A nixpkgs-manual.optionsDoc`
{ lib, nixosOptionsDoc }:
let
modules = lib.evalModules {
modules = [ ../../pkgs/top-level/config.nix ];
class = "nixpkgsConfig";
};
root = toString ../..;
transformDeclaration =
decl:
let
declStr = toString decl;
subpath = lib.removePrefix "/" (lib.removePrefix root declStr);
in
assert lib.hasPrefix root declStr;
{
url = "https://github.com/NixOS/nixpkgs/blob/master/${subpath}";
name = subpath;
};
in
nixosOptionsDoc {
inherit (modules) options;
documentType = "none";
transformOptions = opt: opt // { declarations = map transformDeclaration opt.declarations; };
}

View File

@@ -1,112 +0,0 @@
# This file describes the Nixpkgs manual, which happens to use module docs infra originally
# developed for NixOS. To build this derivation, run `nix-build -A nixpkgs-manual`.
#
{
lib,
stdenvNoCC,
callPackage,
devmode,
mkShellNoCC,
documentation-highlighter,
nixos-render-docs,
nixpkgs ? { },
}:
stdenvNoCC.mkDerivation (
finalAttrs:
let
inherit (finalAttrs.finalPackage.optionsDoc) optionsJSON;
inherit (finalAttrs.finalPackage) epub lib-docs pythonInterpreterTable;
in
{
name = "nixpkgs-manual";
nativeBuildInputs = [ nixos-render-docs ];
src = lib.fileset.toSource {
root = ../.;
fileset = lib.fileset.unions [
(lib.fileset.fileFilter (file: file.hasExt "md" || file.hasExt "md.in") ../.)
../style.css
../anchor-use.js
../anchor.min.js
../manpage-urls.json
];
};
postPatch = ''
ln -s ${optionsJSON}/share/doc/nixos/options.json ./config-options.json
'';
buildPhase = ''
substituteInPlace ./languages-frameworks/python.section.md \
--subst-var-by python-interpreter-table "$(<"${pythonInterpreterTable}")"
cat \
./functions/library.md.in \
${lib-docs}/index.md \
> ./functions/library.md
substitute ./manual.md.in ./manual.md \
--replace-fail '@MANUAL_VERSION@' '${lib.version}'
mkdir -p out/media
mkdir -p out/highlightjs
cp -t out/highlightjs \
${documentation-highlighter}/highlight.pack.js \
${documentation-highlighter}/LICENSE \
${documentation-highlighter}/mono-blue.css \
${documentation-highlighter}/loader.js
cp -t out ./style.css ./anchor.min.js ./anchor-use.js
nixos-render-docs manual html \
--manpage-urls ./manpage-urls.json \
--revision ${nixpkgs.rev or "master"} \
--stylesheet style.css \
--stylesheet highlightjs/mono-blue.css \
--script ./highlightjs/highlight.pack.js \
--script ./highlightjs/loader.js \
--script ./anchor.min.js \
--script ./anchor-use.js \
--toc-depth 1 \
--section-toc-depth 1 \
manual.md \
out/index.html
'';
installPhase = ''
dest="$out/share/doc/nixpkgs"
mkdir -p "$(dirname "$dest")"
mv out "$dest"
mv "$dest/index.html" "$dest/manual.html"
cp ${epub} "$dest/nixpkgs-manual.epub"
mkdir -p $out/nix-support/
echo "doc manual $dest manual.html" >> $out/nix-support/hydra-build-products
echo "doc manual $dest nixpkgs-manual.epub" >> $out/nix-support/hydra-build-products
'';
passthru = {
lib-docs = callPackage ./lib-function-docs.nix { inherit nixpkgs; };
epub = callPackage ./epub.nix { };
optionsDoc = callPackage ./options-doc.nix { };
pythonInterpreterTable = callPackage ./python-interpreter-table.nix { };
shell =
let
devmode' = devmode.override {
buildArgs = "./.";
open = "/share/doc/nixpkgs/manual.html";
};
in
mkShellNoCC { packages = [ devmode' ]; };
tests.manpage-urls = callPackage ../tests/manpage-urls.nix { };
};
}
)

View File

@@ -1,64 +0,0 @@
# To build this derivation, run `nix-build -A nixpkgs-manual.pythonInterpreterTable`
{
lib,
writeText,
pkgs,
pythonInterpreters,
}:
let
isPythonInterpreter =
name:
/*
NB: Package names that don't follow the regular expression:
- `python-cosmopolitan` is not part of `pkgs.pythonInterpreters`.
- `_prebuilt` interpreters are used for bootstrapping internally.
- `python3Minimal` contains python packages, left behind conservatively.
- `rustpython` lacks `pythonVersion` and `implementation`.
*/
(lib.strings.match "(pypy|python)([[:digit:]]*)" name) != null;
interpreterName =
pname:
let
cuteName = {
cpython = "CPython";
pypy = "PyPy";
};
interpreter = pkgs.${pname};
in
"${cuteName.${interpreter.implementation}} ${interpreter.pythonVersion}";
interpreters = lib.reverseList (
lib.naturalSort (lib.filter isPythonInterpreter (lib.attrNames pythonInterpreters))
);
aliases =
pname:
lib.attrNames (
lib.filterAttrs (
name: value:
isPythonInterpreter name && name != pname && interpreterName name == interpreterName pname
) pkgs
);
result = map (pname: {
inherit pname;
aliases = aliases pname;
interpreter = interpreterName pname;
}) interpreters;
toMarkdown =
data:
let
line = package: ''
| ${package.pname} | ${lib.concatStringsSep ", " package.aliases or [ ]} | ${package.interpreter} |
'';
in
lib.concatStringsSep "" (map line data);
in
writeText "python-interpreter-table.md" ''
| Package | Aliases | Interpeter |
|---------|---------|------------|
${toMarkdown result}
''

View File

@@ -54,4 +54,4 @@ merge:"diff3"
Nix store paths can be converted to strings by enclosing a derivation attribute like so: `"${drv}"`.
:::
Detailed documentation for each generator can be found [here](#sec-functions-library-generators)
Detailed documentation for each generator can be found in `lib/generators.nix`.

View File

@@ -1,4 +0,0 @@
# `aws-c-common` {#aws-c-common}
This hook exposes its own [CMake](#cmake) modules by setting [`CMAKE_MODULE_PATH`](https://cmake.org/cmake/help/latest/variable/CMAKE_MODULE_PATH.html) through [the `cmakeFlags` variable](#cmake-flags)
to the nonstandard `$out/lib/cmake` directory, as a workaround for [an upstream bug](https://github.com/awslabs/aws-c-common/issues/844).

View File

@@ -1,3 +0,0 @@
# CERNLIB {#cernlib-hook}
This hook sets the `CERN`, `CERN_LEVEL`, and `CERN_ROOT` environment variables. They are part of [CERNLIB's build system](https://cernlib.web.cern.ch/install/install.html), and are are needed for some programs to compile correctly.

View File

@@ -1,35 +1,3 @@
# cmake {#cmake}
Overrides the default configure phase to run the CMake command.
By default, we use the Make generator of CMake.
But when Ninja is also available as a `nativeBuildInput`, this setup hook will detect that and use the ninja generator.
Dependencies are added automatically to `CMAKE_PREFIX_PATH` so that packages are correctly detected by CMake.
Some additional flags are passed in to give similar behavior to configure-based packages.
By default, parallel building is enabled as CMake supports parallel building almost everywhere.
You can disable this hooks behavior by setting `configurePhase` to a custom value, or by setting `dontUseCmakeConfigure`.
## Variables controlling CMake {#cmake-variables-controlling}
### CMake Exclusive Variables {#cmake-exclusive-variables}
#### `cmakeFlags` {#cmake-flags}
Controls the flags passed to `cmake setup` during configure phase.
#### `cmakeBuildDir` {#cmake-build-dir}
Directory where CMake will put intermediate files.
Setting this can be useful for debugging multiple CMake builds while in the same source directory, for example, when building for different platforms.
Different values for each build will prevent build artefacts from interefering with each other.
This setting has no tangible effect when running the build in a sandboxed derivation.
The default value is `build`.
#### `dontUseCmakeConfigure` {#dont-use-cmake-configure}
When set to true, don't use the predefined `cmakeConfigurePhase`.
Overrides the default configure phase to run the CMake command. By default, we use the Make generator of CMake. In addition, dependencies are added automatically to `CMAKE_PREFIX_PATH` so that packages are correctly detected by CMake. Some additional flags are passed in to give similar behavior to configure-based packages. You can disable this hooks behavior by setting `configurePhase` to a custom value, or by setting `dontUseCmakeConfigure`. `cmakeFlags` controls flags passed only to CMake. By default, parallel building is enabled as CMake supports parallel building almost everywhere. When Ninja is also in use, CMake will detect that and use the ninja generator.

View File

@@ -1,5 +0,0 @@
# desktop-file-utils {#desktop-file-utils}
This setup hook removes the MIME cache (located at `$out/share/applications/mimeinfo.cache`) in the `preFixupPhase`.
This hook is necessary because `mimeinfo.cache` can be created when a package uses `desktop-file-utils`, resulting in collisions if multiple packages are installed that contain this file (as in [#48295](https://github.com/NixOS/nixpkgs/issues/48295)).

View File

@@ -1,29 +0,0 @@
# `haredo` {#haredo-hook}
This hook uses [the `haredo` command runner](https://sr.ht/~autumnull/haredo/) to build, check, and install the package. It overrides `buildPhase`, `checkPhase`, and `installPhase` by default.
The hook builds its targets in parallel if [`config.enableParallelBuilding`](#var-stdenv-enableParallelBuilding) is set to `true`.
## `buildPhase` {#haredo-hook-buildPhase}
This phase attempts to build the default target.
[]{#haredo-hook-haredoBuildTargets} Targets can be explicitly set by adding a string to the `haredoBuildTargets` list.
[]{#haredo-hook-dontUseHaredoBuild} This behavior can be disabled by setting `dontUseHaredoBuild` to `true`.
## `checkPhase` {#haredo-hook-checkPhase}
This phase searches for the `check.do` or `test.do` targets, running them if they exist.
[]{#haredo-hook-haredoCheckTargets} Targets can be explicitly set by adding a string to the `haredoCheckTargets` list.
[]{#haredo-hook-dontUseHaredoCheck} This behavior can be disabled by setting `dontUseHaredoCheck` to `true`.
## `installPhase` {#haredo-hook-installPhase}
This phase attempts to build the `install.do` target, if it exists.
[]{#haredo-hook-haredoInstallTargets} Targets can be explicitly set by adding a string to the `haredoInstallTargets` list.
[]{#haredo-hook-dontUseHaredoInstall} This behavior can be disabled by setting `dontUseHaredoInstall` to `true`.

View File

@@ -8,18 +8,13 @@ The stdenv built-in hooks are documented in [](#ssec-setup-hooks).
autoconf.section.md
automake.section.md
autopatchelf.section.md
aws-c-common.section.md
bmake.section.md
breakpoint.section.md
cernlib.section.md
cmake.section.md
desktop-file-utils.section.md
gdk-pixbuf.section.md
ghc.section.md
gnome.section.md
haredo.section.md
installShellFiles.section.md
just.section.md
libiconv.section.md
libxml2.section.md
meson.section.md
@@ -29,16 +24,12 @@ patch-rc-path-hooks.section.md
perl.section.md
pkg-config.section.md
postgresql-test-hook.section.md
premake.section.md
python.section.md
scons.section.md
tauri.section.md
tetex-tex-live.section.md
unzip.section.md
validatePkgConfig.section.md
versionCheckHook.section.md
waf.section.md
zig.section.md
xcbuild.section.md
xfce4-dev-tools.section.md
```

View File

@@ -1,105 +1,22 @@
# `installShellFiles` {#installshellfiles}
This hook adds helpers that install artifacts like executable files, manpages
and shell completions.
This hook helps with installing manpages and shell completion files. It exposes 2 shell functions `installManPage` and `installShellCompletion` that can be used from your `postInstall` hook.
It exposes the following functions that can be used from your `postInstall`
hook:
The `installManPage` function takes one or more paths to manpages to install. The manpages must have a section suffix, and may optionally be compressed (with `.gz` suffix). This function will place them into the correct `share/man/man<section>/` directory, in [`outputMan`](#outputman).
## `installBin` {#installshellfiles-installbin}
The `installBin` function takes one or more paths to files to install as
executable files.
This function will place them into [`outputBin`](#outputbin).
### Example Usage {#installshellfiles-installbin-exampleusage}
```nix
{
nativeBuildInputs = [ installShellFiles ];
# Sometimes the file has an undersirable name. It should be renamed before
# being installed via installBin
postInstall = ''
mv a.out delmar
installBin foobar delmar
'';
}
```
## `installManPage` {#installshellfiles-installmanpage}
The `installManPage` function takes one or more paths to manpages to install.
The manpages must have a section suffix, and may optionally be compressed (with
`.gz` suffix). This function will place them into the correct
`share/man/man<section>/` directory in [`outputMan`](#outputman).
### Example Usage {#installshellfiles-installmanpage-exampleusage}
```nix
{
nativeBuildInputs = [ installShellFiles ];
# Sometimes the manpage file has an undersirable name; e.g. it conflicts with
# another software with an equal name. It should be renamed before being
# installed via installManPage
postInstall = ''
mv fromsea.3 delmar.3
installManPage foobar.1 delmar.3
'';
}
```
## `installShellCompletion` {#installshellfiles-installshellcompletion}
The `installShellCompletion` function takes one or more paths to shell
completion files.
By default it will autodetect the shell type from the completion file extension,
but you may also specify it by passing one of `--bash`, `--fish`, or
`--zsh`. These flags apply to all paths listed after them (up until another
shell flag is given). Each path may also have a custom installation name
provided by providing a flag `--name NAME` before the path. If this flag is not
provided, zsh completions will be renamed automatically such that `foobar.zsh`
becomes `_foobar`. A root name may be provided for all paths using the flag
`--cmd NAME`; this synthesizes the appropriate name depending on the shell
(e.g. `--cmd foo` will synthesize the name `foo.bash` for bash and `_foo` for
zsh).
### Example Usage {#installshellfiles-installshellcompletion-exampleusage}
The `installShellCompletion` function takes one or more paths to shell completion files. By default it will autodetect the shell type from the completion file extension, but you may also specify it by passing one of `--bash`, `--fish`, or `--zsh`. These flags apply to all paths listed after them (up until another shell flag is given). Each path may also have a custom installation name provided by providing a flag `--name NAME` before the path. If this flag is not provided, zsh completions will be renamed automatically such that `foobar.zsh` becomes `_foobar`. A root name may be provided for all paths using the flag `--cmd NAME`; this synthesizes the appropriate name depending on the shell (e.g. `--cmd foo` will synthesize the name `foo.bash` for bash and `_foo` for zsh). The path may also be a fifo or named fd (such as produced by `<(cmd)`), in which case the shell and name must be provided.
```nix
{
nativeBuildInputs = [ installShellFiles ];
postInstall = ''
installManPage doc/foobar.1 doc/barfoo.3
# explicit behavior
installShellCompletion --bash --name foobar.bash share/completions.bash
installShellCompletion --fish --name foobar.fish share/completions.fish
installShellCompletion --zsh --name _foobar share/completions.zsh
# implicit behavior
installShellCompletion share/completions/foobar.{bash,fish,zsh}
'';
}
```
The path may also be a fifo or named fd (such as produced by `<(cmd)`), in which
case the shell and name must be provided (see below).
If the destination shell completion file is not actually present or consists of
zero bytes after calling `installShellCompletion` this is treated as a build
failure. In particular, if completion files are not vendored but are generated
by running an executable, this is likely to fail in cross compilation
scenarios. The result will be a zero byte completion file and hence a build
failure. To prevent this, guard the completion generation commands.
### Example Usage {#installshellfiles-installshellcompletion-exampleusage-guarded}
```nix
{
nativeBuildInputs = [ installShellFiles ];
postInstall = lib.optionalString (stdenv.buildPlatform.canExecute stdenv.hostPlatform) ''
# using named fd
installShellCompletion --cmd foobar \
--bash <($out/bin/foobar --bash-completion) \

View File

@@ -1,23 +0,0 @@
# `just` {#just-hook}
This setup hook attempts to use [the `just` command runner](https://just.systems/man/en/) to build, check, and install the package. The hook overrides `buildPhase`, `checkPhase`, and `installPhase` by default.
[]{#just-hook-justFlags} The `justFlags` variable can be set to a list of strings to add additional flags passed to all invocations of `just`.
## `buildPhase` {#just-hook-buildPhase}
This phase attempts to invoke `just` with [the default recipe](https://just.systems/man/en/the-default-recipe.html).
[]{#just-hook-dontUseJustBuild} This behavior can be disabled by setting `dontUseJustBuild` to `true`.
## `checkPhase` {#just-hook-checkPhase}
This phase attempts to invoke the `just test` recipe, if it is available. This can be overrided by setting `checkTarget` to a string.
[]{#just-hook-dontUseJustCheck} This behavior can be disabled by setting `dontUseJustCheck` to `true`.
## `installPhase` {#just-hook-installPhase}
This phase attempts to invoke the `just install` recipe.
[]{#just-hook-dontUseJustInstall} This behavior can be disabled by setting `dontUseJustInstall` to `true`.

View File

@@ -18,16 +18,6 @@ setup hook registering ninja-based build and install phases.
Controls the flags passed to `meson setup` during configure phase.
#### `mesonBuildDir` {#meson-build-dir}
Directory where Meson will put intermediate files.
Setting this can be useful for debugging multiple Meson builds while in the same source directory, for example, when building for different platforms.
Different values for each build will prevent build artefacts from interefering with each other.
This setting has no tangible effect when running the build in a sandboxed derivation.
The default value is `build`.
#### `mesonWrapMode` {#meson-wrap-mode}
Which value is passed as

View File

@@ -1,7 +0,0 @@
# Premake {#premake-hook}
This setup hook attempts to configure the package using [the Premake build configuration system](https://premake.github.io/). It overrides the `configurePhase` by default, if none exists.
[]{#premake-hook-premakefile} The Premakefile to use can be specified by setting `premakefile` in the derivation.
[]{#premake-hook-premakeFlagsArray} The flags passed to Premake can be configured by adding strings to the `premakeFlags` list.

View File

@@ -1,108 +0,0 @@
# cargo-tauri.hook {#tauri-hook}
[Tauri](https://tauri.app/) is a framework for building smaller, faster, and
more secure desktop applications with a web frontend.
In Nixpkgs, `cargo-tauri.hook` overrides the default build and install phases.
## Example code snippet {#tauri-hook-example-code-snippet}
```nix
{
lib,
stdenv,
rustPlatform,
fetchNpmDeps,
cargo-tauri,
darwin,
glib-networking,
libsoup,
nodejs,
npmHooks,
openssl,
pkg-config,
webkitgtk_4_0,
wrapGAppsHook3,
}:
rustPlatform.buildRustPackage rec {
# . . .
cargoHash = "...";
# Assuming our app's frontend uses `npm` as a package manager
npmDeps = fetchNpmDeps {
name = "${pname}-npm-deps-${version}";
inherit src;
hash = "...";
};
nativeBuildInputs = [
# Pull in our main hook
cargo-tauri.hook
# Setup npm
nodejs
npmHooks.npmConfigHook
# Make sure we can find our libraries
pkg-config
wrapGAppsHook3
];
buildInputs =
[ openssl ]
++ lib.optionals stdenv.hostPlatform.isLinux [
glib-networking # Most Tauri apps need networking
libsoup
webkitgtk_4_0
]
++ lib.optionals stdenv.hostPlatform.isDarwin (
with darwin.apple_sdk.frameworks;
[
AppKit
CoreServices
Security
WebKit
]
);
# Set our Tauri source directory
cargoRoot = "src-tauri";
# And make sure we build there too
buildAndTestSubdir = cargoRoot;
# . . .
}
```
## Variables controlling cargo-tauri {#tauri-hook-variables-controlling}
### Tauri Exclusive Variables {#tauri-hook-exclusive-variables}
#### `tauriBuildFlags` {#tauri-build-flags}
Controls the flags passed to `cargo tauri build`.
#### `tauriBundleType` {#tauri-bundle-type}
The [bundle type](https://tauri.app/v1/guides/building/) to build.
#### `dontTauriBuild` {#dont-tauri-build}
Disables using `tauriBuildHook`.
#### `dontTauriInstall` {#dont-tauri-install}
Disables using `tauriInstallPostBuildHook` and `tauriInstallHook`.
### Honored Variables {#tauri-hook-honored-variables}
Along with those found in [](#compiling-rust-applications-with-cargo), the
following variables used by `cargoBuildHook` and `cargoInstallHook` are honored
by the cargo-tauri setup hook.
- `buildAndTestSubdir`
- `cargoBuildType`
- `cargoBuildNoDefaultFeatures`
- `cargoBuildFeatures`

View File

@@ -1,35 +0,0 @@
# versionCheckHook {#versioncheckhook}
This hook adds a `versionCheckPhase` to the [`preInstallCheckHooks`](#ssec-installCheck-phase) that runs the main program of the derivation with a `--help` or `--version` argument, and checks that the `${version}` string is found in that output. You use it like this:
```nix
{
lib,
stdenv,
versionCheckHook,
# ...
}:
stdenv.mkDerivation (finalAttrs: {
# ...
nativeInstallCheckInputs = [
versionCheckHook
];
doInstallCheck = true;
# ...
})
```
Note that for [`buildPythonPackage`](#buildpythonpackage-function) and [`buildPythonApplication`](#buildpythonapplication-function), `doInstallCheck` is enabled by default.
It does so in a clean environment (using `env --ignore-environment`), and it checks for the `${version}` string in both the `stdout` and the `stderr` of the command. It will report to you in the build log the output it received and it will fail the build if it failed to find `${version}`.
The variables that this phase control are:
- `dontVersionCheck`: Disable adding this hook to the [`preInstallCheckHooks`](#ssec-installCheck-phase). Useful if you do want to load the bash functions of the hook, but run them differently.
- `versionCheckProgram`: The full path to the program that should print the `${version}` string. Defaults roughly to `${placeholder "out"}/bin/${pname}`. Using `$out` in the value of this variable won't work, as environment variables from this variable are not expanded by the hook. Hence using `placeholder` is unavoidable.
- `versionCheckProgramArg`: The argument that needs to be passed to `versionCheckProgram`. If undefined the hook tries first `--help` and then `--version`. Examples: `version`, `-V`, `-v`.
- `preVersionCheck`: A hook to run before the check is done.
- `postVersionCheck`: A hook to run after the check is done.

View File

@@ -20,6 +20,10 @@ If `wafPath` doesn't exist, then `wafHook` will copy the `waf` provided from Nix
Controls the flags passed to waf tool during build and install phases. For settings specific to build or install phases, use `wafBuildFlags` or `wafInstallFlags` respectively.
#### `dontAddWafCrossFlags` {#dont-add-waf-cross-flags}
When set to `true`, don't add cross compilation flags during configure phase.
#### `dontUseWafConfigure` {#dont-use-waf-configure}
When set to true, don't use the predefined `wafConfigurePhase`.

View File

@@ -1,5 +0,0 @@
# `xfce.xfce4-dev-tools` {#xfce4-dev-tools}
This setup hook attempts to run `xdt-autogen` in `xdtAutogenPhase`, which is part of `preConfigurePhases`.
[]{#dontUseXdtAutogenPhase} This behavior can be disabled by setting `dontUseXdtAutogenPhase` to `true`.

View File

@@ -1,5 +0,0 @@
# Interoperability Standards {#part-interoperability}
```{=include=} chapters
interoperability/cyclonedx.md
```

View File

@@ -1,79 +0,0 @@
# CycloneDX {#chap-interop-cyclonedx}
[OWASP](https://owasp.org/) [CycloneDX](https://cyclonedx.org/) is a Software [Bill of Materials](https://en.wikipedia.org/wiki/Bill_of_materials) (SBOM) standard.
The standards described here are for including Nix specific information within SBOMs in a way that is interoperable with external SBOM tooling.
## `nix` Namespace Property Taxonomy {#sec-interop.cylonedx-nix}
The following tables describe namespaces for [properties](https://cyclonedx.org/docs/1.6/json/#components_items_properties) that may be attached to components within SBOMs.
Component properties are lists of name-value-pairs where values must be strings.
Properties with the same name may appear more than once.
Names and values are case-sensitive.
| Property | Description |
|------------------|-------------|
| `nix:store_path` | A Nix store path for the given component. This property should be contextualized by additional properties that describe the production of the store path, such as those from the `nix:narinfo:` and `nix:fod` namespaces. |
| Namespace | Description |
|---------------|-------------|
| [`nix:narinfo`](#sec-interop.cylonedx-narinfo) | Namespace for properties that are specific to how a component is stored as a [Nix archive](https://nixos.org/manual/nix/stable/glossary#gloss-nar) (NAR) in a [binary cache](https://nixos.org/manual/nix/stable/glossary#gloss-binary-cache). |
| [`nix:fod`](#sec-interop.cylonedx-fod) | Namespace for properties that describe a [fixed-output derivation](https://nixos.org/manual/nix/stable/glossary#gloss-fixed-output-derivation). |
### `nix:narinfo` {#sec-interop.cylonedx-narinfo}
Narinfo properties describe component archives that may be available from binary caches.
The `nix:narinfo` properties should be accompanied by a `nix:store_path` property within the same property list.
| Property | Description |
|---------------------------|-------------|
| `nix:narinfo:store_path` | Store path for the given store component. |
| `nix:narinfo:url` | URL path component. |
| `nix:narinfo:nar_hash` | Hash of the file system object part of the component when serialized as a Nix Archive. |
| `nix:narinfo:nar_size` | Size of the component when serialized as a Nix Archive. |
| `nix:narinfo:compression` | The compression format that component archive is in. |
| `nix:narinfo:file_hash` | A digest for the compressed component archive itself, as opposed to the data contained within. |
| `nix:narinfo:file_size` | The size of the compressed component archive itself. |
| `nix:narinfo:deriver` | The path to the derivation from which this component is produced. |
| `nix:narinfo:system` | The hardware and software platform on which this component is produced. |
| `nix:narinfo:sig` | Signatures claiming that this component is what it claims to be. |
| `nix:narinfo:ca` | Content address of this store object's file system object, used to compute its store path. |
| `nix:narinfo:references` | A whitespace separated array of store paths that this component references. |
### `nix:fod` {#sec-interop.cylonedx-fod}
FOD properties describe a [fixed-output derivation](https://nixos.org/manual/nix/stable/glossary#gloss-fixed-output-derivation).
The `nix:fod:method` property is required and must be accompanied by a `nix:store_path` property within the same property list.
All other properties in this namespace are method-specific.
To reproduce the build of a component the `nix:fod:method` value is resolved to an [appropriate function](#chap-pkgs-fetchers) within Nixpkgs whose arguments intersect with the given properties.
When generating `nix:fod` properties the method selected should be a stable function with a minimal number arguments.
For example, the `fetchFromGitHub` is commonly used within Nixpkgs but should be reduced to a call to the function by which it is implemented, `fetchzip`.
| Property | Description |
|------------------|-------------|
| `nix:fod:method` | Nixpkg function that produces this FOD. Required. Examples: `"fetchzip"`, `"fetchgit"` |
| `nix:fod:name` | Derivation name, present when method is `"fetchzip"` |
| `nix:fod:ref` | [Git ref](https://git-scm.com/docs/gitglossary#Documentation/gitglossary.txt-aiddefrefaref), present when method is `"fetchgit"` |
| `nix:fod:rev` | [Git rev](https://git-scm.com/docs/gitglossary#Documentation/gitglossary.txt-aiddefrevisionarevision), present when method is `"fetchgit"` |
| `nix:fod:sha256` | FOD hash |
| `nix:fod:url` | URL to fetch |
`nix:fod` properties may be extracted and evaluated to a derivation using code similar to the following, assuming a fictitious function `filterPropertiesToAttrs`:
```nix
{ pkgs, filterPropertiesToAttrs, properties }:
let
fodProps = filterPropertiesToAttrs "nix:fod:" properties;
methods = {
fetchzip =
{ name, url, sha256, ... }:
pkgs.fetchzip {
inherit name url sha256;
};
};
in methods.${fodProps.method} fodProps
```

View File

@@ -3,36 +3,10 @@
The Android build environment provides three major features and a number of
supporting features.
## Using androidenv with Android Studio {#using-androidenv-with-android-studio}
Use the `android-studio-full` attribute for a very complete Android SDK, including system images:
```nix
buildInputs = [ android-studio-full ];
```
This is identical to:
```nix
buildInputs = [ androidStudioPackages.stable.full ];
```
Alternatively, you can pass composeAndroidPackages to the `withSdk` passthru:
```nix
buildInputs = [
(android-studio.withSdk (androidenv.composeAndroidPackages {
includeNDK = true;
}).androidsdk)
];
```
These will export ANDROID_SDK_ROOT and ANDROID_NDK_ROOT to the SDK and NDK directories
in the specified Android build environment.
## Deploying an Android SDK installation with plugins {#deploying-an-android-sdk-installation-with-plugins}
Alternatively, you can deploy the SDK separately with a desired set of plugins, or subsets of an SDK.
The first use case is deploying the SDK with a desired set of plugins or subsets
of an SDK.
```nix
with import <nixpkgs> {};
@@ -171,14 +145,16 @@ androidComposition.platform-tools
## Using predefined Android package compositions {#using-predefined-android-package-compositions}
In addition to composing an Android package set manually, it is also possible
to use a predefined composition that contains a fairly complete set of Android packages:
to use a predefined composition that contains all basic packages for a specific
Android version, such as version 9.0 (API-level 28).
The following Nix expression can be used to deploy the entire SDK:
The following Nix expression can be used to deploy the entire SDK with all basic
plugins:
```nix
with import <nixpkgs> {};
androidenv.androidPkgs.androidsdk
androidenv.androidPkgs_9_0.androidsdk
```
It is also possible to use one plugin only:
@@ -186,9 +162,50 @@ It is also possible to use one plugin only:
```nix
with import <nixpkgs> {};
androidenv.androidPkgs.platform-tools
androidenv.androidPkgs_9_0.platform-tools
```
## Building an Android application {#building-an-android-application}
In addition to the SDK, it is also possible to build an Ant-based Android
project and automatically deploy all the Android plugins that a project
requires.
```nix
with import <nixpkgs> {};
androidenv.buildApp {
name = "MyAndroidApp";
src = ./myappsources;
release = true;
# If release is set to true, you need to specify the following parameters
keyStore = ./keystore;
keyAlias = "myfirstapp";
keyStorePassword = "mykeystore";
keyAliasPassword = "myfirstapp";
# Any Android SDK parameters that install all the relevant plugins that a
# build requires
platformVersions = [ "24" ];
# When we include the NDK, then ndk-build is invoked before Ant gets invoked
includeNDK = true;
}
```
Aside from the app-specific build parameters (`name`, `src`, `release` and
keystore parameters), the `buildApp {}` function supports all the function
parameters that the SDK composition function (the function shown in the
previous section) supports.
This build function is particularly useful when it is desired to use
[Hydra](https://nixos.org/hydra): the Nix-based continuous integration solution
to build Android apps. An Android APK gets exposed as a build product and can be
installed on any Android device with a web browser by navigating to the build
result page.
## Spawning emulator instances {#spawning-emulator-instances}
For testing purposes, it can also be quite convenient to automatically generate
@@ -232,11 +249,11 @@ In addition to prebuilt APKs, you can also bind the APK parameter to a
## Notes on environment variables in Android projects {#notes-on-environment-variables-in-android-projects}
* `ANDROID_HOME` should point to the Android SDK. In your Nix expressions, this should be
`${androidComposition.androidsdk}/libexec/android-sdk`. Note that `ANDROID_SDK_ROOT` is deprecated,
* `ANDROID_SDK_ROOT` should point to the Android SDK. In your Nix expressions, this should be
`${androidComposition.androidsdk}/libexec/android-sdk`. Note that `ANDROID_HOME` is deprecated,
but if you rely on tools that need it, you can export it too.
* `ANDROID_NDK_ROOT` should point to the Android NDK, if you're doing NDK development.
In your Nix expressions, this should be `${ANDROID_HOME}/ndk-bundle`.
In your Nix expressions, this should be `${ANDROID_SDK_ROOT}/ndk-bundle`.
If you are running the Android Gradle plugin, you need to export GRADLE_OPTS to override aapt2
to point to the aapt2 binary in the Nix store as well, or use a FHS environment so the packaged
@@ -250,11 +267,11 @@ let
androidComposition = <...>;
in
pkgs.mkShell rec {
ANDROID_HOME = "${androidComposition.androidsdk}/libexec/android-sdk";
ANDROID_NDK_ROOT = "${ANDROID_HOME}/ndk-bundle";
ANDROID_SDK_ROOT = "${androidComposition.androidsdk}/libexec/android-sdk";
ANDROID_NDK_ROOT = "${ANDROID_SDK_ROOT}/ndk-bundle";
# Use the same buildToolsVersion here
GRADLE_OPTS = "-Dorg.gradle.project.android.aapt2FromMavenOverride=${ANDROID_HOME}/build-tools/${buildToolsVersion}/aapt2";
GRADLE_OPTS = "-Dorg.gradle.project.android.aapt2FromMavenOverride=${ANDROID_SDK_ROOT}/build-tools/${buildToolsVersion}/aapt2";
}
```
@@ -270,18 +287,18 @@ let
androidComposition = <...>;
in
pkgs.mkShell rec {
ANDROID_HOME = "${androidComposition.androidsdk}/libexec/android-sdk";
ANDROID_NDK_ROOT = "${ANDROID_HOME}/ndk-bundle";
ANDROID_SDK_ROOT = "${androidComposition.androidsdk}/libexec/android-sdk";
ANDROID_NDK_ROOT = "${ANDROID_SDK_ROOT}/ndk-bundle";
# Use the same cmakeVersion here
shellHook = ''
export PATH="$(echo "$ANDROID_HOME/cmake/${cmakeVersion}".*/bin):$PATH"
export PATH="$(echo "$ANDROID_SDK_ROOT/cmake/${cmakeVersion}".*/bin):$PATH"
'';
}
```
Note that running Android Studio with ANDROID_HOME set will automatically write a
`local.properties` file with `sdk.dir` set to $ANDROID_HOME if one does not already
Note that running Android Studio with ANDROID_SDK_ROOT set will automatically write a
`local.properties` file with `sdk.dir` set to $ANDROID_SDK_ROOT if one does not already
exist. If you are using the NDK as well, you may have to add `ndk.dir` to this file.
An example shell.nix that does all this for you is provided in examples/shell.nix.
@@ -332,44 +349,3 @@ To update the expressions run the `generate.sh` script that is stored in the
```bash
./generate.sh
```
## Building an Android application with Ant {#building-an-android-application-with-ant}
In addition to the SDK, it is also possible to build an Ant-based Android
project and automatically deploy all the Android plugins that a project
requires. Most newer Android projects use Gradle, and this is included for historical
purposes.
```nix
with import <nixpkgs> {};
androidenv.buildApp {
name = "MyAndroidApp";
src = ./myappsources;
release = true;
# If release is set to true, you need to specify the following parameters
keyStore = ./keystore;
keyAlias = "myfirstapp";
keyStorePassword = "mykeystore";
keyAliasPassword = "myfirstapp";
# Any Android SDK parameters that install all the relevant plugins that a
# build requires
platformVersions = [ "24" ];
# When we include the NDK, then ndk-build is invoked before Ant gets invoked
includeNDK = true;
}
```
Aside from the app-specific build parameters (`name`, `src`, `release` and
keystore parameters), the `buildApp {}` function supports all the function
parameters that the SDK composition function (the function shown in the
previous section) supports.
This build function is particularly useful when it is desired to use
[Hydra](https://nixos.org/hydra): the Nix-based continuous integration solution
to build Android apps. An Android APK gets exposed as a build product and can be
installed on any Android device with a web browser by navigating to the build
result page.

View File

@@ -349,8 +349,8 @@ let
nodePackages.prettier
];
inputs = basePackages ++ lib.optionals stdenv.hostPlatform.isLinux [ inotify-tools ]
++ lib.optionals stdenv.hostPlatform.isDarwin
inputs = basePackages ++ lib.optionals stdenv.isLinux [ inotify-tools ]
++ lib.optionals stdenv.isDarwin
(with darwin.apple_sdk.frameworks; [ CoreFoundation CoreServices ]);
# define shell startup command

View File

@@ -4,7 +4,7 @@
The end result of running Bower is a `bower_components` directory which can be included in the web app's build process.
Bower can be run interactively, by installing `nodePackages.bower`. More interestingly, the Bower components can be declared in a Nix derivation, with the help of `bower2nix`.
Bower can be run interactively, by installing `nodePackages.bower`. More interestingly, the Bower components can be declared in a Nix derivation, with the help of `nodePackages.bower2nix`.
## bower2nix usage {#ssec-bower2nix-usage}

View File

@@ -23,13 +23,12 @@ The recommended way of defining a derivation for a Coq library, is to use the `c
* if it is a string of the form `owner:branch` then it tries to download the `branch` of owner `owner` for a project of the same name using the same vcs, and the `version` attribute of the resulting derivation is set to `"dev"`, additionally if the owner is not provided (i.e. if the `owner:` prefix is missing), it defaults to the original owner of the package (see below),
* if it is a string of the form `"#N"`, and the domain is github, then it tries to download the current head of the pull request `#N` from github,
* `defaultVersion` (optional). Coq libraries may be compatible with some specific versions of Coq only. The `defaultVersion` attribute is used when no `version` is provided (or if `version = null`) to select the version of the library to use by default, depending on the context. This selection will mainly depend on a `coq` version number but also possibly on other packages versions (e.g. `mathcomp`). If its value ends up to be `null`, the package is marked for removal in end-user `coqPackages` attribute set.
* `release` (optional, defaults to `{}`), lists all the known releases of the library and for each of them provides an attribute set with at least a `hash` attribute (you may put the empty string `""` in order to automatically insert a fake hash, this will trigger an error which will allow you to find the correct hash), each attribute set of the list of releases also takes optional overloading arguments for the fetcher as below (i.e.`domain`, `owner`, `repo`, `rev`, `artifact` assuming the default fetcher is used) and optional overrides for the result of the fetcher (i.e. `version` and `src`).
* `release` (optional, defaults to `{}`), lists all the known releases of the library and for each of them provides an attribute set with at least a `sha256` attribute (you may put the empty string `""` in order to automatically insert a fake sha256, this will trigger an error which will allow you to find the correct sha256), each attribute set of the list of releases also takes optional overloading arguments for the fetcher as below (i.e.`domain`, `owner`, `repo`, `rev` assuming the default fetcher is used) and optional overrides for the result of the fetcher (i.e. `version` and `src`).
* `fetcher` (optional, defaults to a generic fetching mechanism supporting github or gitlab based infrastructures), is a function that takes at least an `owner`, a `repo`, a `rev`, and a `hash` and returns an attribute set with a `version` and `src`.
* `repo` (optional, defaults to the value of `pname`),
* `owner` (optional, defaults to `"coq-community"`).
* `domain` (optional, defaults to `"github.com"`), domains including the strings `"github"` or `"gitlab"` in their names are automatically supported, otherwise, one must change the `fetcher` argument to support them (cf `pkgs/development/coq-modules/heq/default.nix` for an example),
* `releaseRev` (optional, defaults to `(v: v)`), provides a default mapping from release names to revision hashes/branch names/tags,
* `releaseArtifact` (optional, defaults to `(v: null)`), provides a default mapping from release names to artifact names (only works for github artifact for now),
* `displayVersion` (optional), provides a way to alter the computation of `name` from `pname`, by explaining how to display version numbers,
* `namePrefix` (optional, defaults to `[ "coq" ]`), provides a way to alter the computation of `name` from `pname`, by explaining which dependencies must occur in `name`,
* `nativeBuildInputs` (optional), is a list of executables that are required to build the current derivation, in addition to the default ones (namely `which`, `dune` and `ocaml` depending on whether `useDune`, `useDuneifVersion` and `mlPlugin` are set).
@@ -70,22 +69,22 @@ mkCoqDerivation {
{ cases = [ (isEq "8.6") (range "1.6" "1.7") ]; out = "1.1"; }
] null;
release = {
"1.5.2".hash = "sha256-mjCx9XKa38Nz9E6wNK7YSqHdJ7YTua5fD3d6J4e7WpU=";
"1.5.1".hash = "sha256-Q8tm0y2FQAt2V1kZYkDlHWRia/lTvXAMVjdmzEV11I4=";
"1.5.0".hash = "sha256-HIK0f21G69oEW8JG46gSBde/Q2LR3GiBCv680gHbmRg=";
"1.5.0".rev = "1.5";
"1.4".hash = "sha256-F9g3MSIr3B6UZ3p8QWjz3/Jpw9sudJ+KRlvjiHSO024=";
"1.3".hash = "sha256-BPJTlAL0ETHvLMBslE0KFVt3DNoaGuMrHt2SBGyJe1A=";
"1.2".hash = "sha256-mHXBXSLYO4BN+jfN50y/+XCx0Qq5g4Ac2Y/qlsbgAdY=";
"1.1".hash = "sha256-ejAsMQbB/LtU9j+g160VdGXULrCe9s0gBWzyhKqmCuE=";
"1.0".hash = "sha256-tZTOltEBBKWciDxDMs/Ye4Jnq/33CANrHJ4FBMPtq+I=";
"1.5.2".sha256 = "15aspf3jfykp1xgsxf8knqkxv8aav2p39c2fyirw7pwsfbsv2c4s";
"1.5.1".sha256 = "13nlfm2wqripaq671gakz5mn4r0xwm0646araxv0nh455p9ndjs3";
"1.5.0".sha256 = "064rvc0x5g7y1a0nip6ic91vzmq52alf6in2bc2dmss6dmzv90hw";
"1.5.0".rev = "1.5";
"1.4".sha256 = "0vnkirs8iqsv8s59yx1fvg1nkwnzydl42z3scya1xp1b48qkgn0p";
"1.3".sha256 = "0l3vi5n094nx3qmy66hsv867fnqm196r8v605kpk24gl0aa57wh4";
"1.2".sha256 = "1mh1w339dslgv4f810xr1b8v2w7rpx6fgk9pz96q0fyq49fw2xcq";
"1.1".sha256 = "1q8alsm89wkc0lhcvxlyn0pd8rbl2nnxg81zyrabpz610qqjqc3s";
"1.0".sha256 = "1qmbxp1h81cy3imh627pznmng0kvv37k4hrwi2faa101s6bcx55m";
};
propagatedBuildInputs =
[ mathcomp.ssreflect mathcomp.algebra mathcomp-finmap mathcomp-bigenough ];
meta = {
description = "Coq/SSReflect Library for Monoidal Rings and Multinomials";
description = "A Coq/SSReflect Library for Monoidal Rings and Multinomials";
license = lib.licenses.cecill-c;
};
}
@@ -127,7 +126,7 @@ For example, here is how you could locally add a new release of the `multinomial
coqPackages.lib.overrideCoqDerivation
{
defaultVersion = "2.0";
release."2.0".hash = "sha256-czoP11rtrIM7+OLdMisv2EF7n/IbGuwFxHiPtg3qCNM=";
release."2.0".sha256 = "1lq8x86vd3vqqh2yq6hvyagpnhfq5wmk5pg2z0xq7b7dbbbhyfkk";
}
coqPackages.multinomials
```

View File

@@ -149,104 +149,3 @@ All new projects should use the CUDA redistributables available in [`cudaPackage
| Find libraries | `buildPhase` or `patchelf` | Missing dependency on a `lib` or `static` output | Add the missing dependency | The `lib` or `static` output typically contain the libraries |
In the scenario you are unable to run the resulting binary: this is arguably the most complicated as it could be any combination of the previous reasons. This type of failure typically occurs when a library attempts to load or open a library it depends on that it does not declare in its `DT_NEEDED` section. As a first step, ensure that dependencies are patched with [`autoAddDriverRunpath`](https://search.nixos.org/packages?channel=unstable&type=packages&query=autoAddDriverRunpath). Failing that, try running the application with [`nixGL`](https://github.com/guibou/nixGL) or a similar wrapper tool. If that works, it likely means that the application is attempting to load a library that is not in the `RPATH` or `RUNPATH` of the binary.
## Running Docker or Podman containers with CUDA support {#cuda-docker-podman}
It is possible to run Docker or Podman containers with CUDA support. The recommended mechanism to perform this task is to use the [NVIDIA Container Toolkit](https://docs.nvidia.com/datacenter/cloud-native/container-toolkit/latest/index.html).
The NVIDIA Container Toolkit can be enabled in NixOS like follows:
```nix
{
hardware.nvidia-container-toolkit.enable = true;
}
```
This will automatically enable a service that generates a CDI specification (located at `/var/run/cdi/nvidia-container-toolkit.json`) based on the auto-detected hardware of your machine. You can check this service by running:
```ShellSession
$ systemctl status nvidia-container-toolkit-cdi-generator.service
```
::: {.note}
Depending on what settings you had already enabled in your system, you might need to restart your machine in order for the NVIDIA Container Toolkit to generate a valid CDI specification for your machine.
:::
Once that a valid CDI specification has been generated for your machine on boot time, both Podman and Docker (> 25) will use this spec if you provide them with the `--device` flag:
```ShellSession
$ podman run --rm -it --device=nvidia.com/gpu=all ubuntu:latest nvidia-smi -L
GPU 0: NVIDIA GeForce RTX 4090 (UUID: <REDACTED>)
GPU 1: NVIDIA GeForce RTX 2080 SUPER (UUID: <REDACTED>)
```
```ShellSession
$ docker run --rm -it --device=nvidia.com/gpu=all ubuntu:latest nvidia-smi -L
GPU 0: NVIDIA GeForce RTX 4090 (UUID: <REDACTED>)
GPU 1: NVIDIA GeForce RTX 2080 SUPER (UUID: <REDACTED>)
```
You can check all the identifiers that have been generated for your auto-detected hardware by checking the contents of the `/var/run/cdi/nvidia-container-toolkit.json` file:
```ShellSession
$ nix run nixpkgs#jq -- -r '.devices[].name' < /var/run/cdi/nvidia-container-toolkit.json
0
1
all
```
### Specifying what devices to expose to the container {#specifying-what-devices-to-expose-to-the-container}
You can choose what devices are exposed to your containers by using the identifier on the generated CDI specification. Like follows:
```ShellSession
$ podman run --rm -it --device=nvidia.com/gpu=0 ubuntu:latest nvidia-smi -L
GPU 0: NVIDIA GeForce RTX 4090 (UUID: <REDACTED>)
```
You can repeat the `--device` argument as many times as necessary if you have multiple GPU's and you want to pick up which ones to expose to the container:
```ShellSession
$ podman run --rm -it --device=nvidia.com/gpu=0 --device=nvidia.com/gpu=1 ubuntu:latest nvidia-smi -L
GPU 0: NVIDIA GeForce RTX 4090 (UUID: <REDACTED>)
GPU 1: NVIDIA GeForce RTX 2080 SUPER (UUID: <REDACTED>)
```
::: {.note}
By default, the NVIDIA Container Toolkit will use the GPU index to identify specific devices. You can change the way to identify what devices to expose by using the `hardware.nvidia-container-toolkit.device-name-strategy` NixOS attribute.
:::
### Using docker-compose {#using-docker-compose}
It's possible to expose GPU's to a `docker-compose` environment as well. With a `docker-compose.yaml` file like follows:
```yaml
services:
some-service:
image: ubuntu:latest
command: sleep infinity
deploy:
resources:
reservations:
devices:
- driver: cdi
device_ids:
- nvidia.com/gpu=all
```
In the same manner, you can pick specific devices that will be exposed to the container:
```yaml
services:
some-service:
image: ubuntu:latest
command: sleep infinity
deploy:
resources:
reservations:
devices:
- driver: cdi
device_ids:
- nvidia.com/gpu=0
- nvidia.com/gpu=1
```

View File

@@ -98,12 +98,10 @@ The function `buildFlutterApplication` builds Flutter applications.
See the [Dart documentation](#ssec-dart-applications) for more details on required files and arguments.
`flutter` in Nixpkgs always points to `flutterPackages.stable`, which is the latest packaged version. To avoid unforeseen breakage during upgrade, packages in Nixpkgs should use a specific flutter version, such as `flutter319` and `flutter322`, instead of using `flutter` directly.
```nix
{ flutter322, fetchFromGitHub }:
{ flutter, fetchFromGitHub }:
flutter322.buildFlutterApplication {
flutter.buildFlutterApplication {
pname = "firmware-updater";
version = "0-unstable-2023-04-30";
@@ -114,7 +112,7 @@ flutter322.buildFlutterApplication {
owner = "canonical";
repo = "firmware-updater";
rev = "6e7dbdb64e344633ea62874b54ff3990bd3b8440";
hash = "sha256-s5mwtr5MSPqLMN+k851+pFIFFPa0N1hqz97ys050tFA=";
sha256 = "sha256-s5mwtr5MSPqLMN+k851+pFIFFPa0N1hqz97ys050tFA=";
fetchSubmodules = true;
};

Some files were not shown because too many files have changed in this diff Show More