From 9c6ee729d685b1fcc17bde7c6ebfe261f28fde77 Mon Sep 17 00:00:00 2001 From: Default email Date: Sat, 15 Jul 2023 19:15:38 +0200 Subject: [PATCH] Project import generated by Copybara. GitOrigin-RevId: 6cee3b5893090b0f5f0a06b4cf42ca4e60e5d222 --- third_party/nixpkgs/.git-blame-ignore-revs | 57 + third_party/nixpkgs/.github/CODEOWNERS | 45 +- .../nixpkgs/.github/PULL_REQUEST_TEMPLATE.md | 2 +- third_party/nixpkgs/.github/labeler.yml | 18 + .../nixpkgs/.github/workflows/backport.yml | 2 +- .../nixpkgs/.github/workflows/basic-eval.yml | 2 +- .../workflows/check-maintainers-sorted.yaml | 2 +- .../.github/workflows/compare-manuals.sh | 21 - .../.github/workflows/editorconfig.yml | 2 +- .../.github/workflows/manual-nixos.yml | 12 +- .../.github/workflows/manual-nixpkgs.yml | 2 +- .../.github/workflows/manual-rendering.yml | 64 - .../.github/workflows/periodic-merge-24h.yml | 4 - .../workflows/update-terraform-providers.yml | 2 +- third_party/nixpkgs/CONTRIBUTING.md | 67 +- third_party/nixpkgs/README.md | 4 +- third_party/nixpkgs/doc/.gitignore | 11 - third_party/nixpkgs/doc/Makefile | 119 - .../citerefentry-to-rst-role.lua | 23 - .../docbook-writer/labelless-link-is-xref.lua | 34 - .../docbook-writer/rst-roles.lua | 44 - .../pandoc-filters/link-manpages.nix | 28 - .../pandoc-filters/myst-reader/roles.lua | 36 - .../pandoc-filters/myst-writer/roles.lua | 25 - third_party/nixpkgs/doc/builders.md | 12 + .../nixpkgs/doc/builders/fetchers.chapter.md | 9 +- third_party/nixpkgs/doc/builders/images.md | 13 + third_party/nixpkgs/doc/builders/images.xml | 15 - .../doc/builders/packages/dlib.section.md | 2 +- .../nixpkgs/doc/builders/packages/index.md | 27 + .../nixpkgs/doc/builders/packages/index.xml | 29 - third_party/nixpkgs/doc/builders/special.md | 11 + third_party/nixpkgs/doc/builders/special.xml | 13 - .../special/darwin-builder.section.md | 26 +- .../special/fhs-environments.section.md | 2 + .../builders/special/makesetuphook.section.md | 2 +- .../doc/builders/special/vm-tools.section.md | 18 +- .../nixpkgs/doc/builders/testers.chapter.md | 2 +- third_party/nixpkgs/doc/contributing.md | 10 + .../coding-conventions.chapter.md | 4 +- .../reviewing-contributions.chapter.md | 9 +- .../doc/contributing/staging-workflow.dot | 16 + .../doc/contributing/staging-workflow.svg | 102 + .../submitting-changes.chapter.md | 74 +- third_party/nixpkgs/doc/default.nix | 139 +- .../nixpkgs/doc/doc-support/default.nix | 87 - .../doc/doc-support/lib-function-docs.nix | 35 +- .../doc-support/lib-function-locations.nix | 38 +- .../nixpkgs/doc/doc-support/parameters.xml | 19 - .../nixpkgs/doc/doc-support/xmlformat.conf | 72 - third_party/nixpkgs/doc/functions.md | 11 + third_party/nixpkgs/doc/functions.xml | 14 - .../doc/functions/generators.section.md | 2 +- .../nixpkgs/doc/functions/library.md.in | 5 + third_party/nixpkgs/doc/functions/library.xml | 14 - .../nixpkgs/doc/hooks/autoconf.section.md | 3 +- .../nixpkgs/doc/hooks/automake.section.md | 3 +- .../nixpkgs/doc/hooks/autopatchelf.section.md | 3 +- .../nixpkgs/doc/hooks/breakpoint.section.md | 3 +- .../nixpkgs/doc/hooks/cmake.section.md | 3 +- .../nixpkgs/doc/hooks/gdk-pixbuf.section.md | 3 +- third_party/nixpkgs/doc/hooks/ghc.section.md | 3 +- .../nixpkgs/doc/hooks/gnome.section.md | 3 +- third_party/nixpkgs/doc/hooks/index.md | 33 + third_party/nixpkgs/doc/hooks/index.xml | 37 - .../doc/hooks/installShellFiles.section.md | 3 +- .../nixpkgs/doc/hooks/libiconv.section.md | 3 +- .../nixpkgs/doc/hooks/libxml2.section.md | 3 +- .../nixpkgs/doc/hooks/meson.section.md | 15 +- .../nixpkgs/doc/hooks/ninja.section.md | 3 +- third_party/nixpkgs/doc/hooks/perl.section.md | 3 +- .../nixpkgs/doc/hooks/pkg-config.section.md | 3 +- .../nixpkgs/doc/hooks/python.section.md | 3 +- third_party/nixpkgs/doc/hooks/qt-4.section.md | 3 +- .../nixpkgs/doc/hooks/scons.section.md | 3 +- .../doc/hooks/tetex-tex-live.section.md | 3 +- .../nixpkgs/doc/hooks/unzip.section.md | 3 +- .../doc/hooks/validatePkgConfig.section.md | 3 +- third_party/nixpkgs/doc/hooks/waf.section.md | 3 +- .../nixpkgs/doc/hooks/xcbuild.section.md | 3 +- .../doc/languages-frameworks/bower.section.md | 69 +- .../doc/languages-frameworks/cuda.section.md | 4 +- .../doc/languages-frameworks/dhall.section.md | 4 +- .../languages-frameworks/dotnet.section.md | 67 +- .../doc/languages-frameworks/gnome.section.md | 12 +- .../doc/languages-frameworks/go.section.md | 2 +- .../languages-frameworks/haskell.section.md | 261 +- .../nixpkgs/doc/languages-frameworks/index.md | 45 + .../doc/languages-frameworks/index.xml | 47 - .../doc/languages-frameworks/ios.section.md | 4 +- .../javascript.section.md | 8 +- .../doc/languages-frameworks/lua.section.md | 2 +- .../doc/languages-frameworks/maven.section.md | 33 + .../doc/languages-frameworks/nim.section.md | 39 +- .../doc/languages-frameworks/php.section.md | 2 +- .../languages-frameworks/python.section.md | 27 +- .../doc/languages-frameworks/qt.section.md | 29 +- third_party/nixpkgs/doc/lib.md | 6 + third_party/nixpkgs/doc/manual.md.in | 14 + third_party/nixpkgs/doc/manual.xml | 49 - third_party/nixpkgs/doc/shell.nix | 3 - third_party/nixpkgs/doc/stdenv.md | 9 + .../nixpkgs/doc/stdenv/meta.chapter.md | 6 +- .../nixpkgs/doc/stdenv/stdenv.chapter.md | 20 +- third_party/nixpkgs/doc/using-nixpkgs.md | 7 + .../doc/using/configuration.chapter.md | 6 +- .../nixpkgs/doc/using/overrides.chapter.md | 24 +- third_party/nixpkgs/lib/attrsets.nix | 8 +- third_party/nixpkgs/lib/customisation.nix | 6 - third_party/nixpkgs/lib/debug.nix | 7 - third_party/nixpkgs/lib/default.nix | 2 +- third_party/nixpkgs/lib/derivations.nix | 2 +- third_party/nixpkgs/lib/filesystem.nix | 4 - third_party/nixpkgs/lib/fixed-points.nix | 196 +- third_party/nixpkgs/lib/generators.nix | 2 +- third_party/nixpkgs/lib/licenses.nix | 90 +- third_party/nixpkgs/lib/lists.nix | 34 +- third_party/nixpkgs/lib/modules.nix | 173 +- third_party/nixpkgs/lib/options.nix | 33 +- third_party/nixpkgs/lib/path/default.nix | 69 + .../nixpkgs/lib/path/tests/default.nix | 5 +- third_party/nixpkgs/lib/path/tests/prop.sh | 2 +- third_party/nixpkgs/lib/path/tests/unit.nix | 19 +- third_party/nixpkgs/lib/sources.nix | 6 - third_party/nixpkgs/lib/strings.nix | 6 +- .../nixpkgs/lib/systems/architectures.nix | 42 +- third_party/nixpkgs/lib/systems/default.nix | 42 +- third_party/nixpkgs/lib/systems/doubles.nix | 8 +- third_party/nixpkgs/lib/systems/examples.nix | 32 +- third_party/nixpkgs/lib/systems/inspect.nix | 2 +- third_party/nixpkgs/lib/systems/parse.nix | 12 +- third_party/nixpkgs/lib/systems/platforms.nix | 8 + third_party/nixpkgs/lib/tests/filesystem.sh | 82 +- third_party/nixpkgs/lib/tests/misc.nix | 40 + third_party/nixpkgs/lib/tests/modules.sh | 16 +- .../test-mergeAttrDefinitionsWithPrio.nix | 21 + .../nixpkgs/lib/tests/modules/types.nix | 24 + third_party/nixpkgs/lib/tests/release.nix | 94 +- third_party/nixpkgs/lib/tests/sources.sh | 23 +- third_party/nixpkgs/lib/tests/systems.nix | 83 +- third_party/nixpkgs/lib/trivial.nix | 2 +- third_party/nixpkgs/lib/types.nix | 11 +- .../nixpkgs/maintainers/maintainer-list.nix | 825 +- .../scripts/check-hydra-by-maintainer.nix | 13 +- .../maintainers/scripts/fix-maintainers.pl | 2 +- .../scripts/nix-generate-from-cpan.pl | 11 +- .../scripts/update-dotnet-lockfiles.nix | 72 + third_party/nixpkgs/maintainers/team-list.nix | 48 +- .../customizing-packages.section.md | 23 + .../manual/configuration/gpu-accel.chapter.md | 2 +- .../renaming-interfaces.section.md | 4 +- .../nixpkgs/nixos/doc/manual/default.nix | 230 +- .../development/option-types.section.md | 5 + .../manual/installation/upgrading.chapter.md | 28 +- .../nixpkgs/nixos/doc/manual/man-pages.xml | 46 - .../manual/release-notes/rl-2111.section.md | 2 + .../manual/release-notes/rl-2305.section.md | 500 +- .../manual/release-notes/rl-2311.section.md | 130 +- third_party/nixpkgs/nixos/lib/eval-config.nix | 2 +- .../nixpkgs/nixos/lib/make-disk-image.nix | 1 + .../nixos/lib/make-options-doc/default.nix | 69 +- .../nixos/lib/make-options-doc/mergeJSON.py | 60 - .../postprocess-option-descriptions.xsl | 115 - third_party/nixpkgs/nixos/lib/qemu-common.nix | 2 +- .../nixos/lib/systemd-network-units.nix | 240 + .../lib/test-driver/test_driver/driver.py | 5 - .../lib/test-driver/test_driver/machine.py | 67 +- .../nixpkgs/nixos/lib/testing/driver.nix | 4 +- .../nixpkgs/nixos/lib/testing/network.nix | 44 +- .../nixpkgs/nixos/lib/testing/nodes.nix | 1 + third_party/nixpkgs/nixos/lib/utils.nix | 3 + .../maintainers/scripts/ec2/amazon-image.nix | 2 +- .../nixos/modules/config/fonts/fontconfig.nix | 61 +- .../nixos/modules/config/fonts/fontdir.nix | 2 +- .../nixpkgs/nixos/modules/config/i18n.nix | 1 + .../nixpkgs/nixos/modules/config/malloc.nix | 2 +- .../nixos/modules/config/nix-channel.nix | 70 + .../nixos/modules/config/nix-flakes.nix | 95 + .../nixos/modules/config/nix-remote-build.nix | 226 + .../nixpkgs/nixos/modules/config/nix.nix | 379 + .../nixos/modules/config/no-x-libs.nix | 15 +- .../nixpkgs/nixos/modules/config/qt.nix | 2 +- .../nixpkgs/nixos/modules/config/swap.nix | 5 + .../nixpkgs/nixos/modules/config/sysctl.nix | 3 + .../modules/config/update-users-groups.pl | 4 +- .../nixos/modules/config/users-groups.nix | 7 +- .../nixos/modules/hardware/all-firmware.nix | 1 - .../nixpkgs/nixos/modules/hardware/i2c.nix | 14 +- .../nixpkgs/nixos/modules/hardware/opengl.nix | 8 +- .../modules/hardware/video/displaylink.nix | 1 + .../nixos/modules/hardware/video/nvidia.nix | 2 +- .../installation-cd-graphical-gnome.nix | 1 + .../modules/installer/cd-dvd/iso-image.nix | 12 +- .../modules/installer/netboot/netboot.nix | 4 +- .../installer/tools/nix-fallback-paths.nix | 10 +- .../installer/tools/nixos-generate-config.pl | 34 +- .../nixos/modules/installer/tools/tools.nix | 10 +- .../nixos/modules/misc/documentation.nix | 30 +- .../nixpkgs/nixos/modules/misc/ids.nix | 4 +- .../nixpkgs/nixos/modules/misc/nixpkgs.nix | 27 +- .../nixpkgs/nixos/modules/misc/version.nix | 9 +- .../nixpkgs/nixos/modules/module-list.nix | 38 +- .../nixos/modules/profiles/headless.nix | 4 +- .../modules/profiles/installation-device.nix | 2 + .../nixos/modules/profiles/macos-builder.nix | 18 +- .../nixos/modules/programs/cfs-zen-tweaks.nix | 8 +- .../nixpkgs/nixos/modules/programs/direnv.nix | 147 + .../nixpkgs/nixos/modules/programs/gnupg.nix | 89 +- .../nixpkgs/nixos/modules/programs/nano.nix | 13 +- .../nixpkgs/nixos/modules/programs/nix-ld.nix | 18 +- .../nixpkgs/nixos/modules/programs/shadow.nix | 294 +- .../nixos/modules/programs/starship.nix | 6 +- .../nixos/modules/programs/wayland/river.nix | 59 + .../modules/programs/{ => wayland}/sway.nix | 65 +- .../modules/programs/{ => wayland}/waybar.nix | 0 .../programs/wayland/wayland-session.nix | 23 + .../nixpkgs/nixos/modules/programs/xonsh.nix | 3 +- third_party/nixpkgs/nixos/modules/rename.nix | 2 + .../nixpkgs/nixos/modules/security/ca.nix | 6 +- .../modules/security/lock-kernel-modules.nix | 11 +- .../nixpkgs/nixos/modules/security/pam.nix | 45 + .../nixos/modules/security/pam_mount.nix | 6 +- .../nixpkgs/nixos/modules/security/sudo.nix | 4 +- .../modules/services/audio/roon-bridge.nix | 5 +- .../modules/services/audio/roon-server.nix | 5 +- .../services/audio/wyoming/faster-whisper.nix | 186 + .../modules/services/audio/wyoming/piper.nix | 174 + .../nixos/modules/services/backup/restic.nix | 2 +- .../buildkite-agents.nix | 2 +- .../continuous-integration/github-runner.nix | 2 +- .../continuous-integration/gitlab-runner.nix | 2 + .../jenkins/job-builder.nix | 27 +- .../services/databases/foundationdb.md | 6 +- .../nixos/modules/services/games/factorio.nix | 2 +- .../nixos/modules/services/games/freeciv.nix | 2 +- .../nixos/modules/services/games/mchprs.nix | 341 + .../services/games/minetest-server.nix | 71 +- .../nixos/modules/services/hardware/fwupd.nix | 13 +- .../nixos/modules/services/hardware/keyd.nix | 84 +- .../nixos/modules/services/hardware/pcscd.nix | 3 +- .../modules/services/hardware/supergfxd.nix | 2 +- .../nixos/modules/services/hardware/udev.nix | 4 +- .../modules/services/home-automation/evcc.nix | 2 +- .../nixos/modules/services/mail/davmail.nix | 27 + .../nixos/modules/services/mail/exim.nix | 4 +- .../nixos/modules/services/mail/maddy.nix | 7 +- .../modules/services/mail/nullmailer.nix | 12 +- .../modules/services/mail/public-inbox.nix | 35 +- .../nixos/modules/services/mail/rspamd.nix | 2 +- .../modules/services/mail/spamassassin.nix | 2 +- .../services/matrix/appservice-irc.nix | 2 +- .../services/matrix/mautrix-facebook.nix | 3 +- .../services/matrix/mautrix-telegram.nix | 3 + .../nixos/modules/services/matrix/synapse.nix | 17 +- .../nixos/modules/services/misc/ananicy.nix | 67 +- .../nixos/modules/services/misc/ankisyncd.nix | 22 +- .../nixos/modules/services/misc/atuin.nix | 12 +- .../modules/services/misc/calibre-server.nix | 98 +- .../nixos/modules/services/misc/disnix.nix | 4 +- .../modules/services/misc/docker-registry.nix | 22 +- .../nixos/modules/services/misc/etcd.nix | 6 +- .../nixos/modules/services/misc/exhibitor.nix | 417 - .../nixos/modules/services/misc/gitea.nix | 18 +- .../nixos/modules/services/misc/gitlab.nix | 46 +- .../nixos/modules/services/misc/gollum.nix | 24 +- .../modules/services/misc/heisenbridge.nix | 2 +- .../services/misc/homepage-dashboard.nix | 55 + .../nixos/modules/services/misc/klipper.nix | 22 +- .../nixos/modules/services/misc/n8n.nix | 10 + .../nixos/modules/services/misc/nitter.nix | 11 +- .../modules/services/misc/nix-daemon.nix | 837 - .../modules/services/misc/nix-optimise.nix | 31 +- .../nixos/modules/services/misc/ntfy-sh.nix | 32 +- .../nixos/modules/services/misc/paperless.nix | 5 +- .../nixos/modules/services/misc/prowlarr.nix | 4 +- .../modules/services/misc/pufferpanel.nix | 4 +- .../modules/services/misc/zoneminder.nix | 2 +- .../modules/services/monitoring/below.nix | 106 + .../modules/services/monitoring/grafana.nix | 815 +- .../modules/services/monitoring/netdata.nix | 29 +- .../monitoring/opentelemetry-collector.nix | 73 + .../monitoring/prometheus/exporters.nix | 19 + .../prometheus/exporters/graphite.nix | 41 + .../prometheus/exporters/junos-czerwonk.nix | 72 + .../prometheus/exporters/php-fpm.nix | 65 + .../prometheus/exporters/scaphandre.nix | 33 + .../modules/services/monitoring/vmalert.nix | 136 + .../services/network-filesystems/ceph.nix | 31 +- .../network-filesystems/glusterfs.nix | 4 +- .../modules/services/networking/acme-dns.nix | 154 + .../services/networking/adguardhome.nix | 16 +- .../services/networking/avahi-daemon.nix | 17 +- .../modules/services/networking/cgit.nix | 4 +- .../modules/services/networking/ddclient.nix | 243 - .../modules/services/networking/fakeroute.nix | 22 +- .../modules/services/networking/gnunet.nix | 2 +- .../modules/services/networking/hostapd.nix | 1417 +- .../modules/services/networking/i2pd.nix | 53 +- .../keepalived/vrrp-instance-options.nix | 4 +- .../modules/services/networking/legit.nix | 182 + .../modules/services/networking/murmur.nix | 2 +- .../services/networking/pdns-recursor.nix | 2 + .../modules/services/networking/powerdns.nix | 2 + .../modules/services/networking/prosody.nix | 5 +- .../modules/services/networking/searx.nix | 59 +- .../modules/services/networking/sing-box.nix | 67 + .../services/networking/sitespeed-io.nix | 122 + .../modules/services/networking/smokeping.nix | 75 +- .../modules/services/networking/ssh/sshd.nix | 38 +- .../modules/services/networking/syncthing.nix | 6 +- .../modules/services/networking/tailscale.nix | 3 +- .../modules/services/networking/thelounge.nix | 24 +- .../modules/services/networking/trust-dns.nix | 177 + .../modules/services/networking/twingate.nix | 30 +- .../modules/services/networking/unifi.nix | 6 +- .../modules/services/networking/vsftpd.nix | 2 +- .../services/networking/wgautomesh.nix | 6 +- .../modules/services/networking/xray.nix | 3 + .../modules/services/networking/zerobin.nix | 5 +- .../nixos/modules/services/printing/cupsd.nix | 6 +- .../nixos/modules/services/search/kibana.nix | 4 +- .../nixos/modules/services/security/esdm.nix | 102 + .../modules/services/security/fail2ban.nix | 225 +- .../modules/services/security/kanidm.nix | 3 +- .../nixos/modules/services/security/tor.nix | 5 +- .../modules/services/security/usbguard.nix | 120 +- .../nixos/modules/services/security/vault.nix | 1 + .../services/security/vaultwarden/default.nix | 7 +- .../modules/services/system/cloud-init.nix | 9 + .../nixos/modules/services/system/dbus.nix | 2 +- .../modules/services/system/nix-daemon.nix | 262 + .../modules/services/system/self-deploy.nix | 6 +- .../nixos/modules/services/ttys/kmscon.nix | 1 + .../modules/services/video/go2rtc/default.nix | 4 + .../modules/services/video/mirakurun.nix | 6 +- .../modules/services/video/unifi-video.nix | 2 +- .../services/web-apps/anuko-time-tracker.nix | 388 + .../modules/services/web-apps/code-server.nix | 230 +- .../nixos/modules/services/web-apps/dex.nix | 2 +- .../modules/services/web-apps/dokuwiki.nix | 2 +- .../modules/services/web-apps/gotosocial.md | 64 + .../modules/services/web-apps/gotosocial.nix | 173 + .../services/web-apps/guacamole-client.nix | 60 + .../services/web-apps/guacamole-server.nix | 83 + .../modules/services/web-apps/hedgedoc.nix | 3 +- .../modules/services/web-apps/invidious.nix | 6 + .../nixos/modules/services/web-apps/lemmy.nix | 120 +- .../modules/services/web-apps/mastodon.nix | 4 +- .../modules/services/web-apps/mattermost.nix | 3 +- .../modules/services/web-apps/mediawiki.nix | 2 +- .../modules/services/web-apps/netbox.nix | 42 +- .../modules/services/web-apps/nextcloud.md | 2 +- .../modules/services/web-apps/nextcloud.nix | 21 +- .../nixos/modules/services/web-apps/nexus.nix | 14 +- .../nixos/modules/services/web-apps/nifi.nix | 4 +- .../services/web-apps/openvscode-server.nix | 41 +- .../modules/services/web-apps/outline.nix | 57 +- .../services/web-apps/peering-manager.nix | 38 +- .../modules/services/web-apps/peertube.nix | 4 +- .../modules/services/web-apps/pict-rs.nix | 74 +- .../modules/services/web-apps/pixelfed.nix | 23 +- .../modules/services/web-apps/plausible.nix | 7 +- .../services/web-apps/restya-board.nix | 4 +- .../modules/services/web-apps/sftpgo.nix | 375 + .../modules/services/web-apps/snipe-it.nix | 9 +- .../services/web-servers/caddy/default.nix | 60 +- .../modules/services/web-servers/garage.nix | 3 +- .../services/web-servers/keter/default.nix | 79 +- .../services/web-servers/nginx/default.nix | 102 +- .../web-servers/nginx/vhost-options.nix | 37 +- .../modules/services/web-servers/rustus.nix | 252 + .../web-servers/static-web-server.nix | 68 + .../modules/services/web-servers/traefik.nix | 25 +- .../modules/services/web-servers/ttyd.nix | 11 +- .../services/x11/desktop-managers/cde.nix | 4 +- .../x11/desktop-managers/cinnamon.nix | 19 +- .../x11/desktop-managers/pantheon.nix | 11 +- .../display-managers/account-service-util.nix | 4 +- .../services/x11/display-managers/default.nix | 35 +- .../services/x11/display-managers/gdm.nix | 4 +- .../services/x11/display-managers/sddm.nix | 11 + .../services/x11/window-managers/default.nix | 1 + .../services/x11/window-managers/dk.nix | 27 + .../x11/window-managers/herbstluftwm.nix | 2 +- .../nixos/modules/services/x11/xserver.nix | 2 +- .../system/activation/activatable-system.nix | 92 + .../system/activation/activation-script.nix | 30 +- .../activation/switch-to-configuration.pl | 36 +- .../modules/system/activation/top-level.nix | 66 +- .../nixos/modules/system/boot/binfmt.nix | 3 +- .../modules/system/boot/loader/grub/grub.nix | 36 - .../boot/loader/raspberrypi/raspberrypi.nix | 64 +- .../nixos/modules/system/boot/luksroot.nix | 2 +- .../nixos/modules/system/boot/networkd.nix | 371 +- .../nixos/modules/system/boot/plymouth.nix | 58 +- .../nixos/modules/system/boot/stage-1-init.sh | 40 +- .../nixos/modules/system/boot/stage-1.nix | 16 +- .../nixos/modules/system/boot/stratisroot.nix | 64 + .../nixos/modules/system/boot/systemd.nix | 11 +- .../modules/system/boot/systemd/initrd.nix | 3 - .../modules/system/boot/systemd/logind.nix | 125 +- .../modules/system/boot/systemd/nspawn.nix | 2 +- .../nixpkgs/nixos/modules/tasks/bcache.nix | 8 +- .../nixos/modules/tasks/filesystems.nix | 103 +- .../modules/tasks/filesystems/bcachefs.nix | 14 +- .../nixos/modules/tasks/filesystems/f2fs.nix | 5 - .../modules/tasks/filesystems/squashfs.nix | 13 + .../nixos/modules/tasks/filesystems/zfs.nix | 56 +- .../nixpkgs/nixos/modules/tasks/lvm.nix | 17 +- .../tasks/network-interfaces-scripted.nix | 10 +- .../modules/tasks/network-interfaces.nix | 2 +- .../nixpkgs/nixos/modules/tasks/swraid.nix | 67 +- .../modules/testing/test-instrumentation.nix | 2 + .../virtualisation/amazon-ec2-amis.nix | 50 +- .../virtualisation/google-compute-config.nix | 16 +- .../nixos/modules/virtualisation/libvirtd.nix | 4 +- .../nixos/modules/virtualisation/lxd.nix | 14 +- .../virtualisation/nixos-containers.nix | 8 +- .../modules/virtualisation/proxmox-image.nix | 21 +- .../nixos/modules/virtualisation/qemu-vm.nix | 330 +- .../modules/virtualisation/vmware-guest.nix | 4 +- third_party/nixpkgs/nixos/tests/aaaaxy.nix | 2 +- third_party/nixpkgs/nixos/tests/acme-dns.nix | 50 + .../nixpkgs/nixos/tests/adguardhome.nix | 69 + third_party/nixpkgs/nixos/tests/all-tests.nix | 30 +- .../nixos/tests/anuko-time-tracker.nix | 17 + .../nixos/tests/apache_datasketches.nix | 29 + third_party/nixpkgs/nixos/tests/apfs.nix | 8 +- third_party/nixpkgs/nixos/tests/apparmor.nix | 10 +- third_party/nixpkgs/nixos/tests/bcachefs.nix | 2 +- third_party/nixpkgs/nixos/tests/caddy.nix | 9 +- .../nixpkgs/nixos/tests/calibre-server.nix | 104 + third_party/nixpkgs/nixos/tests/cinnamon.nix | 4 +- .../nixpkgs/nixos/tests/code-server.nix | 22 + .../tests/common/auto-format-root-device.nix | 29 + .../nixpkgs/nixos/tests/common/resolver.nix | 2 +- third_party/nixpkgs/nixos/tests/coturn.nix | 1 + third_party/nixpkgs/nixos/tests/deepin.nix | 2 + .../nixpkgs/nixos/tests/etcd-cluster.nix | 25 +- third_party/nixpkgs/nixos/tests/etcd.nix | 2 +- third_party/nixpkgs/nixos/tests/evcc.nix | 2 +- third_party/nixpkgs/nixos/tests/fail2ban.nix | 18 + third_party/nixpkgs/nixos/tests/fakeroute.nix | 22 + third_party/nixpkgs/nixos/tests/fsck.nix | 12 +- third_party/nixpkgs/nixos/tests/gitlab.nix | 4 +- .../nixpkgs/nixos/tests/guacamole-server.nix | 21 + third_party/nixpkgs/nixos/tests/hibernate.nix | 1 + .../nixpkgs/nixos/tests/home-assistant.nix | 3 +- .../nixos/tests/homepage-dashboard.nix | 14 + .../tests/initrd-luks-empty-passphrase.nix | 8 + .../nixos/tests/installer-systemd-stage-1.nix | 3 +- third_party/nixpkgs/nixos/tests/installer.nix | 47 +- .../nixpkgs/nixos/tests/k3s/single-node.nix | 14 +- third_party/nixpkgs/nixos/tests/kafka.nix | 2 + third_party/nixpkgs/nixos/tests/kanidm.nix | 71 +- .../nixpkgs/nixos/tests/kernel-generic.nix | 2 + third_party/nixpkgs/nixos/tests/keter.nix | 65 +- third_party/nixpkgs/nixos/tests/kexec.nix | 11 +- third_party/nixpkgs/nixos/tests/keyd.nix | 2 +- third_party/nixpkgs/nixos/tests/legit.nix | 54 + third_party/nixpkgs/nixos/tests/lemmy.nix | 18 +- third_party/nixpkgs/nixos/tests/luks.nix | 4 + .../nixpkgs/nixos/tests/lvm2/default.nix | 2 +- .../nixos/tests/lvm2/systemd-stage-1.nix | 2 + .../nixpkgs/nixos/tests/lvm2/thinpool.nix | 8 +- third_party/nixpkgs/nixos/tests/lxd-ui.nix | 35 + third_party/nixpkgs/nixos/tests/maestral.nix | 5 +- third_party/nixpkgs/nixos/tests/matomo.nix | 4 +- third_party/nixpkgs/nixos/tests/miriway.nix | 5 - third_party/nixpkgs/nixos/tests/mongodb.nix | 2 - third_party/nixpkgs/nixos/tests/n8n.nix | 3 + third_party/nixpkgs/nixos/tests/nar-serve.nix | 2 + .../nixpkgs/nixos/tests/networking.nix | 179 +- .../nixpkgs/nixos/tests/nextcloud/default.nix | 2 +- .../with-declarative-redis-and-secrets.nix | 26 +- .../nextcloud/with-postgresql-and-redis.nix | 3 + .../nixpkgs/nixos/tests/nginx-http3.nix | 12 +- .../nginx-proxyprotocol/_.test.nix.cert.pem | 20 + .../nginx-proxyprotocol/_.test.nix.key.pem | 27 + .../tests/nginx-proxyprotocol/ca.cert.pem | 20 + .../tests/nginx-proxyprotocol/ca.key.pem | 27 + .../tests/nginx-proxyprotocol/default.nix | 144 + .../nginx-proxyprotocol/generate-certs.nix | 30 + .../nginx-proxyprotocol/snakeoil-certs.nix | 14 + .../tests/nixos-rebuild-specialisations.nix | 21 +- .../tests/nixos-test-driver/lib-extend.nix | 31 + .../nixos/tests/non-default-filesystems.nix | 66 + .../nixpkgs/nixos/tests/noto-fonts.nix | 2 +- third_party/nixpkgs/nixos/tests/ntfy-sh.nix | 9 +- .../nixos/tests/opentelemetry-collector.nix | 76 + third_party/nixpkgs/nixos/tests/os-prober.nix | 4 +- .../nixpkgs/nixos/tests/plasma-bigscreen.nix | 9 +- .../nixos/tests/plasma5-systemd-start.nix | 8 +- third_party/nixpkgs/nixos/tests/plasma5.nix | 14 +- third_party/nixpkgs/nixos/tests/powerdns.nix | 8 +- .../nixos/tests/prometheus-exporters.nix | 82 +- .../nixpkgs/nixos/tests/public-inbox.nix | 11 +- .../nixos/tests/qemu-vm-volatile-root.nix | 17 + third_party/nixpkgs/nixos/tests/qownnotes.nix | 70 + third_party/nixpkgs/nixos/tests/retroarch.nix | 4 +- .../nixpkgs/nixos/tests/scaphandre.nix | 18 + third_party/nixpkgs/nixos/tests/sddm.nix | 14 +- third_party/nixpkgs/nixos/tests/sftpgo.nix | 384 + .../nixos/tests/shadowsocks/common.nix | 1 + third_party/nixpkgs/nixos/tests/sing-box.nix | 45 + third_party/nixpkgs/nixos/tests/snapper.nix | 2 +- third_party/nixpkgs/nixos/tests/sway.nix | 73 +- .../nixpkgs/nixos/tests/switch-test.nix | 47 +- .../nixpkgs/nixos/tests/syncthing-init.nix | 5 +- .../systemd-boot-ovmf-broken-fat-driver.patch | 25 + .../nixpkgs/nixos/tests/systemd-boot.nix | 40 +- .../nixos/tests/systemd-initrd-btrfs-raid.nix | 2 + .../nixos/tests/systemd-initrd-luks-fido2.nix | 3 + .../tests/systemd-initrd-luks-keyfile.nix | 3 + .../tests/systemd-initrd-luks-password.nix | 3 + .../nixos/tests/systemd-initrd-luks-tpm2.nix | 3 + .../tests/systemd-initrd-networkd-ssh.nix | 9 +- .../nixos/tests/systemd-initrd-networkd.nix | 1 + .../nixos/tests/systemd-initrd-swraid.nix | 14 +- .../nixos/tests/systemd-initrd-vconsole.nix | 17 +- .../tests/systemd-networkd-dhcpserver.nix | 55 +- ...ystemd-networkd-ipv6-prefix-delegation.nix | 6 +- .../nixos/tests/systemd-nspawn-configfile.nix | 128 + .../nixpkgs/nixos/tests/taskserver.nix | 26 +- .../nixpkgs/nixos/tests/tmate-ssh-server.nix | 1 + third_party/nixpkgs/nixos/tests/traefik.nix | 5 +- third_party/nixpkgs/nixos/tests/twingate.nix | 10 + .../nixpkgs/nixos/tests/virtualbox.nix | 4 +- .../nixpkgs/nixos/tests/vscode-remote-ssh.nix | 124 + .../nixos/tests/web-apps/gotosocial.nix | 28 + .../nixos/tests/web-apps/peering-manager.nix | 2 +- .../tests/web-servers/static-web-server.nix | 32 + .../nixpkgs/nixos/tests/wpa_supplicant.nix | 235 +- .../accessibility/dasher/default.nix | 2 +- .../audio/FIL-plugins/default.nix | 20 +- .../audio/alsa-scarlett-gui/default.nix | 3 + .../pkgs/applications/audio/ardour/6.nix | 1 + .../ardour/default-plugin-search-paths.patch | 55 + .../applications/audio/ardour/default.nix | 6 +- .../applications/audio/audacity/default.nix | 4 +- .../audio/bolliedelayxt.lv2/default.nix | 25 + .../applications/audio/brutefir/default.nix | 32 + .../applications/audio/cardinal/default.nix | 9 +- .../pkgs/applications/audio/carla/default.nix | 14 +- .../applications/audio/eartag/default.nix | 9 +- .../applications/audio/easyabc/default.nix | 65 + .../audio/easyabc/hardcoded-paths.patch | 43 + .../audio/easyeffects/default.nix | 6 +- .../applications/audio/faust/faust2alqt.nix | 32 +- .../applications/audio/faust/faust2jaqt.nix | 33 +- .../applications/audio/faust/faust2lv2.nix | 10 +- .../applications/audio/faust/faust2sc.nix | 8 +- .../audio/faustPhysicalModeling/default.nix | 6 +- .../applications/audio/faustStk/default.nix | 40 - .../pkgs/applications/audio/flac/default.nix | 4 +- .../applications/audio/flac2all/default.nix | 4 +- .../applications/audio/flacon/default.nix | 4 +- .../applications/audio/ft2-clone/default.nix | 4 +- .../applications/audio/furnace/default.nix | 13 +- .../audio/go-musicfox/default.nix | 6 +- .../applications/audio/gpodder/default.nix | 21 +- .../applications/audio/gtkcord4/default.nix | 6 +- .../applications/audio/hydrogen/default.nix | 4 +- .../applications/audio/jamesdsp/default.nix | 4 +- .../pkgs/applications/audio/ledfx/default.nix | 6 +- .../audio/listenbrainz-mpd/default.nix | 6 +- .../audio/lsp-plugins/default.nix | 4 +- .../CharacterCompressor/default.nix | 7 +- .../audio/magnetophonDSP/CompBus/default.nix | 5 +- .../ConstantDetuneChorus/default.nix | 8 +- .../magnetophonDSP/LazyLimiter/default.nix | 6 +- .../magnetophonDSP/MBdistortion/default.nix | 6 +- .../magnetophonDSP/RhythmDelay/default.nix | 6 +- .../magnetophonDSP/VoiceOfFaust/default.nix | 8 +- .../faustCompressors/default.nix | 5 +- .../magnetophonDSP/pluginUtils/default.nix | 8 +- .../magnetophonDSP/shelfMultiBand/default.nix | 7 +- .../applications/audio/master_me/default.nix | 45 + .../audio/milkytracker/default.nix | 10 +- .../audio/miniaudicle/default.nix | 20 +- .../applications/audio/miniplayer/default.nix | 1 + .../applications/audio/mmlgui/default.nix | 18 +- .../audio/monkeys-audio/default.nix | 4 +- .../applications/audio/mooSpace/default.nix | 10 +- .../applications/audio/mopidy/bandcamp.nix | 4 +- .../pkgs/applications/audio/mopidy/iris.nix | 4 +- .../applications/audio/mopidy/jellyfin.nix | 4 +- .../pkgs/applications/audio/mopidy/local.nix | 6 +- .../pkgs/applications/audio/mopidy/moped.nix | 4 +- .../pkgs/applications/audio/mopidy/mopify.nix | 4 +- .../pkgs/applications/audio/mopidy/mpd.nix | 4 +- .../pkgs/applications/audio/mopidy/mpris.nix | 4 +- .../pkgs/applications/audio/mopidy/muse.nix | 4 +- .../pkgs/applications/audio/mopidy/notify.nix | 4 +- .../applications/audio/mopidy/podcast.nix | 4 +- .../applications/audio/mopidy/scrobbler.nix | 4 +- .../pkgs/applications/audio/mopidy/somafm.nix | 4 +- .../pkgs/applications/audio/mopidy/tidal.nix | 3 +- .../pkgs/applications/audio/mopidy/tunein.nix | 4 +- .../applications/audio/mopidy/ytmusic.nix | 5 +- .../audio/music-player/default.nix | 44 + .../applications/audio/musikcube/default.nix | 4 +- .../applications/audio/muzika/default.nix | 82 + .../pkgs/applications/audio/mympd/default.nix | 12 +- .../applications/audio/ncpamixer/default.nix | 6 +- .../applications/audio/ncspot/default.nix | 7 +- .../pkgs/applications/audio/noson/default.nix | 51 + .../audio/nova-filters/default.nix | 53 +- .../applications/audio/ocenaudio/default.nix | 4 +- .../audio/open-stage-control/default.nix | 4 +- .../applications/audio/opustags/default.nix | 13 +- .../applications/audio/osdlyrics/default.nix | 4 +- .../applications/audio/picard/default.nix | 17 +- .../applications/audio/plexamp/default.nix | 2 +- .../applications/audio/pt2-clone/default.nix | 4 +- .../applications/audio/ptcollab/default.nix | 26 +- .../applications/audio/qjackctl/default.nix | 4 +- .../applications/audio/qmidiarp/default.nix | 4 +- .../pkgs/applications/audio/qmmp/default.nix | 4 +- .../applications/audio/qpwgraph/default.nix | 4 +- .../applications/audio/reaper/default.nix | 6 +- .../audio/rofi-pulse-select/default.nix | 2 +- .../audio/samplebrain/default.nix | 62 + .../applications/audio/sidplayfp/default.nix | 4 +- .../applications/audio/snapcast/default.nix | 4 +- .../pkgs/applications/audio/snd/default.nix | 4 +- .../applications/audio/sonic-pi/default.nix | 6 +- .../audio/sound-juicer/default.nix | 14 +- .../audio/spotify-cli-linux/default.nix | 4 +- .../audio/spotify-player/default.nix | 12 +- .../pkgs/applications/audio/spotify/linux.nix | 6 +- .../applications/audio/sptlrx/default.nix | 6 +- .../applications/audio/strawberry/default.nix | 4 +- .../audio/sublime-music/default.nix | 30 +- .../applications/audio/subtitlr/default.nix | 35 + .../applications/audio/tambura/default.nix | 6 +- .../pkgs/applications/audio/tauon/default.nix | 14 +- .../applications/audio/tetraproc/default.nix | 2 +- .../applications/audio/tidal-hifi/default.nix | 4 +- .../pkgs/applications/audio/tone/default.nix | 6 +- .../applications/audio/tone/nuget-deps.nix | 1 - .../applications/audio/touchosc/default.nix | 8 +- .../applications/audio/uhhyou.lv2/default.nix | 67 - .../audio/viper4linux-gui/default.nix | 2 +- .../pkgs/applications/audio/vital/default.nix | 67 + .../applications/audio/vkeybd/default.nix | 4 - .../applications/audio/waylyrics/default.nix | 59 + .../pkgs/applications/audio/xmp/default.nix | 14 +- .../pkgs/applications/audio/ymuse/default.nix | 8 +- .../applications/audio/yoshimi/default.nix | 4 +- .../applications/audio/zrythm/default.nix | 15 +- .../applications/backup/deja-dup/default.nix | 6 +- .../applications/backup/ludusavi/default.nix | 6 +- ...docs-Add-target-path-fixup-variable.patch} | 0 ...ncies-not-available-on-crates.io-to-.patch | 182 - ...2-docs-drop-all-but-client-man-pages.patch | 72 - .../backup/proxmox-backup-client/Cargo.lock | 597 +- .../backup/proxmox-backup-client/default.nix | 57 +- .../backup/timeshift/unwrapped.nix | 25 +- .../backup/urbackup-client/default.nix | 4 +- .../applications/blockchains/alfis/Cargo.lock | 1920 + .../blockchains/alfis/default.nix | 20 +- .../blockchains/atomic-swap/default.nix | 41 + .../applications/blockchains/besu/default.nix | 4 +- .../blockchains/bisq-desktop/default.nix | 36 +- .../blockchains/bitcoin/default.nix | 4 +- .../applications/blockchains/btcd/default.nix | 6 +- .../blockchains/btcpayserver/default.nix | 4 +- .../blockchains/btcpayserver/deps.nix | 15 +- .../blockchains/clightning/default.nix | 4 +- .../blockchains/dcrctl/default.nix | 24 + .../applications/blockchains/dcrd/default.nix | 10 +- .../blockchains/dcrwallet/default.nix | 10 +- .../applications/blockchains/ergo/default.nix | 4 +- .../blockchains/erigon/default.nix | 6 +- .../blockchains/exodus/default.nix | 4 +- .../blockchains/faraday/default.nix | 14 +- .../blockchains/fulcrum/default.nix | 4 +- .../blockchains/go-ethereum/default.nix | 9 +- .../blockchains/groestlcoin/default.nix | 4 +- .../ledger-live-desktop/default.nix | 7 +- .../blockchains/lightning-loop/default.nix | 8 +- .../blockchains/lightning-pool/default.nix | 8 +- .../blockchains/lightwalletd/default.nix | 9 +- .../blockchains/litecoin/default.nix | 10 +- .../applications/blockchains/lnd/default.nix | 6 +- .../blockchains/lndconnect/default.nix | 6 +- .../blockchains/lndhub-go/default.nix | 5 +- .../blockchains/lndmanage/default.nix | 4 +- .../blockchains/masari/default.nix | 4 + .../blockchains/monero-gui/default.nix | 1 + .../blockchains/mycrypto/default.nix | 2 +- .../blockchains/namecoin/default.nix | 4 +- .../blockchains/nano-wallet/default.nix | 10 +- .../blockchains/nbxplorer/default.nix | 4 +- .../nbxplorer/util/update-common.sh | 5 +- .../applications/blockchains/oxen/default.nix | 3 +- .../blockchains/polkadot/Cargo.lock | 2733 +- .../blockchains/polkadot/default.nix | 6 +- .../blockchains/snarkos/default.nix | 6 +- .../blockchains/solana-validator/default.nix | 6 - .../blockchains/solana/default.nix | 1 - .../blockchains/sparrow/default.nix | 21 +- .../blockchains/sparrow/fhsenv.nix | 4 +- .../blockchains/stellar-core/default.nix | 4 +- .../{taro => taproot-assets}/default.nix | 12 +- .../applications/blockchains/ton/default.nix | 4 +- .../blockchains/wownero/default.nix | 83 +- .../display-managers/greetd/regreet.nix | 6 +- .../lightdm-slick-greeter/default.nix | 12 +- .../display-managers/ly/default.nix | 18 +- .../display-managers/sddm/default.nix | 59 +- .../sddm/sddm-default-session.patch | 38 +- .../editors/android-studio/common.nix | 4 +- .../editors/android-studio/default.nix | 8 +- .../applications/editors/bluej/default.nix | 37 +- .../editors/bonzomatic/default.nix | 4 +- .../applications/editors/codux/default.nix | 35 + .../applications/editors/cpeditor/default.nix | 2 + .../applications/editors/cudatext/default.nix | 4 +- .../applications/editors/cudatext/deps.json | 32 +- .../applications/editors/edwood/default.nix | 47 + .../pkgs/applications/editors/emacs/28.nix | 4 - .../applications/editors/emacs/default.nix | 65 + .../elisp-packages/elpa-devel-generated.nix | 6929 ++++ .../elisp-packages/elpa-devel-packages.nix | 62 + .../emacs/elisp-packages/elpa-generated.nix | 299 +- .../emacs/elisp-packages/emacs2nix.nix | 4 +- .../emacs/elisp-packages/manual-packages.nix | 2 + .../manual-packages/acm-terminal/default.nix | 6 +- .../manual-packages/beancount/default.nix | 35 + .../manual-packages/ebuild-mode/default.nix | 4 +- .../manual-packages/hsc3/default.nix | 21 +- .../manual-packages/lsp-bridge/default.nix | 26 +- .../lsp-bridge/hardcode-dependencies.patch | 19 + .../manual-packages/mind-wave/default.nix | 8 +- .../sunrise-commander/default.nix | 16 +- .../treesit-grammars/default.nix | 25 +- .../emacs/elisp-packages/nongnu-generated.nix | 136 +- .../elisp-packages/recipes-archive-melpa.json | 5819 +-- .../emacs/elisp-packages/update-elpa-devel | 4 + .../emacs/elisp-packages/update-from-overlay | 3 + .../applications/editors/emacs/generic.nix | 428 +- .../applications/editors/emacs/macport.nix | 6 - .../applications/editors/emacs/sources.nix | 87 + .../editors/featherpad/default.nix | 4 +- .../editors}/gedit/correct-gir-lib-path.patch | 0 .../editors}/gedit/default.nix | 7 +- .../applications/editors/helix/default.nix | 37 +- .../applications/editors/helix/grammars.nix | 106 - .../editors/helix/language-grammars.json | 1 - .../pkgs/applications/editors/helix/update.py | 47 - .../applications/editors/imhex/default.nix | 18 +- .../applications/editors/jetbrains/darwin.nix | 39 +- .../editors/jetbrains/default.nix | 138 +- .../applications/editors/jetbrains/linux.nix | 95 +- .../editors/jetbrains/plugins/default.nix | 122 + .../editors/jetbrains/plugins/plugins.json | 421 + .../jetbrains/plugins/specialPlugins.nix | 63 + .../jetbrains/plugins/update_plugins.py | 385 + .../jetbrains/{update.py => update_ides.py} | 10 +- .../editors/jetbrains/versions.json | 288 +- .../applications/editors/jove/default.nix | 23 +- .../editors/jupyter-kernels/octave/kernel.nix | 2 +- .../editors/kakoune/plugins/update.py | 5 - .../applications/editors/lapce/Cargo.lock | 12 +- .../applications/editors/lapce/default.nix | 26 +- .../applications/editors/ldtk/default.nix | 20 +- .../applications/editors/marker/default.nix | 16 +- .../pkgs/applications/editors/mle/default.nix | 27 +- .../editors/molsketch/default.nix | 22 +- .../applications/editors/neovim/default.nix | 17 +- .../applications/editors/neovim/utils.nix | 43 +- .../applications/editors/neovim/wrapper.nix | 15 +- .../editors/notepad-next/default.nix | 13 +- .../applications/editors/orbiton/default.nix | 4 +- .../editors/pixelorama/default.nix | 14 +- .../editors/pulsar/001-patch-wrapper.patch | 18 +- .../applications/editors/pulsar/default.nix | 8 +- .../applications/editors/pulsar/update.mjs | 25 +- .../editors/standardnotes/default.nix | 55 +- .../editors/standardnotes/src.json | 12 +- .../editors/standardnotes/update.nix | 8 +- .../editors/sublime/4/packages.nix | 6 +- .../applications/editors/tecoc/default.nix | 47 +- .../applications/editors/thiefmd/default.nix | 69 +- .../applications/editors/thonny/default.nix | 3 +- .../pkgs/applications/editors/vim/common.nix | 4 +- .../editors/vim/ft-nix-support.patch | 20 - .../vim/{configurable.nix => full.nix} | 18 +- .../editors/vim/plugins/aliases.nix | 1 + .../editors/vim/plugins/default.nix | 2 +- .../editors/vim/plugins/generated.nix | 2302 +- .../editors/vim/plugins/get-plugins.nix | 4 +- .../vim/plugins/nvim-treesitter/generated.nix | 544 +- .../vim/plugins/nvim-treesitter/overrides.nix | 32 +- .../editors/vim/plugins/overrides.nix | 780 +- .../patches/chadtree/emulate-venv.patch | 41 + .../patches/lazy-nvim/no-helptags.patch | 14 + .../editors/vim/plugins/update.py | 4 +- .../editors/vim/plugins/vim-clap/Cargo.lock | 6 +- .../editors/vim/plugins/vim-clap/default.nix | 8 +- .../editors/vim/plugins/vim-plugin-names | 49 +- .../editors/vscode/extensions/default.nix | 449 +- .../ms-vscode-remote.remote-ssh/default.nix | 51 +- .../adapter-output-shared_object.patch | 22 + .../cmake-build-extension-only.patch | 18 +- .../vadimcn.vscode-lldb/default.nix | 19 +- .../extensions/vadimcn.vscode-lldb/update.sh | 9 +- .../editors/vscode/extensions/vscodeEnv.nix | 4 +- .../applications/editors/vscode/generic.nix | 9 + .../editors/vscode/update-vscode.sh | 17 +- .../editors/vscode/update-vscodium.sh | 2 + .../applications/editors/vscode/vscode.nix | 38 +- .../applications/editors/vscode/vscodium.nix | 13 +- .../editors/xed-editor/default.nix | 4 +- .../applications/emulators/blink/default.nix | 32 + ...atch => 001-dont-rebuild-on-install.patch} | 0 .../{001-fix-ruby.patch => 002-fix-ruby.diff} | 0 ...g2icns.patch => 003-darwin-specific.patch} | 57 +- .../bsnes/ares/003-fix-darwin-install.patch | 23 - .../emulators/bsnes/ares/default.nix | 38 +- .../applications/emulators/citra/generic.nix | 10 +- .../emulators/craftos-pc/default.nix | 6 + .../test-eval-hello-world/default.nix | 18 + .../craftos-pc/test-eval-hello-world/init.lua | 3 + .../test-eval-periphemu/default.nix | 19 + .../craftos-pc/test-eval-periphemu/init.lua | 18 + .../emulators/dolphin-emu/default.nix | 35 +- .../emulators/duckstation/default.nix | 9 +- .../emulators/emulationstation/default.nix | 8 +- .../applications/emulators/fs-uae/default.nix | 23 +- .../emulators/fs-uae/launcher.nix | 24 +- .../applications/emulators/mame/default.nix | 13 +- .../applications/emulators/pcsx2/default.nix | 129 +- .../applications/emulators/ppsspp/default.nix | 7 +- .../emulators/retroarch/cores.nix | 20 + .../emulators/retroarch/hashes.json | 12 + .../emulators/retroarch/update_cores.py | 2 + .../applications/emulators/rpcs3/default.nix | 6 +- .../emulators/ryujinx/default.nix | 9 +- .../applications/emulators/ryujinx/deps.nix | 48 +- .../applications/emulators/ryujinx/updater.sh | 4 +- .../applications/emulators/vbam/default.nix | 4 +- .../applications/emulators/wibo/default.nix | 4 +- .../pkgs/applications/emulators/wine/base.nix | 5 +- .../emulators/wine/builder-wow.sh | 22 +- .../applications/emulators/wine/packages.nix | 19 +- .../applications/emulators/wine/sources.nix | 36 +- .../applications/emulators/xemu/default.nix | 6 +- .../applications/emulators/yuzu/generic.nix | 13 +- .../applications/emulators/yuzu/sources.nix | 14 +- .../file-managers/browsr/default.nix | 74 + .../file-managers/felix-fm/Cargo.lock | 494 +- .../file-managers/felix-fm/default.nix | 6 +- .../file-managers/joshuto/default.nix | 15 +- .../applications/file-managers/lf/default.nix | 1 - .../file-managers/projectable/default.nix | 49 + .../file-managers/tuifimanager/default.nix | 31 +- .../file-managers/vifm/default.nix | 4 +- .../file-managers/xplorer/default.nix | 4 +- .../applications/finance/denaro/default.nix | 33 +- .../pkgs/applications/finance/denaro/deps.nix | 16 +- .../applications/finance/denaro/update.sh | 18 + .../pkgs/applications/gis/grass/default.nix | 121 +- .../pkgs/applications/gis/grass/tests.nix | 18 + .../applications/gis/qgis/unwrapped-ltr.nix | 12 +- .../pkgs/applications/gis/qgis/unwrapped.nix | 8 +- .../pkgs/applications/gis/saga/default.nix | 16 +- .../pkgs/applications/gis/tunnelx/default.nix | 55 + .../graphics/ImageMagick/default.nix | 4 +- .../applications/graphics/artem/default.nix | 6 +- .../applications/graphics/comical/default.nix | 24 +- .../applications/graphics/curv/default.nix | 68 + .../graphics/darktable/default.nix | 6 +- .../applications/graphics/deskew/default.nix | 6 + .../applications/graphics/digikam/default.nix | 25 +- .../graphics/displaycal/default.nix | 7 +- .../applications/graphics/dosage/default.nix | 4 +- .../applications/graphics/drawio/default.nix | 6 +- .../applications/graphics/drawio/headless.nix | 1 + .../applications/graphics/entwine/default.nix | 8 +- .../graphics/eyedropper/default.nix | 8 +- .../applications/graphics/f3d/default.nix | 7 +- .../applications/graphics/feh/default.nix | 10 +- .../graphics/figma-agent/default.nix | 15 +- .../applications/graphics/flaca/Cargo.lock | 763 + .../applications/graphics/flaca/default.nix | 28 + .../graphics/foxotron/default.nix | 3 + .../graphics/gnome-decoder/default.nix | 4 +- .../graphics/halftone/default.nix | 61 + .../applications/graphics/ipe/default.nix | 2 +- .../applications/graphics/kcc/default.nix | 5 +- .../applications/graphics/komikku/default.nix | 4 +- .../graphics/komorebi/default.nix | 56 + .../applications/graphics/krita/generic.nix | 4 +- .../graphics/mandelbulber/default.nix | 4 +- .../graphics/megapixels/default.nix | 4 +- .../applications/graphics/meshlab/default.nix | 4 +- .../applications/graphics/mozjpeg/default.nix | 4 +- .../applications/graphics/nsxiv/default.nix | 14 +- .../applications/graphics/oculante/Cargo.lock | 1225 +- .../graphics/oculante/default.nix | 8 +- .../graphics/paraview/default.nix | 4 +- .../graphics/pineapple-pictures/default.nix | 5 +- .../applications/graphics/pinta/default.nix | 1 - .../applications/graphics/rnote/Cargo.lock | 1157 +- .../applications/graphics/rnote/default.nix | 8 +- .../graphics/tesseract/tesseract5.nix | 4 +- .../applications/graphics/upscayl/default.nix | 42 + .../applications/graphics/veusz/default.nix | 9 +- .../applications/graphics/vkdt/default.nix | 4 +- .../applications/graphics/vpv/default.nix | 4 +- .../applications/graphics/weylus/default.nix | 4 +- .../pkgs/applications/graphics/xv/default.nix | 38 + .../pkgs/applications/kde/angelfish.nix | 2 +- .../pkgs/applications/kde/ark/default.nix | 4 +- .../nixpkgs/pkgs/applications/kde/fetch.sh | 2 +- .../pkgs/applications/kde/kdeconnect-kde.nix | 3 + .../applications/kde/plasmatube/default.nix | 9 +- .../nixpkgs/pkgs/applications/kde/srcs.nix | 2048 +- .../applications/logging/humioctl/default.nix | 55 +- .../pkgs/applications/maui/default.nix | 1 + .../add-akonadi-calendar.patch | 10 - .../maui/mauikit-calendar/default.nix | 2 - .../applications/maui/mauikit-imagetools.nix | 9 - .../applications/maui/mauikit-terminal.nix | 32 + .../nixpkgs/pkgs/applications/maui/srcs.nix | 176 +- .../pkgs/applications/maui/station.nix | 4 + .../misc/1password-gui/default.nix | 20 +- .../applications/misc/1password-gui/linux.nix | 8 +- .../applications/misc/1password/default.nix | 10 +- .../misc/ArchiSteamFarm/default.nix | 14 +- .../applications/misc/ArchiSteamFarm/deps.nix | 27 +- .../misc/ArchiSteamFarm/update.sh | 6 +- .../misc/ArchiSteamFarm/web-ui/default.nix | 8 +- .../misc/ArchiSteamFarm/web-ui/update.sh | 14 +- .../pkgs/applications/misc/ablog/default.nix | 1 + .../pkgs/applications/misc/albert/default.nix | 4 +- .../applications/misc/anytype/default.nix | 14 +- .../applications/misc/archivebox/default.nix | 3 +- .../applications/misc/archivy/default.nix | 2 +- .../applications/misc/arianna/default.nix | 15 +- .../applications/misc/audio/sox/default.nix | 11 +- .../applications/misc/audio/soxr/default.nix | 2 +- .../misc/autospotting/default.nix | 11 +- .../misc/avalonia-ilspy/default.nix | 1 + .../applications/misc/blender/default.nix | 6 +- .../applications/misc/bottles/default.nix | 11 +- .../pkgs/applications/misc/bottles/fhsenv.nix | 6 +- .../applications/misc/brewtarget/default.nix | 12 +- .../pkgs/applications/misc/bukut/default.nix | 28 - .../applications/misc/calibre/default.nix | 8 +- .../applications/misc/chatblade/default.nix | 4 +- .../applications/misc/cherrytree/default.nix | 8 +- .../applications/misc/chrysalis/default.nix | 2 +- .../applications/misc/citations/Cargo.lock | 962 +- .../applications/misc/citations/default.nix | 14 +- .../misc/cli-visualizer/default.nix | 1 + .../pkgs/applications/misc/clight/clightd.nix | 4 +- .../pkgs/applications/misc/clight/default.nix | 15 +- .../pkgs/applications/misc/clipqr/default.nix | 6 +- .../pkgs/applications/misc/cobalt/default.nix | 6 +- .../applications/misc/comodoro/default.nix | 47 + .../pkgs/applications/misc/confy/default.nix | 4 +- .../pkgs/applications/misc/cotp/default.nix | 6 +- .../misc/cubiomes-viewer/default.nix | 4 +- .../pkgs/applications/misc/cum/default.nix | 2 +- .../pkgs/applications/misc/dasel/default.nix | 17 +- .../applications/misc/dbeaver/default.nix | 22 +- .../pkgs/applications/misc/dbx/default.nix | 17 +- .../deadd-notification-center/default.nix | 12 +- .../pkgs/applications/misc/done/Cargo.lock | 3051 ++ .../pkgs/applications/misc/done/default.nix | 67 + .../applications/misc/dotfiles/default.nix | 4 +- .../applications/misc/electrum/default.nix | 10 +- .../pkgs/applications/misc/electrum/grs.nix | 11 +- .../misc/elf-dissector/default.nix | 28 +- ...for_src_lib_disassembler_disassembler.diff | 13 + .../misc/eos-installer/default.nix | 1 + .../applications/misc/etesync-dav/default.nix | 3 +- .../pkgs/applications/misc/far2l/default.nix | 7 +- .../applications/misc/feedbackd/default.nix | 11 +- .../applications/misc/fitnesstrax/default.nix | 45 - .../pkgs/applications/misc/fluidd/default.nix | 4 +- .../applications/misc/furtherance/default.nix | 16 +- .../applications/misc/gallery-dl/default.nix | 6 +- .../applications/misc/genesys/default.nix | 38 + .../pkgs/applications/misc/gimoji/default.nix | 31 + .../misc/gnome-extension-manager/default.nix | 4 +- .../misc/gnome-solanum/default.nix | 21 +- .../pkgs/applications/misc/go-org/default.nix | 6 +- .../misc/go-thumbnailer/default.nix | 40 + .../misc/go-thumbnailer/go.thumbnailer | 3 + .../pkgs/applications/misc/gofu/default.nix | 8 +- .../applications/misc/goldendict/default.nix | 14 +- .../pkgs/applications/misc/gpxsee/default.nix | 4 +- .../pkgs/applications/misc/has/default.nix | 29 + .../pkgs/applications/misc/heimer/default.nix | 4 +- .../pkgs/applications/misc/hmm/default.nix | 34 + .../misc/huggle/00-remove-third-party.patch | 17 +- .../pkgs/applications/misc/huggle/default.nix | 4 +- .../pkgs/applications/misc/hugo/default.nix | 22 +- .../pkgs/applications/misc/inkcut/default.nix | 8 +- .../applications/misc/input-leap/default.nix | 77 + .../pkgs/applications/misc/iptsd/default.nix | 6 +- .../misc/jetbrains-toolbox/default.nix | 6 +- .../misc/johnny-reborn/default.nix | 38 + .../misc/johnny-reborn/with-data.nix | 63 + .../misc/joplin-desktop/default.nix | 10 +- .../pkgs/applications/misc/josm/default.nix | 6 +- .../applications/misc/jotta-cli/default.nix | 4 +- .../applications/misc/k4dirstat/default.nix | 4 +- .../applications/misc/keepmenu/default.nix | 4 +- .../default.nix | 6 +- .../pkgs/applications/misc/khal/default.nix | 6 +- .../pkgs/applications/misc/khard/default.nix | 4 +- .../applications/misc/klayout/default.nix | 4 +- .../misc/klipper-estimator/default.nix | 6 +- .../pkgs/applications/misc/kondo/default.nix | 6 +- .../pkgs/applications/misc/kord/Cargo.lock | 3574 ++ .../pkgs/applications/misc/kord/default.nix | 20 +- .../misc/leetcode-cli/default.nix | 6 +- .../applications/misc/librecad/default.nix | 4 +- .../pkgs/applications/misc/logseq/default.nix | 11 +- .../pkgs/applications/misc/lutris/fhsenv.nix | 3 + .../pkgs/applications/misc/lyx/default.nix | 2 +- .../applications/misc/madonctl/default.nix | 1 - .../applications/misc/mainsail/default.nix | 4 +- .../applications/misc/makeself/default.nix | 14 +- .../pkgs/applications/misc/mako/default.nix | 4 +- .../applications/misc/marktext/default.nix | 2 +- .../applications/misc/mediaelch/default.nix | 13 +- .../applications/misc/mediainfo/default.nix | 4 +- .../applications/misc/meerk40t/camera.nix | 5 +- .../applications/misc/meerk40t/default.nix | 5 +- .../pkgs/applications/misc/mkgmap/default.nix | 4 +- .../pkgs/applications/misc/mob/default.nix | 4 +- .../misc/moonlight-qt/darwin.diff | 38 + .../misc/moonlight-qt/default.nix | 26 +- .../pkgs/applications/misc/mupdf/default.nix | 4 +- .../misc/nerd-font-patcher/default.nix | 4 +- .../applications/misc/nhentai/default.nix | 4 +- .../applications/misc/notable/default.nix | 2 +- .../pkgs/applications/misc/nut/default.nix | 56 +- .../misc/nut/hardcode-paths.patch | 18 +- .../misc/nwg-dock-hyprland/default.nix | 34 + .../applications/misc/nwg-dock/default.nix | 4 +- .../applications/misc/obs-cli/default.nix | 40 + .../applications/misc/obsidian/default.nix | 14 +- .../applications/misc/octoprint/default.nix | 48 +- .../misc/octoprint/ffmpeg-path.patch | 25 +- .../pkgs/applications/misc/oranda/default.nix | 17 +- .../pkgs/applications/misc/orca/default.nix | 4 +- .../applications/misc/organicmaps/default.nix | 4 +- .../applications/misc/otpclient/default.nix | 29 +- .../pkgs/applications/misc/oxker/default.nix | 6 +- .../pkgs/applications/misc/p2pool/default.nix | 4 +- .../applications/misc/pairdrop/default.nix | 44 + .../applications/misc/pdfarranger/default.nix | 21 +- .../applications/misc/pdfdiff/default.nix | 31 +- .../applications/misc/pdfposter/default.nix | 44 + .../applications/misc/pgmanage/default.nix | 14 +- .../pkgs/applications/misc/phoc/default.nix | 4 +- .../applications/misc/please-cli/default.nix | 45 + .../pkgs/applications/misc/porsmo/default.nix | 47 + .../pkgs/applications/misc/pot/Cargo.lock | 5242 +++ .../pkgs/applications/misc/pot/default.nix | 140 + .../applications/misc/privacyidea/default.nix | 15 +- .../misc/process-compose/default.nix | 6 +- .../applications/misc/protonup-qt/default.nix | 7 +- .../misc/prusa-slicer/default.nix | 78 +- .../wxWidgets-Makefile.in-fix.patch | 112 + .../pkgs/applications/misc/pueue/default.nix | 6 +- .../pkgs/applications/misc/pwsafe/default.nix | 4 +- .../pkgs/applications/misc/pydf/default.nix | 4 +- .../pkgs/applications/misc/pyditz/default.nix | 2 +- .../applications/misc/pytrainer/default.nix | 3 +- .../pkgs/applications/misc/qtpass/default.nix | 3 + .../misc/raiseorlaunch/default.nix | 4 +- .../misc/river-luatile/default.nix | 6 +- .../applications/misc/safeeyes/default.nix | 1 + .../applications/misc/sampler/default.nix | 1 - .../pkgs/applications/misc/scli/default.nix | 25 +- .../applications/misc/seashells/default.nix | 4 +- .../misc}/shavee/default.nix | 26 +- .../applications/misc/shell-genie/default.nix | 7 +- .../pkgs/applications/misc/sigal/default.nix | 3 +- .../pkgs/applications/misc/sigi/default.nix | 8 +- .../pkgs/applications/misc/skate/default.nix | 12 +- .../misc/slic3r/boost-compile-error.patch | 12 - .../pkgs/applications/misc/slic3r/default.nix | 20 +- .../pkgs/applications/misc/slippy/default.nix | 63 + .../pkgs/applications/misc/slweb/default.nix | 4 +- .../applications/misc/snagboot/default.nix | 78 + .../misc/snapmaker-luban/default.nix | 4 +- .../applications/misc/somebar/default.nix | 2 +- .../misc/spicetify-cli/default.nix | 10 +- .../pkgs/applications/misc/stag/default.nix | 21 +- .../pkgs/applications/misc/sticky/default.nix | 4 +- .../misc/streamdeck-ui/default.nix | 3 + .../pkgs/applications/misc/survex/default.nix | 6 +- .../misc/swaynotificationcenter/default.nix | 6 +- .../misc/syncthingtray/default.nix | 4 +- .../default.nix | 6 +- .../misc/tailscale-systray/default.nix | 32 + .../pkgs/applications/misc/taizen/default.nix | 15 +- .../misc/tandoor-recipes/common.nix | 6 +- .../misc/tandoor-recipes/default.nix | 6 - .../pkgs/applications/misc/tango/default.nix | 25 + .../applications/misc/tellico/default.nix | 4 +- .../applications/misc/therion/default.nix | 4 +- .../pkgs/applications/misc/ticker/default.nix | 6 +- .../applications/misc/timewarrior/default.nix | 9 +- .../misc/todoist-electron/default.nix | 10 +- .../applications/misc/todoist/default.nix | 1 - .../pkgs/applications/misc/ttdl/default.nix | 6 +- .../pkgs/applications/misc/ttyper/default.nix | 9 +- .../applications/misc/tui-journal/default.nix | 45 + .../pkgs/applications/misc/tut/default.nix | 1 - .../misc/twitch-chat-downloader/default.nix | 32 +- .../applications/misc/tzupdate/default.nix | 4 +- .../pkgs/applications/misc/ubpm/default.nix | 51 + .../applications/misc/ulauncher/default.nix | 2 - .../pkgs/applications/misc/upwork/default.nix | 6 +- .../pkgs/applications/misc/usql/default.nix | 6 +- .../pkgs/applications/misc/valent/default.nix | 6 +- .../applications/misc/variety/default.nix | 7 +- .../pkgs/applications/misc/vit/default.nix | 1 + .../applications/misc/wallust/default.nix | 26 + .../applications/misc/watershot/default.nix | 40 + .../pkgs/applications/misc/waybar/default.nix | 34 +- .../applications/misc/waycorner/default.nix | 40 + .../pkgs/applications/misc/wego/default.nix | 6 +- .../applications/misc/whalebird/default.nix | 30 +- .../applications/misc/wordnet/default.nix | 1 - .../applications/misc/workrave/default.nix | 4 +- .../misc/xdgmenumaker/default.nix | 4 +- .../pkgs/applications/misc/xmrig/default.nix | 4 +- .../applications/misc/xmrig/moneroocean.nix | 4 +- .../applications/misc/yewtube/default.nix | 4 +- .../pkgs/applications/misc/zettlr/default.nix | 2 +- .../pkgs/applications/misc/zine/default.nix | 16 +- .../applications/networking/Sylk/default.nix | 2 +- .../networking/adguardian/default.nix | 31 + .../networking/appgate-sdp/default.nix | 4 +- .../networking/avalanchego/default.nix | 6 +- .../networking/breitbandmessung/default.nix | 10 +- .../networking/browsers/brave/default.nix | 23 +- .../networking/browsers/browsh/default.nix | 8 +- .../networking/browsers/chromium/common.nix | 18 +- .../networking/browsers/chromium/default.nix | 3 +- .../browsers/chromium/upstream-info.json | 72 +- .../networking/browsers/elinks/default.nix | 1 + .../browsers/firefox-bin/beta_sources.nix | 810 +- .../browsers/firefox-bin/default.nix | 3 +- .../firefox-bin/devedition_sources.nix | 810 +- .../browsers/firefox-bin/release_sources.nix | 810 +- .../networking/browsers/firefox/common.nix | 21 +- .../browsers/firefox/mobile-config.nix | 113 + .../browsers/firefox/mp4parse-rust-170.patch | 23 + .../networking/browsers/firefox/packages.nix | 50 +- .../networking/browsers/lagrange/default.nix | 4 +- .../networking/browsers/librewolf/src.json | 10 +- .../browsers/microsoft-edge/default.nix | 12 +- .../browsers/mullvad-browser/default.nix | 22 +- .../networking/browsers/nyxt/default.nix | 9 +- .../networking/browsers/opera/default.nix | 4 +- .../networking/browsers/palemoon/bin.nix | 6 +- .../networking/browsers/polypane/default.nix | 6 +- .../browsers/qutebrowser/default.nix | 4 +- .../tor-browser-bundle-bin/default.nix | 24 +- .../tor-browser-bundle-bin/update.nix | 62 + .../networking/browsers/vieb/default.nix | 6 +- .../networking/browsers/vivaldi/default.nix | 6 +- .../browsers/vivaldi/ffmpeg-codecs.nix | 6 +- .../networking/browsers/vivaldi/update.sh | 2 +- .../browsers/yandex-browser/default.nix | 11 +- .../networking/circumflex/default.nix | 6 +- .../networking/cisco-packet-tracer/8.nix | 163 +- .../networking/clash-verge/default.nix | 4 +- .../networking/cloudflared/default.nix | 4 +- .../networking/cluster/acorn/default.nix | 7 +- .../networking/cluster/aiac/default.nix | 4 +- .../cluster/argo-rollouts/default.nix | 4 +- .../networking/cluster/argocd/default.nix | 8 +- .../networking/cluster/arkade/default.nix | 10 +- .../networking/cluster/bosh-cli/default.nix | 4 +- .../networking/cluster/calico/default.nix | 6 +- .../networking/cluster/civo/default.nix | 6 +- .../cluster/cloudfoundry-cli/default.nix | 6 +- .../networking/cluster/clusterctl/default.nix | 8 +- .../networking/cluster/driftctl/default.nix | 8 +- .../cluster/eks-node-viewer/default.nix | 26 +- .../networking/cluster/falcoctl/default.nix | 29 + .../networking/cluster/flink/default.nix | 4 +- .../networking/cluster/fluxcd/default.nix | 8 +- .../networking/cluster/fn-cli/default.nix | 4 +- .../networking/cluster/func/default.nix | 6 +- .../networking/cluster/glooctl/default.nix | 6 +- .../networking/cluster/hadoop/default.nix | 9 +- .../cluster/helm-dashboard/default.nix | 6 +- .../cluster/helm/chart-testing/default.nix | 6 +- .../networking/cluster/helm/default.nix | 6 +- .../cluster/helm/plugins/helm-diff.nix | 4 +- .../cluster/helm/plugins/helm-s3.nix | 13 +- .../networking/cluster/helmfile/default.nix | 7 +- .../networking/cluster/helmsman/default.nix | 1 - .../cluster/hetzner-kube/default.nix | 1 - .../networking/cluster/hubble/default.nix | 5 +- .../networking/cluster/istioctl/default.nix | 7 +- .../networking/cluster/k0sctl/default.nix | 6 +- .../networking/cluster/k3s/1_24/default.nix | 3 + .../networking/cluster/k3s/1_25/default.nix | 3 + .../cluster/k3s/1_26/chart-versions.nix | 8 +- .../networking/cluster/k3s/1_26/versions.nix | 14 + .../cluster/k3s/1_27/chart-versions.nix | 10 + .../networking/cluster/k3s/1_27/versions.nix | 14 + .../k3s/{1_26/default.nix => builder.nix} | 101 +- .../networking/cluster/k3s/default.nix | 16 + .../k3s/{1_26/update.sh => update-script.sh} | 64 +- .../networking/cluster/k8sgpt/default.nix | 32 + .../networking/cluster/kaniko/default.nix | 6 +- .../networking/cluster/karmor/default.nix | 28 +- .../networking/cluster/kbst/default.nix | 8 +- .../networking/cluster/kfilt/default.nix | 31 + .../networking/cluster/kluctl/default.nix | 10 +- .../networking/cluster/kompose/default.nix | 1 - .../networking/cluster/kops/default.nix | 5 +- .../cluster/kube-router/default.nix | 2 +- .../networking/cluster/kube-score/default.nix | 22 +- .../cluster/kubebuilder/default.nix | 6 +- .../networking/cluster/kubecfg/default.nix | 7 +- .../networking/cluster/kubecm/default.nix | 6 +- .../cluster/kubeconform/default.nix | 4 +- .../cluster/kubectl-cnpg/default.nix | 27 + .../cluster/kubectl-example/default.nix | 6 +- .../cluster/kubectl-gadget/default.nix | 6 +- .../cluster/kubectl-images/default.nix | 6 +- .../cluster/kubectl-view-secret/default.nix | 6 +- .../networking/cluster/kubedb-cli/default.nix | 4 +- .../networking/cluster/kubedog/default.nix | 4 +- .../networking/cluster/kubefirst/default.nix | 6 +- .../cluster/kubelogin-oidc/default.nix | 6 +- .../networking/cluster/kubent/default.nix | 2 +- .../networking/cluster/kubergrunt/default.nix | 4 +- .../networking/cluster/kubernetes/default.nix | 4 +- .../networking/cluster/kubeseal/default.nix | 6 +- .../networking/cluster/kubeshark/default.nix | 6 +- .../networking/cluster/kubespy/default.nix | 1 - .../networking/cluster/kubetail/default.nix | 6 +- .../networking/cluster/kyverno/default.nix | 6 +- .../networking/cluster/levant/default.nix | 1 - .../networking/cluster/linkerd/default.nix | 4 +- .../networking/cluster/linkerd/edge.nix | 6 +- .../networking/cluster/luigi/default.nix | 8 +- .../networking/cluster/minikube/default.nix | 1 - .../networking/cluster/nerdctl/default.nix | 6 +- .../networking/cluster/nixops/default.nix | 1 + .../cluster/nixops/poetry-git-overlay.nix | 12 +- .../networking/cluster/nixops/poetry.lock | 277 +- .../networking/cluster/nixops/pyproject.toml | 6 + .../networking/cluster/nomad/default.nix | 22 +- .../networking/cluster/ocm/default.nix | 6 +- .../networking/cluster/octant/desktop.nix | 2 +- .../networking/cluster/odo/default.nix | 5 +- .../networking/cluster/openlens/default.nix | 6 +- .../networking/cluster/pachyderm/default.nix | 4 +- .../networking/cluster/pinniped/default.nix | 6 +- .../networking/cluster/pluto/default.nix | 6 +- .../networking/cluster/pv-migrate/default.nix | 15 +- .../networking/cluster/rke/default.nix | 6 +- .../networking/cluster/rke2/default.nix | 6 +- .../networking/cluster/roxctl/default.nix | 6 +- .../ssm-session-manager-plugin/default.nix | 9 +- .../networking/cluster/starboard/default.nix | 6 +- .../networking/cluster/stern/default.nix | 1 - .../networking/cluster/talosctl/default.nix | 6 +- .../networking/cluster/tanka/default.nix | 1 - .../cluster/tektoncd-cli/default.nix | 4 +- .../networking/cluster/temporal/default.nix | 6 +- .../cluster/terraform-providers/default.nix | 18 +- .../terraform-providers/providers.json | 397 +- .../terraform-providers/update-provider | 8 +- .../networking/cluster/terraform/default.nix | 6 +- .../networking/cluster/terragrunt/default.nix | 6 +- .../networking/cluster/terranix/default.nix | 4 +- .../networking/cluster/terraspace/Gemfile | 2 +- .../cluster/terraspace/Gemfile.lock | 58 +- .../networking/cluster/terraspace/gemset.nix | 108 +- .../networking/cluster/tfautomv/default.nix | 10 +- .../networking/cluster/tfupdate/default.nix | 8 +- .../networking/cluster/tilt/default.nix | 4 +- .../networking/cluster/vcluster/default.nix | 8 +- .../networking/cluster/waypoint/default.nix | 6 +- .../cluster/weave-gitops/default.nix | 37 + .../networking/cluster/werf/default.nix | 6 +- .../networking/cluster/yor/default.nix | 42 + .../networking/cluster/zarf/default.nix | 6 +- .../networking/coreth/default.nix | 10 +- .../applications/networking/deck/default.nix | 39 + .../networking/diswall/default.nix | 6 +- .../networking/dnscontrol/default.nix | 6 +- .../applications/networking/drive/default.nix | 1 - .../networking/dropbox/default.nix | 4 + .../networking/dyndns/dyndnsc/default.nix | 4 +- .../feedreaders/feed2imap-go/default.nix | 12 +- .../feedreaders/gnome-feeds/listparser.nix | 4 +- .../feedreaders/newsboat/default.nix | 6 +- .../feedreaders/rss2email/default.nix | 2 +- .../feedreaders/rssguard/default.nix | 17 +- .../networking/filebrowser/default.nix | 60 + .../networking/firewalld/default.nix | 4 +- .../networking/flexget/default.nix | 27 +- .../networking/freefilesync/default.nix | 4 +- .../networking/gabutdm/default.nix | 6 +- .../networking/gdrive/default.nix | 1 - .../networking/gdrive3}/Cargo.lock | 1609 +- .../networking/gdrive3/default.nix | 37 + .../applications/networking/giara/default.nix | 7 +- .../pkgs/applications/networking/gns3/gui.nix | 1 + .../networking/gopher/geomyidae/default.nix | 6 +- .../gopher/geomyidae/modification-time.patch | 13 - .../applications/networking/gossa/default.nix | 4 +- .../networking/hydroxide/default.nix | 5 +- .../networking/ids/suricata/default.nix | 5 +- .../instant-messengers/alfaview/default.nix | 6 +- .../briar-desktop/default.nix | 4 +- .../instant-messengers/cordless/default.nix | 1 - .../deltachat-desktop/default.nix | 31 +- .../instant-messengers/dino/default.nix | 4 +- .../instant-messengers/discord/darwin.nix | 10 +- .../instant-messengers/discord/default.nix | 14 +- .../instant-messengers/discord/linux.nix | 13 +- .../instant-messengers/discord/openasar.nix | 6 +- .../element/element-desktop.nix | 4 + .../instant-messengers/element/pin.nix | 10 +- .../instant-messengers/ferdium/default.nix | 4 +- .../instant-messengers/fluffychat/default.nix | 10 +- .../instant-messengers/fluffychat/deps.json | 671 +- .../instant-messengers/gajim/default.nix | 9 +- .../instant-messengers/gomuks/default.nix | 1 - .../instant-messengers/hamsket/default.nix | 47 + .../instant-messengers/iamb/default.nix | 6 +- .../instant-messengers/jami/default.nix | 9 +- .../instant-messengers/linphone/default.nix | 4 +- .../instant-messengers/nchat/default.nix | 4 +- .../instant-messengers/nheko/default.nix | 4 +- .../instant-messengers/psi-plus/default.nix | 4 +- .../instant-messengers/qq/default.nix | 8 +- .../revolt-desktop/default.nix | 3 +- .../instant-messengers/signal-cli/default.nix | 4 +- .../signal-desktop/default.nix | 8 +- .../signal-desktop/generic.nix | 2 +- .../signalbackup-tools/default.nix | 6 +- .../instant-messengers/signaldctl/default.nix | 1 - .../instant-messengers/slack/default.nix | 12 +- .../teams-for-linux/default.nix | 32 +- .../instant-messengers/teams/default.nix | 4 + .../telegram/kotatogram-desktop/default.nix | 6 +- .../telegram/kotatogram-desktop/tg_owt.nix | 29 +- .../telegram/telegram-desktop/default.nix | 25 +- .../telegram/telegram-desktop/tg_owt.nix | 4 +- .../telegram/telegram-desktop/update.py | 73 - .../instant-messengers/turses/default.nix | 1 + .../instant-messengers/twitch-tui/default.nix | 6 +- .../instant-messengers/viber/default.nix | 1 + .../instant-messengers/wavebox/default.nix | 65 +- .../instant-messengers/webcord/default.nix | 26 +- .../webcord/webcord-vencord/default.nix | 14 +- .../instant-messengers/webex/default.nix | 6 +- .../whatsapp-for-linux/default.nix | 4 +- .../instant-messengers/zoom-us/default.nix | 14 +- .../networking/insync/default.nix | 60 +- .../networking/ipfs-cluster/default.nix | 1 - .../applications/networking/ipget/default.nix | 1 - .../networking/irc/catgirl/default.nix | 4 +- .../networking/irc/halloy/Cargo.lock | 3888 ++ .../networking/irc/halloy/default.nix | 67 + .../networking/irc/ircdog/default.nix | 6 +- .../networking/irc/thelounge/default.nix | 92 + .../irc/thelounge/packages-path.patch | 13 + .../networking/irc/weechat/default.nix | 10 +- .../irc/weechat/scripts/multiline/default.nix | 6 +- .../applications/networking/iroh/default.nix | 37 + .../networking/jmeter/default.nix | 4 +- .../applications/networking/juju/default.nix | 6 +- .../kubo-migrator/all-migrations.nix | 4 +- .../networking/kubo-migrator/unwrapped.nix | 6 +- .../applications/networking/lieer/default.nix | 19 +- .../networking/localsend/default.nix | 17 +- .../networking/maestral-qt/default.nix | 4 +- .../networking/mailreaders/aerc/default.nix | 19 +- .../mailreaders/aerc/runtime-libexec.patch | 87 + .../mailreaders/aerc/runtime-sharedir.patch | 84 - .../networking/mailreaders/afew/default.nix | 4 +- .../mailreaders/ayatana-webmail/default.nix | 90 + .../mailreaders/betterbird/betterbird.diff | 44 - .../mailreaders/betterbird/default.nix | 79 +- .../networking/mailreaders/caeml/default.nix | 30 + .../mailreaders/electron-mail/default.nix | 4 +- .../evolution/evolution-ews/default.nix | 4 +- .../evolution/evolution/default.nix | 4 +- .../mailreaders/himalaya/default.nix | 22 +- .../mailreaders/mlarchive2maildir/default.nix | 4 +- .../mailreaders/mswatch/default.nix | 38 + .../networking/mailreaders/mutt/default.nix | 5 +- .../mailreaders/mutt/no-build-only-refs.patch | 24 + .../mailreaders/notmuch/default.nix | 30 +- .../mailreaders/notmuch/muchsync.nix | 4 +- .../mailreaders/thunderbird-bin/default.nix | 3 +- .../thunderbird-bin/release_sources.nix | 530 +- .../thunderbird/no-buildconfig-115.patch | 13 + .../mailreaders/thunderbird/packages.nix | 56 +- .../mailreaders/tutanota-desktop/default.nix | 4 +- .../networking/misc/zammad/default.nix | 5 +- .../misc/zammad/fix-sendmail-location.diff | 12 + .../applications/networking/mpop/default.nix | 28 +- .../networking/mullvad-vpn/default.nix | 25 +- .../networking/mullvad-vpn/update.sh | 36 + .../applications/networking/n8n/default.nix | 8 +- .../networking/netmaker/default.nix | 6 +- .../newsreaders/raven-reader/default.nix | 4 +- .../networking/nextcloud-client/default.nix | 7 +- .../applications/networking/nym/Cargo.lock | 6847 +++- .../applications/networking/nym/default.nix | 55 +- .../applications/networking/nym/update.sh | 37 - .../networking/owncloud-client/default.nix | 5 +- .../networking/p2p/gnunet/default.nix | 1 + .../networking/p2p/libutp/3.4.nix | 30 + .../networking/p2p/pyrosimple/default.nix | 63 +- .../networking/p2p/qbittorrent/default.nix | 4 +- .../networking/p2p/rqbit/default.nix | 6 +- .../networking/p2p/transmission/4.nix | 164 + .../networking/p2p/transmission/default.nix | 2 +- .../networking/p2p/tremotesf/default.nix | 52 + .../networking/protonmail-bridge/default.nix | 6 +- .../networking/qv2ray/default.nix | 6 +- .../remote/aws-workspaces/default.nix | 4 +- .../remote/citrix-workspace/generic.nix | 22 +- .../remote/citrix-workspace/sources.nix | 12 + .../networking/remote/remmina/default.nix | 4 +- .../networking/remote/rustdesk/default.nix | 7 +- .../networking/rymdport/default.nix | 6 +- .../networking/seafile-client/default.nix | 47 +- .../networking/seaweedfs/default.nix | 8 +- .../networking/shellhub-agent/default.nix | 10 +- .../networking/sniffers/wireshark/default.nix | 6 +- .../networking/sniffnet/default.nix | 6 +- .../applications/networking/soju/default.nix | 4 +- .../soulseek/nicotine-plus/default.nix | 4 +- .../networking/station/default.nix | 2 +- .../networking/stc-cli/default.nix | 2 +- .../networking/sync/backintime/qt.nix | 2 +- .../networking/sync/desync/default.nix | 17 +- .../networking/sync/onedrive/default.nix | 4 +- .../networking/sync/rclone/default.nix | 24 +- .../networking/sync/unison/default.nix | 8 +- .../networking/syncplay/default.nix | 13 +- .../syncplay/trusted_certificates.patch | 12 + .../networking/syncthing/default.nix | 6 +- .../synology-drive-client/default.nix | 6 +- .../networking/twingate/default.nix | 3 + .../upnp-router-control/default.nix | 24 +- .../applications/networking/wgcf/default.nix | 15 +- .../applications/office/appflowy/default.nix | 4 +- .../office/bookletimposer/default.nix | 4 +- .../applications/office/espanso/default.nix | 16 +- .../pkgs/applications/office/fava/default.nix | 4 +- .../applications/office/gnucash/default.nix | 4 +- .../applications/office/homebank/default.nix | 6 +- .../office/libreoffice/darwin/default.nix | 6 +- .../office/libreoffice/src-fresh/download.nix | 40 +- .../office/libreoffice/src-fresh/primary.nix | 10 +- .../office/libreoffice/src-still/download.nix | 24 +- .../office/libreoffice/src-still/primary.nix | 8 +- .../applications/office/morgen/default.nix | 4 +- .../office/paperless-ngx/default.nix | 62 +- .../office/paperwork/paperwork-gtk.nix | 7 +- .../default.nix | 29 +- .../applications/office/portfolio/default.nix | 4 +- .../applications/office/pympress/default.nix | 5 +- .../applications/office/pyspread/default.nix | 9 +- .../applications/office/qownnotes/default.nix | 18 +- .../applications/office/qpdfview/default.nix | 5 + .../office/roam-research/default.nix | 81 + .../applications/office/timeular/default.nix | 4 +- .../office/treesheets/default.nix | 6 +- .../applications/office/trilium/desktop.nix | 6 +- .../applications/office/trilium/server.nix | 4 +- .../applications/office/tryton/default.nix | 3 +- .../pkgs/applications/office/tusk/default.nix | 2 +- .../applications/office/vnote/default.nix | 27 +- .../pkgs/applications/office/zim/default.nix | 14 + .../radio/abracadabra/default.nix | 50 + .../pkgs/applications/radio/chirp/default.nix | 6 +- .../applications/radio/cloudlog/default.nix | 4 +- .../applications/radio/dablin/default.nix | 4 +- .../pkgs/applications/radio/flamp/default.nix | 41 + .../pkgs/applications/radio/flmsg/default.nix | 4 +- .../pkgs/applications/radio/flrig/default.nix | 4 +- .../applications/radio/fm-tune/default.nix | 32 + .../applications/radio/freedv/default.nix | 6 +- .../applications/radio/gnuradio/default.nix | 4 +- .../radio/gridtracker/default.nix | 9 +- .../applications/radio/rtl-sdr/default.nix | 3 +- .../applications/radio/sdrangel/default.nix | 9 +- .../applications/radio/sdrplay/default.nix | 36 +- .../pkgs/applications/radio/tqsl/default.nix | 6 +- .../science/astronomy/calcmysky/default.nix | 9 +- .../science/astronomy/gprojector/default.nix | 4 +- .../science/astronomy/stellarium/default.nix | 4 +- .../science/biology/MACS2/default.nix | 33 - .../science/biology/angsd/default.nix | 2 +- .../science/biology/aragorn/default.nix | 44 +- .../science/biology/blast/default.nix | 4 +- .../science/biology/bppsuite/default.nix | 1 + .../science/biology/delly/default.nix | 49 +- .../science/biology/diamond/default.nix | 4 +- .../science/biology/dssp/default.nix | 43 +- .../science/biology/fastp/default.nix | 4 +- .../science/biology/igv/default.nix | 4 +- .../science/biology/iqtree/default.nix | 4 +- .../science/biology/kalign/default.nix | 46 + .../science/biology/kallisto/default.nix | 4 +- .../science/biology/last/default.nix | 4 +- .../science/biology/macs2/default.nix | 45 + .../science/biology/mosdepth/default.nix | 4 +- .../science/biology/muscle/default.nix | 2 +- .../science/biology/nest/default.nix | 4 +- .../science/biology/seqtk/default.nix | 4 +- .../science/biology/veryfasttree/default.nix | 8 +- .../chemistry/autodock-vina/default.nix | 57 + .../autodock-vina/python-bindings.nix | 56 + .../science/chemistry/ergoscf/default.nix | 6 + .../science/chemistry/jmol/default.nix | 4 +- .../science/chemistry/octopus/default.nix | 4 +- .../science/chemistry/openmolcas/default.nix | 6 +- .../electronics/dataexplorer/default.nix | 4 +- .../science/electronics/digital/default.nix | 43 +- .../science/electronics/flatcam/default.nix | 10 +- .../science/electronics/gerbv/default.nix | 59 +- .../electronics/horizon-eda/default.nix | 4 +- .../science/electronics/kicad/base.nix | 21 +- .../science/electronics/kicad/versions.nix | 42 +- .../science/electronics/ngspice/default.nix | 36 - .../science/electronics/nvc/default.nix | 9 +- .../science/electronics/openroad/default.nix | 4 +- .../science/electronics/qucs-s/default.nix | 4 +- .../science/electronics/verilator/default.nix | 4 +- .../science/logic/acgtk/default.nix | 2 +- .../science/logic/alt-ergo/default.nix | 6 +- .../science/logic/anders/default.nix | 2 +- ...001-Do-not-download-sources-in-cmake.patch | 62 +- .../science/logic/cbmc/default.nix | 4 +- .../science/logic/coq/default.nix | 3 +- .../science/logic/cryptominisat/default.nix | 4 +- .../science/logic/egglog/Cargo.lock | 1113 + .../science/logic/egglog/default.nix | 31 + .../science/logic/elan/default.nix | 6 +- .../science/logic/klee/default.nix | 15 +- .../science/logic/opensmt/default.nix | 4 +- .../science/logic/sharpsat-td/default.nix | 83 + .../science/logic/tlaplus/default.nix | 5 +- .../science/logic/tlaplus/tlaplus18.nix | 39 + .../applications/science/logic/z3/default.nix | 9 +- .../machine-learning/openbugs/default.nix | 22 + .../machine-learning/streamlit/default.nix | 16 +- .../applications/science/math/R/default.nix | 6 +- .../science/math/caffe/default.nix | 2 +- .../science/math/calc/default.nix | 12 +- .../science/math/eigenmath/default.nix | 6 +- .../science/math/geogebra/default.nix | 12 +- .../science/math/geogebra/geogebra6.nix | 10 +- .../science/math/mathematica/10.nix | 3 +- .../science/math/mathematica/11.nix | 3 +- .../science/math/mathematica/9.nix | 3 +- .../science/math/mathematica/versions.nix | 14 + .../science/math/pari/default.nix | 14 +- .../science/math/polymake/default.nix | 4 +- .../science/math/qalculate-gtk/default.nix | 4 +- .../science/math/qalculate-qt/default.nix | 8 +- .../science/math/sage/sage-src.nix | 29 +- .../science/math/singular/default.nix | 4 +- .../science/math/wolfram-engine/default.nix | 6 +- .../science/math/wolfram-engine/l10ns.nix | 7 + .../science/misc/boinc/default.nix | 4 +- .../science/misc/colmap/default.nix | 4 +- .../science/misc/gephi/default.nix | 48 +- .../misc/gplates/boost-placeholders.patch | 75 + .../science/misc/gplates/default.nix | 4 + .../misc/openmodelica/omedit/default.nix | 3 +- .../science/misc/openmvg/default.nix | 1 - .../pkgs/applications/science/misc/root/5.nix | 3 + .../science/misc/simgrid/default.nix | 4 +- .../science/misc/snakemake/default.nix | 4 +- .../molecular-dynamics/lammps/default.nix | 115 +- .../science/physics/crystfel/default.nix | 2 +- .../science/robotics/mavproxy/default.nix | 4 +- .../applications/search/recoll/default.nix | 84 +- .../applications/search/xlsxgrep/default.nix | 4 +- .../applications/system/glances/default.nix | 4 +- .../terminal-emulators/alacritty/default.nix | 10 +- .../blackbox-terminal/default.nix | 4 +- .../terminal-emulators/contour/default.nix | 4 +- ...h-detection-optional-and-fix-targets.patch | 86 + .../terminal-emulators/ctx/default.nix | 32 +- .../terminal-emulators/kitty/default.nix | 34 +- .../terminal-emulators/kitty/themes.nix | 6 +- .../terminal-emulators/rio/default.nix | 85 + .../terminal-emulators/roxterm/default.nix | 2 +- .../rxvt-unicode/default.nix | 8 +- .../terminal-emulators/sakura/default.nix | 26 +- .../terminal-emulators/tym/default.nix | 2 +- .../terminal-emulators/wezterm/Cargo.lock | 1543 +- .../terminal-emulators/wezterm/default.nix | 7 +- .../terminal-emulators/xterm/default.nix | 4 +- .../version-management/bcompare/default.nix | 6 +- .../version-management/bumpver/default.nix | 6 +- .../version-management/commitizen/default.nix | 86 +- .../cvs-fast-export/default.nix | 4 +- .../version-management/delta/default.nix | 41 +- .../diff-so-fancy/default.nix | 4 +- .../version-management/dvc/default.nix | 6 +- .../version-management/forgejo/default.nix | 17 +- .../version-management/fossil/default.nix | 10 +- .../version-management/gerrit/default.nix | 4 +- .../version-management/gex/default.nix | 14 +- .../version-management/gfold/default.nix | 6 +- .../version-management/gh/default.nix | 6 +- .../version-management/ghorg/default.nix | 4 +- .../git-aggregator/default.nix | 4 +- .../git-big-picture/default.nix | 10 +- .../git-codereview/default.nix | 6 +- .../git-credential-keepassxc/default.nix | 6 +- .../git-credential-manager/default.nix | 50 + .../git-credential-manager/deps.nix | 86 + .../git-credential-manager/update.sh | 23 + .../git-credential-oauth/default.nix | 29 + .../version-management/git-graph/default.nix | 27 + .../git-machete/default.nix | 4 +- .../git-quick-stats/default.nix | 4 +- .../git-relevant-history/default.nix | 24 + .../version-management/git-repo/default.nix | 4 +- .../version-management/git-town/default.nix | 17 +- .../version-management/git-up/default.nix | 11 +- .../version-management/git-vendor/default.nix | 2 +- .../version-management/git/default.nix | 4 +- .../version-management/gitea/default.nix | 9 +- .../version-management/gitkraken/default.nix | 8 +- ...> Remove-unsupported-database-names.patch} | 50 +- .../version-management/gitlab/data.json | 17 +- .../version-management/gitlab/default.nix | 6 +- .../version-management/gitlab/gitaly/Gemfile | 43 - .../gitlab/gitaly/Gemfile.lock | 207 - .../gitlab/gitaly/default.nix | 43 +- .../gitlab/gitaly/gemset.nix | 827 - ...Disable-inmemory-storage-driver-test.patch | 38 + .../gitlab-container-registry/default.nix | 34 + .../gitlab-elasticsearch-indexer/default.nix | 24 + .../gitlab/gitlab-pages/default.nix | 8 +- .../gitlab/gitlab-shell/default.nix | 8 +- .../gitlab/gitlab-workhorse/default.nix | 6 +- .../gitlab/remove-hardcoded-locations.patch | 20 +- .../version-management/gitlab/rubyEnv/Gemfile | 88 +- .../gitlab/rubyEnv/Gemfile.lock | 247 +- .../gitlab/rubyEnv/gemset.nix | 382 +- .../version-management/gitlab/update.py | 323 +- .../version-management/gitoxide/default.nix | 6 +- .../version-management/gitsign/default.nix | 6 +- .../version-management/gitty/default.nix | 1 - .../version-management/gitui/default.nix | 7 +- .../version-management/glab/default.nix | 4 +- .../version-management/gomp/default.nix | 5 +- .../version-management/got/default.nix | 4 +- .../version-management/gql/default.nix | 44 + .../version-management/gut/default.nix | 8 +- .../version-management/josh/default.nix | 19 +- .../version-management/lefthook/default.nix | 6 +- .../version-management/legit-web/default.nix | 33 + .../version-management/legit/default.nix | 3 +- .../version-management/mercurial/default.nix | 6 +- .../version-management/monotone/default.nix | 5 + .../version-management/nbstripout/default.nix | 3 +- .../version-management/pijul/default.nix | 6 +- .../version-management/redmine/Gemfile | 70 +- .../version-management/redmine/Gemfile.lock | 202 +- .../version-management/redmine/gemset.nix | 184 +- .../version-management/sapling/Cargo.lock | 597 +- .../version-management/sapling/default.nix | 12 +- .../version-management/sapling/deps.json | 4 +- .../version-management/srvc/default.nix | 6 +- ...ix-use-canonical-Message-ID-spelling.patch | 249 + .../version-management/stgit/default.nix | 55 +- .../version-management/tig/default.nix | 2 +- .../pkgs/applications/video/adl/default.nix | 2 +- .../applications/video/ani-cli/default.nix | 4 +- .../video/anime-downloader/default.nix | 2 +- .../applications/video/bilibili/default.nix | 4 +- .../applications/video/bombono/default.nix | 7 +- .../pkgs/applications/video/catt/default.nix | 1 + .../video/crunchy-cli/default.nix | 44 + .../video/cutecapture/default.nix | 47 + .../video/davinci-resolve/default.nix | 134 +- .../applications/video/dmlive/default.nix | 8 +- .../applications/video/filebot/default.nix | 18 +- .../applications/video/flowblade/default.nix | 5 +- .../applications/video/frigate/default.nix | 14 +- .../applications/video/glaxnimate/default.nix | 2 +- .../pkgs/applications/video/go2tv/default.nix | 4 +- .../pkgs/applications/video/gpac/default.nix | 25 +- .../applications/video/handbrake/default.nix | 7 +- .../applications/video/haruna/default.nix | 4 +- .../applications/video/hypnotix/default.nix | 4 +- .../pkgs/applications/video/iina/default.nix | 9 +- .../video/jellyfin-media-player/default.nix | 2 +- .../kodi/addons/arteplussept/default.nix | 4 +- .../video/kodi/addons/chardet/default.nix | 4 +- .../addons/inputstream-adaptive/default.nix | 8 +- .../kodi/addons/inputstreamhelper/default.nix | 4 +- .../video/kodi/addons/joystick/default.nix | 4 +- .../kodi/addons/libretro-2048/default.nix | 31 + .../kodi/addons/libretro-fuse/default.nix | 31 + .../kodi/addons/pvr-iptvsimple/default.nix | 4 +- .../video/kodi/addons/requests/default.nix | 4 +- .../kodi/addons/steam-library/default.nix | 4 +- .../video/kodi/addons/urllib3/default.nix | 4 +- .../video/kodi/addons/vfs-rar/default.nix | 22 + .../applications/video/kodi/unwrapped.nix | 6 +- .../video/losslesscut-bin/build-from-dmg.nix | 2 +- .../video/losslesscut-bin/default.nix | 10 +- .../applications/video/lxdvdrip/default.nix | 8 +- .../applications/video/makemkv/default.nix | 6 +- .../pkgs/applications/video/manim/default.nix | 41 +- .../video/manim/failing_tests.nix | 32 +- .../video/media-downloader/default.nix | 6 +- .../applications/video/memento/default.nix | 63 + .../applications/video/mirakurun/default.nix | 98 +- .../video/mirakurun/fix-musl-detection.patch | 29 + .../applications/video/mirakurun/mirakurun.1 | 44 + .../applications/video/mirakurun/package.json | 129 - .../applications/video/mirakurun/update.nix | 51 - .../applications/video/mirakurun/yarn.lock | 3232 -- .../applications/video/mirakurun/yarn.nix | 3765 -- .../applications/video/mkvtoolnix/default.nix | 5 +- .../mpv-shim-default-shaders/default.nix | 29 + .../video/mpv/scripts/default.nix | 30 + .../applications/video/mpv/scripts/mpris.nix | 1 + .../video/mpv/scripts/occivink.nix | 53 + .../video/mpv/scripts/quality-menu.nix | 38 + .../video/mpv/scripts/thumbfast.nix | 8 +- .../video/mpv/scripts/youtube-quality.nix | 39 - .../pkgs/applications/video/mpv/wrapper.nix | 17 + .../pkgs/applications/video/natron/config.pri | 20 - .../applications/video/natron/default.nix | 153 +- ...-plugin-destination-as-relative-path.patch | 47 +- .../applications/video/obs-studio/default.nix | 26 +- .../advanced-scene-switcher/default.nix | 19 +- .../video/obs-studio/plugins/default.nix | 22 +- .../plugins/obs-gradient-source.nix | 37 + .../plugins/obs-move-transition.nix | 4 +- .../obs-studio/plugins/obs-mute-filter.nix | 36 + .../plugins/obs-pipewire-audio-capture.nix | 2 +- .../plugins/obs-rgb-levels-filter.nix | 33 + .../obs-studio/plugins/obs-scale-to-sound.nix | 40 + .../obs-studio/plugins/obs-source-clone.nix | 4 +- .../plugins/obs-source-switcher.nix | 37 + .../plugins/obs-teleport/default.nix | 6 +- .../obs-studio/plugins/obs-text-pthread.nix | 39 + .../plugins/obs-transition-table.nix | 40 + .../obs-studio/plugins/obs-tuna/default.nix | 46 + .../obs-studio/plugins/obs-vaapi/default.nix | 5 +- .../plugins/obs-vertical-canvas.nix | 42 + .../obs-studio/plugins/obs-vkcapture.nix | 13 +- .../obs-studio/plugins/obs-websocket.nix | 41 + .../obs-studio/plugins/waveform/default.nix | 43 + .../video/plex-mpv-shim/default.nix | 11 +- .../pkgs/applications/video/pyca/default.nix | 11 +- .../video/showmethekey/default.nix | 4 +- .../applications/video/smplayer/default.nix | 23 +- .../srt-live-server/add-ctime-include.patch | 11 + .../video/srt-live-server/default.nix | 3 + .../applications/video/streamlink/default.nix | 8 +- .../video/subtitleedit/default.nix | 4 +- .../applications/video/tanidvr/default.nix | 19 + .../applications/video/ustreamer/default.nix | 11 +- .../video/vdr/softhddevice/default.nix | 4 +- .../applications/video/vivictpp/default.nix | 73 + .../pkgs/applications/video/vlc/default.nix | 110 +- .../applications/video/webcamoid/default.nix | 4 +- .../video/youtube-tui/default.nix | 6 +- .../virtualization/colima/default.nix | 6 +- .../virtualization/containerd/default.nix | 4 +- .../virtualization/crosvm/default.nix | 20 +- .../virtualization/distrobox/default.nix | 6 +- .../virtualization/docker/buildx.nix | 6 +- .../virtualization/docker/compose.nix | 6 +- .../virtualization/ecs-agent/default.nix | 4 +- .../virtualization/flintlock/default.nix | 6 +- .../applications/virtualization/lima/bin.nix | 10 +- .../virtualization/lima/default.nix | 6 +- .../virtualization/lkl/default.nix | 4 + .../virtualization/nixpacks/default.nix | 6 +- .../virtualization/open-vm-tools/default.nix | 4 +- .../virtualization/podman/default.nix | 4 +- .../virtualization/pods/Cargo.lock | 1057 +- .../virtualization/pods/default.nix | 7 +- .../virtualization/qemu/default.nix | 4 +- .../virtualization/singularity/generic.nix | 3 + .../virtualization/spice-vdagent/default.nix | 7 +- .../virtualization/stratovirt/default.nix | 45 + .../micro_vm-allow-SYS_clock_gettime.patch | 25 + .../virtualization/tart/default.nix | 46 + .../virtualization/umoci/default.nix | 1 - .../virtualization/virter/default.nix | 36 + .../virtualization/virtualbox/default.nix | 16 +- .../virtualization/virtualbox/extpack.nix | 4 +- .../virtualization/virtualbox/fix-sdl.patch | 72 + .../virtualbox/guest-additions/default.nix | 2 +- .../virtualization/virtualbox/hardened.patch | 58 +- .../virtualization/xen/generic.nix | 2 +- .../virtualization/youki/default.nix | 6 +- .../window-managers/afterstep/default.nix | 2 +- .../window-managers/cage/default.nix | 4 + .../window-managers/cage/wlroots-0_14.patch | 36 - .../window-managers/cardboard/default.nix | 29 +- .../window-managers/cwm/default.nix | 6 +- .../window-managers/dk/default.nix | 45 + .../window-managers/eww/Cargo.lock.patch | 11 - .../window-managers/eww/default.nix | 18 +- .../applications/window-managers/fvwm/3.nix | 4 +- .../window-managers/gamescope/default.nix | 44 +- .../hyprwm/hyprland/default.nix | 6 +- .../hyprwm/hyprland/wlroots.nix | 4 +- .../hyprwm/hyprpaper/default.nix | 4 +- .../hyprwm/hyprpicker/default.nix | 4 +- .../xdg-desktop-portal-hyprland/source.nix | 4 +- .../window-managers/i3/altlayout.nix | 4 +- .../window-managers/i3/status-rust.nix | 6 +- .../window-managers/icewm/default.nix | 4 +- .../window-managers/katriawm/default.nix | 4 +- .../window-managers/labwc/default.nix | 4 +- .../leftwm/0001-patch-version.patch | 22 - .../window-managers/leftwm/default.nix | 11 +- .../window-managers/phosh/default.nix | 4 +- .../window-managers/sawfish/default.nix | 25 +- .../window-managers/sway/default.nix | 48 +- .../applications/window-managers/sway/fx.nix | 4 +- .../sway/swayest-workstyle/default.nix | 6 +- .../window-managers/sway/wrapper.nix | 2 +- .../window-managers/weston/default.nix | 75 +- .../build-support/binary-cache/default.nix | 4 +- .../bintools-wrapper/add-hardening.sh | 10 +- .../bintools-wrapper/default.nix | 4 +- .../build-fhsenv-bubblewrap/buildFHSEnv.nix | 70 +- .../pkgs/build-support/buildenv/default.nix | 3 +- .../build-support/cc-wrapper/add-hardening.sh | 2 +- .../pkgs/build-support/cc-wrapper/default.nix | 30 +- .../build-support/cc-wrapper/setup-hook.sh | 2 +- .../dart/build-dart-application/default.nix | 4 +- .../build-dotnet-global-tool/default.nix | 48 + .../dotnet/build-dotnet-module/default.nix | 36 +- .../build-dotnet-module/hooks/default.nix | 18 +- .../hooks/dotnet-build-hook.sh | 9 +- .../hooks/dotnet-check-hook.sh | 6 + .../hooks/dotnet-configure-hook.sh | 31 +- .../hooks/dotnet-fixup-hook.sh | 13 +- .../hooks/dotnet-install-hook.sh | 29 +- .../dotnet/make-nuget-deps/default.nix | 6 +- .../dotnet/make-nuget-source/default.nix | 10 +- .../dotnet/nuget-to-nix/nuget-to-nix.sh | 1 + .../pkgs/build-support/emacs/buffer.nix | 4 +- .../pkgs/build-support/emacs/generic.nix | 17 +- .../pkgs/build-support/emacs/wrapper.nix | 41 +- .../fetchfirefoxaddon/default.nix | 24 +- .../pkgs/build-support/fetchgit/default.nix | 10 +- .../build-support/fetchgit/nix-prefetch-git | 26 +- .../build-support/fetchgithub/default.nix | 2 +- .../build-support/fetchsourcehut/default.nix | 6 +- .../pkgs/build-support/fetchurl/mirrors.nix | 9 +- .../nixpkgs/pkgs/build-support/go/module.nix | 143 +- .../nixpkgs/pkgs/build-support/go/package.nix | 11 +- .../kernel/compress-firmware-xz.nix | 8 +- .../kernel/make-initrd-ng/Cargo.lock | 23 + .../kernel/make-initrd-ng/Cargo.toml | 1 + .../kernel/make-initrd-ng/src/main.rs | 67 +- .../build-support/nix-gitignore/default.nix | 2 +- .../node/build-npm-package/default.nix | 6 +- .../build-npm-package/hooks/npm-build-hook.sh | 2 +- .../hooks/npm-install-hook.sh | 11 +- .../node/fetch-npm-deps/Cargo.lock | 929 +- .../node/fetch-npm-deps/Cargo.toml | 24 +- .../node/fetch-npm-deps/default.nix | 14 +- .../node/fetch-npm-deps/src/cacache.rs | 5 +- .../node/fetch-npm-deps/src/main.rs | 15 + .../node/fetch-npm-deps/src/parse/mod.rs | 12 +- .../node/fetch-npm-deps/src/util.rs | 45 + .../node/fetch-yarn-deps/common.js | 17 + .../node/fetch-yarn-deps/default.nix | 5 +- .../node/fetch-yarn-deps/fixup.js | 74 + .../node/fetch-yarn-deps/index.js | 15 +- .../pkg-config-wrapper/default.nix | 4 +- .../build-support/release/binary-tarball.nix | 2 +- .../build-support/release/debian-build.nix | 2 +- .../pkgs/build-support/release/nix-build.nix | 2 +- .../pkgs/build-support/release/rpm-build.nix | 2 +- .../remove-references-to.sh | 2 +- .../rust/build-rust-crate/default.nix | 4 +- .../build-rust-crate/test/rcgen-crates.nix | 4 +- .../rust/build-rust-package/default.nix | 3 +- .../rust/fetch-cargo-tarball/default.nix | 4 - .../pkgs/build-support/rust/fetchcrate.nix | 7 +- .../rust/hooks/cargo-build-hook.sh | 4 + .../build-support/rust/import-cargo-lock.nix | 2 +- .../rust/test/import-cargo-lock/default.nix | 4 +- .../test/import-cargo-lock/maturin/Cargo.lock | 682 - .../import-cargo-lock/maturin/default.nix | 43 - .../setup-hooks/auto-patchelf.py | 22 +- .../build-support/setup-hooks/make-wrapper.sh | 6 +- .../pkgs/build-support/setup-hooks/role.bash | 6 +- .../pkgs/build-support/src-only/default.nix | 3 +- .../pkgs/build-support/testers/default.nix | 4 +- .../trivial-builders/default.nix | 20 +- .../nixpkgs/pkgs/build-support/vm/default.nix | 8 +- .../pkgs/build-support/writers/default.nix | 4 +- .../documentation/gnome-user-docs/default.nix | 4 +- .../documentation/scheme-manpages/default.nix | 10 +- .../pkgs/data/fonts/fira-code/symbols.nix | 2 +- .../pkgs/data/fonts/hasklig/default.nix | 2 +- .../data/fonts/intel-one-mono/default.nix | 39 + .../nixpkgs/pkgs/data/fonts/iosevka/bin.nix | 2 +- .../pkgs/data/fonts/iosevka/default.nix | 6 +- .../pkgs/data/fonts/iosevka/variants.nix | 184 +- .../pkgs/data/fonts/julia-mono/default.nix | 4 +- .../pkgs/data/fonts/kode-mono/default.nix | 28 + .../fonts/league-of-moveable-type/default.nix | 2 +- .../data/fonts/linearicons-free/default.nix | 30 + .../pkgs/data/fonts/lxgw-neoxihei/default.nix | 4 +- .../pkgs/data/fonts/nerdfonts/shas.nix | 108 +- .../pkgs/data/fonts/nerdfonts/version.nix | 2 +- .../pkgs/data/fonts/noto-fonts/default.nix | 8 +- .../pkgs/data/fonts/raleway/default.nix | 2 +- .../pkgs/data/fonts/sarasa-gothic/default.nix | 4 +- .../pkgs/data/fonts/spleen/default.nix | 4 +- .../pkgs/data/fonts/unifont/default.nix | 6 +- .../pkgs/data/fonts/unifont_upper/default.nix | 4 +- .../pkgs/data/fonts/unscii/default.nix | 8 +- .../data/fonts/whatsapp-emoji/default.nix | 4 +- .../pkgs/data/icons/apple-cursor/default.nix | 2 +- .../data/icons/colloid-icon-theme/default.nix | 4 +- .../data/icons/fluent-icon-theme/default.nix | 4 +- .../data/icons/graphite-cursors/default.nix | 32 + .../data/icons/kora-icon-theme/default.nix | 4 +- .../data/icons/nordzy-icon-theme/default.nix | 4 +- .../icons/numix-icon-theme-circle/default.nix | 4 +- .../icons/numix-icon-theme-square/default.nix | 4 +- .../data/icons/papirus-icon-theme/default.nix | 4 +- .../pkgs/data/icons/papirus-nord/default.nix | 75 + .../data/icons/qogir-icon-theme/default.nix | 4 +- .../icons/tela-circle-icon-theme/default.nix | 4 +- .../data/icons/tela-icon-theme/default.nix | 7 +- .../data/icons/vimix-icon-theme/default.nix | 4 +- .../icons/whitesur-icon-theme/default.nix | 4 +- .../nixpkgs/pkgs/data/misc/cacert/default.nix | 4 +- .../pkgs/data/misc/clash-geoip/default.nix | 4 +- .../data/misc/dbip-country-lite/default.nix | 36 + .../pkgs/data/misc/ddccontrol-db/default.nix | 4 +- .../nixpkgs/pkgs/data/misc/hackage/pin.json | 8 +- .../pkgs/data/misc/sing-geoip/default.nix | 23 +- .../misc/spdx-license-list-data/default.nix | 4 +- .../v2ray-domain-list-community/default.nix | 6 +- .../pkgs/data/misc/v2ray-geoip/default.nix | 73 +- .../pkgs/data/misc/v2ray-geoip/update.sh | 6 - .../data/themes/base16-schemes/default.nix | 6 +- .../data/themes/catppuccin-gtk/default.nix | 4 +- .../pkgs/data/themes/catppuccin-kde/color.sh | 61 + .../data/themes/catppuccin-kde/default.nix | 15 +- .../data/themes/catppuccin-kde/install.sh | 263 - .../themes/catppuccin-kvantum/default.nix | 2 +- .../pkgs/data/themes/chili-sddm/default.nix | 61 + .../data/themes/flat-remix-gnome/default.nix | 8 +- .../data/themes/fluent-gtk-theme/default.nix | 5 +- .../kde-rounded-corners/default.nix | 4 +- .../pkgs/data/themes/mojave/default.nix | 25 +- .../pkgs/data/themes/orchis-theme/default.nix | 4 +- .../pkgs/data/themes/qogir/default.nix | 4 +- .../data/themes/rose-pine-gtk/default.nix | 12 +- .../pkgs/data/themes/vimix/default.nix | 4 +- ...cated-sys_errlist-and-replace-with-A.patch | 336 - .../pkgs/desktops/cdesktopenv/2.3.2.patch | 106 - .../pkgs/desktops/cdesktopenv/default.nix | 121 +- .../pkgs/desktops/cinnamon/bulky/default.nix | 4 +- .../cinnamon/cinnamon-common/default.nix | 38 +- .../cinnamon/cinnamon-common/libdir.patch | 1 + .../cinnamon-control-center/default.nix | 4 +- .../cinnamon/cinnamon-desktop/default.nix | 4 +- .../cinnamon/cinnamon-menus/default.nix | 4 +- .../cinnamon/cinnamon-screensaver/default.nix | 6 +- .../cinnamon/cinnamon-session/default.nix | 4 +- .../cinnamon-settings-daemon/default.nix | 5 +- .../use-sane-install-dir.patch | 27 - .../cinnamon-translations/default.nix | 4 +- .../pkgs/desktops/cinnamon/cjs/default.nix | 8 +- .../pkgs/desktops/cinnamon/default.nix | 4 + .../folder-color-switcher/default.nix | 22 +- .../cinnamon/mint-artwork/default.nix | 6 +- .../cinnamon/mint-cursor-themes/default.nix | 6 +- .../cinnamon/mint-l-icons/default.nix | 4 +- .../cinnamon/mint-l-theme/default.nix | 7 +- .../desktops/cinnamon/mint-themes/default.nix | 4 +- .../cinnamon/mint-x-icons/default.nix | 4 +- .../cinnamon/mint-y-icons/default.nix | 4 +- .../pkgs/desktops/cinnamon/muffin/default.nix | 4 +- .../nemo-extensions/nemo-emblems/default.nix | 33 + .../nemo-fileroller/default.nix | 12 +- .../nemo-extensions/nemo-python/default.nix | 12 +- .../cinnamon/nemo-extensions/srcs.nix | 15 + .../pkgs/desktops/cinnamon/nemo/default.nix | 11 +- .../pkgs/desktops/cinnamon/pix/default.nix | 105 +- .../desktops/cinnamon/warpinator/default.nix | 9 +- .../pkgs/desktops/cinnamon/xapp/default.nix | 21 +- .../desktops/cinnamon/xreader/default.nix | 8 +- .../desktops/cinnamon/xviewer/default.nix | 4 +- .../deepin/apps/deepin-calculator/default.nix | 4 +- .../deepin/apps/deepin-camera/default.nix | 4 +- .../deepin/apps/deepin-compressor/default.nix | 4 +- .../deepin/apps/deepin-editor/default.nix | 4 +- .../apps/deepin-image-viewer/default.nix | 4 +- .../apps/deepin-movie-reborn/default.nix | 4 +- .../deepin/apps/deepin-music/default.nix | 11 +- .../deepin/core/dde-file-manager/default.nix | 4 +- .../deepin/library/util-dfm/default.nix | 4 +- .../tools/dde-device-formatter/default.nix | 20 +- .../nixpkgs/pkgs/desktops/gnome-2/default.nix | 2 +- .../gnome/apps/gnome-boxes/default.nix | 4 +- .../gnome/apps/gnome-maps/default.nix | 4 +- .../pkgs/desktops/gnome/core/eog/default.nix | 4 +- .../desktops/gnome/core/epiphany/default.nix | 4 +- .../desktops/gnome/core/evince/default.nix | 6 +- .../core/evolution-data-server/default.nix | 4 +- .../hardcode-gsettings.patch | 2 +- .../core/gnome-control-center/default.nix | 4 +- .../core/gnome-remote-desktop/default.nix | 4 +- .../gnome/core/gnome-shell/default.nix | 4 +- .../gnome/core/gnome-software/default.nix | 4 +- .../desktops/gnome/core/mutter/43/default.nix | 6 +- .../desktops/gnome/core/mutter/default.nix | 6 +- .../desktops/gnome/core/nautilus/default.nix | 4 +- .../desktops/gnome/core/sushi/default.nix | 4 +- .../desktops/gnome/core/zenity/default.nix | 33 +- .../nixpkgs/pkgs/desktops/gnome/default.nix | 3 +- .../gnome/extensions/buildGnomeExtension.nix | 9 +- .../desktops/gnome/extensions/collisions.json | 28 +- .../gnome/extensions/dash-to-dock/default.nix | 47 - .../gnome/extensions/extensionOverrides.nix | 18 + .../gtk4-ding_at_smedius.gitlab.com.patch | 109 + .../gnome/extensions/extensionRenames.nix | 33 +- .../desktops/gnome/extensions/extensions.json | 376 +- .../gnome/extensions/manuallyPackaged.nix | 1 - .../gnome/extensions/paperwm/default.nix | 9 +- .../gnome/extensions/pop-shell/default.nix | 4 +- .../gnome/games/gnome-mahjongg/default.nix | 26 +- .../desktops/gnome/misc/geary/default.nix | 18 +- .../gnome/misc/gnome-flashback/default.nix | 2 +- .../gnustep/make/gsmakeDerivation.nix | 2 +- .../nixpkgs/pkgs/desktops/lomiri/default.nix | 17 + .../development/cmake-extras/default.nix | 49 + .../lomiri/development/deviceinfo/default.nix | 68 + .../development/gmenuharness/default.nix | 96 + .../lomiri/development/lomiri-api/default.nix | 106 + .../pantheon/apps/appcenter/default.nix | 15 +- .../disable-packagekit-backend.patch | 167 - .../apps/elementary-calculator/default.nix | 16 +- .../apps/elementary-camera/default.nix | 4 +- .../apps/elementary-files/default.nix | 4 +- .../apps/elementary-music/default.nix | 4 +- .../apps/elementary-screenshot/default.nix | 4 +- .../apps/elementary-videos/default.nix | 4 +- .../pantheon/apps/sideload/default.nix | 4 +- .../applications/default.nix | 6 +- .../switchboard-plugs/display/default.nix | 4 +- .../onlineaccounts/default.nix | 4 +- .../security-privacy/default.nix | 4 +- .../pkgs/desktops/pantheon/default.nix | 6 +- .../elementary-default-settings/default.nix | 4 +- .../pantheon/desktop/gala/default.nix | 12 +- .../gnome-bluetooth-contract/default.nix | 55 - .../gnome-bluetooth-contract/exec-path.patch | 11 - .../bluetooth/default.nix | 4 +- .../nightlight/default.nix | 4 +- .../notifications/default.nix | 4 +- .../wingpanel-indicators/sound/default.nix | 4 +- .../desktops/pantheon/granite/7/default.nix | 6 +- .../elementary-capnet-assist/default.nix | 4 +- .../elementary-notifications/default.nix | 4 +- .../xdg-desktop-portal-pantheon/default.nix | 4 +- .../nixpkgs/pkgs/desktops/plasma-5/fetch.sh | 2 +- .../pkgs/desktops/plasma-5/flatpak-kcm.nix | 2 + .../plasma-5/kwayland-integration.nix | 5 + .../pkgs/desktops/plasma-5/kwin/default.nix | 3 +- .../plasma-5/plasma-browser-integration.nix | 5 + .../plasma-5/plasma-integration/default.nix | 5 + .../pkgs/desktops/plasma-5/plasma-sdk.nix | 2 +- .../plasma-workspace/0001-startkde.patch | 54 +- .../nixpkgs/pkgs/desktops/plasma-5/srcs.nix | 472 +- .../xfce4-panel-profiles/default.nix | 6 +- .../xfce4-screensaver/default.nix | 8 +- .../desktops/xfce/core/tumbler/default.nix | 2 + .../xfce/core/xfce4-power-manager/default.nix | 33 +- .../xfce/core/xfce4-session/default.nix | 30 +- .../xfce/core/xfce4-settings/default.nix | 4 +- .../xfce4-pulseaudio-plugin/default.nix | 4 +- .../xfce4-verve-plugin/default.nix | 19 +- .../pkgs/development/beam-modules/default.nix | 5 + .../beam-modules/elixir-ls/default.nix | 6 +- .../beam-modules/erlang-ls/default.nix | 4 +- .../beam-modules/erlang-ls/rebar-deps.nix | 4 +- .../beam-modules/fetch-mix-deps.nix | 13 +- .../development/compilers/abcl/default.nix | 6 +- .../compilers/adoptopenjdk-bin/sources.json | 360 +- .../compilers/assemblyscript/default.nix | 25 + .../compilers/ballerina/default.nix | 4 +- .../development/compilers/bfc/default.nix | 44 + .../compilers/binaryen/default.nix | 4 +- .../compilers/blueprint/default.nix | 39 +- .../development/compilers/cairo/default.nix | 40 + .../development/compilers/chicken/5/deps.toml | 110 +- .../compilers/chicken/5/overrides.nix | 72 +- .../development/compilers/circt/default.nix | 6 +- .../development/compilers/clasp/default.nix | 2 +- .../development/compilers/codon/default.nix | 22 +- .../compilers/computecpp/default.nix | 4 +- .../development/compilers/crystal/default.nix | 21 +- .../compilers/cudatoolkit/common.nix | 34 +- .../cudatoolkit/redist/extension.nix | 7 +- .../redist/manifests/redistrib_12.2.0.json | 1151 + .../compilers/cudatoolkit/versions.toml | 6 + .../development/compilers/dart/sources.nix | 12 +- .../development/compilers/djgpp/default.nix | 97 + .../development/compilers/djgpp/sources.nix | 81 + .../compilers/dotnet/build-dotnet.nix | 2 +- .../development/compilers/dotnet/default.nix | 4 +- .../development/compilers/dotnet/update.sh | 8 + .../compilers/dotnet/versions/6.0.nix | 260 +- .../compilers/dotnet/versions/7.0.nix | 274 +- .../compilers/dotnet/versions/8.0.nix | 274 +- ...-instead-of-.so-when-building-static.patch | 90 - .../development/compilers/dtc/default.nix | 88 +- .../compilers/dtc/python-3.10.patch | 28 - .../development/compilers/edk2/default.nix | 4 +- .../compilers/elm/packages/elm-test-rs.nix | 1 - ...-emulate-clang-sysroot-include-logic.patch | 14 +- .../compilers/emscripten/default.nix | 41 +- .../development/compilers/erg/default.nix | 65 + .../compilers/factor-lang/factor98.nix | 6 + .../development/compilers/fasmg/default.nix | 2 +- .../development/compilers/fbc/default.nix | 32 +- .../development/compilers/fleng/default.nix | 25 + .../development/compilers/flix/default.nix | 4 +- .../development/compilers/flutter/default.nix | 91 +- .../flutter/engine-artifacts/default.nix | 80 +- .../flutter/engine-artifacts/hashes.nix | 307 +- .../development/compilers/flutter/flutter.nix | 76 +- .../patches/flutter2/copy-without-perms.patch | 17 - .../flutter2/disable-auto-update.patch | 49 - .../flutter/patches/flutter2/git-dir.patch | 80 - .../flutter/patches/flutter2/move-cache.patch | 37 - .../flutter/patches/flutter3/move-cache.patch | 16 + .../development/compilers/flutter/wrapper.nix | 86 +- .../development/compilers/gcc/10/default.nix | 40 +- .../development/compilers/gcc/11/default.nix | 48 +- .../development/compilers/gcc/12/default.nix | 48 +- .../gcc/12/lambda-ICE-PR109241.patch | 77 + ...thread-model-support-from-mcfgthread.patch | 306 - .../development/compilers/gcc/13/default.nix | 29 +- .../development/compilers/gcc/4.8/default.nix | 32 +- .../development/compilers/gcc/4.9/default.nix | 32 +- .../development/compilers/gcc/6/default.nix | 40 +- .../development/compilers/gcc/7/default.nix | 40 +- .../development/compilers/gcc/8/default.nix | 40 +- .../development/compilers/gcc/9/default.nix | 37 +- .../compilers/gcc/common/configure-flags.nix | 8 +- .../compilers/gcc/common/dependencies.nix | 4 +- .../gcc/common/extra-target-flags.nix | 10 +- .../compilers/gcc/common/libgcc.nix | 56 +- .../compilers/gcc/common/pre-configure.nix | 30 +- .../compilers/gcc/fix-bug-80431.patch | 92 + .../gcc/install-info-files-serially.patch | 15 - .../development/compilers/gforth/default.nix | 4 +- .../pkgs/development/compilers/ghc/9.2.8.nix | 391 + .../pkgs/development/compilers/ghc/9.6.1.nix | 4 - .../pkgs/development/compilers/ghc/9.6.2.nix | 4 + .../compilers/ghc/common-hadrian.nix | 36 +- .../pkgs/development/compilers/ghc/head.nix | 6 +- .../development/compilers/gleam/default.nix | 6 +- .../development/compilers/glslang/default.nix | 26 +- ...LL_FULL_LIBDIR-in-compat-cmake-files.patch | 139 - .../pkgs/development/compilers/go/1.19.nix | 4 +- .../pkgs/development/compilers/go/1.20.nix | 4 +- .../development/compilers/halide/default.nix | 24 +- .../development/compilers/hvm/default.nix | 13 - .../development/compilers/inform6/default.nix | 4 +- .../intel-graphics-compiler/default.nix | 3 + .../development/compilers/ispc/default.nix | 9 +- .../compilers/jasmin-compiler/default.nix | 27 +- .../compilers/jetbrains-jdk/default.nix | 6 +- .../development/compilers/jsonnet/default.nix | 36 +- .../jsonnet/fix-cpp-unresolved-symbols.patch | 12 + .../development/compilers/julia/1.9-bin.nix | 10 +- .../pkgs/development/compilers/julia/1.9.nix | 13 +- .../development/compilers/kind2/default.nix | 28 - .../development/compilers/kotlin/default.nix | 4 +- .../development/compilers/kotlin/native.nix | 8 +- .../development/compilers/lesscpy/default.nix | 4 +- .../pkgs/development/compilers/ligo/2706.diff | 58 + .../development/compilers/ligo/default.nix | 13 +- .../development/compilers/llvm/10/default.nix | 9 +- .../compilers/llvm/10/lldb/default.nix | 128 - .../compilers/llvm/10/llvm/default.nix | 8 + .../development/compilers/llvm/11/default.nix | 9 +- .../compilers/llvm/11/lldb/default.nix | 126 - .../compilers/llvm/11/llvm/default.nix | 14 + .../development/compilers/llvm/12/default.nix | 22 +- .../compilers/llvm/12/lldb/default.nix | 142 - .../compilers/llvm/12/llvm/default.nix | 14 + .../development/compilers/llvm/13/default.nix | 35 +- .../compilers/llvm/13/lldb/default.nix | 159 - .../compilers/llvm/13/llvm/default.nix | 14 + .../development/compilers/llvm/14/default.nix | 35 +- .../compilers/llvm/14/lldb/default.nix | 167 - .../development/compilers/llvm/15/default.nix | 35 +- .../compilers/llvm/16/clang/default.nix | 9 +- .../compilers/llvm/16/compiler-rt/default.nix | 2 - .../development/compilers/llvm/16/default.nix | 42 +- .../compilers/llvm/16/lldb/default.nix | 186 - .../llvm/16/llvm/gnu-install-dirs.patch | 47 +- .../{15/lldb/default.nix => common/lldb.nix} | 151 +- .../development/compilers/lobster/default.nix | 4 +- .../development/compilers/lunarml/default.nix | 54 + .../development/compilers/mono/generic.nix | 11 +- .../development/compilers/mozart/default.nix | 19 +- .../development/compilers/mruby/default.nix | 20 +- .../development/compilers/nim/default.nix | 7 +- .../compilers/nim/extra-mangling.patch | 48 + .../development/compilers/odin/default.nix | 57 +- .../development/compilers/open-watcom/v2.nix | 6 +- .../pkgs/development/compilers/openjdk/11.nix | 6 +- .../pkgs/development/compilers/openjdk/17.nix | 6 +- .../pkgs/development/compilers/openjdk/20.nix | 195 + .../compilers/openjdk/darwin/20.nix | 81 + .../compilers/openjdk/openjfx/17.nix | 17 +- .../compilers/openjdk/openjfx/20.nix | 113 + .../compilers/opensmalltalk-vm/default.nix | 186 + .../development/compilers/orc/default.nix | 5 +- .../development/compilers/osl/default.nix | 9 +- .../development/compilers/p4c/default.nix | 4 +- .../development/compilers/pforth/default.nix | 57 +- .../purescript/psc-package/default.nix | 2 +- .../development/compilers/roslyn/default.nix | 3 +- .../development/compilers/roslyn/deps.nix | 4 + .../compilers/roslyn/extended-deps.nix | 11 - .../pkgs/development/compilers/rust/1_69.nix | 63 - .../pkgs/development/compilers/rust/1_70.nix | 63 + .../pkgs/development/compilers/rust/rustc.nix | 9 +- .../compilers/sagittarius-scheme/default.nix | 4 +- .../pkgs/development/compilers/sbcl/2.x.nix | 8 +- .../pkgs/development/compilers/scala/2.x.nix | 8 +- .../pkgs/development/compilers/scala/bare.nix | 4 +- .../compilers/swi-prolog/default.nix | 4 +- .../compilers/swift/sourcekit-lsp/default.nix | 8 +- .../compilers/swift/swift-docc/default.nix | 2 +- .../compilers/swift/swift-format/default.nix | 2 +- .../compilers/swift/swiftpm/default.nix | 2 +- .../compilers/temurin-bin/generate-sources.py | 2 +- .../compilers/temurin-bin/jdk-darwin.nix | 3 + .../compilers/temurin-bin/jdk-linux.nix | 3 + .../compilers/temurin-bin/sources.json | 592 +- .../development/compilers/teyjus/default.nix | 30 +- .../compilers/teyjus/fix-lex-to-flex.patch | 25 - .../compilers/typescript/default.nix | 24 + .../development/compilers/unison/default.nix | 17 +- .../development/compilers/vyper/default.nix | 4 +- .../development/compilers/yosys/default.nix | 4 +- .../compilers/yosys/plugin-search-dirs.patch | 71 +- .../pkgs/development/compilers/zig/0.10.nix | 45 +- .../pkgs/development/compilers/zig/0.9.1.nix | 35 +- .../pkgs/development/compilers/zulu/8.nix | 1 + .../development/compilers/zulu/default.nix | 1 + .../coq-modules/Cheerios/default.nix | 7 +- .../development/coq-modules/CoLoR/default.nix | 3 +- .../development/coq-modules/ITree/default.nix | 3 +- .../coq-modules/InfSeqExt/default.nix | 7 +- .../coq-modules/QuickChick/default.nix | 3 +- .../coq-modules/StructTact/default.nix | 3 + .../development/coq-modules/Verdi/default.nix | 3 + .../coq-modules/autosubst/default.nix | 5 +- .../development/coq-modules/corn/default.nix | 2 +- .../coq-modules/deriving/default.nix | 3 +- .../coq-modules/extructures/default.nix | 2 +- .../coq-modules/gappalib/default.nix | 3 +- .../coq-modules/interval/default.nix | 3 +- .../coq-modules/itauto/default.nix | 13 +- .../development/coq-modules/itauto/test.nix | 27 + .../coq-modules/math-classes/default.nix | 6 +- .../coq-modules/mathcomp-analysis/default.nix | 6 +- .../coq-modules/mathcomp-infotheo/default.nix | 2 + .../coq-modules/mathcomp-word/default.nix | 3 +- .../coq-modules/mathcomp/default.nix | 3 +- .../coq-modules/metacoq/default.nix | 3 +- .../coq-modules/reglang/default.nix | 3 +- .../coq-modules/relation-algebra/default.nix | 2 + .../coq-modules/simple-io/default.nix | 10 +- .../coq-modules/simple-io/test.nix | 2 +- .../development/coq-modules/tlc/default.nix | 4 +- .../coq-modules/zorns-lemma/default.nix | 2 +- .../embedded/arduino/arduino-cli/default.nix | 6 +- .../arduino/arduino-core/chrootenv.nix | 2 +- .../embedded/arduino/arduinoOTA/default.nix | 33 + .../development/embedded/avrdude/default.nix | 25 +- .../embedded/nmrpflash/default.nix | 4 +- .../embedded/orbuculum/default.nix | 20 +- .../embedded/stm32/stm32cubemx/default.nix | 38 +- .../guile-modules/guile-fibers/default.nix | 4 +- .../guile-modules/guile-opengl/default.nix | 4 +- .../haskell-modules/configuration-common.nix | 271 +- .../haskell-modules/configuration-darwin.nix | 13 + .../configuration-ghc-9.2.x.nix | 4 + .../configuration-ghc-9.4.x.nix | 18 +- .../configuration-ghc-9.6.x.nix | 80 +- .../configuration-hackage2nix/broken.yaml | 46 +- .../configuration-hackage2nix/main.yaml | 33 +- .../configuration-hackage2nix/stackage.yaml | 192 +- .../transitive-broken.yaml | 70 +- .../haskell-modules/configuration-nix.nix | 120 +- .../haskell-modules/generic-builder.nix | 63 +- .../haskell-modules/hackage-packages.nix | 4836 ++- .../haskell-modules/make-package-set.nix | 3 +- .../gtk2hs-buildtools-fix-ghc-9.4.x.patch | 12 - .../hercules-ci-agent-cachix-1.6.patch | 32 + .../haskell-modules/with-packages-wrapper.nix | 16 +- .../interpreters/angelscript/default.nix | 4 +- .../babashka.nix => babashka/default.nix} | 35 +- .../interpreters/babashka/wrapped.nix | 35 + .../interpreters/clojure/default.nix | 16 +- .../development/interpreters/clojure/obb.nix | 4 +- .../development/interpreters/elixir/1.14.nix | 6 +- .../development/interpreters/elixir/1.15.nix | 8 + .../interpreters/elixir/generic-builder.nix | 3 +- .../development/interpreters/erlang/24.nix | 4 +- .../development/interpreters/erlang/25.nix | 4 +- .../development/interpreters/erlang/26.nix | 4 +- .../interpreters/evcxr/default.nix | 12 +- .../interpreters/femtolisp/default.nix | 40 + .../interpreters/jruby/default.nix | 70 +- .../interpreters/kamilalisp/default.nix | 38 + ...package.nix => build-luarocks-package.nix} | 0 .../interpreters/lua-5/default.nix | 23 +- .../interpreters/lua-5/interpreter.nix | 2 +- .../interpreters/luajit/default.nix | 5 +- .../development/interpreters/luau/default.nix | 11 +- .../development/interpreters/lune/Cargo.lock | 2902 ++ .../development/interpreters/lune/default.nix | 43 + .../interpreters/nickel/default.nix | 15 +- .../interpreters/perl/intepreter.nix | 2 +- .../development/interpreters/perl/wrapper.nix | 4 +- .../pkgs/development/interpreters/php/8.1.nix | 6 +- .../pkgs/development/interpreters/php/8.2.nix | 6 +- .../interpreters/php/{8.0.nix => 8.3.nix} | 14 +- .../development/interpreters/php/generic.nix | 7 +- .../interpreters/python/cpython/default.nix | 40 +- .../interpreters/python/default.nix | 125 +- .../interpreters/python/manylinux/default.nix | 2 + .../interpreters/python/passthrufun.nix | 103 + .../python/python-packages-base.nix | 2 - .../interpreters/racket/default.nix | 10 +- .../interpreters/rakudo/default.nix | 4 +- .../interpreters/rakudo/moarvm.nix | 4 +- .../development/interpreters/rakudo/nqp.nix | 4 +- .../development/interpreters/rlci/default.nix | 26 + .../development/interpreters/ruby/dev.nix | 2 +- .../interpreters/ruby/rubygems/default.nix | 4 +- .../interpreters/spidermonkey/102.nix | 4 +- .../interpreters/starlark-rust/default.nix | 38 + .../interpreters/trealla/default.nix | 91 +- .../development/interpreters/wamr/default.nix | 6 +- .../interpreters/wasm3/default.nix | 2 +- .../interpreters/wasmer/default.nix | 20 +- .../interpreters/wasmtime/default.nix | 15 +- .../development/interpreters/wavm/default.nix | 6 +- .../interpreters/wazero/default.nix | 50 + .../java-modules/apache/ant-launcher.nix | 14 - .../development/java-modules/apache/ant.nix | 14 - .../java-modules/apache/commons-cli.nix | 25 - .../java-modules/apache/commons-io.nix | 14 - .../java-modules/apache/commons-lang.nix | 36 - .../java-modules/apache/commons-lang3.nix | 14 - .../apache/commons-logging-api.nix | 14 - .../java-modules/apache/xbean-reflect.nix | 14 - .../java-modules/beanshell/bsh.nix | 14 - .../java-modules/build-maven-package.nix | 34 - .../java-modules/classworlds/classworlds.nix | 25 - .../development/java-modules/collections.nix | 77 - .../java-modules/eclipse/aether-util.nix | 15 - .../java-modules/findbugs/jsr305.nix | 15 - .../java-modules/google/collections.nix | 15 - .../development/java-modules/hamcrest/all.nix | 15 - .../java-modules/hamcrest/core.nix | 15 - .../development/java-modules/jogl/default.nix | 77 +- .../java-modules/junit/default.nix | 66 - .../java-modules/log4j/default.nix | 15 - .../development/java-modules/m2install.nix | 30 - .../java-modules/maven-hello/default.nix | 55 - .../java-modules/maven-minimal.nix | 151 - .../java-modules/maven/archiver.nix | 14 - .../java-modules/maven/artifact-manager.nix | 47 - .../java-modules/maven/artifact.nix | 69 - .../maven/common-artifact-filters.nix | 36 - .../java-modules/maven/compiler-plugin.nix | 14 - .../development/java-modules/maven/core.nix | 47 - .../java-modules/maven/dependency-tree.nix | 14 - .../java-modules/maven/doxia-sink-api.nix | 36 - .../java-modules/maven/enforcer.nix | 25 - .../java-modules/maven/error-diagnostics.nix | 47 - .../java-modules/maven/filtering.nix | 14 - .../development/java-modules/maven/model.nix | 58 - .../java-modules/maven/monitor.nix | 47 - .../java-modules/maven/plugin-annotations.nix | 25 - .../java-modules/maven/plugin-api.nix | 58 - .../java-modules/maven/plugin-descriptor.nix | 47 - .../maven/plugin-parameter-documenter.nix | 47 - .../java-modules/maven/plugin-registry.nix | 47 - .../maven/plugin-testing-harness.nix | 14 - .../java-modules/maven/profile.nix | 47 - .../java-modules/maven/project.nix | 58 - .../java-modules/maven/reporting-api.nix | 47 - .../maven/repository-metadata.nix | 47 - .../java-modules/maven/settings.nix | 47 - .../java-modules/maven/shared-incremental.nix | 14 - .../java-modules/maven/shared-utils.nix | 14 - .../java-modules/maven/surefire-api.nix | 25 - .../java-modules/maven/surefire-booter.nix | 25 - .../java-modules/maven/surefire-common.nix | 25 - .../java-modules/maven/surefire-junit4.nix | 14 - .../java-modules/maven/toolchain.nix | 36 - .../development/java-modules/mavenPlugins.nix | 120 - .../java-modules/mojo/animal-sniffer.nix | 15 - .../mojo/java-boot-classpath-detector.nix | 14 - .../development/java-modules/ow2/asm-all.nix | 15 - .../java-modules/plexus/archiver.nix | 25 - .../java-modules/plexus/build-api.nix | 14 - .../java-modules/plexus/classworlds.nix | 25 - .../java-modules/plexus/compiler-api.nix | 25 - .../java-modules/plexus/compiler-javac.nix | 25 - .../java-modules/plexus/compiler-manager.nix | 25 - .../plexus/component-annotations.nix | 14 - .../java-modules/plexus/container-default.nix | 36 - .../java-modules/plexus/digest.nix | 14 - .../development/java-modules/plexus/i18n.nix | 14 - .../java-modules/plexus/interactivity-api.nix | 14 - .../java-modules/plexus/interpolation.nix | 47 - .../development/java-modules/plexus/io.nix | 14 - .../development/java-modules/plexus/utils.nix | 179 - .../pkgs/development/java-modules/poms.nix | 891 - .../development/java-modules/sisu/guice.nix | 14 - .../java-modules/sisu/inject-bean.nix | 14 - .../java-modules/sisu/inject-plexus.nix | 14 - .../development/java-modules/xerces/impl.nix | 14 - .../java-modules/xml-apis/default.nix | 14 - .../libraries/PlistCpp/default.nix | 4 + .../development/libraries/SDL2/default.nix | 6 +- .../development/libraries/SDL2_ttf/2.0.15.nix | 25 - .../libraries/SDL2_ttf/default.nix | 3 +- .../libraries/SDL_compat/default.nix | 4 +- .../libraries/abseil-cpp/202103.nix | 8 + .../libraries/abseil-cpp/202301.nix | 35 + ...ble-methods-that-change-files-in-etc.patch | 55 +- .../libraries/accountsservice/default.nix | 8 +- .../drop-prefix-check-extensions.patch | 7 +- .../libraries/accountsservice/fix-paths.patch | 66 +- .../get-dm-type-from-config.patch | 15 + .../accountsservice/no-create-dirs.patch | 2 +- .../libraries/ada/spark2014/default.nix | 4 +- .../libraries/agda/cubical/default.nix | 6 +- .../development/libraries/amdvlk/default.nix | 4 +- .../libraries/amf-headers/default.nix | 4 +- .../libraries/apr-util/default.nix | 4 +- .../libraries/aqbanking/sources.nix | 6 +- .../development/libraries/aravis/default.nix | 4 +- .../libraries/armadillo/default.nix | 4 +- .../libraries/arrow-cpp/default.nix | 4 +- .../development/libraries/asmjit/default.nix | 6 +- .../development/libraries/assimp/default.nix | 8 +- .../libraries/at-spi2-core/default.nix | 4 +- .../libraries/audio/libopenmpt/default.nix | 14 +- .../libraries/audio/roc-toolkit/default.nix | 4 +- .../libraries/audiofile/default.nix | 3 - .../libraries/aws-crt-cpp/default.nix | 4 +- .../libraries/aws-sdk-cpp/default.nix | 6 +- .../libraries/ayatana-ido/default.nix | 4 +- .../development/libraries/babl/default.nix | 6 +- .../development/libraries/basu/default.nix | 2 + .../development/libraries/bearssl/default.nix | 2 +- .../libraries/belle-sip/default.nix | 4 +- .../development/libraries/blst/default.nix | 77 + .../pkgs/development/libraries/boost/1.68.nix | 11 - .../pkgs/development/libraries/boost/1.69.nix | 13 - .../pkgs/development/libraries/boost/1.70.nix | 13 - .../pkgs/development/libraries/boost/1.72.nix | 17 - .../pkgs/development/libraries/boost/1.73.nix | 15 - .../pkgs/development/libraries/boost/1.74.nix | 15 - .../libraries/boost/cmake-paths.patch | 21 - .../development/libraries/boost/default.nix | 6 - .../development/libraries/boost/generic.nix | 50 +- .../boost/pthread-stack-min-fix.patch | 15 - .../development/libraries/botan/generic.nix | 4 + .../development/libraries/c-ares/default.nix | 7 +- .../development/libraries/cairo/default.nix | 25 +- .../libraries/capstone/default.nix | 24 +- .../development/libraries/cimg/default.nix | 4 +- .../development/libraries/cista/default.nix | 4 +- .../development/libraries/cjson/default.nix | 4 +- .../clipper2/0001-fix-pc-paths.patch | 14 + .../libraries/clipper2/default.nix | 45 + .../development/libraries/cmocka/default.nix | 5 +- .../development/libraries/codec2/default.nix | 4 +- .../development/libraries/coeurl/default.nix | 17 + .../libraries/composable_kernel/default.nix | 155 +- .../libraries/cpp-netlib/default.nix | 3 + .../libraries/cpp-utilities/default.nix | 4 +- .../development/libraries/cppzmq/default.nix | 4 +- .../libraries/crypto++/default.nix | 4 +- .../development/libraries/csfml/default.nix | 4 +- .../libraries/ctranslate2/default.nix | 67 + .../libraries/cyrus-sasl-xoauth2/default.nix | 31 + .../development/libraries/dav1d/default.nix | 6 +- .../development/libraries/db/clang-4.8.patch | 64 + .../development/libraries/db/clang-5.3.patch | 108 + .../libraries/db/darwin-mutexes-4.8.patch | 55 + .../libraries/db/darwin-mutexes.patch | 42 + .../pkgs/development/libraries/db/db-4.8.nix | 5 +- .../pkgs/development/libraries/db/db-5.3.nix | 5 +- .../pkgs/development/libraries/db/db-6.0.nix | 5 +- .../pkgs/development/libraries/db/db-6.2.nix | 5 +- .../pkgs/development/libraries/db/generic.nix | 43 +- .../development/libraries/dbus/default.nix | 7 +- .../libraries/dbus/make-dbus-conf.nix | 4 + .../libraries/directx-headers/default.nix | 4 +- .../development/libraries/doctest/default.nix | 6 +- .../development/libraries/dqlite/default.nix | 4 +- .../development/libraries/draco/default.nix | 6 +- .../default.nix => draco/tinygltf.nix} | 0 .../development/libraries/duckdb/default.nix | 19 +- .../development/libraries/eccodes/default.nix | 4 +- .../libraries/egl-wayland/default.nix | 13 +- .../development/libraries/elpa/default.nix | 4 +- .../development/libraries/embree/default.nix | 12 +- .../development/libraries/enchant/2.x.nix | 4 +- .../development/libraries/entt/default.nix | 4 +- .../libraries/fastjson/default.nix | 24 +- .../development/libraries/faudio/default.nix | 4 +- .../development/libraries/fb303/default.nix | 4 +- .../pkgs/development/libraries/ffmpeg/4.nix | 11 +- .../pkgs/development/libraries/ffmpeg/5.nix | 17 + .../development/libraries/ffmpeg/generic.nix | 7 +- .../development/libraries/fmt/default.nix | 21 +- .../libraries/fontconfig/default.nix | 15 +- .../libraries/fpattern/default.nix | 28 + .../development/libraries/fribidi/default.nix | 4 +- .../development/libraries/ftxui/default.nix | 14 +- .../development/libraries/gcab/default.nix | 6 +- .../development/libraries/gcr/default.nix | 6 +- .../development/libraries/gdal/default.nix | 30 +- .../development/libraries/geos/default.nix | 4 +- .../development/libraries/gettext/default.nix | 12 +- .../development/libraries/givaro/default.nix | 20 +- .../development/libraries/gl2ps/default.nix | 13 +- .../pkgs/development/libraries/glfw/3.x.nix | 6 +- .../development/libraries/glib/default.nix | 4 +- .../development/libraries/glibc/common.nix | 14 +- .../development/libraries/glibc/default.nix | 2 +- .../pkgs/development/libraries/glibc/info.nix | 2 +- .../development/libraries/glibc/locales.nix | 17 +- .../libraries/gnome-video-effects/default.nix | 10 +- .../gnome-video-effects/fix-pc-file.patch | 11 - .../libraries/gnu-config/default.nix | 5 + .../development/libraries/gnu-efi/default.nix | 5 + .../development/libraries/goocanvas/2.x.nix | 4 +- .../libraries/google-cloud-cpp/default.nix | 6 + .../graphene-hardened-malloc/default.nix | 20 +- .../development/libraries/gsl/default.nix | 2 +- .../libraries/gstreamer/bad/default.nix | 36 +- .../libraries/gstreamer/base/default.nix | 8 +- .../libraries/gstreamer/core/default.nix | 6 +- .../libraries/gstreamer/default.nix | 2 +- .../libraries/gstreamer/devtools/default.nix | 5 +- .../libraries/gstreamer/ges/default.nix | 5 +- .../libraries/gstreamer/good/default.nix | 23 +- .../libraries/gstreamer/libav/default.nix | 5 +- .../libraries/gstreamer/rs/Cargo.lock | 4144 ++- .../libraries/gstreamer/rs/default.nix | 69 +- .../gstreamer/rtsp-server/default.nix | 6 +- .../libraries/gstreamer/ugly/default.nix | 6 +- .../libraries/gstreamer/vaapi/default.nix | 11 +- .../pkgs/development/libraries/gtk/2.x.nix | 119 +- .../pkgs/development/libraries/gtk/3.x.nix | 4 +- .../pkgs/development/libraries/gtk/4.x.nix | 19 +- .../development/libraries/gusb/default.nix | 71 +- .../development/libraries/gvfs/default.nix | 6 +- .../libraries/gvm-libs/default.nix | 7 +- .../libraries/harfbuzz/default.nix | 4 +- .../development/libraries/hidapi/default.nix | 4 +- .../development/libraries/hpp-fcl/default.nix | 63 + .../development/libraries/hspell/dicts.nix | 4 +- .../libraries/http-parser/default.nix | 2 + .../development/libraries/httplib/default.nix | 4 +- .../libraries/hunspell/dictionaries.nix | 10 + .../development/libraries/hwloc/default.nix | 4 +- .../libraries/hyperscan/default.nix | 27 +- .../pkgs/development/libraries/icu/73.nix | 4 +- .../development/libraries/imath/default.nix | 4 +- .../development/libraries/imgui/default.nix | 4 +- .../libraries/intel-gmmlib/default.nix | 14 +- .../libraries/intel-media-sdk/default.nix | 4 +- .../default.nix | 12 +- .../libraries/ip2location-c/default.nix | 4 +- .../development/libraries/iqueue/default.nix | 4 +- .../libraries/java/hsqldb/default.nix | 4 +- .../libraries/java/lombok/default.nix | 4 +- .../libraries/jitterentropy/default.nix | 7 +- .../development/libraries/json-c/default.nix | 18 +- .../libraries/kde-frameworks/baloo.nix | 43 +- .../libraries/kde-frameworks/default.nix | 2 +- .../libraries/kde-frameworks/fetch.sh | 2 +- .../kde-frameworks/kauth/default.nix | 4 +- .../libraries/kde-frameworks/kcoreaddons.nix | 5 +- .../kde-frameworks/kdoctools/default.nix | 12 +- .../libraries/kde-frameworks/ktexteditor.nix | 11 +- .../kde-frameworks/plasma-framework.nix | 4 +- .../libraries/kde-frameworks/srcs.nix | 664 +- .../libraries/kimageannotator/default.nix | 4 +- .../libraries/leptonica/default.nix | 6 +- .../libraries/level-zero/default.nix | 4 +- .../development/libraries/leveldb/default.nix | 2 +- .../development/libraries/lib3mf/default.nix | 5 +- .../development/libraries/libLAS/default.nix | 10 + .../libraries/libad9361/default.nix | 4 +- .../libraries/libadwaita/default.nix | 4 +- .../libraries/libamqpcpp/default.nix | 4 +- .../development/libraries/libaom/default.nix | 4 +- .../libraries/libargon2/default.nix | 2 + .../development/libraries/libass/default.nix | 2 + .../libraries/libayatana-common/default.nix | 78 + .../development/libraries/libb64/default.nix | 11 + .../libraries/libblockdev/default.nix | 21 +- .../libraries/libblockdev/fix-paths.patch | 47 - .../libraries/libbytesize/default.nix | 6 +- .../development/libraries/libcef/default.nix | 10 +- .../libraries/libcifpp/default.nix | 47 +- .../development/libraries/libclc/default.nix | 45 +- .../libclc/libclc-gnu-install-dirs.patch | 10 + .../development/libraries/libcpr/default.nix | 4 +- .../development/libraries/libcs50/default.nix | 28 + .../libraries/libcyaml/default.nix | 4 +- .../libraries/libdaemon/default.nix | 2 + .../libraries/libdatachannel/default.nix | 69 +- .../libraries/libdbusmenu/default.nix | 4 + .../libraries/libdbusmenu/requires-glib.patch | 11 + .../libraries/libdecor/default.nix | 2 +- .../libraries/libdeltachat/Cargo.lock | 1540 +- .../libraries/libdeltachat/default.nix | 4 +- .../libraries/libdivecomputer/default.nix | 4 +- .../libraries/libe-book/default.nix | 20 +- .../libraries/libeatmydata/default.nix | 40 +- .../libeatmydata/find-shell-lib.patch | 20 - .../development/libraries/libei/default.nix | 71 + .../development/libraries/libelf/default.nix | 10 +- .../libraries/libelf/fix-configure-main.patch | 12 + .../libraries/libepoxy/default.nix | 11 +- .../libraries/libevdev/default.nix | 4 +- .../libraries/libfabric/default.nix | 4 +- .../pkgs/development/libraries/libffi/3.3.nix | 3 + .../libraries/libfido2/default.nix | 3 + .../libraries/libgbinder/default.nix | 4 +- .../libgdiplus/configure-pkg-config.patch | 17 + .../libraries/libgdiplus/default.nix | 23 +- .../libraries/libgepub/default.nix | 4 +- .../libraries/libglvnd/default.nix | 5 +- .../development/libraries/libgpod/default.nix | 11 +- .../libraries/libguestfs/default.nix | 6 +- .../development/libraries/libhv/default.nix | 4 +- .../development/libraries/libidn2/default.nix | 2 - .../libraries/libidn2/fix-error-darwin.patch | 20 - .../libimobiledevice-glue/default.nix | 12 +- .../libraries/libimobiledevice/default.nix | 20 +- .../libraries/libirecovery/default.nix | 10 +- .../libraries/libisofs/default.nix | 22 +- .../development/libraries/libixp/default.nix | 2 +- .../development/libraries/libjcat/default.nix | 4 +- .../development/libraries/libjxl/default.nix | 4 +- .../development/libraries/liblc3/default.nix | 4 +- .../libraries/liblinphone/default.nix | 1 + .../libraries/liblouis/default.nix | 4 +- .../development/libraries/liblxi/default.nix | 13 +- .../development/libraries/libmcfp/default.nix | 23 +- .../libraries/libmediainfo/default.nix | 5 +- .../libraries/libmilter/default.nix | 6 +- .../libraries/libmongo-client/default.nix | 29 - .../development/libraries/libmwaw/default.nix | 4 +- .../libraries/libnatpmp/default.nix | 22 +- .../libraries/libnest2d/default.nix | 9 +- .../libraries/libngspice/default.nix | 41 +- .../libraries/libnitrokey/default.nix | 6 +- .../development/libraries/libnut/default.nix | 29 + .../development/libraries/libopus/default.nix | 63 +- .../libopus/fix-pkg-config-paths.patch | 13 + .../development/libraries/liboqs/default.nix | 4 +- .../libraries/libpg_query/default.nix | 12 +- .../libraries/libpinyin/default.nix | 4 +- .../libraries/libplist/default.nix | 21 +- .../libraries/libpulsar/default.nix | 4 +- .../libraries/libqalculate/default.nix | 4 +- .../development/libraries/libqb/default.nix | 4 +- .../libraries/libqtdbusmock/default.nix | 93 + .../libraries/libqtdbustest/default.nix | 102 + .../less-pedantic-process-finding.patch | 86 + .../libraries/libraspberrypi/default.nix | 12 +- .../libraries/librclone/default.nix | 4 +- .../libraries/librealsense/default.nix | 5 +- .../libraries/libremidi/default.nix | 44 + .../development/libraries/librep/default.nix | 19 +- .../libraries/libressl/default.nix | 26 +- .../libraries/libsciter/default.nix | 3 +- .../libraries/libsearpc/default.nix | 10 +- .../libraries/libsegfault/default.nix | 2 + .../libraries/libshumate/default.nix | 4 +- .../libraries/libsidplayfp/default.nix | 18 +- .../development/libraries/libsolv/default.nix | 32 +- .../development/libraries/libssh/default.nix | 10 + .../development/libraries/libssh2/default.nix | 13 +- ...openssl_add_support_for_libressl_3_5.patch | 26 - .../development/libraries/libtiff/default.nix | 31 +- .../libraries/libtoxcore/default.nix | 28 +- .../libraries/libudev-zero/default.nix | 4 +- ...-Add-custom-error-function-for-tests.patch | 66 - ...Use-t_error-instead-of-glibc-s-error.patch | 109 - ...Use-t_error-instead-of-glibc-s-error.patch | 226 - .../libraries/liburing/default.nix | 38 +- .../libraries/libusbmuxd/default.nix | 14 +- .../development/libraries/libuv/default.nix | 66 +- .../development/libraries/libva/default.nix | 12 +- .../development/libraries/libva/utils.nix | 4 +- .../development/libraries/libvgm/default.nix | 6 +- .../development/libraries/libvirt/default.nix | 4 +- .../libraries/libvisual/default.nix | 2 + .../libraries/libvterm-neovim/default.nix | 4 +- .../libraries/libwacom/default.nix | 6 +- .../libraries/libwacom/surface.nix | 4 +- .../development/libraries/libwebp/default.nix | 14 +- .../development/libraries/libwps/default.nix | 4 +- .../development/libraries/libxc/default.nix | 5 +- .../libraries/libxcrypt/default.nix | 9 +- .../libraries/libxdg-basedir/default.nix | 27 +- .../libraries/libxlsxwriter/default.nix | 3 + .../development/libraries/libxmp/default.nix | 4 +- .../development/libraries/libyaml/default.nix | 2 + .../development/libraries/libyang/default.nix | 4 +- .../libraries/libytnef/default.nix | 4 +- .../development/libraries/linbox/default.nix | 3 + .../libraries/liquid-dsp/default.nix | 4 +- .../development/libraries/llhttp/default.nix | 4 +- .../development/libraries/lmdb/default.nix | 7 +- .../development/libraries/log4cpp/default.nix | 4 +- .../malcontent/better-separation.patch | 23 +- .../libraries/malcontent/default.nix | 6 +- .../development/libraries/malcontent/ui.nix | 6 - .../{Cargo.lock => Cargo-beta.3.lock} | 0 .../Cargo-beta.6.lock | 6253 ++++ .../matrix-sdk-crypto-nodejs/beta3.nix | 13 + .../matrix-sdk-crypto-nodejs/default.nix | 72 +- .../matrix-sdk-crypto-nodejs/generic.nix | 60 + .../libraries/maui-core/default.nix | 4 +- .../pkgs/development/libraries/mesa/22.3.nix | 4 - .../pkgs/development/libraries/mesa/23.0.nix | 4 - .../mesa/{generic.nix => default.nix} | 28 +- ...include-dri-driver-path-in-cache-key.patch | 4 +- .../default.nix | 0 .../libraries/migraphx/default.nix | 4 +- .../libraries/miniaudio/default.nix | 4 +- .../libraries/minizip-ng/default.nix | 5 +- .../development/libraries/miopen/default.nix | 2 + .../development/libraries/mlt/default.nix | 144 +- .../pkgs/development/libraries/mlt/qt-5.nix | 95 - .../development/libraries/mongoc/default.nix | 84 +- .../development/libraries/movit/default.nix | 37 +- .../development/libraries/mpfr/default.nix | 2 +- .../development/libraries/mpich/default.nix | 4 +- .../libraries/msgpack-c/default.nix | 44 + .../libraries/msgpack-cxx/default.nix | 47 + .../libraries/mustache-tcl/default.nix | 32 + .../development/libraries/mygui/default.nix | 4 +- .../libraries/mygui/disable-framework.patch | 7 +- .../libraries/nanoflann/default.nix | 35 +- .../development/libraries/nanosvg/default.nix | 23 + .../development/libraries/ndi/default.nix | 2 +- .../development/libraries/nettle/default.nix | 4 +- .../development/libraries/nghttp3/default.nix | 4 +- .../development/libraries/ngtcp2/default.nix | 4 +- .../libraries/nix-plugins/default.nix | 4 +- .../libraries/nlohmann_json/default.nix | 19 + .../development/libraries/nng/default.nix | 4 +- .../development/libraries/nspr/default.nix | 2 +- .../nss/85_security_load_3.77+.patch | 76 - .../pkgs/development/libraries/nss/esr.nix | 4 +- .../development/libraries/nss/generic.nix | 19 +- .../pkgs/development/libraries/nss/latest.nix | 4 +- .../libraries/nss/remove-c25519-support.patch | 69 + .../development/libraries/nsync/default.nix | 4 +- .../development/libraries/nuraft/default.nix | 6 +- .../libraries/nvidia-vaapi-driver/default.nix | 12 +- .../development/libraries/ocl-icd/default.nix | 4 +- .../development/libraries/ode/default.nix | 4 +- .../pkgs/development/libraries/oneDNN/2.nix | 41 + .../development/libraries/oneDNN/default.nix | 6 +- .../libraries/onnxruntime/default.nix | 8 +- .../development/libraries/opae/default.nix | 2 + .../libraries/open62541/default.nix | 9 +- .../libraries/openal-soft/default.nix | 4 +- .../libraries/opencolorio/default.nix | 6 + .../pkgs/development/libraries/opencv/4.x.nix | 16 + .../development/libraries/opendht/default.nix | 4 +- .../development/libraries/openexr/default.nix | 26 +- .../libraries/openexr/gcc-13.patch | 33 + .../libraries/openimagedenoise/1_2_x.nix | 28 - .../development/libraries/openimageio/1.x.nix | 80 - .../libraries/openimageio/2539_backport.patch | 31 - .../libraries/openimageio/default.nix | 4 +- .../libraries/openldap/default.nix | 2 + .../libraries/openscenegraph/default.nix | 4 +- .../development/libraries/openssl/default.nix | 12 +- .../libraries/openvino/default.nix | 35 +- .../libraries/openxr-loader/default.nix | 4 +- .../oracle-instantclient/default.nix | 14 +- .../development/libraries/partio/default.nix | 46 +- .../development/libraries/pdal/default.nix | 6 +- .../libraries/pdfhummus/default.nix | 56 + .../libraries/physics/fastjet/default.nix | 4 +- .../libraries/physics/yoda/default.nix | 9 + .../libraries/pico-sdk/default.nix | 4 +- .../libraries/pinocchio/default.nix | 4 +- .../libraries/pipewire/default.nix | 11 +- .../development/libraries/plog/default.nix | 31 +- .../development/libraries/podofo/0.10.x.nix | 67 + .../development/libraries/poppler/default.nix | 8 +- .../development/libraries/proj/default.nix | 2 +- .../libraries/protobuf/generic-v3.nix | 2 +- .../development/libraries/qca-qt5/default.nix | 4 +- .../development/libraries/qdjango/default.nix | 73 + .../libraries/qmarkdowntextedit/default.nix | 11 +- .../development/libraries/qpdf/default.nix | 4 +- .../libraries/qrcodegen/default.nix | 11 +- .../libraries/qt-5/5.15/default.nix | 93 + .../libraries/qt-5/5.15/srcs-generated.json | 24 +- .../development/libraries/qt-5/5.15/srcs.nix | 12 + .../libraries/qt-5/modules/qtbase.nix | 6 + .../libraries/qt-5/modules/qtpim.nix | 27 + .../development/libraries/qt-6/default.nix | 3 +- .../pkgs/development/libraries/qt-6/fetch.sh | 2 +- .../libraries/qt-6/hooks/qtbase-setup-hook.sh | 14 + .../libraries/qt-6/modules/qtdoc.nix | 17 + .../libraries/qt-6/modules/qtmqtt.nix | 12 +- .../libraries/qt-6/modules/qttools.nix | 8 +- .../libraries/qt-6/modules/qtwebengine.nix | 5 +- ...-qtbase-find-qt-tools-in-QTTOOLSPATH.patch | 46 + .../development/libraries/qt-6/qt-env.nix | 6 +- .../pkgs/development/libraries/qt-6/srcs.nix | 306 +- .../0002-Fix-install-name-Darwin.patch | 10 - .../libraries/qtkeychain/default.nix | 9 +- .../qtstyleplugin-kvantum/default.nix | 12 +- .../libraries/qtutilities/default.nix | 4 +- .../development/libraries/quarto/default.nix | 6 +- .../development/libraries/quictls/default.nix | 4 +- .../development/libraries/qxlsx/default.nix | 14 +- .../libraries/rapidyaml/default.nix | 28 + .../development/libraries/rarian/default.nix | 25 - .../development/libraries/raylib/default.nix | 30 +- .../development/libraries/rdkafka/default.nix | 4 +- .../development/libraries/rep-gtk/default.nix | 28 +- .../development/libraries/rocblas/default.nix | 2 + .../development/libraries/rocfft/default.nix | 390 +- .../libraries/rocfft/device-install.patch | 15 + .../rocfft/split-kernel-compilation.patch | 124 + .../development/libraries/rocksdb/default.nix | 6 +- .../libraries/rocsolver/default.nix | 2 + .../libraries/rustls-ffi/Cargo.lock | 138 +- .../libraries/rustls-ffi/default.nix | 4 +- .../development/libraries/s2n-tls/default.nix | 4 +- .../development/libraries/sbc/default.nix | 6 +- .../science/astronomy/indilib/default.nix | 2 - .../libxisf/0001-Fix-pkg-config-paths.patch | 23 + .../science/astronomy/libxisf/default.nix | 8 +- .../science/astronomy/wcslib/default.nix | 4 +- .../science/biology/bpp-core/default.nix | 2 +- .../science/biology/bpp-phyl/default.nix | 1 + .../science/biology/bpp-popgen/default.nix | 1 + .../science/biology/bpp-seq/default.nix | 1 + .../science/biology/ciftilib/default.nix | 5 +- .../science/chemistry/plumed/default.nix | 4 +- .../electronics/coloquinte/default.nix | 38 + .../science/math/clblast/default.nix | 44 + .../science/math/cudnn/extension.nix | 20 +- .../libraries/science/math/cudnn/releases.nix | 26 +- .../libraries/science/math/dbcsr/default.nix | 81 + .../libraries/science/math/lrs/default.nix | 15 +- .../libraries/science/math/magma/generic.nix | 3 + .../libraries/science/math/mkl/default.nix | 2 +- .../science/math/mongoose/default.nix | 9 +- .../libraries/science/math/osqp/default.nix | 4 +- .../libraries/science/math/petsc/default.nix | 4 +- .../science/math/tiny-cuda-nn/default.nix | 248 +- .../science/networking/ns-3/default.nix | 143 +- .../science/robotics/ispike/default.nix | 6 +- .../libraries/sentry-native/default.nix | 4 +- .../development/libraries/serf/default.nix | 27 +- .../development/libraries/serf/scons.patch | 31 - .../development/libraries/sexpp/default.nix | 48 + .../libraries/silgraphite/graphite2.nix | 8 + .../libraries/simdjson/default.nix | 4 +- .../libraries/sioclient/default.nix | 38 + .../libraries/socket_wrapper/default.nix | 4 +- .../development/libraries/sonivox/default.nix | 4 +- .../development/libraries/sord/default.nix | 2 + .../development/libraries/spdlog/default.nix | 21 +- .../development/libraries/speechd/default.nix | 4 +- .../libraries/speechd/fix-paths.patch | 6 +- .../development/libraries/spice/default.nix | 6 +- .../libraries/spirv-headers/default.nix | 10 +- .../development/libraries/sqlite/default.nix | 4 +- .../development/libraries/sqlite/tools.nix | 4 +- .../libraries/sqlitecpp/default.nix | 4 +- .../development/libraries/sregex/default.nix | 23 + .../development/libraries/srt/default.nix | 4 +- .../libraries/symengine/default.nix | 19 +- .../development/libraries/ta-lib/default.nix | 2 +- .../development/libraries/taco/default.nix | 54 + .../development/libraries/taco/taco.patch | 13 + .../development/libraries/tbox/default.nix | 37 + .../development/libraries/tbox/libtbox.pc.in | 10 + .../libraries/tcl-fcgi/default.nix | 31 + .../development/libraries/tclx/default.nix | 4 +- .../development/libraries/tdb/default.nix | 6 +- .../development/libraries/tepl/default.nix | 2 +- .../pkgs/development/libraries/tk/8.6.nix | 4 + .../libraries/tk/tk-8_6_13-find-library.patch | 25 + .../libraries/tpm2-tss/default.nix | 21 +- .../tpm2-tss/no-dynamic-loader-path.patch | 49 +- .../development/libraries/tracker/default.nix | 11 + .../development/libraries/ucc/default.nix | 4 +- .../libraries/unixODBCDrivers/default.nix | 2 + .../development/libraries/urdfdom/default.nix | 9 +- .../libraries/vapoursynth/default.nix | 4 +- .../libraries/vectorscan/default.nix | 59 + .../development/libraries/vte/default.nix | 4 +- .../development/libraries/vtk/generic.nix | 2 + .../libraries/vulkan-headers/default.nix | 4 +- .../libraries/vulkan-loader/default.nix | 4 +- .../development/libraries/wavpack/default.nix | 4 +- .../libraries/webkitgtk/default.nix | 11 +- .../libraries/webrtc-audio-processing/0.3.nix | 2 + .../webrtc-audio-processing/default.nix | 6 +- .../libraries/whereami/default.nix | 45 + .../development/libraries/wlroots/default.nix | 14 +- .../libraries/wlroots/protocols.nix | 6 +- .../libraries/wxsqlite3/default.nix | 4 +- .../libraries/wxwidgets/wxGTK31.nix | 6 +- .../libraries/wxwidgets/wxGTK32.nix | 7 +- .../development/libraries/x265/default.nix | 2 +- .../development/libraries/xapian/default.nix | 2 +- .../libraries/xapian/tools/omega/default.nix | 2 +- .../xdg-desktop-portal-xapp/default.nix | 52 + .../development/libraries/xeus/default.nix | 4 +- .../development/libraries/xgboost/default.nix | 4 +- .../libraries/xmake-core-sv/default.nix | 30 + .../development/libraries/yas/default.nix | 28 + .../development/libraries/zchunk/default.nix | 4 +- .../pkgs/development/libraries/zeromq/4.x.nix | 22 +- .../development/libraries/zimg/default.nix | 6 +- .../development/libraries/zlib-ng/default.nix | 19 +- .../lisp-modules-new-obsolete/ql.nix | 5 +- .../lisp-modules-obsolete/lisp-packages.nix | 2 +- .../quicklisp-to-nix-overrides.nix | 3 +- .../lisp-modules/import/database/sqlite.lisp | 2 - .../import/repository/quicklisp.lisp | 9 +- .../development/lisp-modules/imported.nix | 6658 ++-- .../development/lisp-modules/packages.nix | 337 +- .../patches/log4cl-fix-build.patch | 5 - .../pkgs/development/lisp-modules/ql.nix | 8 +- .../development/lua-modules/overrides.nix | 2 +- .../development/misc/brev-cli/default.nix | 4 +- .../pkgs/development/misc/newlib/default.nix | 6 +- .../pkgs/development/misc/resholve/deps.nix | 5 +- .../pkgs/development/misc/resholve/test.nix | 4 +- .../mobile/adbfs-rootless/default.nix | 2 +- .../development/mobile/fdroidcl/default.nix | 36 + .../fdroidcl/go_mod_version_update.patch | 47 + .../development/mobile/genymotion/default.nix | 4 +- .../0001-Don-t-compile-examples.patch | 23 + .../mobile/ios-webkit-debug-proxy/default.nix | 63 + .../development/mobile/maestro/default.nix | 4 +- .../nim-packages/asciigraph/default.nix | 1 - .../nim-packages/base32/default.nix | 1 - .../nim-packages/base45/default.nix | 1 - .../build-nim-package/default.nix | 84 +- .../nim-packages/bumpy/default.nix | 1 - .../development/nim-packages/cbor/default.nix | 1 - .../development/nim-packages/eris/default.nix | 1 + .../nim-packages/flatty/default.nix | 1 - .../nim-packages/freedesktop_org/default.nix | 2 - .../nim-packages/getdns/default.nix | 1 - .../nim-packages/hts-nim/default.nix | 1 + .../nim-packages/illwillwidgets/default.nix | 5 +- .../nim-packages/jsony/default.nix | 1 - .../nim-packages/nimSHA2/default.nix | 1 - .../nim-packages/nimraylib-now/default.nix | 6 +- .../development/nim-packages/npeg/default.nix | 1 - .../nim-packages/parsetoml/default.nix | 1 - .../nim-packages/pixie/default.nix | 1 - .../nim-packages/safeset/default.nix | 1 - .../development/nim-packages/sdl2/default.nix | 7 +- .../nim-packages/snappy/config.patch | 7 - .../nim-packages/snappy/default.nix | 6 +- .../development/nim-packages/spry/default.nix | 1 - .../nim-packages/spryvm/default.nix | 1 - .../nim-packages/syndicate/default.nix | 1 - .../nim-packages/tkrzw/default.nix | 3 +- .../development/nim-packages/ui/default.nix | 1 - .../development/nim-packages/x11/default.nix | 2 - .../nim-packages/zippy/default.nix | 2 - .../development/node-packages/aliases.nix | 5 + .../node-packages/main-programs.nix | 2 +- .../node-packages/node-packages.json | 9 +- .../node-packages/node-packages.nix | 30200 ++++++++-------- .../development/node-packages/overrides.nix | 52 +- .../thelounge-packages-path.patch | 15 - .../ocaml-modules/ansiterminal/default.nix | 4 + .../development/ocaml-modules/awa/default.nix | 7 +- .../development/ocaml-modules/awa/lwt.nix | 21 - .../ocaml-modules/benchmark/default.nix | 25 +- .../ocaml-modules/bitstring/default.nix | 4 +- .../ocaml-modules/bls12-381-hash/default.nix | 27 - .../ocaml-modules/bls12-381/default.nix | 35 +- .../development/ocaml-modules/bz2/default.nix | 1 + .../ocaml-modules/camomile/0.8.2.nix | 32 - .../development/ocaml-modules/carton/lwt.nix | 4 +- .../ocaml-modules/cohttp/default.nix | 7 +- .../ocaml-modules/cpdf/default.nix | 4 +- .../ocaml-modules/cudf/default.nix | 43 +- .../domain-local-await/default.nix | 43 + .../ocaml-modules/dose3/default.nix | 20 +- .../ocaml-modules/duff/default.nix | 2 +- .../ocaml-modules/duppy/default.nix | 4 +- .../development/ocaml-modules/eio/default.nix | 60 + .../development/ocaml-modules/eio/linux.nix | 23 + .../development/ocaml-modules/eio/main.nix | 23 + .../development/ocaml-modules/eio/posix.nix | 28 + .../development/ocaml-modules/fix/default.nix | 2 +- .../ocaml-modules/functoria/default.nix | 5 +- .../ocaml-modules/gapi-ocaml/default.nix | 6 +- .../ocaml-modules/gen_js_api/default.nix | 4 +- .../development/ocaml-modules/github/unix.nix | 4 +- .../ocaml-modules/iomux/default.nix | 34 + .../ocaml-modules/iter/default.nix | 20 +- .../ocaml-modules/janestreet/0.15.nix | 3 +- .../json-data-encoding/default.nix | 2 +- .../ocaml-modules/lwt-exit/default.nix | 2 +- .../development/ocaml-modules/lwt/default.nix | 2 + .../ocaml-modules/mariadb/default.nix | 15 +- .../ocaml-modules/memtrace/default.nix | 23 + .../development/ocaml-modules/menhir/lib.nix | 4 +- .../ocaml-modules/minisat/default.nix | 8 +- .../ocaml-modules/mirage-crypto/default.nix | 4 +- .../ocaml-modules/mldoc/default.nix | 6 +- .../development/ocaml-modules/mtime/1_x.nix | 22 + .../ocaml-modules/mtime/default.nix | 4 +- .../development/ocaml-modules/num/default.nix | 4 +- .../ocaml-modules/ocamlformat/generic.nix | 63 + .../ocamlformat/ocamlformat-lib.nix | 24 + .../ocamlformat-rpc-lib.nix} | 2 +- .../ocaml-modules/ocamlformat/ocamlformat.nix | 26 + .../ocaml-modules/ocamlfuse/default.nix | 4 +- .../ocaml-modules/ocplib-endian/default.nix | 3 +- .../ocaml-modules/odoc-parser/default.nix | 1 - .../ocaml-modules/odoc/default.nix | 4 +- .../development/ocaml-modules/omd/default.nix | 4 + .../ocaml-modules/oseq/default.nix | 8 +- .../ocaml-modules/owl-base/default.nix | 4 +- .../development/ocaml-modules/owl/default.nix | 4 +- .../ocaml-modules/parmap/default.nix | 12 +- .../ocaml-modules/pgocaml/default.nix | 18 +- .../ocaml-modules/ppx_show/default.nix | 27 + .../ppx_yojson_conv_lib/default.nix | 8 +- .../ocaml-modules/qtest/default.nix | 8 +- .../ocaml-modules/rope/default.nix | 45 +- .../ocaml-modules/sedlex/default.nix | 9 +- .../ocaml-modules/seqes/default.nix | 22 + .../ocaml-modules/tdigest/default.nix | 31 + .../tezos-bls12-381-polynomial/default.nix | 37 - .../tezos-bls12-381-polynomial/plompiler.nix | 44 - .../tezos-bls12-381-polynomial/plonk.nix | 35 - .../ocaml-modules/thread-table/default.nix | 37 + .../development/ocaml-modules/twt/default.nix | 3 + .../ocaml-modules/uuidm/default.nix | 4 + .../development/ocaml-modules/vlq/default.nix | 7 +- .../ocaml-modules/wasm/default.nix | 1 + .../development/perl-modules/Po4a/default.nix | 4 +- ...aarch64.patch => TextBibTeX-use-lib.patch} | 2 +- .../strip-nondeterminism/default.nix | 3 +- .../development/php-packages/apcu/default.nix | 9 +- .../development/php-packages/box/default.nix | 4 +- .../php-packages/composer/default.nix | 18 +- .../php-packages/datadog_trace/Cargo.lock | 3007 ++ .../php-packages/datadog_trace/default.nix | 57 +- .../development/php-packages/grpc/default.nix | 15 +- .../php-packages/igbinary/default.nix | 11 +- .../php-packages/inotify/default.nix | 9 +- .../php-packages/mongodb/default.nix | 30 +- .../php-packages/msgpack/default.nix | 10 +- .../php-packages/openswoole/default.nix | 5 +- .../php-packages/pdepend/default.nix | 4 +- .../php-packages/php-cs-fixer/default.nix | 4 +- .../php-packages/psalm/default.nix | 4 +- .../php-packages/psysh/default.nix | 4 +- .../php-packages/relay/default.nix | 113 + .../php-packages/snuffleupagus/default.nix | 31 +- .../development/php-packages/uv/default.nix | 23 + .../development/php-packages/yaml/default.nix | 16 +- .../python-modules/Polygon3/default.nix | 35 + .../python-modules/accupy/default.nix | 5 + .../python-modules/accuweather/default.nix | 4 +- .../python-modules/acquire/default.nix | 4 +- .../adafruit-platformdetect/default.nix | 4 +- .../adafruit-pureio/default.nix | 6 +- .../python-modules/adb-enhanced/default.nix | 4 +- .../add-trailing-comma/default.nix | 6 +- .../python-modules/aesedb/default.nix | 4 +- .../python-modules/aigpy/default.nix | 30 + .../python-modules/ailment/default.nix | 4 +- .../python-modules/aio-pika/default.nix | 4 +- .../aioairzone-cloud/default.nix | 47 + .../python-modules/aioairzone/default.nix | 4 +- .../python-modules/aiobiketrax/default.nix | 4 +- .../python-modules/aiobotocore/default.nix | 4 +- .../python-modules/aioesphomeapi/default.nix | 6 +- .../python-modules/aiofile/default.nix | 4 +- .../python-modules/aiohomekit/default.nix | 4 +- .../python-modules/aiokafka/default.nix | 4 +- .../python-modules/aiokef/default.nix | 10 +- .../python-modules/aiomisc/default.nix | 4 +- .../python-modules/aiomysql/default.nix | 6 +- .../python-modules/aiooncue/default.nix | 4 +- .../python-modules/aiooss2/default.nix | 4 +- .../python-modules/aiopvpc/default.nix | 4 +- .../python-modules/aioridwell/default.nix | 4 +- .../python-modules/aiosenseme/default.nix | 39 - .../python-modules/aioshelly/default.nix | 4 +- .../python-modules/aioslimproto/default.nix | 18 +- .../python-modules/aiosmb/default.nix | 4 +- .../python-modules/aiosmtplib/default.nix | 4 +- .../python-modules/aiounifi/default.nix | 4 +- .../python-modules/aiowinreg/default.nix | 4 +- .../python-modules/alexapy/default.nix | 81 + .../aliyun-python-sdk-config/default.nix | 4 +- .../aliyun-python-sdk-iot/default.nix | 4 +- .../aliyun-python-sdk-kms/default.nix | 4 +- .../python-modules/allpairspy/default.nix | 27 +- .../python-modules/amply/default.nix | 4 +- .../androidtvremote2/default.nix | 49 + .../python-modules/angr/default.nix | 4 +- .../python-modules/angrcli/default.nix | 7 - .../annotated-types/default.nix | 43 + .../python-modules/annoy/default.nix | 4 +- .../python-modules/ansible-compat/default.nix | 4 +- .../python-modules/ansible-runner/default.nix | 23 +- .../python-modules/ansible/core.nix | 22 +- .../python-modules/ansible/default.nix | 6 +- .../python-modules/anthropic/default.nix | 4 +- .../python-modules/anyio/default.nix | 57 +- .../apache-airflow/providers.nix | 311 - .../apispec-webframeworks/default.nix | 50 + .../python-modules/app-model/default.nix | 4 +- .../python-modules/apprise/default.nix | 4 +- .../python-modules/approvaltests/default.nix | 4 +- .../appthreat-vulnerability-db/default.nix | 11 +- .../python-modules/apscheduler/default.nix | 4 +- .../python-modules/apsw/default.nix | 4 +- .../python-modules/apycula/default.nix | 5 +- .../python-modules/aranet4/default.nix | 9 +- .../python-modules/arcam-fmj/default.nix | 4 +- .../python-modules/archinfo/default.nix | 4 +- .../python-modules/argcomplete/default.nix | 32 +- .../python-modules/argilla/default.nix | 187 + .../argos-translate-files/default.nix | 41 + .../python-modules/argostranslate/default.nix | 64 + .../argparse-dataclass/default.nix | 24 + .../python-modules/ariadne/default.nix | 13 +- .../python-modules/array-record/default.nix | 43 + .../python-modules/art/default.nix | 38 + .../python-modules/asgiref/default.nix | 4 +- .../python-modules/asteval/default.nix | 20 +- .../python-modules/asyauth/default.nix | 4 +- .../python-modules/async-lru/default.nix | 8 +- .../async-tkinter-loop/default.nix | 46 + .../async-upnp-client/default.nix | 8 +- .../python-modules/asyncinotify/default.nix | 31 + .../python-modules/asyncmy/default.nix | 4 +- .../python-modules/asyncssh/default.nix | 4 +- .../python-modules/asyncstdlib/default.nix | 4 +- .../python-modules/asyncwhois/default.nix | 4 +- .../python-modules/asysocks/default.nix | 4 +- .../atlassian-python-api/default.nix | 4 +- .../python-modules/auth0-python/default.nix | 4 +- .../python-modules/autobahn/default.nix | 19 +- .../python-modules/autoflake/default.nix | 6 +- .../python-modules/autograd/default.nix | 24 +- .../python-modules/autopep8/default.nix | 16 +- .../python-modules/avro/default.nix | 7 +- .../python-modules/aw-client/default.nix | 9 +- .../python-modules/aw-core/default.nix | 11 +- .../python-modules/awkward-cpp/default.nix | 4 +- .../python-modules/awkward/default.nix | 5 +- .../aws-lambda-builders/default.nix | 18 +- .../aws-secretsmanager-caching/default.nix | 2 + .../python-modules/awswrangler/default.nix | 4 +- .../python-modules/azure-batch/default.nix | 4 +- .../azure-containerregistry/default.nix | 26 +- .../python-modules/azure-core/default.nix | 27 +- .../azure-data-tables/default.nix | 4 +- .../azure-eventgrid/default.nix | 4 +- .../python-modules/azure-eventhub/default.nix | 4 +- .../azure-mgmt-appcontainers/default.nix | 40 + .../azure-mgmt-compute/default.nix | 8 +- .../azure-mgmt-containerservice/default.nix | 4 +- .../azure-mgmt-core/default.nix | 4 +- .../python-modules/azure-mgmt-dns/default.nix | 4 +- .../azure-mgmt-frontdoor/default.nix | 4 +- .../azure-mgmt-keyvault/default.nix | 4 +- .../azure-mgmt-network/default.nix | 4 +- .../azure-mgmt-privatedns/default.nix | 25 +- .../azure-mgmt-recoveryservices/default.nix | 4 +- .../azure-mgmt-redis/default.nix | 4 +- .../azure-multiapi-storage/default.nix | 4 +- .../azure-servicebus/default.nix | 4 +- .../azure-storage-blob/default.nix | 4 +- .../azure-storage-file-share/default.nix | 4 +- .../python-modules/babel/default.nix | 7 +- .../python-modules/bacpypes/default.nix | 39 +- .../python-modules/bambi/default.nix | 26 +- .../python-modules/bandcamp-api/default.nix | 47 + .../python-modules/bayespy/default.nix | 18 +- .../pr127-Fix-deprecated-numpy-types.patch | 129 - .../bc-detect-secrets/default.nix | 4 +- .../python-modules/before-after/default.nix | 35 + .../python-modules/bellows/default.nix | 4 +- .../python-modules/bids-validator/default.nix | 4 +- .../bimmer-connected/default.nix | 4 +- .../python-modules/biopandas/default.nix | 62 + .../python-modules/bitarray/default.nix | 4 +- .../python-modules/bitbox02/default.nix | 36 +- .../python-modules/black/default.nix | 4 +- .../python-modules/blinkpy/default.nix | 4 +- .../python-modules/blobfile/default.nix | 2 +- .../python-modules/blocksat-cli/default.nix | 4 +- .../bluetooth-data-tools/default.nix | 4 +- .../bluetooth-sensor-state-data/default.nix | 4 +- .../python-modules/boa-api/default.nix | 14 +- .../python-modules/boilerpy3/default.nix | 40 + .../python-modules/bond-async/default.nix | 12 +- .../python-modules/bottombar/default.nix | 37 + .../python-modules/boxx/default.nix | 4 +- .../python-modules/bqplot/default.nix | 4 +- .../python-modules/breezy/Cargo.lock | 214 +- .../python-modules/breezy/default.nix | 7 +- .../python-modules/broadbean/default.nix | 47 + .../python-modules/brotli-asgi/default.nix | 49 + .../browser-cookie3/default.nix | 4 +- .../python-modules/btest/default.nix | 4 +- .../python-modules/bthome-ble/default.nix | 6 +- .../btsmarthub_devicelist/default.nix | 2 +- .../python-modules/bx-py-utils/default.nix | 6 + .../python-modules/bytecode/default.nix | 4 +- .../python-modules/cachecontrol/default.nix | 33 +- .../python-modules/cacheyou/default.nix | 62 + .../python-modules/caldav/default.nix | 4 +- .../python-modules/calmjs-types/default.nix | 28 + .../python-modules/calmjs/default.nix | 54 + .../python-modules/calysto-scheme/default.nix | 6 +- .../camel-converter/default.nix | 11 +- .../python-modules/camelot/default.nix | 55 + .../python-modules/can/default.nix | 4 +- .../python-modules/canals/default.nix | 70 + .../python-modules/casbin/default.nix | 4 +- .../python-modules/celery-redbeat/default.nix | 22 +- .../celery-singleton/default.nix | 76 + .../python-modules/celery/default.nix | 35 +- .../python-modules/censys/default.nix | 7 +- .../python-modules/certipy-ad}/default.nix | 33 +- .../clang-pointer-substraction-warning.diff | 11 + .../python-modules/cffi/default.nix | 6 + .../python-modules/cfscrape/default.nix | 2 +- .../python-modules/chardet/default.nix | 3 +- .../python-modules/chart-studio/default.nix | 4 +- .../python-modules/cherrypy/default.nix | 4 + .../python-modules/ci-py/default.nix | 30 +- .../python-modules/ciscoconfparse/default.nix | 8 +- .../python-modules/clarifai-grpc/default.nix | 42 + .../python-modules/clarifai/default.nix | 40 + .../python-modules/claripy/default.nix | 4 +- .../python-modules/class-doc/default.nix | 49 + .../python-modules/cle/default.nix | 4 +- .../python-modules/cleanlab/default.nix | 63 + .../python-modules/cliche/default.nix | 37 + .../0001-Fix-quotes-in-test.patch | 39 + .../python-modules/click-aliases/default.nix | 39 + .../click-command-tree/default.nix | 13 +- .../click-option-group/default.nix | 4 +- .../python-modules/cliff/tests.nix | 7 +- .../python-modules/cligj/default.nix | 2 +- .../python-modules/clize/default.nix | 4 +- .../python-modules/cloudflare/default.nix | 4 +- .../python-modules/cloudsmith-api/default.nix | 4 +- .../python-modules/cloudsplaining/default.nix | 4 +- .../python-modules/cloup/default.nix | 4 +- .../python-modules/clr-loader/default.nix | 79 + .../python-modules/clr-loader/deps.nix | 11 + .../python-modules/clustershell/default.nix | 2 +- .../python-modules/coffea/default.nix | 97 + .../python-modules/cohere/default.nix | 4 +- .../coinmetrics-api-client/default.nix | 18 +- .../concurrent-log-handler/default.nix | 4 +- .../python-modules/confection/default.nix | 4 +- .../python-modules/configargparse/default.nix | 28 +- .../python-modules/configshell/default.nix | 9 +- .../confluent-kafka/default.nix | 67 +- .../python-modules/cons/default.nix | 12 +- .../python-modules/correctionlib/default.nix | 64 + .../python-modules/cpyparsing/default.nix | 4 +- .../python-modules/crc/default.nix | 23 +- .../python-modules/croniter/default.nix | 10 +- .../python-modules/cryptography/default.nix | 13 +- .../python-modules/cson/default.nix | 26 + .../python-modules/css-inline/Cargo.lock | 442 +- .../python-modules/css-inline/default.nix | 10 +- .../python-modules/cssutils/default.nix | 4 +- .../python-modules/ctranslate2/default.nix | 84 + .../python-modules/cupy/default.nix | 4 +- .../python-modules/cwl-upgrader/default.nix | 4 +- .../cyclonedx-python-lib/default.nix | 4 +- .../python-modules/cypherpunkpay/default.nix | 4 +- .../python-modules/dacite/default.nix | 4 +- .../python-modules/dash/default.nix | 4 +- .../python-modules/dashing/default.nix | 3 +- .../python-modules/dask-awkward/default.nix | 4 +- .../python-modules/dask-histogram/default.nix | 49 + .../python-modules/dask-image/default.nix | 5 +- .../python-modules/dask-jobqueue/default.nix | 4 +- .../dataclasses-json/default.nix | 13 +- .../python-modules/datafusion/default.nix | 15 +- .../python-modules/datashader/default.nix | 4 +- .../python-modules/datrie/default.nix | 12 +- .../python-modules/debtcollector/tests.nix | 7 +- .../python-modules/decli/default.nix | 35 +- .../deep-translator/default.nix | 13 +- .../python-modules/deepl/default.nix | 4 +- .../python-modules/deezer-python/default.nix | 4 +- .../python-modules/demes/default.nix | 58 + .../python-modules/demesdraw/default.nix | 63 + .../python-modules/denonavr/default.nix | 4 +- .../python-modules/descartes/default.nix | 27 - .../desktop-notifier/default.nix | 7 +- .../python-modules/detectron2/default.nix | 99 + .../python-modules/devolo-plc-api/default.nix | 12 +- .../python-modules/devpi-common/default.nix | 6 + .../python-modules/diceware/default.nix | 41 +- .../python-modules/diff-cover/default.nix | 4 +- .../python-modules/diffimg/default.nix | 43 + .../python-modules/dirty-equals/default.nix | 13 +- .../python-modules/discordpy/default.nix | 4 +- .../python-modules/dissect-cim/default.nix | 4 +- .../python-modules/dissect-clfs/default.nix | 4 +- .../dissect-cobaltstrike/default.nix | 83 + .../dissect-cstruct/default.nix | 6 +- .../python-modules/dissect-esedb/default.nix | 6 +- .../python-modules/dissect-etl/default.nix | 4 +- .../dissect-eventlog/default.nix | 4 +- .../dissect-evidence/default.nix | 4 +- .../dissect-executable/default.nix | 4 +- .../python-modules/dissect-extfs/default.nix | 7 +- .../python-modules/dissect-fat/default.nix | 4 +- .../python-modules/dissect-ffs/default.nix | 4 +- .../dissect-hypervisor/default.nix | 6 +- .../python-modules/dissect-ntfs/default.nix | 4 +- .../python-modules/dissect-ole/default.nix | 4 +- .../python-modules/dissect-regf/default.nix | 4 +- .../dissect-shellitem/default.nix | 4 +- .../python-modules/dissect-sql/default.nix | 4 +- .../dissect-squashfs/default.nix | 4 +- .../python-modules/dissect-target/default.nix | 15 +- .../dissect-thumbcache/default.nix | 4 +- .../python-modules/dissect-util/default.nix | 6 +- .../python-modules/dissect-vmfs/default.nix | 4 +- .../python-modules/dissect-volume/default.nix | 4 +- .../python-modules/dissect-xfs/default.nix | 7 +- .../python-modules/dissect/default.nix | 6 +- .../django-admin-datta/default.nix | 38 + .../django-cachalot/default.nix | 54 + .../disable-unsupported-tests.patch | 65 + .../django-cacheops/default.nix | 55 +- .../python-modules/django-cleanup/default.nix | 4 +- .../django-compressor/default.nix | 44 +- .../django-formtools/default.nix | 4 +- .../django-hijack-admin/default.nix | 41 - .../python-modules/django-leaflet/default.nix | 39 + .../django-maintenance-mode/default.nix | 23 +- .../python-modules/django-mysql/default.nix | 6 +- .../django-oauth-toolkit/default.nix | 4 +- .../django-rest-registration/default.nix | 6 +- .../python-modules/django-rosetta/default.nix | 45 + .../python-modules/django-scopes/default.nix | 7 +- .../python-modules/django-sekizai/default.nix | 37 + .../django-simple-captcha/default.nix | 4 +- .../django-stubs-ext/default.nix | 7 +- .../django-timezone-field/default.nix | 4 +- .../python-modules/django-vite/default.nix | 4 +- .../django-webpack-loader/default.nix | 5 +- .../development/python-modules/django/3.nix | 4 +- .../development/python-modules/django/4.nix | 4 +- .../python-modules/dm-haiku/default.nix | 4 +- .../python-modules/dm-haiku/tests.nix | 8 +- .../python-modules/dnachisel/default.nix | 16 +- .../python-modules/dominate/default.nix | 4 +- .../python-modules/dotwiz/default.nix | 47 + .../python-modules/dparse/default.nix | 7 +- .../drf-nested-routers/default.nix | 4 +- .../python-modules/drms/default.nix | 4 +- .../python-modules/dropbox/default.nix | 8 +- .../python-modules/dsmr-parser/default.nix | 4 +- .../python-modules/dtlssocket/default.nix | 4 +- .../python-modules/ducc0/default.nix | 4 +- .../python-modules/duckdb-engine/default.nix | 11 +- .../python-modules/duckdb/default.nix | 18 +- .../python-modules/dvc-azure/default.nix | 4 +- .../python-modules/dvc-data/default.nix | 4 +- .../python-modules/dvc-gs/default.nix | 4 +- .../python-modules/dvc-objects/default.nix | 4 +- .../python-modules/dvc-s3/default.nix | 4 +- .../dvc-studio-client/default.nix | 4 +- .../python-modules/dvc-task/default.nix | 4 +- .../python-modules/dvclive/default.nix | 4 +- .../python-modules/dwdwfsapi/default.nix | 5 +- .../dynalite-devices/default.nix | 17 +- .../python-modules/easyocr/default.nix | 33 +- .../edk2-pytool-library/default.nix | 13 +- .../python-modules/effdet/default.nix | 43 + .../python-modules/elastic-apm/default.nix | 4 +- .../elastic-transport/default.nix | 7 + .../python-modules/elementpath/default.nix | 4 +- .../python-modules/elkm1-lib/default.nix | 4 +- .../embedding-reader/default.nix | 4 +- .../python-modules/embrace/default.nix | 4 +- .../python-modules/emoji/default.nix | 4 +- .../python-modules/empty-files/default.nix | 6 +- .../python-modules/enaml/default.nix | 4 +- .../python-modules/encodec/default.nix | 43 + .../python-modules/env-canada/default.nix | 4 +- .../espeak-phonemizer/default.nix | 4 +- .../python-modules/eth-abi/default.nix | 6 +- .../python-modules/eth-account/default.nix | 11 +- .../python-modules/eth-hash/default.nix | 4 +- .../python-modules/eth-utils/default.nix | 11 +- .../python-modules/etuples/default.nix | 14 +- .../python-modules/exceptiongroup/default.nix | 6 + .../python-modules/execnet/default.nix | 19 +- .../experiment-utilities/default.nix | 69 + .../python-modules/ezyrb/default.nix | 4 +- .../f5-icontrol-rest/default.nix | 40 + .../python-modules/f5-sdk/default.nix | 34 + .../python-modules/fairscale/default.nix | 65 + .../python-modules/fairseq/default.nix | 106 + .../python-modules/fakeredis/default.nix | 4 +- .../default.nix | 4 +- .../faraday-plugins/default.nix | 6 +- .../python-modules/fastapi-mail/default.nix | 10 +- .../python-modules/fastavro/default.nix | 29 +- .../python-modules/fastdownload/default.nix | 4 +- .../python-modules/faster-fifo/default.nix | 46 + .../python-modules/faster-whisper/default.nix | 63 + .../python-modules/fastnumbers/default.nix | 5 +- .../python-modules/fastpair/default.nix | 26 +- .../python-modules/favicon/default.nix | 39 +- .../python-modules/fenics/default.nix | 16 + .../ffmpeg-progress-yield/default.nix | 4 +- .../python-modules/filedepot/default.nix | 66 + .../python-modules/filelock/default.nix | 6 +- .../python-modules/filterpy/default.nix | 34 +- .../python-modules/findpython/default.nix | 8 +- .../python-modules/fingerprints/default.nix | 22 +- .../python-modules/fiona/default.nix | 2 +- .../python-modules/fipy/default.nix | 23 +- .../python-modules/flake8-bugbear/default.nix | 4 +- .../python-modules/flammkuchen/default.nix | 27 +- .../flask-appbuilder/default.nix | 6 +- .../flask-jwt-extended/default.nix | 5 +- .../python-modules/flask-restful/default.nix | 4 +- .../python-modules/flask/default.nix | 4 +- .../python-modules/flatbuffers/default.nix | 2 +- .../python-modules/flet-core/default.nix | 4 +- .../python-modules/flet/default.nix | 12 +- .../python-modules/flet/pyproject.toml.patch | 11 - .../python-modules/flit-core/tests.nix | 2 +- .../python-modules/flow-record/default.nix | 13 +- .../python-modules/flower/default.nix | 6 +- .../python-modules/flyingsquid/default.nix | 41 + .../python-modules/fontmath/default.nix | 35 +- .../python-modules/frida-python/default.nix | 39 + .../python-modules/frigidaire/default.nix | 4 +- .../python-modules/funcy/default.nix | 10 +- .../python-modules/furl/default.nix | 7 + .../python-modules/furo/default.nix | 13 +- .../python-modules/fvcore/default.nix | 66 + .../python-modules/fypp/default.nix | 20 + .../python-modules/gaphas/default.nix | 4 +- .../python-modules/gatt/default.nix | 2 +- .../python-modules/gcal-sync/default.nix | 4 +- .../python-modules/gehomesdk/default.nix | 4 +- .../python-modules/generic/default.nix | 7 +- .../python-modules/geoalchemy2/default.nix | 5 +- .../geometric/ase-is-optional.patch | 50 - .../python-modules/geometric/default.nix | 13 +- .../python-modules/geopandas/default.nix | 9 +- .../python-modules/getmac/default.nix | 4 +- .../python-modules/gidgethub/default.nix | 4 +- .../gitignore-parser/default.nix | 4 +- .../python-modules/glances-api/default.nix | 4 +- .../python-modules/glean-sdk/default.nix | 12 + .../python-modules/globus-sdk/default.nix | 6 +- .../python-modules/glom/default.nix | 4 +- .../python-modules/glyphslib/default.nix | 4 +- .../python-modules/goalzero/default.nix | 4 +- .../google-ai-generativelanguage/default.nix | 55 + .../google-api-python-client/default.nix | 4 +- .../python-modules/google-auth/default.nix | 4 +- .../default.nix | 4 +- .../google-cloud-asset/default.nix | 4 +- .../google-cloud-automl/default.nix | 4 +- .../default.nix | 4 +- .../google-cloud-bigquery-logging/default.nix | 4 +- .../google-cloud-bigquery-storage/default.nix | 4 +- .../google-cloud-bigquery/default.nix | 4 +- .../google-cloud-bigtable/default.nix | 4 +- .../google-cloud-compute/default.nix | 4 +- .../google-cloud-container/default.nix | 4 +- .../google-cloud-core/default.nix | 4 +- .../google-cloud-datacatalog/default.nix | 4 +- .../google-cloud-dataproc/default.nix | 4 +- .../google-cloud-datastore/default.nix | 4 +- .../google-cloud-dlp/default.nix | 4 +- .../google-cloud-error-reporting/default.nix | 4 +- .../google-cloud-iam-logging/default.nix | 4 +- .../google-cloud-iam/default.nix | 4 +- .../google-cloud-iot/default.nix | 4 +- .../google-cloud-kms/default.nix | 4 +- .../google-cloud-language/default.nix | 4 +- .../google-cloud-logging/default.nix | 4 +- .../google-cloud-monitoring/default.nix | 4 +- .../google-cloud-org-policy/default.nix | 4 +- .../google-cloud-os-config/default.nix | 4 +- .../google-cloud-pubsub/default.nix | 4 +- .../google-cloud-redis/default.nix | 4 +- .../google-cloud-resource-manager/default.nix | 4 +- .../google-cloud-secret-manager/default.nix | 4 +- .../google-cloud-securitycenter/default.nix | 4 +- .../google-cloud-spanner/default.nix | 4 +- .../google-cloud-speech/default.nix | 4 +- .../google-cloud-storage/default.nix | 4 +- .../google-cloud-tasks/default.nix | 4 +- .../google-cloud-trace/default.nix | 4 +- .../google-cloud-translate/default.nix | 4 +- .../default.nix | 4 +- .../google-cloud-vision/default.nix | 4 +- .../default.nix | 4 +- .../google-generativeai/default.nix | 49 + .../google-i18n-address/default.nix | 28 +- .../google-nest-sdm/default.nix | 8 +- .../google-search-results/default.nix | 39 + .../python-modules/google/default.nix | 37 + .../python-modules/gpustat/default.nix | 31 +- .../python-modules/gpyopt/default.nix | 33 - .../graphene-django/default.nix | 4 +- .../python-modules/graphtage/default.nix | 4 +- .../greeneye-monitor/default.nix | 27 +- .../python-modules/grequests/default.nix | 4 +- .../python-modules/griffe/default.nix | 6 +- .../grpc-interceptor/default.nix | 65 + .../python-modules/gsd/default.nix | 4 +- .../python-modules/gst-python/default.nix | 5 +- .../python-modules/gudhi/default.nix | 4 +- .../gudhi/remove_explicit_PYTHONPATH.patch | 261 +- .../python-modules/guestfs/default.nix | 1 + .../python-modules/ha-philipsjs/default.nix | 4 +- .../python-modules/hahomematic/default.nix | 4 +- .../python-modules/hap-python/default.nix | 8 +- .../python-modules/hass-nabucasa/default.nix | 4 +- .../hatch-fancy-pypi-readme/default.nix | 4 +- .../python-modules/hcloud/default.nix | 4 +- .../python-modules/hdf5plugin/default.nix | 4 +- .../python-modules/heatshrink2/default.nix | 20 +- .../python-modules/heudiconv/default.nix | 39 +- .../python-modules/hexbytes/default.nix | 15 +- .../python-modules/hg-evolve/default.nix | 4 +- .../python-modules/hickle/default.nix | 18 +- .../python-modules/hidapi/default.nix | 4 +- .../python-modules/holidays/default.nix | 6 +- .../python-modules/holoviews/default.nix | 4 +- .../home-assistant-chip-clusters/default.nix | 4 +- .../home-assistant-chip-core/default.nix | 8 +- .../python-modules/howdoi/default.nix | 24 +- .../python-modules/html-sanitizer/default.nix | 16 +- .../python-modules/httplib2/default.nix | 5 +- .../python-modules/httpx-socks/default.nix | 15 +- .../python-modules/huawei-lte-api/default.nix | 4 +- .../huggingface-hub/default.nix | 4 +- .../python-modules/hvac/default.nix | 17 +- .../python-modules/hvplot/default.nix | 4 +- .../python-modules/hydrus-api/default.nix | 4 +- .../python-modules/hyperpyyaml/default.nix | 39 + .../python-modules/hypothesis/default.nix | 39 +- .../python-modules/iammeter/default.nix | 32 + .../python-modules/ibis-framework/default.nix | 15 + .../ibm-cloud-sdk-core/default.nix | 4 +- .../python-modules/ibm-watson/default.nix | 4 +- .../python-modules/ical/default.nix | 13 +- .../python-modules/ifcopenshell/default.nix | 4 +- .../python-modules/ijson/default.nix | 4 +- .../python-modules/image-diff/default.nix | 39 + .../python-modules/image-match/default.nix | 35 - .../python-modules/imageio/default.nix | 2 +- .../imbalanced-learn/default.nix | 4 +- .../python-modules/imgaug/default.nix | 84 - .../python-modules/imgdiff/default.nix | 39 + .../python-modules/immutabledict/default.nix | 4 +- .../python-modules/immutables/default.nix | 11 +- .../python-modules/in-n-out/default.nix | 19 +- .../python-modules/influxdb/default.nix | 2 + .../python-modules/intake-parquet/default.nix | 4 +- .../python-modules/intake/default.nix | 4 +- .../intensity-normalization/default.nix | 4 +- .../python-modules/invoke/default.nix | 9 +- .../python-modules/iopath/default.nix | 68 + .../python-modules/ipydatawidgets/default.nix | 4 +- .../python-modules/ipykernel/tests.nix | 7 +- .../python-modules/ipyparallel/default.nix | 4 - .../python-modules/ipyvue/default.nix | 4 +- .../python-modules/iso3166/default.nix | 5 +- .../python-modules/iso8601/default.nix | 3 +- .../python-modules/iwlib/default.nix | 26 + .../python-modules/jaraco-abode/default.nix | 51 +- .../python-modules/jaraco-email/default.nix | 14 + .../python-modules/jaraco-net/default.nix | 3 + .../jaraco_collections/default.nix | 9 +- .../python-modules/jaxopt/default.nix | 7 + .../development/python-modules/jc/default.nix | 4 +- .../python-modules/jello/default.nix | 46 + .../jenkins-job-builder/default.nix | 8 +- .../python-modules/jira/default.nix | 4 +- .../python-modules/jiwer/default.nix | 14 +- .../johnnycanencrypt/default.nix | 11 +- .../python-modules/jsbeautifier/default.nix | 5 +- .../python-modules/json-rpc/default.nix | 4 +- .../json-schema-for-humans/default.nix | 4 +- .../python-modules/jsonref/default.nix | 23 +- .../python-modules/jsonschema/3_x.nix | 39 - .../python-modules/jsonschema/default.nix | 2 + .../python-modules/jug/default.nix | 5 +- .../python-modules/jupyter-lsp/default.nix | 4 +- .../jupyter-server-ydoc/default.nix | 6 + .../python-modules/jupyterhub/default.nix | 3 +- .../python-modules/jupyterlab-lsp/default.nix | 4 +- .../python-modules/jwcrypto/default.nix | 5 +- .../python-modules/k5test/default.nix | 2 +- .../python-modules/kaggle/default.nix | 2 +- .../karton-classifier/default.nix | 4 +- .../python-modules/karton-core/default.nix | 4 +- .../karton-dashboard/default.nix | 14 +- .../karton-mwdb-reporter/default.nix | 4 +- .../python-modules/kasa-crypt/default.nix | 51 + .../python-modules/keepalive/default.nix | 20 +- .../python-modules/keyring/default.nix | 4 +- .../python-modules/kmapper/default.nix | 1 + .../python-modules/kneed/default.nix | 53 + .../python-modules/knx-frontend/default.nix | 37 + .../python-modules/kombu/default.nix | 11 +- .../python-modules/langchain/default.nix | 49 +- .../langchainplus-sdk/default.nix | 47 + .../python-modules/lanms-neo/default.nix | 39 + .../python-modules/layoutparser/default.nix | 100 + .../python-modules/lazy-loader/default.nix | 4 +- .../python-modules/lazy_imports/default.nix | 39 + .../python-modules/libais/default.nix | 36 +- .../python-modules/libretranslate/default.nix | 94 + .../python-modules/libsixel/default.nix | 3 +- .../python-modules/libtmux/default.nix | 4 +- .../python-modules/libvirt/default.nix | 4 +- .../license-expression/default.nix | 4 +- .../python-modules/lightgbm/default.nix | 6 +- .../lightning-utilities/default.nix | 4 +- .../python-modules/lime/default.nix | 61 + .../python-modules/limits/default.nix | 6 +- .../python-modules/limnoria/default.nix | 4 +- .../python-modules/lion-pytorch/default.nix | 4 +- .../python-modules/litemapy/default.nix | 32 + .../logical-unification/default.nix | 6 +- .../python-modules/loguru/default.nix | 31 +- .../python-modules/looseversion/default.nix | 4 +- .../python-modules/losant-rest/default.nix | 4 +- .../python-modules/lru-dict/default.nix | 8 +- .../python-modules/lsprotocol/default.nix | 4 +- .../python-modules/ltpycld2/default.nix | 29 + .../python-modules/luqum/default.nix | 41 + .../python-modules/lyricwikia/default.nix | 57 +- .../python-modules/lzallright/default.nix | 50 + .../python-modules/lzallright/tests.nix | 15 + .../python-modules/m3u8/default.nix | 6 +- .../python-modules/macfsevents/default.nix | 16 +- .../python-modules/maestral/default.nix | 4 +- .../python-modules/magicgui/default.nix | 3 +- .../python-modules/malduck/default.nix | 7 +- .../python-modules/manifest-ml/default.nix | 4 +- .../markdownsuperscript/default.nix | 31 - .../python-modules/markupsafe/default.nix | 5 +- .../python-modules/mashumaro/default.nix | 64 + .../python-modules/mask-rcnn/default.nix | 68 - .../python-modules/mastodon-py/default.nix | 4 +- .../matplotlib-sixel/default.nix | 32 + .../python-modules/matplotlib/default.nix | 12 +- .../python-modules/matplotx/default.nix | 67 + .../python-modules/mautrix/default.nix | 4 +- .../python-modules/maxcube-api/default.nix | 14 +- .../python-modules/maxminddb/default.nix | 32 +- .../python-modules/mbstrdecoder/default.nix | 27 +- .../python-modules/mdformat-admon/default.nix | 52 + .../mdformat-beautysh/default.nix | 46 + .../mdformat-footnote/default.nix | 40 + .../mdformat-frontmatter/default.nix | 45 + .../python-modules/mdformat-gfm/default.nix | 58 + .../mdformat-mkdocs/default.nix | 40 + .../mdformat-nix-alejandra/default.nix | 41 + .../mdformat-simple-breaks/default.nix | 37 + .../mdformat-tables/default.nix | 42 + .../python-modules/mdformat-toc/default.nix | 47 + .../python-modules/mdformat/default.nix | 117 +- .../python-modules/mechanicalsoup/default.nix | 35 +- .../python-modules/mediapy/default.nix | 4 +- .../python-modules/meeko/default.nix | 52 + .../python-modules/meilisearch/default.nix | 4 +- .../memory_profiler/default.nix | 3 +- .../python-modules/meraki/default.nix | 4 +- .../python-modules/meshtastic/default.nix | 4 +- .../python-modules/metakernel/default.nix | 4 +- .../python-modules/metar/default.nix | 4 +- .../python-modules/metawear/default.nix | 60 + .../python-modules/mf2py/default.nix | 6 +- .../python-modules/mhcflurry/default.nix | 99 + .../python-modules/mhcgnomes/default.nix | 33 + .../python-modules/micawber/default.nix | 20 +- .../python-modules/mike/default.nix | 60 + .../python-modules/miniaudio/default.nix | 17 +- .../python-modules/minikerberos/default.nix | 4 +- .../python-modules/minio/default.nix | 4 +- .../python-modules/mir_eval/default.nix | 39 + .../python-modules/mitogen/default.nix | 4 +- .../python-modules/mizani/default.nix | 4 +- .../mkdocs-material/default.nix | 4 +- .../mkdocs-swagger-ui-tag/default.nix | 4 +- .../mkdocstrings-python/default.nix | 1 - .../python-modules/mlflow/default.nix | 4 +- .../python-modules/mmcif-pdbx/default.nix | 42 + .../python-modules/mmengine/default.nix | 4 +- .../python-modules/mmh3/default.nix | 16 +- .../python-modules/mmtf-python/default.nix | 44 + .../python-modules/monai/default.nix | 9 +- .../python-modules/moreorless/default.nix | 56 + .../python-modules/morfessor/default.nix | 27 + .../python-modules/mplhep-data/default.nix | 34 + .../python-modules/mplhep/default.nix | 63 + .../python-modules/msg-parser/default.nix | 41 + .../python-modules/msgpack/default.nix | 6 +- .../python-modules/msgspec/default.nix | 4 +- .../python-modules/msldap/default.nix | 4 +- .../python-modules/msprime/default.nix | 81 + .../python-modules/mss/default.nix | 11 +- .../python-modules/mt-940/default.nix | 50 +- .../mullvad-closest/default.nix | 44 + .../mwparserfromhell/default.nix | 18 +- .../mypy-boto3-builder/default.nix | 6 +- .../python-modules/mypy-boto3-ebs/default.nix | 4 +- .../python-modules/mypy-boto3-s3/default.nix | 4 +- .../python-modules/mypy/default.nix | 20 +- .../python-modules/mypy/extensions.nix | 4 +- .../python-modules/napari-npe2/default.nix | 4 +- .../python-modules/natsort/default.nix | 4 +- .../python-modules/nbclassic/default.nix | 2 +- .../python-modules/nbexec/default.nix | 61 + .../python-modules/nbsphinx/default.nix | 4 +- .../python-modules/nbtlib/default.nix | 43 + .../python-modules/nbxmpp/default.nix | 4 +- .../python-modules/ndjson/default.nix | 34 +- .../python-modules/neo4j/default.nix | 4 +- .../python-modules/nessclient/default.nix | 7 +- .../python-modules/nestedtext/default.nix | 4 +- .../python-modules/netapp-lib/default.nix | 36 + .../python-modules/netapp-ontap/default.nix | 45 + .../python-modules/netdata/default.nix | 7 +- .../python-modules/netio/default.nix | 25 +- .../python-modules/newick/default.nix | 45 + .../python-modules/nextcord/default.nix | 4 +- .../python-modules/nh3/default.nix | 46 + .../python-modules/niaarm/default.nix | 4 +- .../python-modules/nibe/default.nix | 4 +- .../python-modules/nitransforms/default.nix | 4 +- .../python-modules/nlpcloud/default.nix | 4 +- .../python-modules/nose3/default.nix | 36 + .../python-modules/notebook/default.nix | 2 +- .../python-modules/nptyping/default.nix | 2 - .../python-modules/nsz/default.nix | 4 +- .../python-modules/numcodecs/default.nix | 5 + .../python-modules/numpy/default.nix | 4 +- .../python-modules/nunavut/default.nix | 5 +- .../python-modules/nutils/default.nix | 15 +- .../python-modules/nvchecker/default.nix | 10 +- .../python-modules/nvidia-ml-py/default.nix | 4 +- .../python-modules/nxt-python/default.nix | 43 +- .../python-modules/oauthlib/default.nix | 14 + .../python-modules/objgraph/default.nix | 4 +- .../python-modules/oca-port/default.nix | 46 + .../python-modules/oci/default.nix | 4 +- .../python-modules/ocrmypdf/default.nix | 4 +- .../python-modules/odp-amsterdam/default.nix | 4 +- .../python-modules/omemo-dr/default.nix | 22 + .../onnxruntime-tools/default.nix | 50 + .../onvif-zeep-async/default.nix | 4 +- .../python-modules/openai/default.nix | 4 +- .../python-modules/openaiauth/default.nix | 19 +- .../opencensus-ext-azure/default.nix | 42 + .../python-modules/openhomedevice/default.nix | 20 +- .../python-modules/openrgb-python/default.nix | 33 + .../python-modules/openstacksdk/default.nix | 4 +- .../python-modules/openstacksdk/tests.nix | 4 +- .../opentelemetry-api/default.nix | 58 + .../default.nix | 49 + .../default.nix | 58 + .../default.nix | 55 + .../opentelemetry-exporter-otlp/default.nix | 48 + .../default.nix | 51 + .../default.nix | 55 + .../default.nix | 59 + .../default.nix | 53 + .../opentelemetry-instrumentation/default.nix | 53 + .../opentelemetry-proto/default.nix | 45 + .../opentelemetry-sdk/default.nix | 66 + .../default.nix | 40 + .../opentelemetry-test-utils/default.nix | 45 + .../opentelemetry-util-http/default.nix | 51 + .../python-modules/opentracing/default.nix | 5 + .../python-modules/opower/default.nix | 55 + .../python-modules/optax/tests.nix | 6 +- .../python-modules/opuslib/default.nix | 6 + .../python-modules/oracledb/default.nix | 4 +- .../python-modules/os-service-types/tests.nix | 7 +- .../python-modules/oslo-config/tests.nix | 9 +- .../python-modules/oslo-log/default.nix | 6 +- .../python-modules/oslotest/tests.nix | 7 +- .../python-modules/owslib/default.nix | 7 +- .../python-modules/packet-python/default.nix | 43 +- .../python-modules/paddle2onnx/default.nix | 41 + .../paddle_bfloat/binary-hashes.nix | 11 + .../python-modules/paddle_bfloat/default.nix | 37 + .../python-modules/pamela/default.nix | 4 +- .../python-modules/pandas/default.nix | 8 +- .../python-modules/parameterized/default.nix | 28 +- .../python-modules/pathspec/default.nix | 10 + .../python-modules/pathy/default.nix | 4 +- .../development/python-modules/pbr/tests.nix | 7 +- .../python-modules/pdb2pqr/default.nix | 73 + .../python-modules/pdf2image/default.nix | 4 +- .../python-modules/pdfplumber/default.nix | 82 + .../python-modules/pdfposter/default.nix | 26 - .../python-modules/pdm-backend/default.nix | 12 +- .../python-modules/pdm-backend/setup-hook.sh | 8 + .../python-modules/peaqevcore/default.nix | 8 +- .../python-modules/peewee-migrate/default.nix | 4 +- .../python-modules/pem/default.nix | 46 + .../python-modules/perfplot/default.nix | 20 +- .../python-modules/persist-queue/default.nix | 10 +- .../python-modules/pgmpy/default.nix | 78 + .../python-modules/pgvector/default.nix | 62 + .../python-modules/phonenumbers/default.nix | 4 +- .../python-modules/phonopy/default.nix | 4 +- .../python-modules/pilkit/default.nix | 2 +- .../python-modules/ping3/default.nix | 31 + .../python-modules/pint-pandas/default.nix | 12 +- .../python-modules/pipdeptree/default.nix | 4 +- .../{larynx-train => piper-train}/default.nix | 19 +- .../python-modules/pixelmatch/default.nix | 4 - .../pkgutil-resolve-name/default.nix | 31 + .../python-modules/plaid-python/default.nix | 4 +- .../plantuml-markdown/default.nix | 4 +- .../python-modules/platformdirs/default.nix | 4 +- .../python-modules/playwright/default.nix | 5 +- .../python-modules/playwright/update.sh | 12 +- .../python-modules/plexapi/default.nix | 4 +- .../python-modules/plugwise/default.nix | 6 +- .../python-modules/plumbum/default.nix | 4 +- .../python-modules/poetry-core/default.nix | 2 + .../poetry-dynamic-versioning/default.nix | 2 + .../poetry-dynamic-versioning/setup-hook.sh | 8 + .../python-modules/polars/Cargo.lock | 398 +- .../python-modules/polars/default.nix | 17 +- .../python-modules/policy-sentry/default.nix | 4 +- .../python-modules/policyuniverse/default.nix | 4 +- .../python-modules/pontos/default.nix | 6 +- .../python-modules/poppler-qt5/default.nix | 12 +- .../python-modules/portalocker/default.nix | 3 - .../python-modules/posthog/default.nix | 62 + .../python-modules/praw/default.nix | 4 +- .../python-modules/primer3/default.nix | 24 +- .../prometheus-client/default.nix | 4 +- .../python-modules/prompthub-py/default.nix | 43 + .../python-modules/propka/default.nix | 42 + .../python-modules/psd-tools/default.nix | 4 +- .../python-modules/psycopg/default.nix | 5 + .../python-modules/psygnal/default.nix | 2 - .../publicsuffixlist/default.nix | 4 +- .../python-modules/pubnub/default.nix | 4 +- .../python-modules/pulumi-aws/default.nix | 4 +- .../python-modules/pushover/default.nix | 25 - .../python-modules/pvlib/default.nix | 77 +- .../python-modules/py-dmidecode/default.nix | 36 +- .../py-eth-sig-utils/default.nix | 2 + .../python-modules/py-multibase/default.nix | 39 +- .../python-modules/py-multicodec/default.nix | 26 +- .../python-modules/py-multihash/default.nix | 20 +- .../py-partiql-parser/default.nix | 46 + .../python-modules/py-radix/default.nix | 31 - .../python-modules/py3nvml/default.nix | 29 + .../python-modules/py3status/default.nix | 4 +- .../python-modules/pySmartDL/default.nix | 2 +- .../python-modules/pyamg/default.nix | 26 +- .../python-modules/pyasn/default.nix | 2 +- .../python-modules/pyatv/default.nix | 8 +- .../python-modules/pyblock/default.nix | 37 - .../python-modules/pycaption/default.nix | 2 + .../python-modules/pycategories/default.nix | 28 +- .../python-modules/pycep-parser/default.nix | 12 +- .../python-modules/pycfmodel/default.nix | 4 +- .../python-modules/pycm/default.nix | 4 +- .../python-modules/pycodestyle/default.nix | 7 + .../pycodestyle/python-3.11.4-compat.patch | 16 + .../python-modules/pycookiecheat/default.nix | 69 + .../python-modules/pydaikin/default.nix | 6 +- .../python-modules/pydantic/default.nix | 21 +- .../pydata-google-auth/default.nix | 4 +- .../python-modules/pydeconz/default.nix | 4 +- .../python-modules/pydelijn/default.nix | 4 +- .../python-modules/pydeps/default.nix | 4 +- .../python-modules/pydevd/default.nix | 6 +- .../python-modules/pydrive2/default.nix | 4 +- .../python-modules/pydyf/default.nix | 5 +- .../python-modules/pyemby/default.nix | 4 +- .../python-modules/pyezviz/default.nix | 4 +- .../python-modules/pyflakes/default.nix | 9 + .../python-modules/pyfuse3/default.nix | 1 + .../python-modules/pygbm/default.nix | 47 - .../python-modules/pygit2/default.nix | 4 +- .../python-modules/pygithub/default.nix | 35 +- .../python-modules/pyglet/default.nix | 4 +- .../python-modules/pygnmi/default.nix | 46 + .../python-modules/pygsl/default.nix | 44 + .../python-modules/pygtfs/default.nix | 4 +- .../python-modules/pyhaversion/default.nix | 19 +- .../python-modules/pyheck/Cargo.lock | 377 + .../python-modules/pyheck/default.nix | 57 + .../python-modules/pyinsteon/default.nix | 4 +- .../python-modules/pyinstrument/default.nix | 6 +- .../python-modules/pyipp/default.nix | 17 +- .../python-modules/pyjwt/default.nix | 5 +- .../python-modules/pylast/default.nix | 6 +- .../python-modules/pylddwrap/default.nix | 22 +- .../replace_env_with_placeholder.patch | 25 + .../python-modules/pylion/default.nix | 55 + .../python-modules/pylitterbot/default.nix | 10 +- .../python-modules/pylsp-mypy/default.nix | 29 +- .../python-modules/pymanopt/default.nix | 33 +- .../pymatgen-lammps/default.nix | 34 - .../python-modules/pymavlink/default.nix | 4 +- .../python-modules/pymazda/default.nix | 14 +- .../python-modules/pymedio/default.nix | 16 +- .../python-modules/pymodbus/default.nix | 4 +- .../python-modules/pymunk/default.nix | 4 +- .../python-modules/pymupdf/default.nix | 4 +- .../python-modules/pynvim-pp/default.nix | 31 + .../python-modules/pynvim/default.nix | 37 +- .../python-modules/pynws/default.nix | 4 +- .../python-modules/pyobihai/default.nix | 24 +- .../python-modules/pyomo/default.nix | 4 +- .../python-modules/pyopencl/default.nix | 26 +- .../pyopengl-accelerate/default.nix | 4 +- .../python-modules/pyopengl/default.nix | 7 +- .../python-modules/pyopnsense/default.nix | 12 +- .../python-modules/pyorthanc/default.nix | 7 +- .../python-modules/pyosf/default.nix | 35 +- .../python-modules/pyoverkiz/default.nix | 4 +- .../python-modules/pyperscan/default.nix | 51 + .../python-modules/pypika/default.nix | 33 + .../python-modules/pypoolstation/default.nix | 9 +- .../python-modules/pyprecice/default.nix | 2 + .../python-modules/pypresence/default.nix | 4 +- .../python-modules/pypykatz/default.nix | 4 +- .../python-modules/pyqldb/default.nix | 6 +- .../development/python-modules/pyqt/5.x.nix | 8 + .../development/python-modules/pyqt/6.x.nix | 15 +- .../python-modules/pyqt3d/default.nix | 77 + .../python-modules/pyqtchart/default.nix | 77 + .../pyqtdatavisualization/default.nix | 77 + .../python-modules/pyqtwebengine/default.nix | 6 +- .../python-modules/pyquil/default.nix | 10 +- .../python-modules/pyrainbird/default.nix | 10 +- .../default.nix | 4 +- .../pyre-extensions/default.nix | 37 + .../pyreaderwriterlock/default.nix | 42 + .../python-modules/pyreadstat/default.nix | 4 +- .../python-modules/pyres/default.nix | 33 - .../python-modules/pyro-ppl/default.nix | 5 +- .../python-modules/pyroute2/default.nix | 4 +- .../python-modules/pyrtlsdr/default.nix | 21 +- .../python-modules/pyschlage/default.nix | 53 + .../python-modules/pysequoia/default.nix | 61 + .../pyserial-asyncio/default.nix | 3 +- .../python-modules/pyshark/default.nix | 52 +- .../python-modules/pyside2/default.nix | 4 +- .../pysigma-backend-elasticsearch/default.nix | 4 +- .../pysigma-backend-insightidr/default.nix | 4 +- .../python-modules/pyslim/default.nix | 45 + .../python-modules/pyslurm/default.nix | 4 +- .../python-modules/pysmart/default.nix | 19 +- .../python-modules/pysmartapp/default.nix | 4 +- .../python-modules/pysmartthings/default.nix | 4 +- .../python-modules/pysnooz/default.nix | 4 +- .../python-modules/pyspark/default.nix | 4 +- .../python-modules/pysqueezebox/default.nix | 4 +- .../python-modules/pysrim/default.nix | 29 +- .../python-modules/pystardict/default.nix | 39 + .../python-modules/pystemd/default.nix | 3 +- .../python-modules/pysubs2/default.nix | 38 + .../python-modules/pyswitchbot/default.nix | 4 +- .../python-modules/pytado/default.nix | 6 +- .../python-modules/pytapo/default.nix | 4 +- .../pytest-annotate/default.nix | 2 +- .../python-modules/pytest-asyncio/tests.nix | 2 +- .../pytest-base-url/default.nix | 2 + .../pytest-examples/default.nix | 66 + .../python-modules/pytest-freezer/default.nix | 8 +- .../python-modules/pytest-grpc/default.nix | 32 + .../python-modules/pytest-httpx/default.nix | 13 +- .../pytest-image-diff/default.nix | 43 + .../pytest-md-report/default.nix | 6 +- .../pytest-mypy-plugins/default.nix | 4 +- .../pytest-ordering/default.nix | 32 - .../pytest-parallel/default.nix | 41 + .../python-modules/pytest-pudb/default.nix | 36 + .../python-modules/pytest-pylint/default.nix | 34 +- .../python-modules/pytest-relaxed/default.nix | 4 +- .../python-modules/pytest-sanic/default.nix | 52 - .../pytest-testinfra/default.nix | 66 + .../python-modules/pytest-testmon/default.nix | 4 +- .../python-modules/pytest-xvfb/default.nix | 15 +- .../python-modules/python-barcode/default.nix | 7 +- .../python-benedict/default.nix | 4 +- .../python-modules/python-binance/default.nix | 11 + .../python-modules/python-crontab/default.nix | 4 +- .../python-modules/python-daemon/default.nix | 22 +- .../python-ecobee-api/default.nix | 4 +- .../{ev3dev2 => python-ev3dev2}/default.nix | 4 +- .../python-modules/python-gitlab/default.nix | 4 +- .../python-glanceclient/default.nix | 4 +- .../python-modules/python-gvm/default.nix | 6 +- .../python-heatclient/default.nix | 4 +- .../python-modules/python-ipware/default.nix | 35 + .../python-ironicclient/default.nix | 4 +- .../python-modules/python-jenkins/default.nix | 7 +- .../python-modules/python-kasa/default.nix | 21 +- .../python-lsp-black/default.nix | 6 +- .../python-lsp-ruff/default.nix | 4 +- .../python-lsp-server/default.nix | 4 +- .../python-manilaclient/default.nix | 4 +- .../python-manilaclient/tests.nix | 7 +- .../python-modules/python-mapnik/default.nix | 2 +- .../python-matter-server/default.nix | 4 +- .../python-modules/python-nomad/default.nix | 23 +- .../python-modules/python-opensky/default.nix | 63 + .../python-otbr-api/default.nix | 4 +- .../python-roborock/default.nix | 18 +- .../python-modules/python-sql/default.nix | 7 +- .../python-modules/python-tado/default.nix | 27 +- .../python-modules/python-utils/default.nix | 18 +- .../python3-application/default.nix | 6 +- .../python_docs_theme/default.nix | 25 + .../python-modules/pythonnet/default.nix | 112 +- .../python-modules/pythonnet/deps.nix | 194 + .../python-modules/pytibber/default.nix | 4 +- .../python-modules/pytools/default.nix | 4 +- .../pytorch-lightning/default.nix | 4 +- .../pytorch-metric-learning/default.nix | 4 +- .../python-modules/pytrends/default.nix | 31 +- .../python-modules/pyunifiprotect/default.nix | 4 +- .../python-modules/pyvex/default.nix | 4 +- .../python-modules/pyvisa-sim/default.nix | 49 + .../python-modules/pyvista/default.nix | 4 +- .../python-modules/pyvmomi/default.nix | 4 +- .../python-modules/pywebview/default.nix | 4 +- .../python-modules/pywemo/default.nix | 6 +- .../python-modules/pywerview/default.nix | 4 +- .../python-modules/pywick/default.nix | 73 - .../python-modules/pyxattr/default.nix | 1 + .../python-modules/pyxbe/default.nix | 6 +- .../python-modules/pyzerproc/default.nix | 6 + .../python-modules/pyzipper/default.nix | 55 + .../qcodes-contrib-drivers/default.nix | 58 + .../python-modules/qcodes-loop/default.nix | 87 + .../python-modules/qcodes/default.nix | 147 + .../python-modules/qgrid/default.nix | 53 + .../python-modules/qtile/default.nix | 6 - .../python-modules/quantulum3/default.nix | 53 + .../python-modules/qutip/default.nix | 7 +- .../python-modules/rabbitpy/default.nix | 47 - .../python-modules/rank_bm25/default.nix | 43 + .../python-modules/rapt-ble/default.nix | 4 +- .../python-modules/rasterio/default.nix | 20 +- .../python-modules/rdkit/default.nix | 5 +- .../readability-lxml/default.nix | 2 +- .../python-modules/recline/default.nix | 38 + .../redshift-connector/default.nix | 4 +- .../python-modules/referencing/default.nix | 64 + .../python-modules/regenmaschine/default.nix | 4 +- .../python-modules/reolink-aio/default.nix | 4 +- .../python-modules/reqif/default.nix | 8 +- .../requests-futures/default.nix | 25 +- .../requests-pkcs12/default.nix | 4 +- .../requests-unixsocket/default.nix | 10 + .../python-modules/requests/default.nix | 4 +- .../python-modules/respx/default.nix | 9 + .../restrictedpython/default.nix | 9 +- .../python-modules/returns/default.nix | 42 +- .../python-modules/rich-argparse/default.nix | 41 + .../python-modules/rich-pixels/default.nix | 51 + .../python-modules/rns/default.nix | 4 +- .../python-modules/robomachine/default.nix | 41 +- .../robotframework-requests/default.nix | 4 +- .../robotstatuschecker/default.nix | 4 +- .../python-modules/rokuecp/default.nix | 4 +- .../python-modules/routeros-api/default.nix | 35 + .../python-modules/rpds-py/default.nix | 51 + .../python-modules/rpy2/default.nix | 4 +- .../development/python-modules/rq/default.nix | 4 +- .../python-modules/rstcheck-core/default.nix | 9 +- .../python-modules/rstcheck/default.nix | 15 +- .../python-modules/rtslib/default.nix | 14 +- .../python-modules/ruuvitag-ble/default.nix | 4 +- .../python-modules/rzpipe/default.nix | 4 +- .../python-modules/s3fs/default.nix | 4 +- .../python-modules/sacrebleu/default.nix | 68 + .../python-modules/safetensors/default.nix | 17 +- .../python-modules/scapy/default.nix | 2 +- .../python-modules/schema-salad/default.nix | 8 +- .../python-modules/schemdraw/default.nix | 4 +- .../python-modules/schwifty/default.nix | 4 +- .../scikit-hep-testdata/default.nix | 4 +- .../python-modules/scikit-misc/default.nix | 28 +- .../scikit-optimize/default.nix | 1 + .../python-modules/scikit-rf/default.nix | 6 +- .../python-modules/scmrepo/default.nix | 4 +- .../python-modules/sdkmanager/default.nix | 45 + .../python-modules/seatconnect/default.nix | 4 +- .../python-modules/semaphore-bot/default.nix | 40 + .../python-modules/semver/default.nix | 4 +- .../python-modules/sense-energy/default.nix | 7 +- .../python-modules/sensirion-ble/default.nix | 52 + .../sensor-state-data/default.nix | 4 +- .../python-modules/sentry-sdk/default.nix | 4 +- .../python-modules/serializable/default.nix | 33 + .../python-modules/setuptools-scm/tests.nix | 6 +- .../setuptoolstrial/default.nix | 32 +- .../python-modules/sexpdata/default.nix | 24 +- .../python-modules/sfepy/default.nix | 7 +- .../python-modules/shap/default.nix | 128 +- .../python-modules/shapely/default.nix | 2 +- .../python-modules/shellingham/default.nix | 10 +- .../python-modules/shlib/default.nix | 6 +- .../python-modules/shtab/default.nix | 18 +- .../python-modules/signalslot/default.nix | 4 +- .../simple-salesforce/default.nix | 4 +- .../python-modules/simplekv/default.nix | 48 + .../siobrultech-protocols/default.nix | 11 +- .../sisyphus-control/default.nix | 56 + .../python-modules/skia-pathops/default.nix | 5 +- .../python-modules/skodaconnect/default.nix | 4 +- .../python-modules/skorch/default.nix | 4 +- .../skytemple-files/default.nix | 4 +- .../python-modules/slackclient/default.nix | 12 +- .../python-modules/slicer/default.nix | 33 +- ...w-extra-args-in-get_info_from_domain.patch | 36 - .../python-modules/slixmpp/default.nix | 7 +- .../python-modules/snakeviz/default.nix | 49 +- .../python-modules/snorkel/default.nix | 69 + .../socid-extractor/default.nix | 11 +- .../python-modules/softlayer/default.nix | 6 +- .../python-modules/solax/default.nix | 21 +- .../python-modules/solc-select/default.nix | 4 +- .../python-modules/somajo/default.nix | 4 +- .../python-modules/soxr/default.nix | 4 +- .../spacy-transformers/default.nix | 4 +- .../python-modules/spacy/default.nix | 20 +- .../python-modules/spectral-cube/default.nix | 54 +- .../python-modules/speechbrain/default.nix | 55 + .../python-modules/speg/default.nix | 28 + .../python-modules/sphinx-navtree/default.nix | 20 - .../python-modules/sphinx/default.nix | 15 +- .../sphinxcontrib-bayesnet/default.nix | 9 +- .../sphinxcontrib-katex/default.nix | 4 +- .../python-modules/spsdk/default.nix | 4 +- .../sqlalchemy-migrate/default.nix | 8 +- .../sqlalchemy-migrate/python3.11-comp.diff | 13 + .../sqlalchemy-mixins/default.nix | 4 +- .../python-modules/sqlalchemy/default.nix | 7 +- .../python-modules/sqlglot/default.nix | 13 +- .../python-modules/sqlite-utils/default.nix | 4 +- .../python-modules/sqlmap/default.nix | 4 +- .../python-modules/sqltrie/default.nix | 4 +- .../python-modules/srptools/default.nix | 28 +- .../python-modules/ssdp/default.nix | 4 +- .../python-modules/sseclient/default.nix | 34 +- .../python-modules/statsmodels/default.nix | 4 +- .../python-modules/std2/default.nix | 28 + .../python-modules/stdlib-list/default.nix | 19 +- .../python-modules/stdlibs/default.nix | 40 + .../python-modules/steamship/default.nix | 4 +- .../python-modules/stem/default.nix | 4 +- .../python-modules/stemming/default.nix | 32 + .../python-modules/stestr/tests.nix | 7 +- .../python-modules/stevedore/default.nix | 4 +- .../python-modules/stopit/default.nix | 6 + .../strawberry-graphql/default.nix | 19 +- .../python-modules/strenum/default.nix | 4 +- .../python-modules/stringparser/default.nix | 36 + .../python-modules/stripe/default.nix | 4 +- .../python-modules/striprtf/default.nix | 4 +- .../python-modules/structlog/default.nix | 29 +- .../python-modules/subarulink/default.nix | 4 +- .../python-modules/summarytools/default.nix | 41 + .../python-modules/sunweg/default.nix | 4 +- .../python-modules/sv-ttk/default.nix | 34 + .../python-modules/tablib/default.nix | 4 +- .../python-modules/tago/default.nix | 14 +- .../python-modules/tagoio-sdk/default.nix | 61 + .../python-modules/takethetime/default.nix | 27 +- .../python-modules/tasklib/default.nix | 1 + .../python-modules/tatsu/default.nix | 30 +- .../python-modules/tempest/default.nix | 4 +- .../python-modules/tensorboard/default.nix | 3 +- .../python-modules/tensorboardx/default.nix | 39 +- .../python-modules/tensorflow/bin.nix | 2 +- .../python-modules/tensorly/default.nix | 8 +- .../python-modules/tern/default.nix | 4 +- .../python-modules/teslajsonpy/default.nix | 4 +- .../default.nix | 56 + .../python-modules/textual/default.nix | 4 +- .../python-modules/tftpy/default.nix | 28 + .../python-modules/thorlabspm100/default.nix | 38 + .../python-modules/tidalapi/default.nix | 4 +- .../python-modules/tika-client/default.nix | 42 + .../python-modules/time-machine/default.nix | 4 +- .../python-modules/timetagger/default.nix | 5 +- .../python-modules/tiny-proxy/default.nix | 45 + .../python-modules/tinydb/default.nix | 4 +- .../python-modules/tkinter/default.nix | 26 +- .../python-modules/tldextract/default.nix | 4 +- .../python-modules/token-bucket/default.nix | 16 +- .../development/python-modules/torch/bin.nix | 11 +- .../python-modules/torch/default.nix | 7 +- .../python-modules/torrent_parser/default.nix | 21 + .../total-connect-client/default.nix | 4 +- .../tplink-omada-client/default.nix | 4 +- .../python-modules/trailrunner/default.nix | 47 + .../python-modules/trainer/default.nix | 10 +- .../python-modules/transformers/default.nix | 123 +- .../python-modules/translatehtml/default.nix | 53 + .../transmission-rpc/default.nix | 4 +- .../python-modules/trezor/default.nix | 4 +- .../python-modules/trimesh/default.nix | 4 +- .../python-modules/trio-asyncio/default.nix | 5 + .../python-modules/trio-websocket/default.nix | 25 +- .../python-modules/tritonclient/default.nix | 65 + .../trove-classifiers/default.nix | 4 +- .../python-modules/trytond/default.nix | 4 +- .../python-modules/tskit/default.nix | 46 + .../python-modules/ttp/default.nix | 4 +- .../python-modules/tubeup/default.nix | 20 +- .../python-modules/twilio/default.nix | 20 +- .../python-modules/twisted/default.nix | 3 +- .../python-modules/twitchapi/default.nix | 4 +- .../python-modules/txtorcon/default.nix | 4 +- .../python-modules/typechecks/default.nix | 28 + .../python-modules/typecode/default.nix | 12 +- .../python-modules/typepy/default.nix | 32 +- .../python-modules/typer/default.nix | 29 +- .../types-deprecated/default.nix | 30 + .../types-pyopenssl/default.nix | 4 +- .../python-modules/types-redis/default.nix | 4 +- .../python-modules/types-requests/default.nix | 4 +- .../python-modules/types-ujson/default.nix | 4 +- .../python-modules/typical/default.nix | 2 - .../python-modules/ufmt/default.nix | 61 + .../python-modules/umap-learn/default.nix | 15 + .../universal-pathlib/default.nix | 37 + .../python-modules/uproot/default.nix | 4 +- .../uptime-kuma-api/default.nix | 6 +- .../python-modules/usort/default.nix | 65 + .../python-modules/uvicorn/tests.nix | 3 +- .../python-modules/validictory/default.nix | 26 - .../vallox-websocket-api/default.nix | 4 +- .../python-modules/variants/default.nix | 21 +- .../python-modules/vdirsyncer/default.nix | 9 +- .../python-modules/verspec/default.nix | 42 + .../python-modules/vispy/default.nix | 4 +- .../python-modules/viv-utils/default.nix | 4 +- .../python-modules/vivisect/default.nix | 4 +- .../python-modules/volatile/default.nix | 36 + .../python-modules/vsure/default.nix | 8 +- .../python-modules/vulcan-api/default.nix | 1 + .../python-modules/w3lib/default.nix | 7 +- .../wagtail-factories/default.nix | 6 +- .../wagtail-localize/default.nix | 27 +- .../python-modules/wagtail/default.nix | 32 +- .../python-modules/wallbox/default.nix | 16 +- .../python-modules/wandb/default.nix | 11 +- .../python-modules/waqiasync/default.nix | 4 +- .../python-modules/warble/default.nix | 39 + .../python-modules/wasabi/default.nix | 4 +- .../python-modules/wasmer/tests.nix | 2 +- .../python-modules/waterfurnace/default.nix | 18 +- .../python-modules/weasyprint/default.nix | 4 +- .../weaviate-client/default.nix | 4 +- .../python-modules/web3/default.nix | 23 +- .../python-modules/weconnect-mqtt/default.nix | 2 + .../python-modules/weconnect/default.nix | 2 + .../python-modules/west/default.nix | 4 +- .../python-modules/wikipedia/default.nix | 39 + .../python-modules/woob/default.nix | 6 +- .../python-modules/wrf-python/default.nix | 2 +- .../python-modules/wsgi-intercept/default.nix | 4 +- .../python-modules/wxPython/4.2.nix | 5 +- .../python-modules/wyoming/default.nix | 29 + .../python-modules/xapian/default.nix | 2 +- .../python-modules/xapp/default.nix | 9 +- .../xarray-einstats/default.nix | 6 +- .../python-modules/xarray/default.nix | 2 +- .../python-modules/xformers/default.nix | 85 + .../python-modules/xiaomi-ble/default.nix | 4 +- .../python-modules/xknx/default.nix | 4 +- .../python-modules/xknxproject/default.nix | 49 + .../python-modules/xml2rfc/default.nix | 4 +- .../python-modules/xmlschema/default.nix | 4 +- .../python-modules/xmodem/default.nix | 6 +- .../xstatic-asciinema-player/default.nix | 24 + .../xstatic-font-awesome/default.nix | 24 + .../python-modules/yacs/default.nix | 2 +- .../python-modules/yalexs-ble/default.nix | 4 +- .../python-modules/yamlfix/default.nix | 4 +- .../python-modules/yamllint/default.nix | 19 +- .../python-modules/yaramod/default.nix | 4 +- .../python-modules/yarl/default.nix | 9 + .../python-modules/yeelight/default.nix | 12 +- .../python-modules/yfinance/default.nix | 4 +- .../youtube-transcript-api/default.nix | 5 +- .../python-modules/ypy-websocket/default.nix | 10 +- .../development/python-modules/yq/default.nix | 22 +- .../python-modules/ytmusicapi/default.nix | 4 +- .../z3c-checkversions/default.nix | 4 +- .../python-modules/zake/default.nix | 37 - .../python-modules/zamg/default.nix | 4 +- .../python-modules/zdaemon/default.nix | 8 +- .../python-modules/zeroc-ice/default.nix | 4 +- .../python-modules/zeroconf/default.nix | 4 +- .../python-modules/zha-quirks/default.nix | 4 +- .../python-modules/ziamath/default.nix | 12 +- .../python-modules/zigpy-deconz/default.nix | 2 - .../python-modules/zigpy-xbee/default.nix | 7 +- .../python-modules/zigpy-znp/default.nix | 19 +- .../python-modules/zigpy/default.nix | 16 +- .../python-modules/zimports/default.nix | 5 +- .../python-modules/zipstream-ng/default.nix | 4 +- .../python-modules/zstd/default.nix | 13 +- .../zwave-js-server-python/default.nix | 4 +- .../pkgs/development/quickemu/default.nix | 4 +- .../r-modules/bioc-annotation-packages.nix | 100 +- .../r-modules/bioc-experiment-packages.nix | 841 +- .../development/r-modules/bioc-packages.nix | 4417 +-- .../development/r-modules/cran-packages.nix | 4830 +-- .../pkgs/development/r-modules/default.nix | 13 +- .../r-modules/patches/rhdf5filters.patch | 22 +- .../ruby-modules/bundled-common/default.nix | 5 +- .../ruby-modules/bundler-app/default.nix | 5 +- .../bundler-update-script/default.nix | 5 +- .../ruby-modules/bundler/default.nix | 4 +- .../ruby-modules/gem-config/default.nix | 20 +- .../development/ruby-modules/gem/default.nix | 13 +- .../ruby-modules/with-packages/Gemfile | 1 + .../build-skaware-man-pages.nix | 8 +- .../development/skaware-packages/default.nix | 1 + .../execline-man-pages/default.nix | 4 +- .../skaware-packages/s6-man-pages/default.nix | 4 +- .../s6-networking-man-pages/default.nix | 4 +- .../s6-portable-utils-man-pages/default.nix | 4 +- .../s6-rc-man-pages/default.nix | 9 + .../pkgs/development/tools/abuild/default.nix | 4 +- .../development/tools/agda-pkg/default.nix | 1 + .../pkgs/development/tools/air/default.nix | 4 +- .../development/tools/algolia-cli/default.nix | 6 +- .../pkgs/development/tools/allure/default.nix | 4 +- .../tools/altair-graphql-client/default.nix | 4 +- .../tools/amazon-qldb-shell/default.nix | 9 +- .../pkgs/development/tools/ameba/default.nix | 18 + .../tools/analysis/actionlint/default.nix | 6 +- .../tools/analysis/banana-vera/default.nix | 41 + .../tools/analysis/brakeman/Gemfile.lock | 4 +- .../tools/analysis/brakeman/gemset.nix | 4 +- .../analysis/cargo-tarpaulin/default.nix | 21 +- .../tools/analysis/checkov/default.nix | 9 +- .../tools/analysis/checkstyle/default.nix | 13 +- .../tools/analysis/codeql/default.nix | 13 +- .../tools/analysis/cppcheck/default.nix | 4 +- .../tools/analysis/flow/default.nix | 6 +- .../tools/analysis/radare2/default.nix | 4 +- .../tools/analysis/sparse/default.nix | 8 + .../tools/analysis/svlint/default.nix | 6 +- .../tflint-plugins/tflint-ruleset-aws.nix | 8 +- .../tools/analysis/tflint/default.nix | 8 +- .../tools/analysis/valgrind/default.nix | 4 +- .../pkgs/development/tools/apko/default.nix | 20 +- .../pkgs/development/tools/argc/default.nix | 17 +- .../development/tools/aws-sam-cli/default.nix | 61 +- .../tools/aws-sam-cli/support-click-8-1.patch | 21 - ...use_forward_compatible_log_silencing.patch | 19 - .../pkgs/development/tools/azcopy/default.nix | 6 +- .../azure-functions-core-tools/default.nix | 8 +- .../pkgs/development/tools/b4/default.nix | 4 +- .../tools/backblaze-b2/default.nix | 4 +- .../pkgs/development/tools/bacon/default.nix | 6 +- .../tools/bazel-gazelle/default.nix | 4 +- .../pkgs/development/tools/bbin/default.nix | 7 +- .../pkgs/development/tools/bearer/default.nix | 16 +- .../development/tools/benthos/default.nix | 6 +- .../pkgs/development/tools/buf/default.nix | 10 +- .../buf/skip_test_requiring_dotgit.patch | 14 - .../tools/build-managers/alibuild/default.nix | 4 +- .../apache-maven/build-package.nix} | 20 +- .../build-managers/apache-maven/builder.sh | 19 - .../build-managers/apache-maven/default.nix | 41 +- .../bazel/bazel-remote/default.nix | 6 +- .../build-managers/bazel/bazel_4/default.nix | 4 +- .../build-managers/bazel/bazel_5/default.nix | 4 +- .../build-managers/bazel/bazel_6/default.nix | 4 +- .../tools/build-managers/bear/default.nix | 7 + .../tools/build-managers/bloop/default.nix | 6 +- .../tools/build-managers/bob/default.nix | 1 - .../tools/build-managers/buck2/default.nix | 96 + .../tools/build-managers/buck2/hashes.json | 5 + .../tools/build-managers/buck2/update.sh | 40 + .../tools/build-managers/build2/bootstrap.nix | 10 + .../tools/build-managers/build2/default.nix | 10 + .../tools/build-managers/build2/setup-hook.sh | 6 + .../tools/build-managers/cmake/default.nix | 24 +- .../meson/darwin-case-sensitive-fs.patch | 51 + .../tools/build-managers/meson/default.nix | 18 +- .../tools/build-managers/mill/default.nix | 6 +- .../tools/build-managers/moon/default.nix | 44 + .../tools/build-managers/msbuild/default.nix | 12 +- .../tools/build-managers/rebar3/default.nix | 4 +- .../build-managers/sbt-extras/default.nix | 6 +- .../tools/build-managers/sbt/default.nix | 10 +- .../build-managers/scala-cli/default.nix | 1 + .../build-managers/scala-cli/sources.json | 10 +- .../tools/build-managers/xmake/default.nix | 48 + .../development/tools/buildah/default.nix | 6 +- .../development/tools/buildkit/default.nix | 4 +- .../development/tools/bundletool/default.nix | 4 +- .../pkgs/development/tools/butane/default.nix | 1 - .../development/tools/cambalache/default.nix | 15 +- .../tools/capnproto-java/default.nix | 14 +- .../tools/capnproto-rust/default.nix | 29 + .../development/tools/ccloud-cli/default.nix | 43 - .../tools/check-jsonschema/default.nix | 2 +- .../development/tools/checkmate/default.nix | 6 +- .../pkgs/development/tools/circup/default.nix | 4 +- .../pkgs/development/tools/click/default.nix | 6 + .../development/tools/clj-kondo/default.nix | 4 +- .../development/tools/cloud-nuke/default.nix | 6 +- .../tools/cloudsmith-cli/default.nix | 3 +- .../tools/cocoapods/Gemfile-beta.lock | 10 +- .../development/tools/cocoapods/Gemfile.lock | 10 +- .../tools/cocoapods/gemset-beta.nix | 16 +- .../development/tools/cocoapods/gemset.nix | 16 +- .../development/tools/cocogitto/default.nix | 6 +- .../development/tools/codespell/default.nix | 4 +- .../tools/codespelunker/default.nix | 25 + .../tools/confluent-cli/default.nix | 10 +- .../development/tools/conftest/default.nix | 6 +- .../continuous-integration/agola/default.nix | 7 +- .../buildbot/default.nix | 3 +- .../buildbot/master.nix | 3 - .../buildkite-agent/default.nix | 6 +- .../cirrus-cli/default.nix | 8 +- .../continuous-integration/dagger/default.nix | 6 +- .../continuous-integration/drone/default.nix | 6 +- .../github-runner/default.nix | 9 +- .../github-runner/update.sh | 2 +- .../gitlab-runner/default.nix | 14 +- .../jenkins/default.nix | 4 +- .../laminar/default.nix | 8 +- .../laminar/patches/no-network.patch | 10 +- .../pkgs/development/tools/cotton/Cargo.lock | 281 +- .../pkgs/development/tools/cotton/default.nix | 6 +- .../development/tools/coursier/default.nix | 4 +- .../development/tools/crd2pulumi/default.nix | 4 +- .../pkgs/development/tools/ctlptl/default.nix | 6 +- .../development/tools/dapr/cli/default.nix | 6 +- .../database/beekeeper-studio/default.nix | 2 +- .../database/clickhouse-backup/default.nix | 6 +- .../tools/database/dblab/default.nix | 30 + .../tools/database/dbmate/default.nix | 7 +- .../tools/database/dynein/default.nix | 48 + .../tools/database/liquibase/default.nix | 28 +- .../tools/database/litecli/default.nix | 3 +- .../tools/database/mermerd/default.nix | 4 +- .../tools/database/pgweb/default.nix | 17 +- .../tools/database/schemaspy/default.nix | 55 +- .../tools/database/sleek/Cargo.lock | 470 + .../tools/database/sleek/default.nix | 32 + .../tools/database/sqlc/default.nix | 6 +- .../tools/database/sqlcmd/default.nix | 6 +- .../tools/database/sqlfluff/default.nix | 4 +- .../tools/database/sqlite-web/default.nix | 3 +- .../tools/database/squirrel-sql/default.nix | 4 +- .../database/surrealdb-migrations/Cargo.lock | 3067 ++ .../database/surrealdb-migrations/default.nix | 15 +- .../tools/database/vitess/default.nix | 6 +- .../pkgs/development/tools/datree/default.nix | 4 +- .../tools/dbus-test-runner/default.nix | 80 + .../development/tools/ddosify/default.nix | 4 +- .../pkgs/development/tools/delve/default.nix | 4 +- .../pkgs/development/tools/detekt/default.nix | 4 +- .../pkgs/development/tools/devbox/default.nix | 6 +- .../tools/devpi-client/default.nix | 3 +- .../development/tools/diesel-cli/default.nix | 6 +- .../development/tools/distgen/default.nix | 4 +- .../pkgs/development/tools/dive/default.nix | 16 +- .../pkgs/development/tools/dockle/default.nix | 10 +- .../pkgs/development/tools/doctl/default.nix | 4 +- .../tools/documentation/doxygen/default.nix | 4 +- .../pkgs/development/tools/dprint/default.nix | 6 +- .../pkgs/development/tools/dtools/default.nix | 4 +- .../pkgs/development/tools/dyff/default.nix | 6 +- .../development/tools/earthly/default.nix | 37 +- .../pkgs/development/tools/eclint/default.nix | 6 +- .../tools/electron/binary/default.nix | 53 +- .../development/tools/eliot-tree/default.nix | 4 +- .../pkgs/development/tools/ent/default.nix | 6 +- .../development/tools/errcheck/default.nix | 8 +- .../development/tools/esbuild/default.nix | 6 +- .../development/tools/eslint_d/default.nix | 24 + .../development/tools/faas-cli/default.nix | 4 +- .../pkgs/development/tools/fable/default.nix | 17 + .../pkgs/development/tools/faq/default.nix | 48 + .../development/tools/fastddsgen/default.nix | 6 +- .../development/tools/fastgron/default.nix | 30 + .../development/tools/fission/default.nix | 8 +- .../development/tools/flootty/default.nix | 4 +- .../pkgs/development/tools/fnm/default.nix | 6 +- .../pkgs/development/tools/fq/default.nix | 6 +- .../pkgs/development/tools/frece/default.nix | 2 +- .../pkgs/development/tools/frink/default.nix | 19 +- .../pkgs/development/tools/frugal/default.nix | 6 +- .../tools/fsautocomplete/default.nix | 45 + .../development/tools/fsautocomplete/deps.nix | 209 + .../development/tools/fusee-nano/default.nix | 25 + .../pkgs/development/tools/gauge/default.nix | 11 +- .../pkgs/development/tools/gendef/default.nix | 22 + .../pkgs/development/tools/ginkgo/default.nix | 6 +- .../development/tools/git-ps-rs/Cargo.lock | 2 +- .../development/tools/git-ps-rs/default.nix | 4 +- .../tools/github-commenter/default.nix | 7 +- .../github-copilot-intellij-agent/default.nix | 82 + .../tools/global-platform-pro/default.nix | 42 +- .../development/tools/go-callvis/default.nix | 31 + .../development/tools/go-migrate/default.nix | 7 +- .../tools/go-mod-graph-chart/default.nix | 29 + .../development/tools/go-protobuf/default.nix | 1 - .../development/tools/go-swagger/default.nix | 6 +- .../development/tools/go-task/default.nix | 24 +- .../development/tools/go-toml/default.nix | 6 +- .../pkgs/development/tools/goa/default.nix | 6 +- .../development/tools/godot/3/default.nix | 11 +- .../development/tools/godot/4/default.nix | 13 +- .../pkgs/development/tools/gojq/default.nix | 6 +- .../tools/golangci-lint/default.nix | 6 +- .../development/tools/gotestfmt/default.nix | 4 +- .../development/tools/gotestsum/default.nix | 4 +- .../development/tools/gptcommit/default.nix | 6 +- .../pkgs/development/tools/gron/default.nix | 1 - .../tools/grpc-gateway/default.nix | 6 +- .../tools/haskell/vaultenv/default.nix | 4 +- .../pkgs/development/tools/hclfmt/default.nix | 6 +- .../pkgs/development/tools/hcloud/default.nix | 6 +- .../headache/default.nix | 4 +- .../pkgs/development/tools/hobbes/default.nix | 25 +- .../pkgs/development/tools/impl/default.nix | 6 +- .../java/java-language-server/default.nix | 47 +- .../pkgs/development/tools/jbang/default.nix | 4 +- .../pkgs/development/tools/jet/default.nix | 4 +- .../pkgs/development/tools/jf/default.nix | 17 +- .../development/tools/jira-cli-go/default.nix | 1 + .../pkgs/development/tools/jpexs/default.nix | 6 +- .../pkgs/development/tools/jq/default.nix | 12 +- .../pkgs/development/tools/jql/default.nix | 6 +- .../development/tools/json2tsv/default.nix | 4 +- .../pkgs/development/tools/just/default.nix | 10 +- .../pkgs/development/tools/k6/default.nix | 4 +- .../pkgs/development/tools/kaf/default.nix | 6 +- .../development/tools/kafkactl/default.nix | 1 - .../pkgs/development/tools/kdash/default.nix | 6 +- .../pkgs/development/tools/kgt/default.nix | 8 +- .../pkgs/development/tools/kind/default.nix | 5 +- .../pkgs/development/tools/ko/default.nix | 13 +- .../development/tools/konstraint/default.nix | 6 +- .../pkgs/development/tools/krew/default.nix | 1 - .../pkgs/development/tools/ktlint/default.nix | 5 +- .../development/tools/kubepug/default.nix | 10 +- .../pkgs/development/tools/kubie/default.nix | 6 +- .../development/tools/kustomize/default.nix | 6 +- .../tools/kustomize/kustomize-sops.nix | 4 +- .../development/tools/lalrpop/default.nix | 46 + .../use-correct-binary-path-in-tests.patch | 13 + .../ansible-language-server/default.nix | 6 +- .../language-servers/crystalline/default.nix | 48 + .../language-servers/crystalline/shards.nix | 27 + .../language-servers/csharp-ls/default.nix | 26 + .../default.nix | 6 +- .../dot-language-server/default.nix | 6 +- .../tools/language-servers/gopls/default.nix | 6 +- .../language-servers/helm-ls/default.nix | 6 +- .../lua-language-server/default.nix | 4 +- .../tools/language-servers/metals/default.nix | 2 +- .../tools/language-servers/millet/Cargo.lock | 297 +- .../tools/language-servers/millet/default.nix | 6 +- .../language-servers/neocmakelsp/default.nix | 26 + .../tools/language-servers/nixd/default.nix | 87 + .../tools/language-servers/nls/default.nix | 4 +- .../language-servers/openscad-lsp/default.nix | 28 + .../language-servers/pylyzer/default.nix | 11 +- .../language-servers}/ruff-lsp/default.nix | 23 +- .../language-servers/typst-lsp/Cargo.lock | 661 +- .../language-servers/typst-lsp/default.nix | 14 +- .../typst-lsp/move-typst-assets.patch | 40 + .../tools/language-servers/vhdl-ls/Cargo.lock | 436 +- .../language-servers/vhdl-ls/default.nix | 4 +- .../vscode-langservers-extracted/default.nix | 43 + .../pkgs/development/tools/leaps/default.nix | 1 - .../tools/lightningcss/default.nix | 6 +- .../development/tools/loganalyzer/default.nix | 56 + .../development/tools/ls-lint/default.nix | 6 +- .../pkgs/development/tools/mani/default.nix | 6 +- .../pkgs/development/tools/marksman/update.sh | 2 +- .../development/tools/mbed-cli/default.nix | 2 +- .../development/tools/melange/default.nix | 72 + .../pkgs/development/tools/memray/default.nix | 4 +- .../development/tools/metal-cli/default.nix | 6 +- .../development/tools/micronaut/default.nix | 5 +- .../development/tools/minizinc/default.nix | 35 +- .../development/tools/minizinc/gecode.msc | 16 + .../pkgs/development/tools/minizinc/ide.nix | 9 +- .../tools/minizinc/simple-test/aust.mzn | 20 + .../tools/minizinc/simple-test/default.nix | 21 + .../tools/minizinc/simple-test/loan.mzn | 24 + .../tools/minizinc/simple-test/loan1.dzn | 3 + .../development/tools/misc/acr/default.nix | 4 +- .../development/tools/misc/act/default.nix | 6 +- .../tools/misc/arcanist/default.nix | 8 +- .../tools/misc/ast-grep/default.nix | 10 +- .../tools/misc/binutils/CVE-2023-1972.patch | 23 + .../tools/misc/binutils/default.nix | 4 + .../tools/misc/blackfire/default.nix | 12 +- .../tools/misc/blackfire/php-probe.nix | 105 +- .../development/tools/misc/ccache/default.nix | 5 +- .../tools/misc/circleci-cli/default.nix | 6 +- .../tools/misc/clojure-lsp/default.nix | 6 +- .../tools/misc/complgen/default.nix | 25 + .../tools/misc/dart-sass/default.nix | 29 +- .../tools/misc/dart-sass/pubspec.lock | 172 +- .../development/tools/misc/doq/default.nix | 38 + .../development/tools/misc/ezno/default.nix | 34 + .../development/tools/misc/funzzy/default.nix | 11 +- .../development/tools/misc/gdb/default.nix | 10 +- .../development/tools/misc/gede/default.nix | 4 +- .../development/tools/misc/global/default.nix | 11 +- .../misc/go-license-detector/default.nix | 6 +- .../tools/misc/go-md2man/default.nix | 1 - .../tools/misc/gopatch/default.nix | 6 +- .../development/tools/misc/gperf/default.nix | 5 + .../misc/gperf/gperf-c++17-register-fix.patch | 13 + .../development/tools/misc/hound/default.nix | 1 - .../development/tools/misc/husky/default.nix | 23 + .../development/tools/misc/hydra/unstable.nix | 9 +- .../development/tools/misc/indent/default.nix | 6 +- .../tools/misc/inotify-tools/default.nix | 14 +- .../tools/misc/intel-gpu-tools/default.nix | 10 + .../tools/misc/libtree/default.nix | 46 +- .../tools/misc/licenseclassifier/default.nix | 38 + .../tools/misc/linuxkit/default.nix | 1 - .../tools/misc/lttng-tools/default.nix | 4 +- .../tools/misc/msitools/default.nix | 22 +- .../tools/misc/n98-magerun/default.nix | 5 +- .../development/tools/misc/namaka/default.nix | 6 +- .../development/tools/misc/nimlsp/default.nix | 2 + .../tools/misc/nix-build-uncached/default.nix | 1 - .../tools/misc/opengrok/default.nix | 5 +- .../tools/misc/patchelf/unstable.nix | 6 +- .../tools/misc/phpunit/default.nix | 4 +- .../tools/misc/pkg-config/default.nix | 3 + .../development/tools/misc/planus/default.nix | 38 + .../development/tools/misc/protox/default.nix | 29 + .../tools/misc/regex-cli/default.nix | 23 + .../tools/misc/reviewdog/default.nix | 6 +- .../development/tools/misc/rsass/default.nix | 6 +- .../tools/misc/rsonpath/default.nix | 10 +- .../development/tools/misc/runme/default.nix | 70 + .../tools/misc/rustywind/default.nix | 26 + .../development/tools/misc/scc/default.nix | 1 - .../tools/misc/sccache/default.nix | 6 +- .../development/tools/misc/scip/default.nix | 17 +- .../tools/misc/slint-lsp/default.nix | 6 +- .../development/tools/misc/spruce/default.nix | 9 +- .../development/tools/misc/sqitch/default.nix | 2 +- .../tools/misc/src-cli/default.nix | 57 + .../development/tools/misc/strace/default.nix | 4 +- .../tools/misc/terracognita/default.nix | 6 +- .../tools/misc/terraform-ls/default.nix | 13 +- .../tools/misc/terraformer/default.nix | 6 +- .../development/tools/misc/texlab/default.nix | 8 +- .../tools/misc/tockloader/default.nix | 3 +- .../development/tools/misc/topiary/Cargo.lock | 394 +- .../tools/misc/topiary/default.nix | 24 +- .../tools/misc/typical/default.nix | 43 + .../development/tools/misc/tyson/default.nix | 40 + .../tools/misc/uncrustify/default.nix | 4 +- .../tools/misc/usbsdmux/default.nix | 4 +- .../tools/misc/wasmer-pack/default.nix | 37 + .../development/tools/misc/ycmd/default.nix | 4 +- .../pkgs/development/tools/mold/default.nix | 4 + .../tools/mold/fix-debug-strip.patch | 23 + .../tools/mongosh/package-lock.json | 2768 +- .../development/tools/mongosh/source.json | 8 +- .../pkgs/development/tools/mongosh/update.sh | 2 +- .../pkgs/development/tools/moq/default.nix | 4 +- .../pkgs/development/tools/nc4nix/default.nix | 17 +- .../pkgs/development/tools/neil/default.nix | 3 +- .../development/tools/nodehun/default.nix | 64 + .../tools/nodehun/update-nan.patch | 150 + .../development/tools/npm-check/default.nix | 30 + .../tools/ocaml/dune-release/default.nix | 9 +- .../pkgs/development/tools/ocaml/dune/3.nix | 4 +- .../tools/ocaml/js_of_ocaml/compiler.nix | 10 +- .../tools/ocaml/js_of_ocaml/default.nix | 1 - .../tools/ocaml/js_of_ocaml/lwt.nix | 1 - .../tools/ocaml/js_of_ocaml/ppx.nix | 1 - .../ocaml/js_of_ocaml/ppx_deriving_json.nix | 1 - .../tools/ocaml/js_of_ocaml/toplevel.nix | 1 - .../tools/ocaml/js_of_ocaml/tyxml.nix | 1 - .../development/tools/ocaml/merlin/4.x.nix | 4 +- .../tools/ocaml/ocamlformat/default.nix | 17 - .../tools/ocaml/ocamlformat/generic.nix | 66 - .../development/tools/ocaml/opam/default.nix | 8 +- .../development/tools/ocaml/utop/default.nix | 31 +- .../development/tools/oh-my-posh/default.nix | 9 +- .../pkgs/development/tools/okteto/default.nix | 6 +- .../pkgs/development/tools/ols/default.nix | 51 + .../tools/omnisharp-roslyn/default.nix | 31 +- .../tools/omnisharp-roslyn/deps.nix | 199 +- .../tools/omnisharp-roslyn/updater.sh | 4 +- .../tools/open-policy-agent/default.nix | 4 +- .../tools/operator-sdk/default.nix | 6 +- .../tools/package-project-cmake/default.nix | 4 +- .../pkgs/development/tools/packer/default.nix | 7 +- .../development/tools/packet-sd/default.nix | 1 - .../tools/parinfer-rust/default.nix | 4 +- .../tools/parsing/byacc/default.nix | 4 +- .../tools/parsing/re-flex/default.nix | 4 +- .../tools/parsing/tree-sitter/default.nix | 23 +- .../tools/parsing/tree-sitter/grammar.nix | 6 +- .../parsing/tree-sitter/grammars/default.nix | 2 + .../tree-sitter/grammars/tree-sitter-c.json | 8 +- .../grammars/tree-sitter-clojure.json | 8 +- .../grammars/tree-sitter-comment.json | 8 +- .../tree-sitter/grammars/tree-sitter-cpp.json | 8 +- .../grammars/tree-sitter-cuda.json | 8 +- .../tree-sitter/grammars/tree-sitter-cue.json | 11 + .../grammars/tree-sitter-dart.json | 8 +- .../grammars/tree-sitter-devicetree.json | 8 +- .../grammars/tree-sitter-elisp.json | 8 +- .../grammars/tree-sitter-elixir.json | 8 +- .../tree-sitter/grammars/tree-sitter-elm.json | 8 +- .../grammars/tree-sitter-glsl.json | 8 +- .../grammars/tree-sitter-haskell.json | 8 +- .../grammars/tree-sitter-html.json | 8 +- .../grammars/tree-sitter-http.json | 8 +- .../grammars/tree-sitter-janet-simple.json | 8 +- .../grammars/tree-sitter-json.json | 8 +- .../grammars/tree-sitter-ledger.json | 8 +- .../grammars/tree-sitter-llvm.json | 8 +- .../tree-sitter/grammars/tree-sitter-lua.json | 8 +- .../grammars/tree-sitter-markdown.json | 8 +- .../grammars/tree-sitter-nickel.json | 8 +- .../tree-sitter/grammars/tree-sitter-nix.json | 8 +- .../grammars/tree-sitter-perl.json | 8 +- .../tree-sitter/grammars/tree-sitter-php.json | 8 +- .../grammars/tree-sitter-query.json | 8 +- .../grammars/tree-sitter-rust.json | 8 +- .../grammars/tree-sitter-scala.json | 8 +- .../grammars/tree-sitter-scheme.json | 8 +- .../tree-sitter/grammars/tree-sitter-sql.json | 8 +- .../grammars/tree-sitter-svelte.json | 8 +- .../grammars/tree-sitter-tiger.json | 8 +- .../grammars/tree-sitter-tlaplus.json | 8 +- .../grammars/tree-sitter-typescript.json | 8 +- .../tree-sitter/grammars/tree-sitter-vim.json | 8 +- .../grammars/tree-sitter-wing.json | 11 + .../tree-sitter/grammars/tree-sitter-zig.json | 8 +- .../tools/parsing/tree-sitter/update.nix | 9 + .../tools/parsing/tree-sitter/update_impl.py | 15 +- .../pkgs/development/tools/patatt/default.nix | 4 +- .../development/tools/patcher9x/default.nix | 47 + .../pkgs/development/tools/pew/default.nix | 2 +- .../development/tools/phpactor/default.nix | 9 +- .../development/tools/picotool/default.nix | 4 +- .../pkgs/development/tools/pifpaf/default.nix | 3 +- .../development/tools/pip-audit/default.nix | 29 +- .../pkgs/development/tools/pipenv/default.nix | 1 + .../tools/poetry2nix/poetry2nix/default.nix | 7 +- .../poetry2nix/fetch_from_legacy.py | 2 +- .../tools/poetry2nix/poetry2nix/lib.nix | 1 + .../poetry2nix/poetry2nix/mk-poetry-dep.nix | 8 +- .../poetry2nix/overrides/build-systems.json | 462 +- .../poetry2nix/overrides/default.nix | 286 +- .../poetry2nix/pkgs/poetry/poetry.lock | 796 +- .../poetry2nix/pkgs/poetry/pyproject.toml | 57 +- .../poetry2nix/pkgs/poetry/src.json | 4 +- .../pkgs/development/tools/pqrs/default.nix | 6 +- .../development/tools/prettierd/default.nix | 51 + .../development/tools/prettierd/package.json | 46 + .../tools/profiling/malt/default.nix | 4 +- .../tools/protoc-gen-connect-go/default.nix | 6 +- .../tools/protoc-gen-dart/default.nix | 27 + .../tools/protoc-gen-dart/pubspec.lock | 396 + .../tools/protoc-gen-go/default.nix | 6 +- .../tools/protoc-gen-prost-crate/default.nix | 25 + .../tools/protoc-gen-prost-serde/default.nix | 25 + .../tools/protoc-gen-prost/default.nix | 25 + .../tools/protoc-gen-rust/default.nix | 6 +- .../tools/protoc-gen-tonic/default.nix | 25 + .../tools/protoc-gen-validate/default.nix | 6 +- .../development/tools/prototool/default.nix | 1 - .../pkgs/development/tools/pscale/default.nix | 6 +- .../pkgs/development/tools/pup/default.nix | 8 +- .../pkgs/development/tools/py-spy/default.nix | 17 +- .../pkgs/development/tools/pyenv/default.nix | 54 + .../development/tools/pypi2nix/default.nix | 25 - .../pkgs/development/tools/qc/default.nix | 9 +- .../pkgs/development/tools/qtcreator/qt6.nix | 6 +- .../tools/quick-lint-js/default.nix | 4 +- .../pkgs/development/tools/rain/default.nix | 7 +- .../pkgs/development/tools/rars/default.nix | 6 +- .../pkgs/development/tools/rbspy/default.nix | 22 +- .../development/tools/rdbtools/default.nix | 2 +- .../pkgs/development/tools/reflex/default.nix | 1 - .../pkgs/development/tools/refmt/default.nix | 22 + .../development/tools/reftools/default.nix | 21 +- .../pkgs/development/tools/refurb/default.nix | 11 +- .../development/tools/regclient/default.nix | 6 +- .../development/tools/reindeer/default.nix | 18 +- .../pkgs/development/tools/reindeer/update.sh | 37 - .../pkgs/development/tools/relic/default.nix | 27 +- .../development/tools/renderdoc/default.nix | 4 +- .../pkgs/development/tools/reno/default.nix | 1 + .../repository-managers/nexus/default.nix | 9 +- .../pkgs/development/tools/rgp/default.nix | 6 +- .../pkgs/development/tools/rome/default.nix | 13 +- .../pkgs/development/tools/rover/default.nix | 6 +- .../pkgs/development/tools/ruff/Cargo.lock | 964 +- .../pkgs/development/tools/ruff/default.nix | 14 +- .../pkgs/development/tools/run/default.nix | 1 - .../tools/rust-code-analysis/default.nix | 17 +- .../tools/rust/bindgen/default.nix | 2 +- .../tools/rust/bindgen/unwrapped.nix | 6 +- .../tools/rust/cargo-binstall/default.nix | 12 +- .../tools/rust/cargo-bisect-rustc/default.nix | 16 +- .../tools/rust/cargo-c/default.nix | 10 +- .../tools/rust/cargo-chef/default.nix | 6 +- .../tools/rust/cargo-component/Cargo.lock | 5172 +++ .../tools/rust/cargo-component/default.nix | 56 + .../tools/rust/cargo-cranky/default.nix | 26 + .../tools/rust/cargo-crev/default.nix | 6 +- .../tools/rust/cargo-deadlinks/default.nix | 2 +- .../tools/rust/cargo-depgraph/default.nix | 16 +- .../tools/rust/cargo-dephell/default.nix | 2 +- .../tools/rust/cargo-docset/default.nix | 34 + .../tools/rust/cargo-duplicates/default.nix | 46 + .../tools/rust/cargo-edit/Cargo.lock | 648 +- .../tools/rust/cargo-edit/default.nix | 6 +- .../tools/rust/cargo-embed/default.nix | 36 - .../tools/rust/cargo-espflash/default.nix | 27 +- .../tools/rust/cargo-expand/default.nix | 6 +- .../tools/rust/cargo-flash/default.nix | 32 - .../tools/rust/cargo-generate/default.nix | 6 +- .../tools/rust/cargo-guppy/default.nix | 8 +- .../tools/rust/cargo-hakari/default.nix | 6 +- .../tools/rust/cargo-insta/default.nix | 6 +- .../tools/rust/cargo-llvm-cov/default.nix | 6 +- .../tools/rust/cargo-llvm-lines/default.nix | 6 +- .../rust/cargo-local-registry/default.nix | 55 + .../tools/rust/cargo-make/default.nix | 6 +- .../tools/rust/cargo-modules/default.nix | 6 +- .../tools/rust/cargo-msrv/default.nix | 7 +- .../tools/rust/cargo-mutants/default.nix | 35 + .../tools/rust/cargo-ndk/default.nix | 6 +- .../tools/rust/cargo-nextest/default.nix | 6 +- .../tools/rust/cargo-outdated/default.nix | 8 +- .../rust/cargo-pgrx/buildPgrxExtension.nix | 160 + .../tools/rust/cargo-pgrx/default.nix | 29 + .../tools/rust/cargo-public-api/default.nix | 9 +- .../tools/rust/cargo-release/Cargo.lock | 939 +- .../tools/rust/cargo-release/default.nix | 10 +- .../rust/cargo-semver-checks/default.nix | 12 +- .../tools/rust/cargo-show-asm/default.nix | 17 +- .../tools/rust/cargo-shuttle/Cargo.lock | 3094 +- .../tools/rust/cargo-shuttle/default.nix | 14 +- .../tools/rust/cargo-spellcheck/default.nix | 5 +- .../tools/rust/cargo-tally/default.nix | 6 +- .../tools/rust/cargo-temp/default.nix | 9 +- .../tools/rust/cargo-toml-lint/default.nix | 24 + .../tools/rust/cargo-udeps/default.nix | 6 +- .../tools/rust/cargo-vet/default.nix | 6 +- .../tools/rust/cargo-watch/default.nix | 13 +- .../tools/rust/cargo-workspaces/default.nix | 8 +- .../tools/rust/cargo-zigbuild/default.nix | 6 +- .../tools/rust/cbindgen/default.nix | 21 +- .../tools/rust/critcmp/default.nix | 6 +- .../tools/rust/duckscript/default.nix | 6 +- .../tools/rust/maturin/default.nix | 11 +- .../{probe-rs-cli => probe-rs}/default.nix | 10 +- .../tools/rust/rust-analyzer/default.nix | 6 +- .../tools/rust/rust-script/default.nix | 6 +- .../tools/rust/sqlx-cli/default.nix | 18 +- .../tools/rust/svd2rust/default.nix | 6 +- .../tools/rust/tauri-mobile/default.nix | 22 +- .../tools/rye}/Cargo.lock | 2520 +- .../pkgs/development/tools/rye/default.nix | 25 +- .../development/tools/scalafmt/default.nix | 4 +- .../pkgs/development/tools/sem/default.nix | 6 +- .../tools/semantic-release/default.nix | 41 + .../development/tools/sentry-cli/default.nix | 6 +- .../development/tools/shellcheck/default.nix | 2 +- .../development/tools/skaffold/default.nix | 10 +- .../pkgs/development/tools/skopeo/default.nix | 4 +- .../development/tools/slimerjs/default.nix | 16 +- .../pkgs/development/tools/snazy/default.nix | 27 +- .../development/tools/spirv-tools/default.nix | 4 +- .../pkgs/development/tools/sq/default.nix | 6 +- .../pkgs/development/tools/stylua/default.nix | 6 +- .../pkgs/development/tools/summon/default.nix | 12 +- .../tools/summon/resolve-paths.patch | 39 - .../tools/supabase-cli/default.nix | 6 +- .../development/tools/symfony-cli/default.nix | 1 + .../development/tools/tailwindcss/default.nix | 61 + .../development/tools/tailwindcss/update.sh | 31 + .../pkgs/development/tools/taplo/default.nix | 6 +- .../pkgs/development/tools/teller/default.nix | 68 + .../development/tools/tf2pulumi/default.nix | 6 +- .../pkgs/development/tools/toast/default.nix | 6 +- .../pkgs/development/tools/tora/default.nix | 4 +- .../pkgs/development/tools/trunk/default.nix | 6 +- .../development/tools/twilio-cli/default.nix | 4 +- .../tools/twitch-cli/application-name.patch | 13 + .../development/tools/twitch-cli/default.nix | 49 + .../pkgs/development/tools/typos/default.nix | 6 +- .../development/tools/uftrace/default.nix | 4 +- .../tools/uniffi-bindgen/default.nix | 43 - .../development/tools/unityhub/default.nix | 22 +- .../development/tools/upbound/default.nix | 6 +- .../development/tools/vala-lint/default.nix | 6 +- .../development/tools/vcstool/default.nix | 2 +- .../pkgs/development/tools/vendir/default.nix | 4 +- .../development/tools/vim-vint/default.nix | 4 +- .../pkgs/development/tools/volta/Cargo.lock | 1918 + .../pkgs/development/tools/volta/default.nix | 55 + .../vulkan-validation-layers/default.nix | 4 +- .../development/tools/vultr-cli/default.nix | 6 +- .../development/tools/wasm-pack/default.nix | 28 +- .../development/tools/wasmedge/default.nix | 28 +- .../pkgs/development/tools/wasmi/Cargo.lock | 1491 + .../pkgs/development/tools/wasmi/default.nix | 34 + .../pkgs/development/tools/wgo/default.nix | 15 +- .../pkgs/development/tools/wizer/default.nix | 9 +- .../pkgs/development/tools/wllvm/default.nix | 4 +- .../tools/worker-build/default.nix | 6 +- .../pkgs/development/tools/xcodes/default.nix | 41 + .../development/tools/yaml2json/default.nix | 16 +- .../yarn2nix-moretea/yarn2nix/default.nix | 61 +- .../pkgs/development/tools/yq-go/default.nix | 6 +- .../pkgs/development/tools/ytt/default.nix | 16 +- .../pkgs/development/tools/zed/default.nix | 6 +- .../pkgs/development/tools/zprint/default.nix | 4 +- .../pkgs/development/web/bloomrpc/default.nix | 2 +- .../pkgs/development/web/boa/default.nix | 46 + .../pkgs/development/web/bun/default.nix | 10 +- .../pkgs/development/web/cypress/default.nix | 6 +- .../pkgs/development/web/deno/default.nix | 25 +- .../pkgs/development/web/deno/librusty_v8.nix | 10 +- .../development/web/edge-runtime/default.nix | 72 + .../web/edge-runtime/librusty_v8.nix | 20 + .../pkgs/development/web/flyctl/default.nix | 6 +- .../web/function-runner/default.nix | 6 +- .../pkgs/development/web/grails/default.nix | 4 +- .../pkgs/development/web/insomnia/default.nix | 4 +- .../development/web/netlify-cli/generate.sh | 2 +- .../development/web/netlify-cli/node-env.nix | 7 +- .../pkgs/development/web/nodejs/nodejs.nix | 13 +- .../pkgs/development/web/nodejs/v16.nix | 7 +- .../pkgs/development/web/nodejs/v18.nix | 4 +- .../pkgs/development/web/nodejs/v20.nix | 4 +- .../web/playwright-test/default.nix | 2 +- .../web/playwright-test/node-env.nix | 7 +- .../web/playwright-test/node-packages.json | 2 +- .../web/playwright-test/node-packages.nix | 28 +- .../development/web/playwright/driver.nix | 11 +- .../pkgs/development/web/postman/darwin.nix | 4 +- .../pkgs/development/web/postman/default.nix | 2 +- .../pkgs/development/web/postman/linux.nix | 4 +- .../web/twitter-bootstrap/default.nix | 4 +- .../nixpkgs/pkgs/games/0ad/default.nix | 4 +- .../nixpkgs/pkgs/games/2048-cli/default.nix | 1 + .../nixpkgs/pkgs/games/7kaa/default.nix | 20 +- .../games/BeatSaberModManager/default.nix | 7 + .../nixpkgs/pkgs/games/aaaaxy/default.nix | 10 +- .../games/alephone/apotheosis-x/default.nix | 20 + .../nixpkgs/pkgs/games/alephone/default.nix | 19 +- .../pkgs/games/alephone/durandal/default.nix | 6 +- .../pkgs/games/alephone/infinity/default.nix | 4 +- .../pkgs/games/alephone/marathon/default.nix | 7 +- .../pkgs/games/alephone/yuge/default.nix | 18 + third_party/nixpkgs/pkgs/games/anki/bin.nix | 8 +- .../nixpkgs/pkgs/games/anki/default.nix | 2 +- .../pkgs/games/arx-libertatis/default.nix | 8 +- .../nixpkgs/pkgs/games/atlauncher/default.nix | 57 + .../nixpkgs/pkgs/games/blobby/default.nix | 6 +- .../nixpkgs/pkgs/games/cdogs-sdl/default.nix | 3 + .../nixpkgs/pkgs/games/chessdb/default.nix | 4 - .../nixpkgs/pkgs/games/clonehero/default.nix | 101 +- .../pkgs/games/clonehero/fhs-wrapper.nix | 39 - .../pkgs/games/clonehero/xdg-wrapper.nix | 21 - .../nixpkgs/pkgs/games/corsix-th/default.nix | 44 + .../nixpkgs/pkgs/games/ddnet/default.nix | 7 +- .../games/doom-ports/doomrunner/default.nix | 60 + .../games/doom-ports/prboom-plus/default.nix | 4 +- .../games/doom-ports/rbdoom-3-bfg/default.nix | 7 +- .../pkgs/games/doom-ports/slade/default.nix | 4 +- .../pkgs/games/extremetuxracer/default.nix | 4 +- .../nixpkgs/pkgs/games/fheroes2/default.nix | 4 +- .../nixpkgs/pkgs/games/forge-mtg/default.nix | 53 +- .../pkgs/games/forge-mtg/no-launch4j.patch | 171 +- .../nixpkgs/pkgs/games/freeorion/default.nix | 4 +- .../pkgs/games/gamepad-tool/default.nix | 46 + .../garden-of-coloured-lights/default.nix | 2 +- .../nixpkgs/pkgs/games/gcompris/default.nix | 4 +- .../nixpkgs/pkgs/games/gemrb/default.nix | 4 +- .../nixpkgs/pkgs/games/gnushogi/default.nix | 23 +- .../nixpkgs/pkgs/games/gogdl/default.nix | 6 +- .../nixpkgs/pkgs/games/gogui/default.nix | 96 +- .../nixpkgs/pkgs/games/gotypist/default.nix | 2 +- .../nixpkgs/pkgs/games/harmonist/default.nix | 1 - .../nixpkgs/pkgs/games/heroic/default.nix | 21 +- .../nixpkgs/pkgs/games/heroic/fhsenv.nix | 3 + .../nixpkgs/pkgs/games/hhexen/default.nix | 1 + .../nixpkgs/pkgs/games/hyperrogue/default.nix | 4 +- .../nixpkgs/pkgs/games/ironwail/default.nix | 91 + third_party/nixpkgs/pkgs/games/jazz2/game.nix | 4 +- .../nixpkgs/pkgs/games/katago/default.nix | 6 +- .../pkgs/games/lgames/lbreakouthd/default.nix | 4 +- .../pkgs/games/lgames/lpairs2/default.nix | 4 +- .../nixpkgs/pkgs/games/libremines/default.nix | 41 + .../nixpkgs/pkgs/games/linthesia/default.nix | 29 +- .../nixpkgs/pkgs/games/maptool/default.nix | 119 + .../nixpkgs/pkgs/games/mari0/default.nix | 20 +- .../nixpkgs/pkgs/games/mchprs/Cargo.lock | 3052 ++ .../nixpkgs/pkgs/games/mchprs/default.nix | 51 + .../nixpkgs/pkgs/games/mindustry/default.nix | 71 +- .../games/minecraft-servers/versions.json | 26 +- .../pkgs/games/minesweep-rs/default.nix | 27 + .../nixpkgs/pkgs/games/minetest/default.nix | 4 +- .../nixpkgs/pkgs/games/mudlet/default.nix | 6 +- .../nixpkgs/pkgs/games/naev/default.nix | 4 +- .../pkgs/games/openra/build-engine.nix | 82 + .../nixpkgs/pkgs/games/openra/default.nix | 77 +- .../games/openra/engines/devtest/default.nix | 8 + .../games/openra/engines/devtest/deps.nix | 113 + .../games/openra/engines/release/default.nix | 8 + .../games/openra/engines/release/deps.nix | 114 + .../games/{openra => openra_2019}/common.nix | 25 +- .../pkgs/games/openra_2019/default.nix | 74 + .../games/{openra => openra_2019}/engine.nix | 12 +- .../games/{openra => openra_2019}/engines.nix | 0 .../games/{openra => openra_2019}/mkdirp.sh | 0 .../mod-launch-game.sh | 4 +- .../{openra => openra_2019}/mod-update.sh | 0 .../games/{openra => openra_2019}/mod.nix | 30 +- .../games/{openra => openra_2019}/mods.nix | 0 .../openra-mod.desktop | 0 .../{openra => openra_2019}/packages.nix | 0 .../nixpkgs/pkgs/games/openrct2/default.nix | 21 +- .../nixpkgs/pkgs/games/openrw/default.nix | 1 + .../nixpkgs/pkgs/games/openttd/default.nix | 4 +- .../nixpkgs/pkgs/games/openttd/jgrpp.nix | 4 +- .../nixpkgs/pkgs/games/orthorobot/default.nix | 22 +- .../nixpkgs/pkgs/games/osu-lazer/bin.nix | 8 +- .../nixpkgs/pkgs/games/osu-lazer/default.nix | 4 +- .../nixpkgs/pkgs/games/osu-lazer/deps.nix | 20 +- .../nixpkgs/pkgs/games/osu-lazer/update.sh | 4 +- .../pkgs/games/pegasus-frontend/default.nix | 51 + .../nixpkgs/pkgs/games/pokerth/default.nix | 33 +- .../pkgs/games/prismlauncher/default.nix | 10 +- .../nixpkgs/pkgs/games/pysolfc/default.nix | 36 +- .../nixpkgs/pkgs/games/r2modman/default.nix | 113 + .../nixpkgs/pkgs/games/rare/default.nix | 5 +- .../pkgs/games/rare/fix-instance.patch | 10 - .../games/rare/legendary-gl-version.patch | 4 +- .../scid-vs-pc/0001-put-fonts-in-out.patch | 77 - .../nixpkgs/pkgs/games/scid-vs-pc/default.nix | 57 +- .../nixpkgs/pkgs/games/scid/default.nix | 72 +- .../nixpkgs/pkgs/games/sdlpop/default.nix | 1 + .../games/shattered-pixel-dungeon/default.nix | 52 +- .../disable-beryx.patch | 47 + .../nixpkgs/pkgs/games/shipwright/default.nix | 222 + .../games/shipwright/lus-install-paths.patch | 146 + .../shipwright/soh-misc-otr-patches.patch | 119 + .../games/space-station-14-launcher/deps.nix | 5 - .../space-station-14-launcher.nix | 2 +- .../games/space-station-14-launcher/update.sh | 4 +- .../nixpkgs/pkgs/games/srb2/cmake.patch | 19 + .../nixpkgs/pkgs/games/srb2/default.nix | 92 +- .../nixpkgs/pkgs/games/srb2/wadlocation.patch | 72 - .../nixpkgs/pkgs/games/steam/fhsenv.nix | 13 +- .../games/the-butterfly-effect/default.nix | 17 +- .../pkgs/games/theforceengine/default.nix | 4 +- .../nixpkgs/pkgs/games/tome4/default.nix | 4 +- .../nixpkgs/pkgs/games/unciv/default.nix | 4 +- .../pkgs/games/vintagestory/default.nix | 4 +- .../nixpkgs/pkgs/games/vitetris/default.nix | 1 + .../nixpkgs/pkgs/games/wireworld/default.nix | 9 +- .../pkgs/games/wolfstoneextract/default.nix | 29 + .../nixpkgs/pkgs/games/xconq/default.nix | 10 +- .../pkgs/games/xivlauncher/default.nix | 14 +- .../nixpkgs/pkgs/games/xivlauncher/deps.nix | 4 +- .../nixpkgs/pkgs/games/xonotic/default.nix | 19 +- .../nixpkgs/pkgs/misc/ananicy-cpp/default.nix | 24 +- .../misc/ananicy-rules-cachyos/default.nix | 32 + .../nixpkgs/pkgs/misc/ananicy/default.nix | 12 +- .../misc/arm-trusted-firmware/default.nix | 4 +- .../misc/base16-shell-preview/default.nix | 3 +- .../nixpkgs/pkgs/misc/beep/default.nix | 3 + .../nixpkgs/pkgs/misc/cups/default.nix | 15 +- .../pkgs/misc/cups/drivers/canon/default.nix | 130 +- .../misc/cups/drivers/foomatic-db/default.nix | 6 +- .../nixpkgs/pkgs/misc/cups/filters.nix | 17 +- .../documentation-highlighter/default.nix | 12 +- .../nixpkgs/pkgs/misc/doge/default.nix | 4 +- .../pkgs/misc/drivers/epsonscan2/build.patch | 91 + .../pkgs/misc/drivers/epsonscan2/default.nix | 162 + .../misc/drivers/sc-controller/default.nix | 13 +- .../pkgs/misc/drivers/utsushi/default.nix | 4 + .../nixpkgs/pkgs/misc/dxvk/default.nix | 12 +- third_party/nixpkgs/pkgs/misc/dxvk/dxvk.nix | 22 +- .../nixpkgs/pkgs/misc/fastly/default.nix | 10 +- .../nixpkgs/pkgs/misc/flashfocus/default.nix | 4 +- .../nixpkgs/pkgs/misc/ghostscript/default.nix | 10 +- third_party/nixpkgs/pkgs/misc/i3a/default.nix | 4 +- .../pkgs/misc/ite-backlight/default.nix | 4 +- .../nixpkgs/pkgs/misc/jackaudio/default.nix | 7 + .../nixpkgs/pkgs/misc/lightspark/default.nix | 11 +- .../nixpkgs/pkgs/misc/lilypond/unstable.nix | 4 +- .../pkgs/misc/logging/pacemaker/default.nix | 4 +- .../nixpkgs/pkgs/misc/lssecret/default.nix | 31 + .../nixpkgs/pkgs/misc/opensbi/default.nix | 4 +- .../nixpkgs/pkgs/misc/present/default.nix | 4 +- .../nixpkgs/pkgs/misc/scrcpy/default.nix | 27 +- .../pkgs/misc/seafile-shared/default.nix | 8 +- .../pkgs/misc/sound-of-sorting/default.nix | 22 +- .../pkgs/misc/source-and-tags/default.nix | 3 +- .../pkgs/misc/tmux-plugins/default.nix | 6 +- .../nixpkgs/pkgs/misc/urbit/default.nix | 10 +- .../vencord}/default.nix | 24 +- .../misc/vencord/disable-updater-ui.patch | 35 + .../vencord}/package-lock.json | 1302 +- .../vencord}/replace-git.patch | 2 +- .../nixpkgs/pkgs/misc/wiki-tui/default.nix | 6 +- .../os-specific/darwin/airbuddy/default.nix | 60 + .../os-specific/darwin/aldente/default.nix | 59 + .../darwin/apple-sdk-11.0/default.nix | 27 +- .../os-specific/darwin/apple-sdk/default.nix | 16 +- .../darwin/apple-sdk/frameworks.nix | 1 + .../apple-source-releases/Libc/825_40_1.nix | 13 - .../apple-source-releases/Libc/default.nix | 17 +- .../apple-source-releases/Libc/headers.txt | 13 - .../Libsystem/default.nix | 22 +- .../Libsystem/headers.txt | 5 - .../apple-source-releases/adv_cmds/boot.nix | 7 + .../adv_cmds/default.nix | 2 + .../apple-source-releases/configd/default.nix | 66 +- .../darwin/apple-source-releases/default.nix | 7 +- .../libmalloc/default.nix | 10 + .../apple-source-releases/macos-11.0.1.nix | 1 + .../system_cmds/default.nix | 7 +- .../fix-implicit-declarations.patch | 48 + .../apple-source-releases/xnu/default.nix | 5 +- .../xnu/headers-arm64.txt | 2 + .../xnu/headers-x86_64.txt | 2 + .../os-specific/darwin/asitop/default.nix | 3 +- .../os-specific/darwin/bartender/default.nix | 48 + .../pkgs/os-specific/darwin/cctools/apple.nix | 18 +- ...memstream.patch => darwin-memstream.patch} | 6 +- .../pkgs/os-specific/darwin/cctools/llvm.nix | 113 + .../pkgs/os-specific/darwin/cctools/port.nix | 10 +- .../darwin/coconutbattery/default.nix | 41 + .../os-specific/darwin/hexfiend/default.nix | 27 + .../os-specific/darwin/libtapi/default.nix | 2 +- .../os-specific/darwin/openwith/default.nix | 1 + .../os-specific/darwin/raycast/default.nix | 22 +- .../pkgs/os-specific/darwin/raycast/update.sh | 12 +- .../darwin/rewrite-tbd/default.nix | 12 +- .../0002-Add-missing-launchd-header.patch | 11 + ...-Fix-incompatible-pointer-conversion.patch | 25 + .../0004-Fix-Darwin-cmake-build.patch | 66 + ...0005-Fix-framework-installation-path.patch | 23 + ...06-System-CF-framework-compatibility.patch | 84 + .../swift-corelibs/0007-Use-nixpkgs-icu.patch | 31 + .../0008-Dont-link-libcurl.patch | 46 + .../darwin/swift-corelibs/corefoundation.nix | 100 +- .../pure-corefoundation-hook.sh | 7 + .../pkgs/os-specific/darwin/utm/default.nix | 2 +- .../pkgs/os-specific/darwin/yabai/default.nix | 6 +- .../pkgs/os-specific/linux/afuse/default.nix | 4 +- .../linux/alsa-project/alsa-lib/default.nix | 4 +- .../linux/android-udev-rules/default.nix | 4 +- .../pkgs/os-specific/linux/apfs/default.nix | 7 +- .../os-specific/linux/apparmor/default.nix | 8 +- ...h => 000-fix-static-attribute-malloc.diff} | 0 .../audit/001-ignore-flexible-array.patch | 35 + .../pkgs/os-specific/linux/audit/default.nix | 104 +- .../os-specific/linux/ax99100/default.nix | 11 +- .../kernel-6.4-fix-define-semaphore.patch | 14 + .../os-specific/linux/batman-adv/alfred.nix | 2 +- .../os-specific/linux/batman-adv/batctl.nix | 2 +- .../os-specific/linux/batman-adv/version.nix | 8 +- .../pkgs/os-specific/linux/below/default.nix | 6 + .../os-specific/linux/blktrace/default.nix | 11 +- .../pkgs/os-specific/linux/bluez/default.nix | 1 - .../os-specific/linux/busybox/default.nix | 4 +- .../os-specific/linux/cannelloni/default.nix | 30 + .../linux/cfs-zen-tweaks/default.nix | 15 +- .../pkgs/os-specific/linux/conky/default.nix | 18 +- .../linux/conntrack-tools/default.nix | 12 +- .../pkgs/os-specific/linux/cpuid/default.nix | 4 +- .../os-specific/linux/cpupower/default.nix | 2 +- .../pkgs/os-specific/linux/criu/default.nix | 7 +- .../os-specific/linux/cryptsetup/default.nix | 8 +- .../os-specific/linux/dbus-broker/default.nix | 29 +- .../os-specific/linux/digimend/default.nix | 6 +- .../os-specific/linux/displaylink/default.nix | 12 +- .../pkgs/os-specific/linux/ell/default.nix | 4 +- .../pkgs/os-specific/linux/ena/default.nix | 23 +- .../pkgs/os-specific/linux/esdm/default.nix | 87 + .../linux/evdi/0000-fix-drm-path.patch | 31 + .../pkgs/os-specific/linux/evdi/default.nix | 22 +- .../pkgs/os-specific/linux/fbterm/default.nix | 4 + .../linux/firmware/ath9k/default.nix | 11 +- .../firmware/firmware-updater/default.nix | 12 +- .../linux/firmware/firmware-updater/deps.json | 187 +- .../firmware/firmware-updater/pubspec.lock | 259 +- ...d-option-for-installation-sysconfdir.patch | 85 +- .../linux/firmware/fwupd/default.nix | 17 +- .../linux/firmware/fwupd/efi-app-path.patch | 12 +- .../linux/firmware/linux-firmware/source.nix | 6 +- .../linux/firmware/linux-firmware/update.sh | 15 +- .../firmware/raspberrypi-wireless/default.nix | 11 + .../firmware/rtl8723bs-firmware/default.nix | 23 - .../os-specific/linux/freeipa/default.nix | 4 +- .../pkgs/os-specific/linux/fwts/default.nix | 4 +- .../linux/game-devices-udev-rules/default.nix | 38 + .../os-specific/linux/hostapd/default.nix | 52 +- .../pkgs/os-specific/linux/hwdata/default.nix | 4 +- .../linux/intel-cmt-cat/default.nix | 4 +- .../linux/intel-compute-runtime/default.nix | 7 +- .../os-specific/linux/iproute/default.nix | 8 +- .../linux/ipu6-drivers/default.nix | 6 +- .../pkgs/os-specific/linux/iwd/default.nix | 4 +- .../os-specific/linux/jfbview/default.nix | 73 - .../pkgs/os-specific/linux/jool/cli.nix | 5 - .../pkgs/os-specific/linux/jool/default.nix | 7 - .../pkgs/os-specific/linux/jool/source.nix | 4 +- .../pkgs/os-specific/linux/kbd/default.nix | 10 +- .../linux/kernel-headers/default.nix | 4 +- .../linux/kernel/common-config.nix | 32 + .../linux/kernel/fix-em-ice-bonding.patch | 87 - .../pkgs/os-specific/linux/kernel/generic.nix | 9 +- .../linux/kernel/hardened/config.nix | 4 +- .../linux/kernel/hardened/patches.json | 80 +- .../os-specific/linux/kernel/linux-4.14.nix | 4 +- .../os-specific/linux/kernel/linux-4.19.nix | 4 +- .../os-specific/linux/kernel/linux-5.10.nix | 4 +- .../os-specific/linux/kernel/linux-5.15.nix | 4 +- .../os-specific/linux/kernel/linux-5.4.nix | 4 +- .../os-specific/linux/kernel/linux-6.1.nix | 4 +- .../os-specific/linux/kernel/linux-6.3.nix | 4 +- .../kernel/{linux-6.2.nix => linux-6.4.nix} | 6 +- .../os-specific/linux/kernel/linux-libre.nix | 4 +- .../linux/kernel/linux-rt-5.10.nix | 6 +- .../linux/kernel/linux-rt-5.15.nix | 6 +- .../os-specific/linux/kernel/linux-rt-5.4.nix | 6 +- .../os-specific/linux/kernel/linux-rt-6.1.nix | 6 +- .../linux/kernel/linux-testing-bcachefs.nix | 20 +- .../linux/kernel/linux-testing.nix | 4 +- ...-state-reusable-after-mas_empty_area.patch | 21 - .../linux/kernel/manual-config.nix | 29 +- .../pkgs/os-specific/linux/kernel/patches.nix | 11 - .../linux/kernel/xanmod-kernels.nix | 8 +- .../os-specific/linux/kernel/zen-kernels.nix | 85 +- .../pkgs/os-specific/linux/kvmfr/default.nix | 7 +- .../linux/kvmfr/linux-6-4-compat.patch | 16 + .../os-specific/linux/lenovo-legion/app.nix | 48 + .../linux/lenovo-legion/default.nix | 34 + .../os-specific/linux/libcap-ng/default.nix | 2 + .../pkgs/os-specific/linux/libcap/default.nix | 4 +- .../os-specific/linux/libevdevc/default.nix | 3 + .../linux/libtraceevent/default.nix | 29 +- .../os-specific/linux/libtracefs/default.nix | 42 +- .../os-specific/linux/linuxptp/default.nix | 4 +- .../os-specific/linux/microcode/intel.nix | 4 +- .../minimal-bootstrap/binutils/default.nix | 118 + .../binutils/deterministic.patch | 12 + .../linux/minimal-bootstrap/bzip2/default.nix | 2 +- .../linux/minimal-bootstrap/default.nix | 58 +- .../linux/minimal-bootstrap/gawk/default.nix | 2 +- .../linux/minimal-bootstrap/gcc/2.nix | 140 + .../linux/minimal-bootstrap/glibc/default.nix | 121 + .../minimal-bootstrap/gnugrep/default.nix | 2 +- .../minimal-bootstrap/gnumake/default.nix | 4 +- .../minimal-bootstrap/gnupatch/default.nix | 2 +- .../minimal-bootstrap/gnutar/default.nix | 2 +- .../linux/minimal-bootstrap/gzip/default.nix | 2 +- .../heirloom-devtools/default.nix | 97 + .../heirloom/cp-no-socket.patch | 84 + .../minimal-bootstrap/heirloom/default.nix | 130 + .../heirloom/disable-programs.patch | 43 + .../heirloom/dont-link-lm.patch | 44 + .../minimal-bootstrap/heirloom/langinfo.patch | 99 + .../heirloom/meslibc-support.patch | 322 + .../linux/minimal-bootstrap/heirloom/musl.h | 53 + .../minimal-bootstrap/heirloom/proctab.c | 205 + .../minimal-bootstrap/heirloom/proctab.patch | 11 + .../minimal-bootstrap/heirloom/strcoll.patch | 73 + .../linux/minimal-bootstrap/heirloom/stubs.h | 64 + .../minimal-bootstrap/heirloom/sysconf.patch | 77 + .../heirloom/tcc-empty-ar.patch | 11 + .../minimal-bootstrap/heirloom/termios.patch | 141 + .../minimal-bootstrap/heirloom/utime.patch | 90 + .../minimal-bootstrap/heirloom/vprintf.patch | 128 + .../linux-headers/default.nix | 49 + .../linux/minimal-bootstrap/mes/default.nix | 1 - .../stage0-posix/bootstrap-sources.nix | 105 +- .../stage0-posix/default.nix | 5 +- .../minimal-bootstrap/stage0-posix/hex0.nix | 2 +- .../stage0-posix/kaem/minimal.nix | 2 +- .../stage0-posix/make-bootstrap-sources.nix | 67 +- .../tinycc/bootstrappable.nix | 5 + .../linux/minimal-bootstrap/tinycc/common.nix | 1 - .../linux/minimal-bootstrap/tinycc/mes.nix | 6 +- .../linux/minimal-bootstrap/utils.nix | 13 +- .../linux/minimal-bootstrap/xz/default.nix | 78 + .../linux/minimal-bootstrap/xz/stubs.h | 25 + .../os-specific/linux/mmc-utils/default.nix | 9 +- .../os-specific/linux/new-lg4ff/default.nix | 2 +- .../pkgs/os-specific/linux/nix-ld/default.nix | 4 +- .../linux/nixos-rebuild/nixos-rebuild.sh | 18 +- .../os-specific/linux/nvidia-x11/builder.sh | 6 + .../os-specific/linux/nvidia-x11/default.nix | 32 +- .../os-specific/linux/nvidia-x11/generic.nix | 2 +- .../os-specific/linux/pam_dp9ik/default.nix | 30 + .../os-specific/linux/pam_rssh/default.nix | 71 + .../plymouth/add-runtime-plugin-path.patch | 67 + .../os-specific/linux/plymouth/default.nix | 132 +- .../plymouth/dont-create-broken-symlink.patch | 13 + .../os-specific/linux/powerstat/default.nix | 4 +- .../os-specific/linux/prl-tools/default.nix | 10 +- .../os-specific/linux/qc71_laptop/default.nix | 6 +- .../pkgs/os-specific/linux/reptyr/default.nix | 4 +- .../os-specific/linux/rtl8189fs/default.nix | 6 +- .../os-specific/linux/rtl8192eu/default.nix | 8 +- .../os-specific/linux/rtl8723bs/default.nix | 41 - .../os-specific/linux/rtl8821cu/default.nix | 8 +- .../os-specific/linux/sch_cake/default.nix | 34 - .../os-specific/linux/sd-switch/default.nix | 17 +- .../os-specific/linux/sgx/psw/default.nix | 5 +- .../pkgs/os-specific/linux/sssd/default.nix | 4 +- .../linux/switcheroo-control/default.nix | 4 +- .../pkgs/os-specific/linux/sysdig/default.nix | 30 +- .../linux/system76-scheduler/default.nix | 6 +- .../systemd/0003-Fix-NixOS-containers.patch | 6 +- ...ome-NixOS-specific-unit-directories.patch} | 0 ...ook-for-fsck-binary-not-just-in-sbin.patch | 152 - ...-a-useless-message-in-user-sessions.patch} | 4 +- ...-timedated-disable-methods-that-cha.patch} | 0 ...-paths.patch => 0007-Fix-hwdb-paths.patch} | 0 ...-usr-share-zoneinfo-to-etc-zoneinfo.patch} | 4 +- ...alectl-use-etc-X11-xkb-for-list-x11.patch} | 0 ...e-statedir-and-don-t-touch-prefixdi.patch} | 0 ...-add-rootprefix-to-lookup-dir-paths.patch} | 0 ...execute-scripts-in-etc-systemd-syst.patch} | 4 +- ...cute-scripts-in-etc-systemd-system-.patch} | 0 ...placeholder-for-DEFAULT_PATH_NORMAL.patch} | 0 ...kg-config-derive-prefix-from-prefix.patch} | 0 ...environment-when-calling-generators.patch} | 4 +- ...17-core-don-t-taint-on-unmerged-usr.patch} | 4 +- ...ntext_init-fix-driver-name-checking.patch} | 0 ...nt-efi-files-not-owned-by-systemd-in.patch | 46 + .../os-specific/linux/systemd/default.nix | 54 +- .../os-specific/linux/targetcli/default.nix | 4 +- .../os-specific/linux/trace-cmd/default.nix | 8 +- .../linux/trace-cmd/kernelshark.nix | 4 +- .../pkgs/os-specific/linux/trelay/Makefile | 14 + .../pkgs/os-specific/linux/trelay/default.nix | 46 + .../linux/tuxedo-keyboard/default.nix | 26 +- .../os-specific/linux/udisks/2-default.nix | 12 +- .../os-specific/linux/udisks/fix-paths.patch | 107 +- .../os-specific/linux/uhk-agent/default.nix | 4 +- .../os-specific/linux/usbrelay/daemon.nix | 2 +- .../os-specific/linux/usbrelay/default.nix | 13 +- .../os-specific/linux/usbrelay/python.nix | 2 +- .../os-specific/linux/util-linux/default.nix | 64 +- .../os-specific/linux/v4l-utils/default.nix | 4 +- .../pkgs/os-specific/linux/vdo/default.nix | 4 +- .../linux/virtio_vmmci/default.nix | 2 +- .../os-specific/linux/vmm_clock/default.nix | 2 +- .../linux/wpa_supplicant/default.nix | 2 + .../os-specific/linux/x86info/default.nix | 3 + .../pkgs/os-specific/linux/zfs/stable.nix | 17 +- .../pkgs/os-specific/linux/zfs/unstable.nix | 19 +- .../pkgs/os-specific/windows/default.nix | 6 +- .../windows/mcfgthreads/default.nix | 11 +- .../windows/mcfgthreads/pre_gcc_13.nix | 24 + .../nixpkgs/pkgs/servers/adguardhome/bins.nix | 28 +- .../pkgs/servers/adguardhome/default.nix | 2 +- .../pkgs/servers/akkoma/akkoma-fe/default.nix | 6 +- .../nixpkgs/pkgs/servers/akkoma/default.nix | 4 +- .../pkgs/servers/akkoma/emoji/blobs_gg.nix | 24 +- .../nixpkgs/pkgs/servers/akkoma/mix.nix | 54 +- .../nixpkgs/pkgs/servers/alps/default.nix | 2 +- .../servers/amqp/rabbitmq-server/default.nix | 7 +- .../nixpkgs/pkgs/servers/ankisyncd/Cargo.lock | 4005 ++ .../pkgs/servers/ankisyncd/default.nix | 100 +- ...fix-yarn-warning-from-d3-color-27139.patch | 0 .../pkgs/servers/apache-airflow/default.nix | 50 + .../apache-airflow/package.json | 28 +- .../pkgs/servers/apache-airflow/providers.nix | 319 + .../apache-airflow/python-package.nix} | 23 +- .../apache-airflow/update-providers.py | 3 +- .../apache-airflow/yarn.lock | 1944 +- .../apache-airflow/yarn.nix | 1912 +- .../pkgs/servers/apache-kafka/default.nix | 18 +- .../nixpkgs/pkgs/servers/apcupsd/default.nix | 47 +- .../nixpkgs/pkgs/servers/asterisk/default.nix | 9 +- .../nixpkgs/pkgs/servers/asterisk/update.py | 8 +- .../pkgs/servers/audiobookshelf/default.nix | 8 +- .../nixpkgs/pkgs/servers/bazarr/default.nix | 4 +- .../nixpkgs/pkgs/servers/bird-lg/default.nix | 13 +- .../nixpkgs/pkgs/servers/bird/default.nix | 4 +- .../nixpkgs/pkgs/servers/caddy/default.nix | 2 +- .../pkgs/servers/calibre-web/default.nix | 4 +- .../pkgs/servers/clickhouse/default.nix | 57 +- .../code-server/build-vscode-nogit.patch | 18 +- .../pkgs/servers/code-server/default.nix | 175 +- .../pkgs/servers/computing/slurm/default.nix | 6 +- .../nixpkgs/pkgs/servers/consul/default.nix | 6 +- .../nixpkgs/pkgs/servers/coturn/default.nix | 10 +- .../nixpkgs/pkgs/servers/dendrite/default.nix | 16 +- .../nixpkgs/pkgs/servers/dex/default.nix | 7 +- .../nixpkgs/pkgs/servers/dgraph/default.nix | 7 +- .../pkgs/servers/dict/dictd-db-collector.nix | 6 +- .../nixpkgs/pkgs/servers/dict/dictd-db.nix | 4 + .../pkgs/servers/dict/dictd-wordnet.nix | 7 +- .../pkgs/servers/dict/wiktionary/default.nix | 9 +- .../pkgs/servers/dns/acme-dns/default.nix | 34 + .../nixpkgs/pkgs/servers/dns/bind/default.nix | 4 +- .../pkgs/servers/dns/knot-dns/default.nix | 4 +- .../servers/dns/knot-resolver/default.nix | 6 +- .../pkgs/servers/dns/ncdns/default.nix | 2 +- .../nixpkgs/pkgs/servers/dns/nsd/default.nix | 4 +- .../servers/dns/pdns-recursor/default.nix | 7 +- .../nixpkgs/pkgs/servers/dns/pdns/default.nix | 61 +- .../pkgs/servers/dns/trust-dns/default.nix | 6 +- .../servers/elasticmq-server-bin/default.nix | 70 +- .../pkgs/servers/endlessh-go/default.nix | 6 +- third_party/nixpkgs/pkgs/servers/etcd/3.3.nix | 5 +- third_party/nixpkgs/pkgs/servers/etcd/3.4.nix | 4 +- third_party/nixpkgs/pkgs/servers/etcd/3.5.nix | 7 +- .../nixpkgs/pkgs/servers/etebase/default.nix | 3 + .../pkgs/servers/exhibitor/default.nix | 55 - .../servers/fastnetmon-advanced/default.nix | 12 +- .../pkgs/servers/foundationdb/cmake.nix | 34 +- .../pkgs/servers/foundationdb/default.nix | 92 +- .../foundationdb/patches/clang-libcxx.patch | 52 - .../patches/fix-scm-version.patch | 42 - .../foundationdb/patches/gcc-fixes.patch | 138 - .../patches/include-fixes-6.0.patch | 137 - .../foundationdb/patches/ldflags-5.1.patch | 90 - .../foundationdb/patches/ldflags-5.2.patch | 90 - .../foundationdb/patches/ldflags-6.0.patch | 78 - .../foundationdb/patches/stdexcept-6.1.patch | 24 - .../patches/suppress-clang-warnings.patch | 34 - .../pkgs/servers/foundationdb/test-list.txt | 80 - .../pkgs/servers/foundationdb/vsmake.nix | 150 - .../pkgs/servers/freeradius/default.nix | 4 +- .../nixpkgs/pkgs/servers/frr/default.nix | 4 +- .../servers/geospatial/geoserver/default.nix | 4 +- .../servers/geospatial/mapcache/default.nix | 2 +- .../servers/geospatial/mapproxy/default.nix | 2 +- .../servers/geospatial/martin/default.nix | 6 +- .../geospatial/mbtileserver/default.nix | 1 - .../geospatial/pg_featureserv/default.nix | 8 +- .../geospatial/pg_tileserv/default.nix | 1 - .../servers/geospatial/tegola/default.nix | 1 - .../pkgs/servers/gnss-share/default.nix | 6 +- .../pkgs/servers/go-cqhttp/default.nix | 6 +- .../pkgs/servers/go-libp2p-daemon/default.nix | 10 +- .../nixpkgs/pkgs/servers/gonic/default.nix | 2 +- .../pkgs/servers/gotosocial/default.nix | 64 + .../pkgs/servers/guacamole-client/default.nix | 42 + .../pkgs/servers/guacamole-server/default.nix | 96 + .../nixpkgs/pkgs/servers/hbase/default.nix | 8 +- .../nixpkgs/pkgs/servers/hiraeth/default.nix | 24 + .../home-assistant/component-packages.nix | 329 +- .../pkgs/servers/home-assistant/default.nix | 60 +- .../pkgs/servers/home-assistant/frontend.nix | 4 +- .../pkgs/servers/home-assistant/intents.nix | 9 +- .../home-assistant/parse-requirements.py | 8 +- .../pkgs/servers/home-assistant/stubs.nix | 5 +- .../pkgs/servers/home-assistant/tests.nix | 13 +- .../servers/home-automation/evcc/default.nix | 8 +- .../servers/homepage-dashboard/default.nix | 82 + .../pkgs/servers/http/apache-httpd/2.4.nix | 9 + .../http/apache-modules/mod_tile/default.nix | 8 +- .../pkgs/servers/http/dufs/default.nix | 6 +- .../nixpkgs/pkgs/servers/http/hyp/default.nix | 4 +- .../pkgs/servers/http/jetty/default.nix | 4 +- .../pkgs/servers/http/lighttpd/default.nix | 4 +- .../lighttpd/disable-legacy-crypt-tests.patch | 24 +- .../pkgs/servers/http/nginx/generic.nix | 2 +- .../pkgs/servers/http/nginx/mainline.nix | 4 +- .../pkgs/servers/http/nginx/modules.nix | 11 +- .../pkgs/servers/http/pomerium/default.nix | 6 +- .../pkgs/servers/http/router/default.nix | 6 +- .../pkgs/servers/http/tengine/default.nix | 4 +- .../pkgs/servers/http/webhook/default.nix | 6 +- .../nixpkgs/pkgs/servers/imgproxy/default.nix | 6 +- .../pkgs/servers/invidious/default.nix | 5 +- .../pkgs/servers/invidious/versions.json | 8 +- .../pkgs/servers/irc/inspircd/default.nix | 4 +- .../servers/irc/robustirc-bridge/default.nix | 6 +- .../nixpkgs/pkgs/servers/irrd/default.nix | 40 - .../pkgs/servers/irrd/poetry-git-overlay.nix | 14 - .../nixpkgs/pkgs/servers/irrd/poetry.lock | 1282 - .../nixpkgs/pkgs/servers/irrd/pyproject.toml | 15 - third_party/nixpkgs/pkgs/servers/irrd/update | 5 - .../nixpkgs/pkgs/servers/jackett/default.nix | 4 +- .../nixpkgs/pkgs/servers/jackett/deps.nix | 2 +- .../nixpkgs/pkgs/servers/jackett/updater.sh | 4 +- .../pkgs/servers/janus-gateway/default.nix | 4 +- .../nixpkgs/pkgs/servers/jellyfin/update.sh | 6 +- .../nixpkgs/pkgs/servers/jicofo/default.nix | 4 +- .../nixpkgs/pkgs/servers/kanidm/Cargo.lock | 1470 +- .../nixpkgs/pkgs/servers/kanidm/default.nix | 26 +- .../nixpkgs/pkgs/servers/keycloak/default.nix | 5 +- .../keycloak/keycloak-discord/default.nix | 2 +- .../keycloak/keycloak-metrics-spi/default.nix | 2 +- .../keycloak/scim-for-keycloak/default.nix | 6 +- .../default.nix | 6 +- .../nixpkgs/pkgs/servers/klipper/default.nix | 8 +- .../nixpkgs/pkgs/servers/krill/default.nix | 6 +- .../nixpkgs/pkgs/servers/ldap/389/default.nix | 6 +- .../nixpkgs/pkgs/servers/lenpaste/default.nix | 35 + .../nixpkgs/pkgs/servers/lidarr/default.nix | 8 +- .../pkgs/servers/limesurvey/default.nix | 5 +- .../nixpkgs/pkgs/servers/maddy/default.nix | 6 +- .../pkgs/servers/mail/mailman/hyperkitty.nix | 1 + .../mail/mailman/mailman-hyperkitty.nix | 1 + .../pkgs/servers/mail/mailman/package.nix | 1 + .../pkgs/servers/mail/mailman/postorius.nix | 2 +- .../pkgs/servers/mail/mailman/python.nix | 8 +- .../nixpkgs/pkgs/servers/mail/mailman/web.nix | 2 +- .../pkgs/servers/mail/mailpit/default.nix | 69 + .../servers/mail/opensmtpd/filter-rspamd.nix | 6 +- .../pkgs/servers/mail/postfix/default.nix | 4 +- .../servers/mail/public-inbox/default.nix | 51 +- .../servers/mail/spamassassin/default.nix | 63 +- .../sa_compile-use-perl5lib.patch | 23 + .../spamassassin/satest-no-clean-path.patch | 18 + .../pkgs/servers/mail/sympa/default.nix | 4 +- .../nixpkgs/pkgs/servers/mastodon/default.nix | 16 + .../nixpkgs/pkgs/servers/mastodon/gemset.nix | 100 +- .../nixpkgs/pkgs/servers/mastodon/source.nix | 11 +- .../nixpkgs/pkgs/servers/mastodon/update.nix | 7 +- .../nixpkgs/pkgs/servers/mastodon/update.sh | 44 +- .../nixpkgs/pkgs/servers/mastodon/version.nix | 2 +- .../pkgs/servers/matrix-synapse/default.nix | 22 +- .../matrix-hookshot/default.nix | 6 + .../matrix-hookshot/package.json | 44 +- .../matrix-synapse/matrix-hookshot/pin.json | 8 +- .../matrix-synapse/sliding-sync/default.nix | 37 + .../servers/matrix-synapse/tools/synadm.nix | 9 +- .../pkgs/servers/matterbridge/default.nix | 1 - .../pkgs/servers/mattermost/default.nix | 8 +- .../pkgs/servers/mattermost/matterircd.nix | 1 - .../pkgs/servers/mautrix-telegram/default.nix | 19 +- .../pkgs/servers/mautrix-whatsapp/default.nix | 6 +- .../nixpkgs/pkgs/servers/mediamtx/default.nix | 6 +- .../pkgs/servers/memcached/default.nix | 4 +- .../nixpkgs/pkgs/servers/memos/default.nix | 8 +- .../pkgs/servers/memos/package-lock.json | 32 - .../nixpkgs/pkgs/servers/metabase/default.nix | 4 +- .../nixpkgs/pkgs/servers/meteor/default.nix | 6 +- .../nixpkgs/pkgs/servers/microbin/default.nix | 36 +- .../nixpkgs/pkgs/servers/miniflux/default.nix | 10 +- .../nixpkgs/pkgs/servers/minio/default.nix | 7 +- .../nixpkgs/pkgs/servers/minio/legacy_fs.nix | 1 - .../nixpkgs/pkgs/servers/mir/default.nix | 68 +- .../pkgs/servers/mirrorbits/default.nix | 1 - .../pkgs/servers/misc/gobgpd/default.nix | 4 +- .../pkgs/servers/misc/navidrome/default.nix | 1 - .../misc/oven-media-engine/default.nix | 4 +- .../pkgs/servers/misc/virtiofsd/default.nix | 11 +- .../pkgs/servers/monitoring/alerta/client.nix | 3 +- .../servers/monitoring/alerta/default.nix | 5 +- .../pkgs/servers/monitoring/bosun/default.nix | 1 - .../servers/monitoring/cockpit/default.nix | 1 + .../monitoring/grafana-agent/default.nix | 15 +- .../grafana-dash-n-grab/default.nix | 7 +- .../servers/monitoring/grafana/default.nix | 8 +- .../grafana-clickhouse-datasource/default.nix | 19 + .../grafana/plugins/grafana-plugin.nix | 29 +- .../monitoring/grafana/plugins/plugins.nix | 1 + .../monitoring/mackerel-agent/default.nix | 6 +- .../pkgs/servers/monitoring/mimir/default.nix | 5 +- .../nagios/plugins/check_ssl_cert.nix | 4 +- .../servers/monitoring/phlare/default.nix | 8 +- .../monitoring/prometheus/alertmanager.nix | 1 - .../prometheus/artifactory-exporter.nix | 6 +- .../monitoring/prometheus/bind-exporter.nix | 1 - .../monitoring/prometheus/bird-exporter.nix | 6 +- .../prometheus/blackbox-exporter.nix | 1 - .../prometheus/collectd-exporter.nix | 1 - .../monitoring/prometheus/consul-exporter.nix | 1 - .../servers/monitoring/prometheus/default.nix | 13 +- .../monitoring/prometheus/domain-exporter.nix | 14 +- .../prometheus/exportarr/default.nix | 6 +- .../monitoring/prometheus/fastly-exporter.nix | 6 +- .../prometheus/fritzbox-exporter.nix | 1 - .../gitlab-ci-pipelines-exporter.nix | 6 +- .../prometheus/graphite-exporter.nix | 36 + .../prometheus/haproxy-exporter.nix | 1 - .../prometheus/influxdb-exporter.nix | 6 +- .../monitoring/prometheus/json-exporter.nix | 6 +- .../prometheus/junos-czerwonk-exporter.nix | 22 + .../monitoring/prometheus/kea-exporter.nix | 4 +- .../monitoring/prometheus/lnd-exporter.nix | 11 +- .../monitoring/prometheus/mysqld-exporter.nix | 7 +- .../monitoring/prometheus/nats-exporter.nix | 6 +- .../prometheus/nextcloud-exporter.nix | 7 +- .../monitoring/prometheus/nginx-exporter.nix | 1 - .../monitoring/prometheus/node-exporter.nix | 6 +- .../prometheus/php-fpm-exporter.nix | 59 + .../prometheus/postgres-exporter.nix | 18 +- .../monitoring/prometheus/prom2json.nix | 7 +- .../prometheus/promscale/default.nix | 1 - .../monitoring/prometheus/pushgateway.nix | 7 +- .../monitoring/prometheus/pve-exporter.nix | 8 +- .../prometheus/rabbitmq-exporter.nix | 7 +- .../monitoring/prometheus/redis-exporter.nix | 17 +- .../prometheus/smokeping-prober.nix | 1 - .../monitoring/prometheus/snmp-exporter.nix | 7 +- .../monitoring/prometheus/sql-exporter.nix | 7 +- .../monitoring/prometheus/statsd-exporter.nix | 7 +- .../prometheus/systemd-exporter.nix | 1 - .../monitoring/prometheus/zfs-exporter.nix | 1 - .../servers/monitoring/telegraf/default.nix | 31 +- .../servers/monitoring/thanos/default.nix | 13 +- .../servers/monitoring/unpoller/default.nix | 6 +- .../monitoring/uptime-kuma/default.nix | 6 +- .../servers/monitoring/vmagent/default.nix | 4 +- .../pkgs/servers/mqtt/flashmq/default.nix | 34 + .../pkgs/servers/mqtt/nanomq/default.nix | 3 + .../pkgs/servers/nats-server/default.nix | 6 +- .../servers/nats-streaming-server/default.nix | 6 +- .../servers/networking/rustus/default.nix | 71 + .../pkgs/servers/nextcloud/default.nix | 32 +- .../pkgs/servers/nextcloud/packages/25.json | 106 +- .../pkgs/servers/nextcloud/packages/26.json | 100 +- .../pkgs/servers/nextcloud/packages/27.json | 220 + .../servers/nextcloud/packages/generate.sh | 2 +- .../nextcloud/packages/nextcloud-apps.json | 4 + ...move-custom-dbuser-creation-behavior.patch | 138 - .../pkgs/servers/nfs-ganesha/default.nix | 4 +- .../pkgs/servers/nginx-sso/default.nix | 1 - .../nixpkgs/pkgs/servers/nitter/default.nix | 6 +- .../pkgs/servers/nosql/cassandra/4.json | 4 +- .../servers/nosql/dragonflydb/default.nix | 11 +- .../pkgs/servers/nosql/eventstore/default.nix | 21 +- .../pkgs/servers/nosql/eventstore/deps.nix | 4 +- .../pkgs/servers/nosql/eventstore/updater.sh | 4 +- .../pkgs/servers/nosql/ferretdb/default.nix | 6 +- .../pkgs/servers/nosql/immudb/default.nix | 6 +- .../pkgs/servers/nosql/influxdb/default.nix | 5 +- .../pkgs/servers/nosql/influxdb2/default.nix | 5 +- .../pkgs/servers/nosql/mongodb/4.4.nix | 4 +- .../pkgs/servers/nosql/mongodb/5.0.nix | 11 +- .../pkgs/servers/nosql/mongodb/6.0.nix | 4 +- ...asio-no-experimental-string-view-4-2.patch | 22 - .../asio-no-experimental-string-view.patch | 20 - .../fix-build-with-boost-1.79-5_0-linux.patch | 90 + .../forget-build-dependencies-3-4.patch | 17 - .../forget-build-dependencies-4-2.patch | 36 - .../mongodb/forget-build-dependencies.patch | 16 - .../mongodb/mozjs-45_fix-3-byte-opcode.patch | 27 - .../patches/mongodb-4.0-glibc-2.34.patch | 14 - .../pkgs/servers/nosql/mongodb/v4_2.nix | 27 - .../pkgs/servers/nosql/questdb/default.nix | 37 + .../pkgs/servers/nosql/redis/default.nix | 25 +- .../pkgs/servers/nosql/rethinkdb/default.nix | 25 +- .../pkgs/servers/nosql/surrealdb/default.nix | 15 +- .../servers/nosql/victoriametrics/default.nix | 19 +- .../onlyoffice-documentserver/default.nix | 4 +- .../servers/openafs/1.8/cross-build.patch | 2 +- .../pkgs/servers/openafs/1.8/module.nix | 48 - .../nixpkgs/pkgs/servers/openafs/1.8/srcs.nix | 6 +- .../servers/openvscode-server/default.nix | 91 +- .../pkgs/servers/osmocom/osmo-bsc/default.nix | 2 +- .../pkgs/servers/osmocom/osmo-bts/default.nix | 2 +- .../servers/osmocom/osmo-ggsn/default.nix | 2 +- .../pkgs/servers/osmocom/osmo-hlr/default.nix | 2 +- .../servers/osmocom/osmo-hnbgw/default.nix | 2 +- .../servers/osmocom/osmo-hnodeb/default.nix | 2 +- .../pkgs/servers/osmocom/osmo-iuh/default.nix | 2 +- .../pkgs/servers/osmocom/osmo-mgw/default.nix | 2 +- .../pkgs/servers/osmocom/osmo-msc/default.nix | 2 +- .../pkgs/servers/osmocom/osmo-pcu/default.nix | 2 +- .../servers/osmocom/osmo-sgsn/default.nix | 2 +- .../osmocom/osmo-sip-connector/default.nix | 2 +- .../servers/owntracks-recorder/default.nix | 82 + .../nixpkgs/pkgs/servers/oxigraph/default.nix | 6 +- .../nixpkgs/pkgs/servers/peertube/default.nix | 61 +- .../pkgs/servers/photofield/default.nix | 70 + .../pkgs/servers/photoprism/backend.nix | 2 +- .../pkgs/servers/photoprism/default.nix | 9 +- .../pkgs/servers/photoprism/frontend.nix | 2 +- .../nixpkgs/pkgs/servers/pinnwand/default.nix | 1 - .../nixpkgs/pkgs/servers/pinnwand/steck.nix | 3 +- .../nixpkgs/pkgs/servers/pleroma/default.nix | 18 +- .../nixpkgs/pkgs/servers/pleroma/mix.nix | 13 - third_party/nixpkgs/pkgs/servers/plex/raw.nix | 6 +- .../nixpkgs/pkgs/servers/plik/default.nix | 4 +- .../nixpkgs/pkgs/servers/plik/programs.nix | 10 +- .../pkgs/servers/pocketbase/default.nix | 13 +- .../pocketbase/remove-update-method.patch | 22 + .../nixpkgs/pkgs/servers/polaris/default.nix | 3 +- .../nixpkgs/pkgs/servers/polaris/web.nix | 2 +- .../nixpkgs/pkgs/servers/prowlarr/default.nix | 11 +- .../servers/psitransfer/node-composition.nix | 2 +- .../nixpkgs/pkgs/servers/radarr/default.nix | 8 +- .../nixpkgs/pkgs/servers/readarr/default.nix | 8 +- .../nixpkgs/pkgs/servers/redpanda/server.nix | 4 +- .../nixpkgs/pkgs/servers/reproxy/default.nix | 6 +- .../nixpkgs/pkgs/servers/rinetd/default.nix | 40 + .../nixpkgs/pkgs/servers/rippled/default.nix | 44 +- .../pkgs/servers/roundcube/default.nix | 4 +- .../pkgs/servers/rustypaste/default.nix | 21 +- .../pkgs/servers/scaphandre/default.nix | 72 + .../servers/search/meilisearch/Cargo.lock | 1148 +- .../servers/search/meilisearch/default.nix | 12 +- .../servers/search/opensearch/default.nix | 10 +- .../pkgs/servers/search/qdrant/Cargo.lock | 1036 +- .../pkgs/servers/search/qdrant/default.nix | 9 +- .../search/quickwit}/Cargo.lock | 10129 +++--- .../pkgs/servers/search/quickwit/default.nix | 85 + .../servers/search/sonic-server/default.nix | 8 +- .../search/{zinc => zincsearch}/default.nix | 26 +- .../nixpkgs/pkgs/servers/ser2net/default.nix | 4 +- .../nixpkgs/pkgs/servers/sftpgo/default.nix | 15 +- .../pkgs/servers/shairport-sync/default.nix | 24 +- .../pkgs/servers/sip/kamailio/default.nix | 76 + .../kamailio/test-kamailio-bin/default.nix | 24 + .../pkgs/servers/slimserver/default.nix | 90 +- .../nixpkgs/pkgs/servers/snac2/default.nix | 11 +- .../pkgs/servers/snappymail/default.nix | 4 +- .../nixpkgs/pkgs/servers/sozu/default.nix | 34 +- .../nixpkgs/pkgs/servers/spicedb/default.nix | 6 +- .../nixpkgs/pkgs/servers/sql/dolt/default.nix | 10 +- .../pkgs/servers/sql/gluesql/default.nix | 32 + .../pkgs/servers/sql/mariadb/default.nix | 32 +- .../servers/sql/mariadb/galera/default.nix | 9 +- .../pkgs/servers/sql/monetdb/default.nix | 19 +- .../pkgs/servers/sql/pgbouncer/default.nix | 5 +- .../pkgs/servers/sql/pgpool/default.nix | 4 +- .../pkgs/servers/sql/postgresql/default.nix | 22 +- .../postgresql/ext/apache_datasketches.nix | 71 + .../servers/sql/postgresql/ext/pgroonga.nix | 14 +- .../servers/sql/postgresql/ext/pgvector.nix | 4 +- .../servers/sql/postgresql/ext/postgis.nix | 4 +- .../servers/sql/postgresql/ext/repmgr.nix | 4 +- .../sql/postgresql/ext/timescaledb.nix | 4 +- .../postgresql/ext/timescaledb_toolkit.nix | 3 +- .../sql/postgresql/locale-binary-path.patch | 13 + .../pkgs/servers/sql/postgresql/packages.nix | 2 + .../pkgs/servers/sql/proxysql/default.nix | 5 +- .../pkgs/servers/sql/proxysql/makefiles.patch | 44 +- .../nixpkgs/pkgs/servers/squid/default.nix | 4 +- .../servers/static-web-server/default.nix | 17 +- .../nixpkgs/pkgs/servers/sunshine/default.nix | 12 +- .../nixpkgs/pkgs/servers/sunshine/ffmpeg.diff | 26 +- .../pkgs/servers/sunshine/package-lock.json | 6 +- .../pkgs/servers/tailscale/default.nix | 11 +- .../nixpkgs/pkgs/servers/tang/default.nix | 24 +- .../nixpkgs/pkgs/servers/tautulli/default.nix | 4 +- .../pkgs/servers/teleport/12/default.nix | 8 +- .../nixpkgs/pkgs/servers/teleport/generic.nix | 3 + .../nixpkgs/pkgs/servers/tidb/default.nix | 6 +- .../pkgs/servers/timetagger/default.nix | 9 +- .../pkgs/servers/tmate-ssh-server/default.nix | 35 +- .../nixpkgs/pkgs/servers/traefik/default.nix | 6 +- .../nixpkgs/pkgs/servers/trezord/default.nix | 1 - .../nixpkgs/pkgs/servers/unifi/default.nix | 6 +- .../unifiedpush-common-proxies/default.nix | 6 +- .../nixpkgs/pkgs/servers/uxplay/default.nix | 4 +- .../web-apps/anuko-time-tracker/default.nix | 42 + .../servers/web-apps/bookstack/default.nix | 4 +- .../web-apps/bookstack/php-packages.nix | 502 +- .../web-apps/changedetection-io/default.nix | 1 + .../servers/web-apps/discourse/default.nix | 13 + .../pkgs/servers/web-apps/galene/default.nix | 6 +- .../servers/web-apps/jitsi-meet/default.nix | 4 +- .../pkgs/servers/web-apps/lemmy/package.json | 228 +- .../pkgs/servers/web-apps/lemmy/pin.json | 11 +- .../pkgs/servers/web-apps/lemmy/server.nix | 10 +- .../pkgs/servers/web-apps/lemmy/ui.nix | 18 +- .../pkgs/servers/web-apps/lemmy/update.py | 177 + .../pkgs/servers/web-apps/lemmy/update.sh | 51 - .../servers/web-apps/livebook/default.nix | 42 + .../web-apps/matomo/change-path-geoip2.patch | 3 +- .../pkgs/servers/web-apps/matomo/default.nix | 17 +- .../servers/web-apps/mediawiki/default.nix | 20 +- .../pkgs/servers/web-apps/netbox/default.nix | 4 +- .../pkgs/servers/web-apps/nifi/default.nix | 4 +- .../pkgs/servers/web-apps/outline/default.nix | 17 +- .../web-apps/outline/sequelize-command.patch | 22 - .../pkgs/servers/web-apps/outline/yarn.lock | 2231 +- .../pkgs/servers/web-apps/outline/yarn.nix | 1864 +- .../web-apps/peering-manager/default.nix | 9 + .../pkgs/servers/web-apps/pict-rs/0.3.nix | 53 + .../pict-rs/{Cargo.lock => Cargo-0.3.lock} | 0 .../pkgs/servers/web-apps/pict-rs/default.nix | 11 +- .../servers/web-apps/pixelfed/default.nix | 10 +- .../web-apps/pixelfed/php-packages.nix | 727 +- .../pkgs/servers/web-apps/pixelfed/update.sh | 36 + .../servers/web-apps/plausible/default.nix | 2 +- .../pkgs/servers/web-apps/searx/default.nix | 4 + .../web-apps/searx/fix-flask-babel-3.0.patch | 27 + .../pkgs/servers/web-apps/searxng/default.nix | 10 +- .../servers/web-apps/snipe-it/default.nix | 9 +- .../web-apps/snipe-it/php-packages.nix | 20 + .../pkgs/servers/web-apps/wiki-js/default.nix | 5 +- .../web-apps/wiki-js/drop-node-check.patch | 19 + .../windmill}/Cargo.lock | 5297 +-- .../nixpkgs/pkgs/servers/windmill/default.nix | 143 + .../windmill/run.bash.config.proto.patch | 41 + .../windmill/run.go.config.proto.patch | 34 + .../windmill/run.python3.config.proto.patch | 34 + .../pkgs/servers/windmill/swagger-cli.patch | 10 + .../nixpkgs/pkgs/servers/x11/xorg/default.nix | 1020 +- .../pkgs/servers/x11/xorg/overrides.nix | 42 +- .../pkgs/servers/x11/xorg/tarballs.list | 333 +- .../x11/xorg/xdm-fix-header-inclusion.patch | 29 - .../pkgs/servers/x11/xorg/xwayland.nix | 5 +- .../pkgs/servers/zigbee2mqtt/default.nix | 6 +- .../pkgs/shells/bash/blesh/default.nix | 4 +- .../nixpkgs/pkgs/shells/carapace/default.nix | 7 +- .../nixpkgs/pkgs/shells/fish/babelfish.nix | 6 +- .../nixpkgs/pkgs/shells/fish/default.nix | 6 + .../pkgs/shells/fish/plugins/fzf-fish.nix | 4 +- .../shells/fish/plugins/sdkman-for-fish.nix | 4 +- .../pkgs/shells/fish/plugins/sponge.nix | 2 +- .../nixpkgs/pkgs/shells/hishtory/default.nix | 37 + .../nixpkgs/pkgs/shells/murex/default.nix | 4 +- .../nixpkgs/pkgs/shells/nushell/default.nix | 52 +- .../pkgs/shells/nushell/plugins/default.nix | 1 + .../pkgs/shells/nushell/plugins/gstat.nix | 28 + .../pkgs/shells/nushell/plugins/query.nix | 9 +- .../nixpkgs/pkgs/shells/oil/default.nix | 7 +- .../pkgs/shells/powershell/default.nix | 38 +- .../pkgs/shells/powershell/getHashes.sh | 12 +- .../nixpkgs/pkgs/shells/rc-9front/default.nix | 45 + .../nixpkgs/pkgs/shells/rc-9front/path.patch | 13 + .../nixpkgs/pkgs/shells/xonsh/default.nix | 26 +- .../nixpkgs/pkgs/shells/xonsh/wrapper.nix | 24 + .../nixpkgs/pkgs/shells/yash/default.nix | 4 +- .../pkgs/shells/zsh/antidote/default.nix | 33 + .../nixpkgs/pkgs/shells/zsh/default.nix | 18 +- .../pkgs/shells/zsh/oh-my-zsh/default.nix | 7 +- .../pkgs/shells/zsh/pure-prompt/default.nix | 4 +- .../nixpkgs/pkgs/shells/zsh/zinit/default.nix | 10 +- .../shells/zsh/zsh-autocomplete/default.nix | 4 +- .../pkgs/shells/zsh/zsh-forgit/default.nix | 4 +- .../pkgs/shells/zsh/zsh-nix-shell/default.nix | 4 +- .../shells/zsh/zsh-powerlevel10k/default.nix | 10 +- .../shells/zsh/zsh-powerlevel9k/default.nix | 7 +- .../pkgs/shells/zsh/zsh-prezto/default.nix | 6 +- third_party/nixpkgs/pkgs/stdenv/adapters.nix | 25 +- .../nixpkgs/pkgs/stdenv/darwin/README.md | 26 + .../nixpkgs/pkgs/stdenv/darwin/default.nix | 1748 +- .../stdenv/darwin/make-bootstrap-tools.nix | 20 +- .../pkgs/stdenv/darwin/portable-libsystem.sh | 4 +- third_party/nixpkgs/pkgs/stdenv/default.nix | 2 +- .../pkgs/stdenv/generic/make-derivation.nix | 77 +- .../nixpkgs/pkgs/stdenv/generic/setup.sh | 20 +- .../nixpkgs/pkgs/stdenv/linux/default.nix | 40 +- .../stdenv/linux/make-bootstrap-tools.nix | 2 +- .../nixpkgs/pkgs/test/cross/default.nix | 36 + .../pkgs/test/cuda/cuda-samples/generic.nix | 11 +- third_party/nixpkgs/pkgs/test/default.nix | 2 + .../nixpkgs/pkgs/test/dotnet/default.nix | 5 + .../application/Application.cs | 1 + .../application/Application.csproj | 10 + .../dotnet/project-references/default.nix | 38 + .../project-references/library/Library.cs | 8 + .../project-references/library/Library.csproj | 5 + .../dotnet/project-references/nuget-deps.nix | 5 + .../nixpkgs/pkgs/test/haskell/default.nix | 1 + .../pkgs/test/haskell/incremental/default.nix | 35 + third_party/nixpkgs/pkgs/test/overriding.nix | 10 + .../nixpkgs/pkgs/test/stdenv/hooks.nix | 2 +- .../nixpkgs/pkgs/test/texlive/default.nix | 113 +- .../pkgs/tools/X11/ckbcomp/default.nix | 4 +- .../nixpkgs/pkgs/tools/X11/dex/default.nix | 14 +- .../tools/X11/opentabletdriver/default.nix | 5 +- .../pkgs/tools/X11/opentabletdriver/deps.nix | 8 - .../pkgs/tools/X11/opentabletdriver/update.sh | 4 +- .../nixpkgs/pkgs/tools/X11/pmenu/default.nix | 4 +- .../nixpkgs/pkgs/tools/X11/wpgtk/default.nix | 4 +- .../pkgs/tools/X11/xdg-utils/default.nix | 6 +- ...ort-for-30-bit-depth-in-dummy-driver.patch | 41 - .../nixpkgs/pkgs/tools/X11/xpra/default.nix | 7 +- .../pkgs/tools/admin/acme-sh/default.nix | 4 +- .../pkgs/tools/admin/afterburn/default.nix | 6 +- .../pkgs/tools/admin/aliyun-cli/default.nix | 6 +- .../amazon-ecr-credential-helper/default.nix | 4 +- .../nixpkgs/pkgs/tools/admin/ansible/lint.nix | 5 +- .../default.nix | 6 +- .../pkgs/tools/admin/aws-nuke/default.nix | 6 +- .../tools/admin/aws-rotate-key/default.nix | 1 - .../pkgs/tools/admin/awscli/default.nix | 1 + .../pkgs/tools/admin/awscli2/default.nix | 4 +- .../pkgs/tools/admin/awsume/default.nix | 59 + .../pkgs/tools/admin/azure-cli/default.nix | 12 +- .../tools/admin/azure-cli/python-packages.nix | 159 +- .../pkgs/tools/admin/balena-cli/default.nix | 8 +- .../pkgs/tools/admin/berglas/default.nix | 21 +- .../pkgs/tools/admin/cf-vault/default.nix | 6 +- .../pkgs/tools/admin/chamber/default.nix | 6 +- .../pkgs/tools/admin/chkcrontab/default.nix | 2 +- .../pkgs/tools/admin/coldsnap/default.nix | 2 +- .../pkgs/tools/admin/copilot-cli/default.nix | 6 +- .../pkgs/tools/admin/credhub-cli/default.nix | 4 +- .../pkgs/tools/admin/drawterm/default.nix | 55 +- .../pkgs/tools/admin/eksctl/default.nix | 6 +- .../pkgs/tools/admin/exoscale-cli/default.nix | 4 +- .../pkgs/tools/admin/fastlane/Gemfile.lock | 38 +- .../pkgs/tools/admin/fastlane/gemset.nix | 56 +- .../pkgs/tools/admin/fioctl/default.nix | 4 +- .../tools/admin/fits-cloudctl/default.nix | 6 +- .../tools/admin/gimme-aws-creds/default.nix | 9 +- .../admin/google-cloud-sdk/components.json | 1044 +- .../tools/admin/google-cloud-sdk/data.nix | 22 +- .../pkgs/tools/admin/granted/default.nix | 60 + .../pkgs/tools/admin/infra/default.nix | 2 +- .../pkgs/tools/admin/iredis/default.nix | 9 +- .../nixpkgs/pkgs/tools/admin/kics/default.nix | 6 +- .../nixpkgs/pkgs/tools/admin/lego/default.nix | 6 +- .../nixpkgs/pkgs/tools/admin/lxd/default.nix | 41 +- .../nixpkgs/pkgs/tools/admin/lxd/package.json | 103 + .../nixpkgs/pkgs/tools/admin/lxd/ui.nix | 42 + .../nixpkgs/pkgs/tools/admin/lxd/wrapper.nix | 60 + .../pkgs/tools/admin/meshcentral/default.nix | 6 +- .../pkgs/tools/admin/meshcentral/package.json | 2 +- .../pkgs/tools/admin/meshcentral/yarn.lock | 1888 +- .../pkgs/tools/admin/meshcentral/yarn.nix | 1328 +- .../pkgs/tools/admin/mycli/default.nix | 1 + .../tools/admin/netbox2netshot/default.nix | 40 + .../pkgs/tools/admin/netplan/default.nix | 6 +- .../pkgs/tools/admin/okta-aws-cli/default.nix | 6 +- .../nixpkgs/pkgs/tools/admin/oxidized/Gemfile | 10 +- .../pkgs/tools/admin/oxidized/Gemfile.lock | 70 +- .../pkgs/tools/admin/oxidized/default.nix | 4 +- .../pkgs/tools/admin/oxidized/gemset.nix | 118 +- .../nixpkgs/pkgs/tools/admin/pbm/default.nix | 17 + .../pkgs/tools/admin/pgadmin/default.nix | 14 +- .../pkgs/tools/admin/pgadmin/update.sh | 110 + .../pkgs/tools/admin/pgadmin/yarn.lock | 11308 ++++++ .../pkgs/tools/admin/procs/default.nix | 5 +- .../pkgs/tools/admin/pulsarctl/default.nix | 76 + .../pkgs/tools/admin/pulumi-bin/data.nix | 386 +- .../pulumi-packages/pulumi-language-go.nix | 12 +- .../pulumi-language-nodejs.nix | 16 +- .../pkgs/tools/admin/pulumi/default.nix | 8 +- .../pkgs/tools/admin/qovery-cli/default.nix | 6 +- .../admin/realvnc-vnc-viewer/default.nix | 4 +- .../pkgs/tools/admin/s3bro/default.nix | 3 +- .../nixpkgs/pkgs/tools/admin/salt/default.nix | 3 +- .../pkgs/tools/admin/scaleway-cli/default.nix | 6 +- .../pkgs/tools/admin/scalr-cli/default.nix | 1 - .../nixpkgs/pkgs/tools/admin/sec/default.nix | 4 +- .../pkgs/tools/admin/sewer/default.nix | 4 +- .../pkgs/tools/admin/simp_le/default.nix | 4 +- .../pkgs/tools/admin/simplotask/default.nix | 37 + .../pkgs/tools/admin/stripe-cli/default.nix | 6 +- .../nixpkgs/pkgs/tools/admin/syft/default.nix | 6 +- .../pkgs/tools/admin/tigervnc/default.nix | 12 +- .../pkgs/tools/admin/tlsclient/default.nix | 40 + .../pkgs/tools/admin/trivy/default.nix | 6 +- .../nixpkgs/pkgs/tools/admin/try/default.nix | 25 + .../pkgs/tools/admin/turbovnc/default.nix | 18 +- .../pkgs/tools/admin/wander/default.nix | 16 +- .../tools/archivers/arc_unpacker/default.nix | 44 +- .../pkgs/tools/archivers/cpio/default.nix | 17 +- .../quickbms/0002-disable-openssl.patch | 10 + .../pkgs/tools/archivers/quickbms/default.nix | 24 +- .../pkgs/tools/archivers/unzip/default.nix | 4 + .../unzip/implicit-declarations-fix.patch | 21 + .../tools/archivers/xarchiver/default.nix | 4 +- .../pkgs/tools/archivers/xtrt/default.nix | 37 - .../pkgs/tools/audio/abcmidi/default.nix | 4 +- .../tools/audio/audiowaveform/default.nix | 4 +- .../nixpkgs/pkgs/tools/audio/beets/common.nix | 14 +- .../pkgs/tools/audio/beets/default.nix | 26 +- .../fix-embedart-imagick-7.1.1-12.patch | 13 + ...nstable-bash-completion-always-print.patch | 43 + .../botamusique/catch-invalid-versions.patch | 24 + .../pkgs/tools/audio/botamusique/default.nix | 9 +- .../pkgs/tools/audio/catnip-gtk4/default.nix | 43 + .../pkgs/tools/audio/catnip/default.nix | 50 + .../pkgs/tools/audio/kaldi/default.nix | 93 +- .../pkgs/tools/audio/linuxwave/default.nix | 4 +- .../tools/audio/mpd-discord-rpc/default.nix | 32 +- .../pkgs/tools/audio/mpd-mpris/default.nix | 1 - .../tools/audio/mpd-notification/default.nix | 61 + .../audio/openai-whisper-cpp/default.nix | 8 +- .../pkgs/tools/audio/patray/default.nix | 3 +- .../tools/audio/{larynx => piper}/default.nix | 18 +- .../pkgs/tools/audio/spotdl/default.nix | 12 +- .../pkgs/tools/audio/tidal-dl/default.nix | 25 + .../nixpkgs/pkgs/tools/audio/tts/default.nix | 5 +- .../pkgs/tools/audio/unflac/default.nix | 6 +- .../pkgs/tools/audio/vgmtools/default.nix | 8 +- .../audio/whisper-ctranslate2/default.nix | 40 + .../wyoming/faster-whisper-entrypoint.patch | 29 + .../tools/audio/wyoming/faster-whisper.nix | 40 + .../audio/wyoming/piper-entrypoint.patch | 30 + .../pkgs/tools/audio/wyoming/piper.nix | 37 + .../pkgs/tools/backup/awsbck/default.nix | 34 + .../pkgs/tools/backup/bacula/default.nix | 4 +- .../pkgs/tools/backup/borgbackup/default.nix | 18 +- .../pkgs/tools/backup/borgmatic/default.nix | 8 +- .../nixpkgs/pkgs/tools/backup/bup/default.nix | 32 +- .../pkgs/tools/backup/bupstash/default.nix | 2 +- .../backup/conserve}/Cargo.lock | 1702 +- .../pkgs/tools/backup/conserve/default.nix | 30 + .../nixpkgs/pkgs/tools/backup/dar/default.nix | 4 +- .../discordchatexporter-cli/default.nix | 1 - .../backup/discordchatexporter-cli/updater.sh | 4 +- .../pkgs/tools/backup/duplicity/default.nix | 3 - .../pkgs/tools/backup/easysnap/default.nix | 2 +- .../pkgs/tools/backup/fabs/default.nix | 1 + .../pkgs/tools/backup/gamerbackup/default.nix | 1 - .../pkgs/tools/backup/gh2md/default.nix | 3 +- .../tools/backup/gphotos-sync/default.nix | 2 - .../pkgs/tools/backup/grab-site/default.nix | 4 +- .../pkgs/tools/backup/rdedup/default.nix | 8 +- .../tools/backup/rdiff-backup/default.nix | 4 +- .../pkgs/tools/backup/restic/default.nix | 3 +- .../pkgs/tools/backup/restic/rest-server.nix | 9 +- .../pkgs/tools/backup/rustic-rs/default.nix | 6 +- .../pkgs/tools/backup/sigtop/default.nix | 26 + .../pkgs/tools/backup/tarsnap/default.nix | 2 +- .../pkgs/tools/backup/tsm-client/default.nix | 18 +- .../pkgs/tools/backup/zbackup/default.nix | 2 +- .../tools/backup/zfs-autobackup/default.nix | 4 +- .../tools/backup/zfs-replicate/default.nix | 15 +- .../pkgs/tools/backup/zfsbackup/default.nix | 1 - .../pkgs/tools/backup/zrepl/default.nix | 1 - .../tools/bluetooth/blueberry/default.nix | 2 + .../tools/bluetooth/bluetuith/default.nix | 6 +- .../tools/bluetooth/bluez-alsa/default.nix | 4 +- .../nixpkgs/pkgs/tools/cd-dvd/iat/default.nix | 22 + .../pkgs/tools/cd-dvd/ventoy/default.nix | 19 +- .../pkgs/tools/cd-dvd/xorriso/default.nix | 67 +- .../pkgs/tools/compression/lhasa/default.nix | 4 +- .../pkgs/tools/compression/lz4/default.nix | 1 + .../pkgs/tools/compression/pigz/default.nix | 16 +- .../nixpkgs/pkgs/tools/dotool/default.nix | 46 + .../nixpkgs/pkgs/tools/dotool/fix-paths.patch | 33 + .../pkgs/tools/filesystems/9pfs/default.nix | 36 +- .../filesystems/9pfs/fix-darwin-build.patch | 47 - .../tools/filesystems/apfsprogs/default.nix | 6 +- .../bcachefs-tools}/Cargo.lock | 870 +- .../filesystems/bcachefs-tools/default.nix | 80 +- .../pkgs/tools/filesystems/bindfs/default.nix | 4 +- .../tools/filesystems/btrfs-progs/default.nix | 4 +- .../tools/filesystems/ceph-csi/default.nix | 4 +- .../pkgs/tools/filesystems/ceph/default.nix | 3 +- .../pkgs/tools/filesystems/cryfs/default.nix | 4 +- .../pkgs/tools/filesystems/dysk/default.nix | 26 + .../tools/filesystems/e2fsprogs/default.nix | 11 +- .../pkgs/tools/filesystems/envfs/default.nix | 6 +- .../filesystems}/erofs-utils/default.nix | 13 +- .../tools/filesystems/exfatprogs/default.nix | 4 +- .../filesystems/fuse-archive/default.nix | 44 + .../tools/filesystems/gcsfuse/default.nix | 7 +- .../tools/filesystems/glusterfs/default.nix | 4 +- .../tools/filesystems/gocryptfs/default.nix | 6 +- .../tools/filesystems/jefferson/default.nix | 8 +- .../pkgs/tools/filesystems/lfs/default.nix | 25 - .../filesystems/mountain-duck/default.nix | 35 + .../filesystems/reiserfsprogs/default.nix | 9 +- .../reiserfsprogs/reiserfsprogs-ar-fix.patch | 10 - .../pkgs/tools/filesystems/s3fs/default.nix | 4 +- .../tools/filesystems/squashfuse/default.nix | 4 +- .../tools/filesystems/ssdfs-utils/default.nix | 47 + .../tools/filesystems/ssdfs-utils/update.sh | 14 + .../tools/filesystems/stratis-cli/default.nix | 5 +- .../tools/filesystems/stratisd/Cargo.lock | 256 +- .../tools/filesystems/stratisd/default.nix | 14 +- .../tools/filesystems/supertag/default.nix | 6 +- .../tools/filesystems/xfsprogs/default.nix | 6 +- .../pkgs/tools/games/dualsensectl/default.nix | 46 + .../pkgs/tools/games/mymcplus/default.nix | 33 + .../pkgs/tools/games/scarab/default.nix | 22 +- .../nixpkgs/pkgs/tools/games/scarab/deps.nix | 120 +- .../nixpkgs/pkgs/tools/games/scarab/update.sh | 16 + .../pkgs/tools/games/steamback/default.nix | 61 + .../tools/games/trigger-control/default.nix | 69 + .../nixpkgs/pkgs/tools/games/ukmm/Cargo.lock | 75 +- .../nixpkgs/pkgs/tools/games/ukmm/default.nix | 29 +- .../tools/graphics/astc-encoder/default.nix | 13 +- .../pkgs/tools/graphics/asymptote/default.nix | 21 +- .../pkgs/tools/graphics/cgif/default.nix | 31 + .../tools/graphics/deqp-runner/default.nix | 24 + .../tools/graphics/enblend-enfuse/default.nix | 8 +- .../tools/graphics/findimagedupes/default.nix | 70 - .../tools/graphics/gfxreconstruct/default.nix | 5 +- .../pkgs/tools/graphics/gifsicle/default.nix | 4 +- .../pkgs/tools/graphics/gifski/default.nix | 12 +- .../pkgs/tools/graphics/gmic-qt/default.nix | 28 +- .../pkgs/tools/graphics/gmic/default.nix | 6 +- .../pkgs/tools/graphics/gnuplot/default.nix | 4 +- .../pkgs/tools/graphics/graph-cli/default.nix | 3 +- .../pkgs/tools/graphics/graphviz/default.nix | 6 +- .../pkgs/tools/graphics/grim/default.nix | 14 +- .../pkgs/tools/graphics/jhead/default.nix | 40 +- .../pkgs/tools/graphics/leela/default.nix | 2 +- .../tools/graphics/luxcorerender/default.nix | 81 - .../tools/graphics/maskromtool/default.nix | 43 + .../tools/graphics/mesa-demos/default.nix | 54 +- .../pkgs/tools/graphics/netpbm/default.nix | 6 +- .../pkgs/tools/graphics/pdftoipe/default.nix | 14 +- .../pkgs/tools/graphics/qrcode/default.nix | 7 +- .../pkgs/tools/graphics/resvg/default.nix | 6 +- .../pkgs/tools/graphics/scrot/default.nix | 6 +- .../tools/graphics/shot-scraper/default.nix | 3 +- .../pkgs/tools/graphics/shotgun/default.nix | 19 +- .../tools/graphics/spirv-cross/default.nix | 4 +- .../pkgs/tools/graphics/svg2pdf/default.nix | 6 +- .../pkgs/tools/graphics/timg/default.nix | 30 +- .../tools/graphics/ueberzugpp/default.nix | 51 +- .../pkgs/tools/graphics/vips/default.nix | 15 +- .../pkgs/tools/graphics/vkbasalt/default.nix | 12 +- .../graphics/vulkan-caps-viewer/default.nix | 4 +- .../tools/graphics/vulkan-cts/default.nix | 33 +- .../vulkan-extension-layer/default.nix | 6 +- .../add-missing-macro-definition.patch | 26 + .../graphics/vulkan-tools-lunarg/default.nix | 16 +- .../skip-qnx-extension.patch | 13 + .../tools/graphics/vulkan-tools/default.nix | 6 +- .../pkgs/tools/graphics/wgpu-utils/Cargo.lock | 12 +- .../tools/graphics/wgpu-utils/default.nix | 4 +- .../pkgs/tools/graphics/zbar/default.nix | 1 + .../pkgs/tools/inputmethods/emote/default.nix | 25 +- .../tools/inputmethods/fcitx5/default.nix | 9 + .../pkgs/tools/inputmethods/fcitx5/update.py | 2 - .../ibus-engines/ibus-libpinyin/default.nix | 6 +- .../ibus-typing-booster/default.nix | 4 +- .../pkgs/tools/inputmethods/ibus/default.nix | 5 + .../pkgs/tools/inputmethods/kime/default.nix | 7 +- .../tools/inputmethods/m17n-db/default.nix | 5 +- .../tools/inputmethods/m17n-lib/default.nix | 24 +- .../inputmethods/remote-touchpad/default.nix | 4 +- .../pkgs/tools/misc/adafruit-ampy/default.nix | 2 +- .../pkgs/tools/misc/addic7ed-cli/default.nix | 3 +- .../pkgs/tools/misc/adrgen/default.nix | 1 - .../pkgs/tools/misc/android-tools/default.nix | 2 +- .../pkgs/tools/misc/antimicrox/default.nix | 4 +- .../nixpkgs/pkgs/tools/misc/aptly/default.nix | 1 - .../misc/arch-install-scripts/default.nix | 1 - .../pkgs/tools/misc/asciinema-agg/Cargo.lock | 2 +- .../pkgs/tools/misc/asciinema-agg/default.nix | 7 +- .../pkgs/tools/misc/asdf-vm/default.nix | 6 +- .../nixpkgs/pkgs/tools/misc/atuin/default.nix | 20 +- .../pkgs/tools/misc/autojump/default.nix | 2 +- .../pkgs/tools/misc/autorandr/default.nix | 22 +- .../nixpkgs/pkgs/tools/misc/basez/default.nix | 26 + .../pkgs/tools/misc/bat-extras/default.nix | 2 +- .../pkgs/tools/misc/bdf2psf/default.nix | 4 +- .../pkgs/tools/misc/bepasty/default.nix | 32 +- .../nixpkgs/pkgs/tools/misc/bkt/default.nix | 25 + .../nixpkgs/pkgs/tools/misc/bkyml/default.nix | 1 + .../pkgs/tools/misc/blahaj/default.nix | 6 +- .../nixpkgs/pkgs/tools/misc/boxxy/default.nix | 6 +- .../nixpkgs/pkgs/tools/misc/broot/default.nix | 6 +- .../nixpkgs/pkgs/tools/misc/byobu/default.nix | 7 +- .../pkgs/tools/misc/caffeine/default.nix | 37 + .../tools/misc/cf-terraforming/default.nix | 6 +- .../pkgs/tools/misc/cfonts/default.nix | 1 - .../nixpkgs/pkgs/tools/misc/chafa/default.nix | 7 +- .../pkgs/tools/misc/charasay/default.nix | 39 + .../pkgs/tools/misc/chezmoi/default.nix | 6 +- .../nixpkgs/pkgs/tools/misc/claws/default.nix | 1 - .../pkgs/tools/misc/clipboard-jh/default.nix | 8 +- .../nixpkgs/pkgs/tools/misc/cod/default.nix | 2 +- .../pkgs/tools/misc/codemov/Cargo.lock | 348 +- .../pkgs/tools/misc/codemov/default.nix | 6 +- .../pkgs/tools/misc/codevis/default.nix | 11 +- .../pkgs/tools/misc/colorz/default.nix | 4 +- .../nixpkgs/pkgs/tools/misc/cope/default.nix | 2 +- .../misc/coreboot-configurator/default.nix | 1 - .../tools/misc/coreboot-utils/default.nix | 19 +- .../pkgs/tools/misc/coreutils/default.nix | 9 +- .../misc/coreutils/disable-seek-hole.patch | 43 - .../pkgs/tools/misc/czkawka/default.nix | 6 +- .../pkgs/tools/misc/dateutils/default.nix | 2 +- .../tools/misc/debian-devscripts/default.nix | 4 +- .../tools/misc/depotdownloader/default.nix | 9 +- .../pkgs/tools/misc/depotdownloader/deps.nix | 9 +- .../pkgs/tools/misc/depotdownloader/update.sh | 3 +- .../nixpkgs/pkgs/tools/misc/dgoss/default.nix | 1 - .../pkgs/tools/misc/dialog/default.nix | 23 +- .../pkgs/tools/misc/diffoscope/default.nix | 238 +- .../pkgs/tools/misc/doitlive/default.nix | 4 +- .../pkgs/tools/misc/dotacat/default.nix | 26 + .../pkgs/tools/misc/dotter/default.nix | 1 - .../nixpkgs/pkgs/tools/misc/dsq/default.nix | 3 - .../nixpkgs/pkgs/tools/misc/duf/default.nix | 1 - .../nixpkgs/pkgs/tools/misc/dupd/default.nix | 4 +- .../pkgs/tools/misc/dwarf2json/default.nix | 1 - .../pkgs/tools/misc/edid-decode/default.nix | 4 +- .../nixpkgs/pkgs/tools/misc/edir/default.nix | 4 +- .../pkgs/tools/misc/eludris/default.nix | 34 + .../pkgs/tools/misc/encpipe/default.nix | 28 + .../pkgs/tools/misc/enumer/default.nix | 3 +- .../pkgs/tools/misc/esphome/dashboard.nix | 4 +- .../pkgs/tools/misc/esphome/default.nix | 4 +- .../nixpkgs/pkgs/tools/misc/esptool/3.nix | 2 +- .../nixpkgs/pkgs/tools/misc/exa/default.nix | 30 +- .../tools/misc/exa/update-cargo-lock.diff | 13 - .../pkgs/tools/misc/fclones/default.nix | 9 +- .../nixpkgs/pkgs/tools/misc/fclones/gui.nix | 55 + .../pkgs/tools/misc/fedifetcher/default.nix | 39 + .../nixpkgs/pkgs/tools/misc/fend/default.nix | 6 +- .../pkgs/tools/misc/ffsend/default.nix | 35 +- .../nixpkgs/pkgs/tools/misc/fiano/default.nix | 40 + .../pkgs/tools/misc/findup/default.nix | 10 +- .../pkgs/tools/misc/flameshot/default.nix | 10 + .../pkgs/tools/misc/flashrom/default.nix | 3 +- .../pkgs/tools/misc/flexoptix-app/default.nix | 2 +- .../pkgs/tools/misc/flitter/default.nix | 3 +- .../pkgs/tools/misc/flowgger/default.nix | 42 + .../pkgs/tools/misc/fluent-bit/default.nix | 5 +- .../pkgs/tools/misc/fontforge/default.nix | 4 +- .../pkgs/tools/misc/fortune/default.nix | 4 +- .../nixpkgs/pkgs/tools/misc/fre/default.nix | 23 + .../pkgs/tools/misc/fselect/default.nix | 6 +- .../nixpkgs/pkgs/tools/misc/fsql/default.nix | 1 - .../tools/misc/fuc/add_missing_feature.patch | 11 + .../nixpkgs/pkgs/tools/misc/fuc/default.nix | 35 + .../nixpkgs/pkgs/tools/misc/fzf/default.nix | 12 +- .../nixpkgs/pkgs/tools/misc/gay/default.nix | 3 +- .../tools/misc/gazelle-origin/default.nix | 1 - .../nixpkgs/pkgs/tools/misc/geekbench/6.nix | 4 +- .../pkgs/tools/misc/getopt/default.nix | 4 + .../pkgs/tools/misc/gh-dash/default.nix | 6 +- .../misc/gh-markdown-preview/default.nix | 4 +- .../pkgs/tools/misc/gigalixir/default.nix | 13 +- .../pkgs/tools/misc/github-backup/default.nix | 9 +- .../nixpkgs/pkgs/tools/misc/gitrs/default.nix | 42 + .../pkgs/tools/misc/go-ios/default.nix | 41 + .../nixpkgs/pkgs/tools/misc/goose/default.nix | 6 +- .../pkgs/tools/misc/goreleaser/default.nix | 6 +- .../pkgs/tools/misc/grass-sass/default.nix | 6 +- .../nixpkgs/pkgs/tools/misc/graylog/5.0.nix | 4 +- .../pkgs/tools/misc/graylog/plugins.nix | 28 + .../nixpkgs/pkgs/tools/misc/grit/default.nix | 1 - .../misc/grub/add-hidden-menu-entries.patch | 204 + .../nixpkgs/pkgs/tools/misc/grub/default.nix | 343 +- .../pkgs/tools/misc/gtkterm/default.nix | 2 +- .../nixpkgs/pkgs/tools/misc/gwe/default.nix | 1 - .../nixpkgs/pkgs/tools/misc/h/default.nix | 2 +- .../nixpkgs/pkgs/tools/misc/halp/default.nix | 6 +- .../pkgs/tools/misc/handlr-regex/default.nix | 2 +- .../pkgs/tools/misc/hashpump/default.nix | 36 + .../pkgs/tools/misc/haste-client/default.nix | 4 +- .../nixpkgs/pkgs/tools/misc/hdf5/1.10.nix | 8 +- .../nixpkgs/pkgs/tools/misc/hdf5/default.nix | 9 +- .../pkgs/tools/misc/hdfview/default.nix | 8 +- .../misc/hdfview/disable-mac-signing.patch | 26 + .../pkgs/tools/misc/hid-tools/default.nix | 4 +- .../nixpkgs/pkgs/tools/misc/hunt/default.nix | 6 +- .../pkgs/tools/misc/hyfetch/default.nix | 4 +- .../pkgs/tools/misc/hyperfine/default.nix | 14 +- .../tools/misc/hyperledger-fabric/default.nix | 4 +- .../iam-policy-json-to-terraform/default.nix | 2 +- .../pkgs/tools/misc/ical2orgpy/default.nix | 32 + .../tools/misc/ideviceinstaller/default.nix | 10 +- .../tools/misc/idevicerestore/default.nix | 14 +- .../pkgs/tools/misc/infracost/default.nix | 6 +- .../pkgs/tools/misc/interactsh/default.nix | 6 +- .../pkgs/tools/misc/invoice/default.nix | 24 + .../pkgs/tools/misc/jfrog-cli/default.nix | 7 +- .../nixpkgs/pkgs/tools/misc/kicli/default.nix | 28 + .../pkgs/tools/misc/killport/default.nix | 10 +- .../pkgs/tools/misc/kitty-img/default.nix | 23 + .../pkgs/tools/misc/krapslog/default.nix | 6 +- .../pkgs/tools/misc/kronometer/default.nix | 2 +- .../nixpkgs/pkgs/tools/misc/ksnip/default.nix | 4 +- .../pkgs/tools/misc/latex2html/default.nix | 4 +- .../nixpkgs/pkgs/tools/misc/lavat/default.nix | 41 + .../nixpkgs/pkgs/tools/misc/lerpn/default.nix | 33 + .../pkgs/tools/misc/lesspipe/default.nix | 6 +- .../pkgs/tools/misc/license-cli/default.nix | 3 +- .../pkgs/tools/misc/licensor/default.nix | 1 - .../tools/misc/lighthouse-steamvr/Cargo.lock | 1286 + .../tools/misc/lighthouse-steamvr/default.nix | 22 +- .../pkgs/tools/misc/limitcpu/default.nix | 4 +- .../pkgs/tools/misc/lineselect/default.nix | 37 + .../nixpkgs/pkgs/tools/misc/lnav/default.nix | 4 +- .../pkgs/tools/misc/lokalise2-cli/default.nix | 1 - .../pkgs/tools/misc/mailman-rss/default.nix | 4 +- .../pkgs/tools/misc/mapcidr/default.nix | 6 +- .../misc/markdown-anki-decks/default.nix | 3 +- .../nixpkgs/pkgs/tools/misc/mcfly/default.nix | 6 +- .../pkgs/tools/misc/mdbtools/default.nix | 2 +- .../pkgs/tools/misc/mdslides/default.nix | 22 + .../pkgs/tools/misc/melody/default.nix | 2 +- .../tools/misc/mermaid-filter/default.nix | 39 + .../pkgs/tools/misc/miniserve/default.nix | 6 +- .../pkgs/tools/misc/mloader/default.nix | 4 +- .../nixpkgs/pkgs/tools/misc/mmctl/default.nix | 4 +- .../nixpkgs/pkgs/tools/misc/moar/default.nix | 4 +- .../nixpkgs/pkgs/tools/misc/mods/default.nix | 7 +- .../tools/misc/mongodb-compass/default.nix | 4 +- .../pkgs/tools/misc/mongodb-tools/default.nix | 4 +- .../pkgs/tools/misc/mpy-utils/default.nix | 2 +- .../pkgs/tools/misc/multitail/default.nix | 2 +- .../tools/misc/mutagen-compose/default.nix | 8 +- .../pkgs/tools/misc/mutagen/default.nix | 2 +- .../nautilus-open-any-terminal/default.nix | 1 - .../nixpkgs/pkgs/tools/misc/nb/default.nix | 2 +- .../pkgs/tools/misc/neo-cowsay/default.nix | 12 +- .../nixpkgs/pkgs/tools/misc/nitch/default.nix | 7 +- .../nixpkgs/pkgs/tools/misc/nncp/default.nix | 2 +- .../pkgs/tools/misc/notify/default.nix | 6 +- .../nixpkgs/pkgs/tools/misc/ntfy/default.nix | 7 +- .../pkgs/tools/misc/octosql/default.nix | 6 +- .../pkgs/tools/misc/oggvideotools/default.nix | 4 + .../nixpkgs/pkgs/tools/misc/ondir/default.nix | 44 + .../pkgs/tools/misc/onefetch/default.nix | 6 +- .../tools/misc/onefetch/zstd-pkg-config.patch | 10 +- .../pkgs/tools/misc/open-pdf-sign/default.nix | 4 +- .../misc/opentelemetry-collector/contrib.nix | 6 +- .../misc/opentelemetry-collector/default.nix | 7 +- .../pkgs/tools/misc/opentsdb/default.nix | 2 - .../pkgs/tools/misc/oscclip/default.nix | 6 +- .../pkgs/tools/misc/osm2pgsql/default.nix | 1 - .../pkgs/tools/misc/ostree/default.nix | 5 +- .../pkgs/tools/misc/otel-cli/default.nix | 10 +- .../misc/pandoc-drawio-filter/default.nix | 3 - .../pkgs/tools/misc/panoply/default.nix | 4 +- .../pkgs/tools/misc/parallel/default.nix | 4 +- .../pkgs/tools/misc/parquet-tools/default.nix | 6 +- .../pkgs/tools/misc/parted/default.nix | 1 - .../pkgs/tools/misc/past-time/default.nix | 22 +- .../pkgs/tools/misc/pcb2gcode/default.nix | 15 +- .../pkgs/tools/misc/pfetch-rs/default.nix | 29 + .../pkgs/tools/misc/phrase-cli/default.nix | 4 +- .../pkgs/tools/misc/pipe-rename/default.nix | 6 +- .../pkgs/tools/misc/pipreqs/default.nix | 2 +- .../pkgs/tools/misc/piston-cli/default.nix | 15 +- .../tools/misc/plantuml-server/default.nix | 4 +- .../pkgs/tools/misc/plantuml/default.nix | 4 +- .../pkgs/tools/misc/plocate/default.nix | 14 +- .../pkgs/tools/misc/pmbootstrap/default.nix | 2 +- .../pkgs/tools/misc/popsicle/Cargo.lock | 1580 +- .../pkgs/tools/misc/popsicle/default.nix | 17 +- .../nixpkgs/pkgs/tools/misc/pouf/default.nix | 3 +- .../pkgs/tools/misc/powerline-go/default.nix | 5 +- .../pre-commit-hook-ensure-sops/default.nix | 50 + .../pkgs/tools/misc/pre-commit/default.nix | 10 +- .../pkgs/tools/misc/pridefetch/default.nix | 21 +- .../tools/misc/proximity-sort/default.nix | 14 +- .../nixpkgs/pkgs/tools/misc/pspg/default.nix | 4 +- .../pkgs/tools/misc/qflipper/default.nix | 4 +- .../nixpkgs/pkgs/tools/misc/qmk/default.nix | 3 +- .../pkgs/tools/misc/qrscan/default.nix | 36 + .../nixpkgs/pkgs/tools/misc/qt6ct/default.nix | 42 + .../nixpkgs/pkgs/tools/misc/r3ctl/default.nix | 4 +- .../nixpkgs/pkgs/tools/misc/rauc/default.nix | 13 +- .../pkgs/tools/misc/remind/default.nix | 3 +- .../pkgs/tools/misc/remote-exec/default.nix | 64 + .../pkgs/tools/misc/rlwrap/default.nix | 8 +- .../pkgs/tools/misc/rmlint/default.nix | 1 - .../pkgs/tools/misc/rpcsvc-proto/default.nix | 6 +- .../pkgs/tools/misc/rpm-ostree/default.nix | 4 +- .../pkgs/tools/misc/rrdtool/default.nix | 4 +- .../tools/misc/rshim-user-space/default.nix | 4 +- .../nixpkgs/pkgs/tools/misc/rtx/default.nix | 68 + .../tools/misc/rustypaste-cli/default.nix | 33 + .../nixpkgs/pkgs/tools/misc/sacad/default.nix | 4 +- .../pkgs/tools/misc/sagoin/default.nix | 6 +- .../nixpkgs/pkgs/tools/misc/scdl/default.nix | 4 +- .../pkgs/tools/misc/semiphemeral/default.nix | 3 +- .../tools/misc/sensible-utils/default.nix | 40 + .../pkgs/tools/misc/sheldon/default.nix | 50 +- .../pkgs/tools/misc/shell_gpt/default.nix | 7 +- .../pkgs/tools/misc/shopware-cli/default.nix | 10 +- .../pkgs/tools/misc/silicon/default.nix | 7 +- .../pkgs/tools/misc/snapper/default.nix | 4 +- .../nixpkgs/pkgs/tools/misc/snore/default.nix | 2 +- .../pkgs/tools/misc/spacer/default.nix | 26 + .../tools/misc/sqlite3-to-mysql/default.nix | 42 +- .../pkgs/tools/misc/starship/default.nix | 7 +- .../pkgs/tools/misc/staruml/default.nix | 2 +- .../pkgs/tools/misc/steampipe/default.nix | 8 +- .../pkgs/tools/misc/svtplay-dl/default.nix | 4 +- .../misc/system-config-printer/default.nix | 2 +- .../pkgs/tools/misc/tagref/default.nix | 6 +- .../pkgs/tools/misc/tailer/default.nix | 39 + .../nixpkgs/pkgs/tools/misc/tbls/default.nix | 6 +- .../pkgs/tools/misc/termtosvg/default.nix | 4 +- .../nixpkgs/pkgs/tools/misc/tgpt/default.nix | 31 + .../nixpkgs/pkgs/tools/misc/tio/default.nix | 4 +- .../nixpkgs/pkgs/tools/misc/tmate/default.nix | 44 +- .../nixpkgs/pkgs/tools/misc/tmux/default.nix | 27 +- .../nixpkgs/pkgs/tools/misc/tmuxp/default.nix | 29 +- .../nixpkgs/pkgs/tools/misc/todo/default.nix | 2 +- .../pkgs/tools/misc/topgrade/default.nix | 6 +- .../pkgs/tools/misc/trackma/default.nix | 2 +- .../pkgs/tools/misc/tremor-rs/default.nix | 14 +- .../nixpkgs/pkgs/tools/misc/tremor-rs/ls.nix | 4 +- .../nixpkgs/pkgs/tools/misc/turbo/default.nix | 106 +- .../pkgs/tools/misc/tvnamer/default.nix | 5 +- .../pkgs/tools/misc/twitch-dl/default.nix | 1 - .../tools/misc/twspace-crawler/default.nix | 10 +- .../pkgs/tools/misc/twspace-dl/default.nix | 4 +- .../nixpkgs/pkgs/tools/misc/uair/default.nix | 8 +- .../nixpkgs/pkgs/tools/misc/ugs/default.nix | 52 + .../pkgs/tools/misc/unparam/default.nix | 8 +- .../pkgs/tools/misc/urjtag/default.nix | 3 - .../pkgs/tools/misc/url-parser/default.nix | 32 + .../pkgs/tools/misc/urn-timer/default.nix | 6 +- .../pkgs/tools/misc/usbimager/default.nix | 2 +- .../pkgs/tools/misc/usbmuxd/default.nix | 10 +- .../pkgs/tools/misc/usbmuxd2/default.nix | 11 +- .../tools/misc/uutils-coreutils/default.nix | 6 +- .../nixpkgs/pkgs/tools/misc/vector/Cargo.lock | 2897 +- .../pkgs/tools/misc/vector/default.nix | 20 +- .../misc/veikk-linux-driver-gui/default.nix | 2 +- .../pkgs/tools/misc/vimpager/build.nix | 1 - .../pkgs/tools/misc/vimv-rs/default.nix | 6 +- .../pkgs/tools/misc/vrc-get/default.nix | 29 + .../nixpkgs/pkgs/tools/misc/vtm/default.nix | 6 +- .../nixpkgs/pkgs/tools/misc/wagyu/default.nix | 10 +- .../pkgs/tools/misc/wasm-tools/Cargo.lock | 779 +- .../pkgs/tools/misc/wasm-tools/default.nix | 4 +- .../pkgs/tools/misc/waylevel/default.nix | 1 - .../pkgs/tools/misc/wayshot/default.nix | 6 +- .../misc/whatsapp-chat-exporter/default.nix | 38 + .../pkgs/tools/misc/wit-bindgen/default.nix | 6 +- .../nixpkgs/pkgs/tools/misc/wlc/default.nix | 1 + .../pkgs/tools/misc/wootility/default.nix | 14 +- .../pkgs/tools/misc/writedisk/default.nix | 1 - .../nixpkgs/pkgs/tools/misc/xcp/default.nix | 6 +- .../nixpkgs/pkgs/tools/misc/xflux/gui.nix | 2 +- .../tools/misc/xilinx-bootgen/default.nix | 8 +- .../nixpkgs/pkgs/tools/misc/xq/default.nix | 7 +- .../nixpkgs/pkgs/tools/misc/yad/default.nix | 4 +- .../pkgs/tools/misc/you-get/default.nix | 3 +- .../pkgs/tools/misc/yt-dlp/default.nix | 4 +- .../pkgs/tools/misc/ytarchive/default.nix | 2 +- .../nixpkgs/pkgs/tools/misc/ytmdl/default.nix | 3 +- .../nixpkgs/pkgs/tools/misc/yutto/default.nix | 2 +- .../pkgs/tools/misc/zellij/default.nix | 6 +- .../nixpkgs/pkgs/tools/misc/zf/default.nix | 23 +- .../tools/networking/aardvark-dns/default.nix | 6 +- .../tools/networking/acme-client/default.nix | 4 +- .../pkgs/tools/networking/ain/default.nix | 32 + .../pkgs/tools/networking/amass/default.nix | 4 +- .../pkgs/tools/networking/bgpq4/default.nix | 4 +- .../pkgs/tools/networking/bore/default.nix | 9 +- .../tools/networking/boundary/default.nix | 10 +- .../pkgs/tools/networking/brook/default.nix | 5 +- .../tools/networking/burpsuite/default.nix | 4 +- .../tools/networking/cassowary/default.nix | 1 - .../pkgs/tools/networking/circus/default.nix | 4 +- .../pkgs/tools/networking/cjdns/default.nix | 1 + .../tools/networking/clash-meta/default.nix | 10 +- .../pkgs/tools/networking/clash/default.nix | 6 +- .../networking/cloudflare-warp/default.nix | 15 +- .../tools/networking/containerlab/default.nix | 35 + .../pkgs/tools/networking/croc/default.nix | 6 +- .../pkgs/tools/networking/curl/default.nix | 4 +- .../networking/curlie/bump-golang-x-sys.patch | 36 +- .../pkgs/tools/networking/curlie/default.nix | 4 +- .../pkgs/tools/networking/dae/default.nix | 6 +- .../networking/dd-agent/datadog-agent.nix | 7 +- .../tools/networking/ddclient/default.nix | 45 - .../pkgs/tools/networking/dhcpcd/default.nix | 10 +- .../tools/networking/dhcpdump/default.nix | 41 +- .../pkgs/tools/networking/dnsperf/default.nix | 4 +- .../tools/networking/dnsproxy/default.nix | 4 +- .../pkgs/tools/networking/doggo/default.nix | 13 +- .../pkgs/tools/networking/easyrsa/default.nix | 4 +- .../tools/networking/fakeroute/default.nix | 17 +- .../pkgs/tools/networking/fdm/default.nix | 10 +- .../pkgs/tools/networking/flannel/default.nix | 6 +- .../pkgs/tools/networking/frp/default.nix | 6 +- .../pkgs/tools/networking/ghz/default.nix | 24 +- .../tools/networking/gnirehtet/default.nix | 34 +- .../pkgs/tools/networking/gobgp/default.nix | 4 +- .../pkgs/tools/networking/goflow2/default.nix | 6 +- .../tools/networking/goreplay/default.nix | 1 - .../pkgs/tools/networking/gping/default.nix | 10 +- .../tools/networking/grpc_cli/default.nix | 4 +- .../pkgs/tools/networking/gvproxy/default.nix | 4 +- .../pkgs/tools/networking/haproxy/default.nix | 6 +- .../pkgs/tools/networking/hblock/default.nix | 5 +- .../pkgs/tools/networking/httplz/default.nix | 7 +- .../tools/networking/httprobe/default.nix | 27 + .../pkgs/tools/networking/hurl/default.nix | 6 +- .../tools/networking/hysteria/default.nix | 10 +- .../pkgs/tools/networking/i2p/default.nix | 4 +- .../pkgs/tools/networking/i2pd/default.nix | 4 +- .../pkgs/tools/networking/ifwifi/default.nix | 2 +- .../pkgs/tools/networking/inadyn/default.nix | 5 + .../tools/networking/innernet/default.nix | 24 +- .../pkgs/tools/networking/ipcalc/default.nix | 5 +- .../nixpkgs/pkgs/tools/networking/iperf/3.nix | 4 +- .../pkgs/tools/networking/iperf3d/default.nix | 28 + .../pkgs/tools/networking/isync/default.nix | 11 +- .../pkgs/tools/networking/kapp/default.nix | 4 +- .../pkgs/tools/networking/kea/default.nix | 5 +- .../pkgs/tools/networking/keama/default.nix | 31 + .../tools/networking/keepalived/default.nix | 4 +- .../pkgs/tools/networking/labctl/default.nix | 41 + .../tools/networking/ligolo-ng/default.nix | 1 - .../pkgs/tools/networking/lldpd/default.nix | 4 +- .../tools/networking/lxi-tools/default.nix | 2 +- .../pkgs/tools/networking/mailctl/default.nix | 85 + .../pkgs/tools/networking/meek/default.nix | 47 + .../tools/networking/minidlna/default.nix | 4 +- .../tools/networking/minio-client/default.nix | 7 +- .../pkgs/tools/networking/mockoon/default.nix | 40 + .../tools/networking/moodle-dl/default.nix | 4 +- .../tools/networking/mozillavpn/default.nix | 50 +- .../networking/mqttmultimeter/default.nix | 90 + .../tools/networking/mqttmultimeter/deps.nix | 145 + .../pkgs/tools/networking/mu/default.nix | 6 +- .../pkgs/tools/networking/muffet/default.nix | 6 +- .../tools/networking/mutt-ics/default.nix | 2 +- .../pkgs/tools/networking/n2n/default.nix | 6 +- .../pkgs/tools/networking/nebula/default.nix | 4 +- .../tools/networking/netavark/default.nix | 6 +- .../pkgs/tools/networking/netbird/default.nix | 6 +- .../networkmanager/dmenu/default.nix | 4 +- .../networkmanager/openconnect/default.nix | 7 +- .../tools/networking/nexttrace/default.nix | 8 +- .../pkgs/tools/networking/ntopng/default.nix | 3 +- .../pkgs/tools/networking/nyx/default.nix | 2 +- .../tools/networking/oapi-codegen/default.nix | 6 +- .../pkgs/tools/networking/obfs4/default.nix | 19 +- .../pkgs/tools/networking/ockam/default.nix | 6 +- .../pkgs/tools/networking/ocserv/default.nix | 4 +- .../pkgs/tools/networking/oha/default.nix | 6 +- .../networking/ooniprobe-cli/default.nix | 8 +- .../tools/networking/openconnect/default.nix | 14 +- .../tools/networking/openfortivpn/default.nix | 4 +- .../tools/networking/openresolv/default.nix | 10 +- .../pkgs/tools/networking/openssh/default.nix | 16 +- .../tools/networking/pacparser/default.nix | 4 +- .../tools/networking/pacproxy/default.nix | 26 + .../tools/networking/pathvector/default.nix | 4 +- .../tools/networking/picosnitch/default.nix | 3 +- .../pkgs/tools/networking/piknik/default.nix | 37 + .../tools/networking/pirate-get/default.nix | 2 +- .../tools/networking/pixiecore/default.nix | 1 - .../tools/networking/polygon-cli/default.nix | 33 + .../networking/pritunl-client/default.nix | 144 +- .../pkgs/tools/networking/pwnat/default.nix | 28 +- .../pkgs/tools/networking/q/default.nix | 6 +- .../pkgs/tools/networking/rathole/default.nix | 6 +- .../pkgs/tools/networking/redli/default.nix | 6 +- .../tools/networking/rshijack/default.nix | 6 +- .../pkgs/tools/networking/s4cmd/default.nix | 4 +- .../pkgs/tools/networking/s5cmd/default.nix | 7 +- .../tools/networking/shadowfox/default.nix | 14 +- .../networking/shadowsocks-rust/default.nix | 6 +- .../tools/networking/sing-box/default.nix | 18 +- .../pkgs/tools/networking/sipexer/default.nix | 6 +- .../pkgs/tools/networking/sish/default.nix | 25 +- .../tools/networking/sitespeed-io/default.nix | 91 + .../tools/networking/slowlorust/default.nix | 10 +- .../pkgs/tools/networking/snabb/default.nix | 4 +- .../pkgs/tools/networking/softnet/default.nix | 34 + .../tools/networking/speedtest-go/default.nix | 4 +- .../pkgs/tools/networking/spoofer/default.nix | 4 +- .../tools/networking/strongswan/default.nix | 4 +- .../tools/networking/subfinder/default.nix | 6 +- .../tools/networking/swagger-cli/default.nix | 30 + .../tools/networking/tcpreplay/default.nix | 4 +- .../pkgs/tools/networking/tgt/default.nix | 5 + .../networking/transmission-rss/default.nix | 29 + .../update-cargo-lock-version.patch | 13 + .../pkgs/tools/networking/trurl/default.nix | 6 +- .../networking/tuic}/Cargo.lock | 927 +- .../pkgs/tools/networking/tuic/default.nix | 33 + .../tools/networking/tun2socks/default.nix | 6 +- .../pkgs/tools/networking/tuntox/default.nix | 2 +- .../pkgs/tools/networking/tunwg/default.nix | 27 + .../pkgs/tools/networking/ua/default.nix | 8 +- .../pkgs/tools/networking/udp2raw/default.nix | 2 + .../pkgs/tools/networking/unbound/default.nix | 2 +- .../pkgs/tools/networking/updog/default.nix | 4 +- .../pkgs/tools/networking/v2ray/default.nix | 6 +- .../tools/networking/webalizer/default.nix | 10 +- .../tools/networking/webwormhole/default.nix | 8 +- .../pkgs/tools/networking/wuzz/default.nix | 14 +- .../pkgs/tools/networking/xray/default.nix | 15 +- .../pkgs/tools/networking/xrootd/default.nix | 31 +- .../pkgs/tools/networking/xrootd/fetchxrd.nix | 42 + .../pkgs/tools/networking/zrok/default.nix | 28 +- .../pkgs/tools/networking/zrok/update.sh | 38 + .../pkgs/tools/nix/gridlock/default.nix | 45 + .../pkgs/tools/nix/nix-init/default.nix | 16 +- .../nixpkgs/pkgs/tools/nix/nixdoc/Cargo.lock | 309 - .../nixpkgs/pkgs/tools/nix/nixdoc/default.nix | 26 +- .../tools/nix/nixos-option/CMakeLists.txt | 7 +- .../pkgs/tools/nix/nixos-option/default.nix | 12 +- .../nix/nixos-option/libnix-copy-paste.cc | 9 +- .../tools/nix/nixos-option/nixos-option.cc | 101 +- .../src/nixos_render_docs/__init__.py | 5 +- .../src/nixos_render_docs/asciidoc.py | 4 +- .../src/nixos_render_docs/commonmark.py | 6 +- .../src/nixos_render_docs/docbook.py | 5 +- .../src/nixos_render_docs/html.py | 108 +- .../src/nixos_render_docs/manpage.py | 3 +- .../src/nixos_render_docs/manual.py | 217 +- .../src/nixos_render_docs/manual_structure.py | 21 +- .../src/nixos_render_docs/md.py | 139 +- .../src/nixos_render_docs/options.py | 134 +- .../src/nixos_render_docs/parallel.py | 2 +- .../src/nixos_render_docs/types.py | 2 +- .../src/tests/test_commonmark.py | 11 +- .../nixos-render-docs/src/tests/test_html.py | 79 +- .../src/tests/test_manpage.py | 3 +- .../src/tests/test_options.py | 2 +- .../src/tests/test_plugins.py | 25 + .../pkgs/tools/nix/nixpkgs-lint/default.nix | 26 + .../package-management/apk-tools/default.nix | 4 +- .../tools/package-management/apt/default.nix | 4 +- .../tools/package-management/apx/default.nix | 11 +- .../package-management/auditwheel/default.nix | 3 +- .../package-management/deploy-rs/default.nix | 8 +- .../tools/package-management/dnf5/default.nix | 94 + .../tools/package-management/dpkg/default.nix | 4 +- .../fortran-fpm/default.nix | 48 + .../package-management/harmonia/default.nix | 6 +- .../home-manager/default.nix | 100 +- .../package-management/microdnf/default.nix | 4 +- .../package-management/micromamba/default.nix | 6 +- .../package-management/morph/default.nix | 1 - .../mynewt-newt/default.nix | 1 - .../tools/package-management/nfpm/default.nix | 7 +- .../nix-eval-jobs/default.nix | 4 +- .../package-management/nix-index/default.nix | 6 +- .../package-management/nix-pin/default.nix | 7 +- .../package-management/nix-update/default.nix | 4 +- .../tools/package-management/nix/common.nix | 6 +- .../tools/package-management/nix/default.nix | 149 +- .../nixpkgs-review/default.nix | 4 +- .../package-management/pacup/default.nix | 45 + .../tools/package-management/pdm/default.nix | 8 +- .../package-management/poetry/default.nix | 49 +- .../poetry/plugins/poetry-plugin-export.nix} | 4 +- .../poetry/plugins/poetry-plugin-up.nix | 9 + .../package-management/poetry/unwrapped.nix | 5 +- .../pkgs/tools/security/adenum/default.nix | 3 +- .../tools/security/aflplusplus/default.nix | 94 +- .../security/aflplusplus/libdislocator.nix | 5 +- .../security/aflplusplus/libtokencap.nix | 4 +- .../pkgs/tools/security/aflplusplus/qemu.nix | 167 +- .../tools/security/age-plugin-tpm/default.nix | 41 + .../security/argocd-vault-plugin/default.nix | 6 +- .../pkgs/tools/security/arti/default.nix | 6 +- .../pkgs/tools/security/asnmap/default.nix | 6 +- .../pkgs/tools/security/b3sum/default.nix | 7 +- .../pkgs/tools/security/bao/default.nix | 9 +- .../tools/security/biscuit-cli/default.nix | 37 +- .../security/biscuit-cli/version-0.4.0.patch | 13 + .../pkgs/tools/security/bitwarden/default.nix | 17 +- .../tools/security/bloodhound-py/default.nix | 31 + .../tools/security/browserpass/default.nix | 10 +- .../pkgs/tools/security/cameradar/default.nix | 4 + .../pkgs/tools/security/cariddi/default.nix | 6 +- .../pkgs/tools/security/certsync/default.nix | 37 + .../pkgs/tools/security/cfripper/default.nix | 9 +- .../pkgs/tools/security/chainsaw/Cargo.lock | 2401 ++ .../pkgs/tools/security/chainsaw/default.nix | 37 + .../pkgs/tools/security/cirrusgo/default.nix | 1 - .../pkgs/tools/security/clamav/default.nix | 4 +- .../pkgs/tools/security/cloudfox/default.nix | 6 +- .../pkgs/tools/security/cnspec/default.nix | 6 +- .../pkgs/tools/security/cosign/default.nix | 6 +- .../pkgs/tools/security/coze/default.nix | 26 + .../security/credential-detector/default.nix | 8 +- .../pkgs/tools/security/creds/default.nix | 43 + .../pkgs/tools/security/crowdsec/default.nix | 6 +- .../tools/security/cryptomator/default.nix | 40 +- .../pkgs/tools/security/das/default.nix | 50 + .../pkgs/tools/security/davtest/default.nix | 2 +- .../tools/security/deepsecrets/default.nix | 50 + .../pkgs/tools/security/dnsx/default.nix | 16 +- .../pkgs/tools/security/doas/default.nix | 8 +- .../tools/security/doas/disable-shared.patch | 13 - .../pkgs/tools/security/donkey/default.nix | 54 + .../pkgs/tools/security/dontgo403/default.nix | 6 +- .../pkgs/tools/security/doppler/default.nix | 6 +- .../pkgs/tools/security/eid-mw/default.nix | 4 +- .../pkgs/tools/security/evtx/default.nix | 3 +- .../pkgs/tools/security/exploitdb/default.nix | 5 +- .../pkgs/tools/security/fido2luks/default.nix | 9 +- .../security/firefox_decrypt/default.nix | 32 +- .../pkgs/tools/security/fprintd/default.nix | 2 - .../tools/security/frida-tools/default.nix | 25 + .../pkgs/tools/security/fscan/default.nix | 23 + .../pkgs/tools/security/fulcio/default.nix | 6 +- .../pkgs/tools/security/gallia/default.nix | 1 - .../pkgs/tools/security/ghdorker/default.nix | 3 +- .../pkgs/tools/security/ghidra/build.nix | 14 +- .../pkgs/tools/security/ghidra/default.nix | 6 +- .../pkgs/tools/security/gitleaks/default.nix | 6 +- .../tools/security/gnome-keysign/default.nix | 23 +- .../nixpkgs/pkgs/tools/security/gnupg/22.nix | 2 +- .../nixpkgs/pkgs/tools/security/gnupg/24.nix | 13 +- .../pkgs/tools/security/goblob/default.nix | 31 + .../pkgs/tools/security/gosh/default.nix | 10 +- .../pkgs/tools/security/gotestwaf/default.nix | 9 +- .../pkgs/tools/security/gotrue/supabase.nix | 6 +- .../tools/security/govulncheck/default.nix | 29 +- .../pkgs/tools/security/gpg-tui/default.nix | 6 +- .../pkgs/tools/security/grap/default.nix | 2 +- .../pkgs/tools/security/grype/default.nix | 6 +- .../tools/security/hash-slinger/default.nix | 4 +- .../tools/security/hash_extender/default.nix | 3 + .../pkgs/tools/security/hashcat/default.nix | 27 +- .../tools/security/hcxdumptool/default.nix | 4 +- .../pkgs/tools/security/hcxtools/default.nix | 4 +- .../pkgs/tools/security/honeytrap/default.nix | 10 +- .../pkgs/tools/security/honggfuzz/default.nix | 1 - .../pkgs/tools/security/httpdump/default.nix | 12 +- .../pkgs/tools/security/httpx/default.nix | 6 +- .../pkgs/tools/security/iaito/default.nix | 4 +- .../pkgs/tools/security/ike-scan/default.nix | 2 - .../pkgs/tools/security/ioccheck/default.nix | 8 +- .../pkgs/tools/security/jaeles/default.nix | 7 +- .../pkgs/tools/security/jd-cli/default.nix | 35 +- .../pkgs/tools/security/jsluice/default.nix | 30 + .../pkgs/tools/security/jwt-cli/default.nix | 8 +- .../pkgs/tools/security/jwx/default.nix | 4 +- .../pkgs/tools/security/katana/default.nix | 6 +- .../pkgs/tools/security/kerbrute/default.nix | 4 +- .../pkgs/tools/security/keybase/kbfs.nix | 3 +- .../tools/security/kube-bench/default.nix | 6 +- .../tools/security/kubeclarity/default.nix | 6 +- .../security/kubernetes-polaris/default.nix | 6 +- .../pkgs/tools/security/kubescape/default.nix | 6 +- .../pkgs/tools/security/lil-pwny/default.nix | 32 + .../pkgs/tools/security/metasploit/Gemfile | 2 +- .../tools/security/metasploit/Gemfile.lock | 122 +- .../tools/security/metasploit/default.nix | 4 +- .../pkgs/tools/security/metasploit/gemset.nix | 148 +- .../security/mitmproxy2swagger/default.nix | 4 +- .../tools/security/msldapdump/default.nix | 46 + .../tools/security/mx-takeover/default.nix | 31 + .../pkgs/tools/security/nbutools/default.nix | 41 + .../tools/security/networkminer/default.nix | 72 + .../pkgs/tools/security/networkminer/deps.nix | 8 + .../security/networkminer/xdg-dirs.patch | 174 + .../pkgs/tools/security/nmap/default.nix | 23 +- .../pkgs/tools/security/nmap/zenmap.patch | 15 - .../tools/security/noseyparker/default.nix | 49 + .../pkgs/tools/security/notation/default.nix | 27 + .../pkgs/tools/security/ntlmrecon/default.nix | 10 +- .../pkgs/tools/security/nuclei/default.nix | 10 +- .../pkgs/tools/security/oauth2c/default.nix | 4 +- .../tools/security/onioncircuits/default.nix | 2 - .../tools/security/onlykey-agent/default.nix | 3 +- .../tools/security/onlykey-cli/default.nix | 4 +- .../pkgs/tools/security/onlykey/default.nix | 16 +- .../pkgs/tools/security/onlykey/generate.sh | 2 +- .../tools/security/onlykey/node-packages.nix | 2116 +- .../pkgs/tools/security/onlykey/onlykey.nix | 2 +- .../pkgs/tools/security/onlykey/package.json | 2 +- .../tools/security/osv-scanner/default.nix | 6 +- .../pkgs/tools/security/pass/default.nix | 2 +- .../tools/security/pass/extensions/import.nix | 1 - .../security/passage/darwin-getopt-path.patch | 12 + .../pkgs/tools/security/passage/default.nix | 10 +- .../tools/security/pcsc-cyberjack/default.nix | 11 +- .../tools/security/pcsc-safenet/default.nix | 2 - .../tools/security/pentestgpt/default.nix | 57 + .../pkgs/tools/security/pinentry/mac.nix | 5 + .../proxmark3/darwin-always-gui.patch | 13 + .../security/proxmark3/proxmark3-rrg.nix | 90 +- .../tools/security/pynitrokey/default.nix | 18 +- .../pkgs/tools/security/quill/default.nix | 2 +- .../pkgs/tools/security/rage/default.nix | 6 +- .../pkgs/tools/security/rekor/default.nix | 6 +- .../pkgs/tools/security/responder/default.nix | 55 + .../pkgs/tools/security/ripasso/cursive.nix | 2 - .../pkgs/tools/security/rng-tools/default.nix | 24 +- .../pkgs/tools/security/rnp/default.nix | 20 +- .../security/rnp/sexp_sexpp_rename.patch | 50 + .../tools/security/rnp/unbundle-sexpp.patch | 38 + .../nixpkgs/pkgs/tools/security/ronin/Gemfile | 4 + .../pkgs/tools/security/ronin/Gemfile.lock | 97 +- .../pkgs/tools/security/ronin/default.nix | 27 +- .../pkgs/tools/security/ronin/gemset.nix | 224 +- .../pkgs/tools/security/rsign2/default.nix | 6 +- .../pkgs/tools/security/ruler/default.nix | 1 - .../pkgs/tools/security/s5/default.nix | 30 + .../pkgs/tools/security/saml2aws/default.nix | 7 +- .../pkgs/tools/security/schleuder/default.nix | 1 - .../pkgs/tools/security/scorecard/default.nix | 1 - .../tools/security/secretscanner/default.nix | 34 +- .../pkgs/tools/security/semgrep/common.nix | 55 +- .../pkgs/tools/security/semgrep/default.nix | 17 +- .../tools/security/semgrep/semgrep-core.nix | 39 +- .../pkgs/tools/security/semgrep/update.sh | 60 +- .../tools/security/sequoia-sq/default.nix | 62 + .../tools/security/sequoia-sqop/default.nix | 58 + .../tools/security/sequoia-sqv/default.nix | 59 + .../pkgs/tools/security/sequoia/default.nix | 115 - .../pkgs/tools/security/sget/default.nix | 33 - .../pkgs/tools/security/smbmap/default.nix | 6 +- .../pkgs/tools/security/snowcrash/default.nix | 17 +- .../pkgs/tools/security/softhsm/default.nix | 2 +- .../pkgs/tools/security/spire/default.nix | 6 +- .../pkgs/tools/security/spyre/default.nix | 22 +- .../tools/security/ssh-to-age/default.nix | 7 +- .../tools/security/ssh-to-pgp/default.nix | 6 +- .../pkgs/tools/security/sshuttle/default.nix | 3 +- .../security/step-kms-plugin/default.nix | 8 +- .../pkgs/tools/security/sx-go/default.nix | 3 +- .../pkgs/tools/security/tboot/default.nix | 4 +- .../pkgs/tools/security/thc-hydra/default.nix | 6 +- .../pkgs/tools/security/threatest/default.nix | 4 +- .../pkgs/tools/security/tlsx/default.nix | 6 +- .../pkgs/tools/security/traitor/default.nix | 3 +- .../tools/security/trufflehog/default.nix | 6 +- .../pkgs/tools/security/uncover/default.nix | 6 +- .../pkgs/tools/security/vault/default.nix | 6 +- .../pkgs/tools/security/vault/vault-bin.nix | 14 +- .../tools/security/vaultwarden/Cargo.lock | 1147 +- .../tools/security/vaultwarden/default.nix | 9 +- .../tools/security/vaultwarden/webvault.nix | 8 +- .../pkgs/tools/security/verifpal/default.nix | 6 +- .../pkgs/tools/security/vulnix/default.nix | 3 +- .../tools/security/web-eid-app/default.nix | 1 - .../pkgs/tools/security/wpscan/Gemfile.lock | 32 +- .../pkgs/tools/security/wpscan/gemset.nix | 52 +- .../tools/security/yubihsm-shell/default.nix | 3 + .../yubikey-touch-detector/default.nix | 22 +- .../pkgs/tools/security/zdns/default.nix | 8 +- .../pkgs/tools/security/zgrab2/default.nix | 22 +- .../zgrab2/fix-go-version-error.patch | 46 + .../pkgs/tools/security/zlint/default.nix | 6 +- .../security/zmap/cmake-json-0.14-fix.patch | 13 - .../pkgs/tools/security/zmap/default.nix | 14 +- .../pkgs/tools/system/amdgpu_top/Cargo.lock | 11 +- .../pkgs/tools/system/amdgpu_top/default.nix | 4 +- .../system/automatic-timezoned/default.nix | 6 +- .../pkgs/tools/system/bottom/default.nix | 6 +- .../pkgs/tools/system/btop/default.nix | 23 +- .../pkgs/tools/system/dool/default.nix | 42 + .../pkgs/tools/system/envconsul/default.nix | 14 +- .../pkgs/tools/system/epilys-bb/default.nix | 23 + .../pkgs/tools/system/erdtree/default.nix | 6 +- .../nixpkgs/pkgs/tools/system/fio/default.nix | 4 +- .../pkgs/tools/system/freeipmi/default.nix | 4 +- .../nixpkgs/pkgs/tools/system/gdu/default.nix | 6 +- .../pkgs/tools/system/gohai/default.nix | 2 - .../pkgs/tools/system/gopsuinfo/default.nix | 4 +- .../system/java-service-wrapper/default.nix | 4 +- .../pkgs/tools/system/jsvc/default.nix | 4 +- .../pkgs/tools/system/krakenx/default.nix | 4 +- .../pkgs/tools/system/lact/default.nix | 80 + .../pkgs/tools/system/lact/pci-ids.patch | 10 + .../pkgs/tools/system/mediawriter/default.nix | 45 + .../pkgs/tools/system/minijail/default.nix | 3 + .../pkgs/tools/system/monit/default.nix | 5 +- .../pkgs/tools/system/nats-top/default.nix | 21 +- .../pkgs/tools/system/netdata/default.nix | 7 +- .../pkgs/tools/system/netdata/go.d.plugin.nix | 6 +- .../pkgs/tools/system/nvitop/default.nix | 6 +- .../pkgs/tools/system/openipmi/default.nix | 4 +- .../pkgs/tools/system/pciutils/default.nix | 4 +- .../pkgs/tools/system/plan9port/default.nix | 6 +- .../nixpkgs/pkgs/tools/system/rex/default.nix | 39 +- .../pkgs/tools/system/rsyslog/default.nix | 3 +- .../pkgs/tools/system/s-tui/default.nix | 3 +- .../pkgs/tools/system/skeema/default.nix | 4 +- .../pkgs/tools/system/stress-ng/default.nix | 4 +- .../pkgs/tools/system/stress/default.nix | 14 +- .../system/systemd-journal2gelf/default.nix | 9 +- .../pkgs/tools/system/systeroid/default.nix | 6 +- .../pkgs/tools/system/thermald/default.nix | 4 +- .../pkgs/tools/system/tree/default.nix | 6 +- .../pkgs/tools/system/ttop/default.nix | 8 +- .../pkgs/tools/system/zenith/default.nix | 7 +- .../nixpkgs/pkgs/tools/text/a2ps/default.nix | 4 +- .../nixpkgs/pkgs/tools/text/anew/default.nix | 27 + .../pkgs/tools/text/angle-grinder/default.nix | 6 +- .../pkgs/tools/text/ansifilter/default.nix | 5 +- .../pkgs/tools/text/asciigraph/default.nix | 6 +- .../pkgs/tools/text/bashblog/default.nix | 3 +- .../pkgs/tools/text/cmigemo/default.nix | 2 +- .../pkgs/tools/text/crowdin-cli/default.nix | 4 +- .../pkgs/tools/text/csvkit/default.nix | 6 +- .../pkgs/tools/text/csvquote/default.nix | 2 +- .../nixpkgs/pkgs/tools/text/d2/default.nix | 6 +- .../nixpkgs/pkgs/tools/text/dfmt/default.nix | 2 +- .../pkgs/tools/text/difftastic/Cargo.lock | 36 +- .../pkgs/tools/text/difftastic/default.nix | 4 +- .../pkgs/tools/text/diffutils/default.nix | 28 +- .../tools/text/diffutils/fix-diff-D.patch | 15 - .../pkgs/tools/text/dirdiff/default.nix | 7 +- .../pkgs/tools/text/djot-js/default.nix | 47 + .../pkgs/tools/text/dos2unix/default.nix | 4 +- .../pkgs/tools/text/epubcheck/default.nix | 4 +- .../pkgs/tools/text/fanficfare/default.nix | 8 +- .../pkgs/tools/text/frogmouth/default.nix | 5 +- .../pkgs/tools/text/gawk/darwin-no-pma.patch | 31 - .../nixpkgs/pkgs/tools/text/gawk/default.nix | 10 +- .../pkgs/tools/text/gawk/gawkextlib.nix | 6 +- .../pkgs/tools/text/gnugrep/default.nix | 32 +- .../text/gnugrep/sigsegv-loongarch.patch | 31 - .../nixpkgs/pkgs/tools/text/goawk/default.nix | 4 +- .../nixpkgs/pkgs/tools/text/gtree/default.nix | 45 + .../nixpkgs/pkgs/tools/text/gucci/default.nix | 5 +- .../pkgs/tools/text/hcledit/default.nix | 6 +- .../pkgs/tools/text/highlight/default.nix | 4 +- .../pkgs/tools/text/jotdown/default.nix | 26 + .../pkgs/tools/text/kdiff3/default.nix | 4 +- .../tools/text/languagetool-rust/default.nix | 56 + .../nixpkgs/pkgs/tools/text/mawk/default.nix | 4 +- .../tools/text/mdbook-graphviz/default.nix | 2 +- .../text/mdbook-i18n-helpers/default.nix | 1 - .../pkgs/tools/text/mdbook-katex/default.nix | 11 +- .../pkgs/tools/text/mdbook-pdf/default.nix | 6 +- .../tools/text/mdbook-plantuml/default.nix | 2 - .../pkgs/tools/text/mdbook-toc/default.nix | 25 + .../pkgs/tools/text/mdbook/default.nix | 6 +- .../pkgs/tools/text/miller/default.nix | 6 +- .../pkgs/tools/text/morsel/default.nix | 2 +- .../nixpkgs/pkgs/tools/text/ov/default.nix | 23 +- .../nixpkgs/pkgs/tools/text/par/default.nix | 19 +- .../pkgs/tools/text/poedit/default.nix | 4 +- .../pkgs/tools/text/rare-regex/default.nix | 52 + .../tools/text/readability-cli/default.nix | 40 + .../pkgs/tools/text/reckon/Gemfile.lock | 8 +- .../nixpkgs/pkgs/tools/text/reckon/gemset.nix | 20 +- .../pkgs/tools/text/repgrep/default.nix | 47 + .../pkgs/tools/text/riffdiff/default.nix | 23 + .../nixpkgs/pkgs/tools/text/rpl/default.nix | 2 +- .../pkgs/tools/text/rst2html5/default.nix | 4 +- .../pkgs/tools/text/scraper/default.nix | 6 +- .../text/sgml/linuxdoc-tools/default.nix | 6 +- .../pkgs/tools/text/sgml/opensp/default.nix | 11 +- .../opensp/fix-register-storage-class.patch | 11 + .../nixpkgs/pkgs/tools/text/shfmt/default.nix | 6 +- .../pkgs/tools/text/textpieces/default.nix | 17 +- .../pkgs/tools/text/tidy-viewer/default.nix | 6 +- .../nixpkgs/pkgs/tools/text/tml/default.nix | 28 + .../pkgs/tools/text/topfew/default.nix | 37 + .../nixpkgs/pkgs/tools/text/txr/default.nix | 7 +- .../pkgs/tools/text/txt2tags/default.nix | 1 - .../nixpkgs/pkgs/tools/text/ucg/default.nix | 4 +- .../nixpkgs/pkgs/tools/text/ugrep/default.nix | 14 +- .../pkgs/tools/text/unfurl/default.nix | 32 + .../pkgs/tools/text/unoconv/default.nix | 3 +- .../nixpkgs/pkgs/tools/text/vale/default.nix | 4 +- .../nixpkgs/pkgs/tools/text/xidel/default.nix | 2 +- .../pkgs/tools/text/xml/basex/default.nix | 4 +- .../pkgs/tools/text/xml/xq/default.nix | 41 + .../pkgs/tools/text/zim-tools/default.nix | 4 +- .../tools/typesetting/asciidoctor/Gemfile | 1 + .../typesetting/asciidoctor/Gemfile.lock | 24 +- .../tools/typesetting/asciidoctor/gemset.nix | 50 +- .../typesetting/asciidoctorj/default.nix | 4 +- .../tools/typesetting/bibclean/default.nix | 4 +- .../typesetting/git-latexdiff/default.nix | 6 +- .../tools/typesetting/lowdown/default.nix | 28 +- .../pkgs/tools/typesetting/mmark/default.nix | 10 +- .../tools/typesetting/psutils/default.nix | 11 +- .../pkgs/tools/typesetting/sile/default.nix | 4 +- .../tools/typesetting/soupault/default.nix | 13 +- .../tools/typesetting/tectonic/default.nix | 14 +- .../tools/typesetting/tex/advi/default.nix | 5 +- .../typesetting/tex/texlive/UPGRADING.md | 43 +- .../tools/typesetting/tex/texlive/bin.nix | 22 +- .../tools/typesetting/tex/texlive/combine.nix | 4 + .../tools/typesetting/tex/texlive/default.nix | 74 +- .../typesetting/tex/texlive/fixHashes.awk | 24 - .../typesetting/tex/texlive/fixed-hashes.nix | 9897 +++++ .../typesetting/tex/texlive/fixedHashes.nix | 9897 ----- .../tex/texlive/generate-fixed-hashes.nix | 41 + .../tools/typesetting/tex/texlive/tl2nix.sed | 76 +- .../tools/typesetting/tex/texlive/tlpdb.nix | 12735 ++++--- .../tools/typesetting/typst-fmt/default.nix | 31 - .../tools/typesetting/typst-live/default.nix | 42 + .../pkgs/tools/typesetting/typst/Cargo.lock | 429 +- .../pkgs/tools/typesetting/typst/default.nix | 4 +- .../{typst-fmt => typstfmt}/Cargo.lock | 934 +- .../tools/typesetting/typstfmt/default.nix | 28 + .../pkgs/tools/typesetting/xmlto/default.nix | 20 +- .../pkgs/tools/video/bento4/default.nix | 4 +- .../pkgs/tools/video/go2rtc/default.nix | 6 +- .../nixpkgs/pkgs/tools/video/lux/default.nix | 4 +- .../pkgs/tools/video/rav1e/default.nix | 12 +- .../pkgs/tools/video/recyclarr/default.nix | 88 + .../pkgs/tools/video/recyclarr/update.sh | 46 + .../pkgs/tools/video/svt-av1/default.nix | 4 +- .../nixpkgs/pkgs/tools/video/vcsi/default.nix | 4 +- .../pkgs/tools/video/yaydl/default.nix | 44 + .../alpine-make-vm-image/default.nix | 4 +- .../tools/virtualization/awsebcli/default.nix | 9 +- .../cloud-init/0001-add-nixos-support.patch | 16 +- .../cloud-init/0002-Add-Udhcpc-support.patch | 447 +- .../0003-vultr-remove-check_route-check.patch | 110 - .../virtualization/cloud-init/default.nix | 9 +- .../virtualization/cri-tools/default.nix | 4 +- .../extra-container/default.nix | 5 +- .../google-guest-agent/default.nix | 4 +- .../tools/virtualization/govc/default.nix | 4 +- .../virtualization/guestfs-tools/default.nix | 8 +- .../{shipyard => jumppad}/default.nix | 16 +- .../tools/virtualization/kubevirt/default.nix | 4 +- .../multipass/cmake_no_fetch.patch | 32 + .../virtualization/multipass/default.nix | 44 +- .../multipass/lxd_socket_path.patch | 13 + .../virtualization/onmetal-image/default.nix | 18 +- .../tools/virtualization/ovftool/default.nix | 4 +- .../virtualization/rootlesskit/default.nix | 6 +- .../tools/virtualization/uefi-run/default.nix | 6 +- .../virtualization/vpsfree-client/Gemfile | 2 +- .../vpsfree-client/Gemfile.lock | 77 +- .../virtualization/vpsfree-client/default.nix | 2 +- .../virtualization/vpsfree-client/gemset.nix | 179 +- .../pkgs/tools/wayland/kanshi/default.nix | 4 +- .../pkgs/tools/wayland/shotman/default.nix | 4 +- .../pkgs/tools/wayland/swayimg/default.nix | 9 + .../pkgs/tools/wayland/swaysome/default.nix | 6 +- .../tools/wayland/way-displays/default.nix | 2 +- .../tools/wayland/wayland-utils/default.nix | 5 +- .../tools/wayland/wl-clip-persist/default.nix | 39 + .../tools/wayland/wl-screenrec/default.nix | 39 + .../pkgs/tools/wayland/wlay/default.nix | 57 + .../pkgs/tools/wayland/wlsunset/default.nix | 4 +- .../pkgs/tools/wayland/wluma/Cargo.lock | 647 +- .../pkgs/tools/wayland/wluma/default.nix | 13 +- .../nixpkgs/pkgs/top-level/aliases.nix | 66 +- .../nixpkgs/pkgs/top-level/all-packages.nix | 2155 +- .../nixpkgs/pkgs/top-level/beam-packages.nix | 2 +- third_party/nixpkgs/pkgs/top-level/config.nix | 2 +- .../pkgs/top-level/darwin-packages.nix | 20 +- .../nixpkgs/pkgs/top-level/emacs-packages.nix | 10 + .../pkgs/top-level/emscripten-packages.nix | 5 +- .../pkgs/top-level/haskell-packages.nix | 71 +- .../nixpkgs/pkgs/top-level/java-packages.nix | 327 +- .../nixpkgs/pkgs/top-level/kodi-packages.nix | 12 +- .../nixpkgs/pkgs/top-level/linux-kernels.nix | 99 +- .../nixpkgs/pkgs/top-level/lua-packages.nix | 2 +- .../nixpkgs/pkgs/top-level/make-tarball.nix | 2 +- .../nixpkgs/pkgs/top-level/ocaml-packages.nix | 84 +- .../nixpkgs/pkgs/top-level/perl-packages.nix | 287 +- .../nixpkgs/pkgs/top-level/php-packages.nix | 71 +- .../nixpkgs/pkgs/top-level/python-aliases.nix | 34 + .../pkgs/top-level/python-packages.nix | 591 +- .../pkgs/top-level/python2-packages.nix | 2 - .../nixpkgs/pkgs/top-level/qt5-packages.nix | 4 +- .../nixpkgs/pkgs/top-level/qt6-packages.nix | 4 + .../pkgs/top-level/release-haskell.nix | 28 +- .../nixpkgs/pkgs/top-level/release-small.nix | 2 +- .../nixpkgs/pkgs/top-level/release.nix | 4 +- .../nixpkgs/pkgs/top-level/ruby-packages.nix | 203 +- third_party/nixpkgs/pkgs/top-level/splice.nix | 3 - third_party/nixpkgs/pkgs/top-level/stage.nix | 6 +- .../nixpkgs/pkgs/top-level/unixtools.nix | 6 +- 7164 files changed, 291314 insertions(+), 145986 deletions(-) delete mode 100755 third_party/nixpkgs/.github/workflows/compare-manuals.sh delete mode 100644 third_party/nixpkgs/.github/workflows/manual-rendering.yml delete mode 100644 third_party/nixpkgs/doc/.gitignore delete mode 100644 third_party/nixpkgs/doc/Makefile delete mode 100644 third_party/nixpkgs/doc/build-aux/pandoc-filters/docbook-reader/citerefentry-to-rst-role.lua delete mode 100644 third_party/nixpkgs/doc/build-aux/pandoc-filters/docbook-writer/labelless-link-is-xref.lua delete mode 100644 third_party/nixpkgs/doc/build-aux/pandoc-filters/docbook-writer/rst-roles.lua delete mode 100644 third_party/nixpkgs/doc/build-aux/pandoc-filters/link-manpages.nix delete mode 100644 third_party/nixpkgs/doc/build-aux/pandoc-filters/myst-reader/roles.lua delete mode 100644 third_party/nixpkgs/doc/build-aux/pandoc-filters/myst-writer/roles.lua create mode 100644 third_party/nixpkgs/doc/builders.md create mode 100644 third_party/nixpkgs/doc/builders/images.md delete mode 100644 third_party/nixpkgs/doc/builders/images.xml create mode 100644 third_party/nixpkgs/doc/builders/packages/index.md delete mode 100644 third_party/nixpkgs/doc/builders/packages/index.xml create mode 100644 third_party/nixpkgs/doc/builders/special.md delete mode 100644 third_party/nixpkgs/doc/builders/special.xml create mode 100644 third_party/nixpkgs/doc/contributing.md create mode 100644 third_party/nixpkgs/doc/contributing/staging-workflow.dot create mode 100644 third_party/nixpkgs/doc/contributing/staging-workflow.svg delete mode 100644 third_party/nixpkgs/doc/doc-support/default.nix delete mode 100644 third_party/nixpkgs/doc/doc-support/parameters.xml delete mode 100644 third_party/nixpkgs/doc/doc-support/xmlformat.conf create mode 100644 third_party/nixpkgs/doc/functions.md delete mode 100644 third_party/nixpkgs/doc/functions.xml create mode 100644 third_party/nixpkgs/doc/functions/library.md.in delete mode 100644 third_party/nixpkgs/doc/functions/library.xml create mode 100644 third_party/nixpkgs/doc/hooks/index.md delete mode 100644 third_party/nixpkgs/doc/hooks/index.xml create mode 100644 third_party/nixpkgs/doc/languages-frameworks/index.md delete mode 100644 third_party/nixpkgs/doc/languages-frameworks/index.xml create mode 100644 third_party/nixpkgs/doc/lib.md create mode 100644 third_party/nixpkgs/doc/manual.md.in delete mode 100644 third_party/nixpkgs/doc/manual.xml delete mode 100644 third_party/nixpkgs/doc/shell.nix create mode 100644 third_party/nixpkgs/doc/stdenv.md create mode 100644 third_party/nixpkgs/doc/using-nixpkgs.md create mode 100644 third_party/nixpkgs/lib/tests/modules/test-mergeAttrDefinitionsWithPrio.nix create mode 100644 third_party/nixpkgs/lib/tests/modules/types.nix create mode 100644 third_party/nixpkgs/maintainers/scripts/update-dotnet-lockfiles.nix delete mode 100644 third_party/nixpkgs/nixos/doc/manual/man-pages.xml delete mode 100644 third_party/nixpkgs/nixos/lib/make-options-doc/postprocess-option-descriptions.xsl create mode 100644 third_party/nixpkgs/nixos/lib/systemd-network-units.nix create mode 100644 third_party/nixpkgs/nixos/modules/config/nix-channel.nix create mode 100644 third_party/nixpkgs/nixos/modules/config/nix-flakes.nix create mode 100644 third_party/nixpkgs/nixos/modules/config/nix-remote-build.nix create mode 100644 third_party/nixpkgs/nixos/modules/config/nix.nix create mode 100644 third_party/nixpkgs/nixos/modules/programs/direnv.nix create mode 100644 third_party/nixpkgs/nixos/modules/programs/wayland/river.nix rename third_party/nixpkgs/nixos/modules/programs/{ => wayland}/sway.nix (70%) rename third_party/nixpkgs/nixos/modules/programs/{ => wayland}/waybar.nix (100%) create mode 100644 third_party/nixpkgs/nixos/modules/programs/wayland/wayland-session.nix create mode 100644 third_party/nixpkgs/nixos/modules/services/audio/wyoming/faster-whisper.nix create mode 100644 third_party/nixpkgs/nixos/modules/services/audio/wyoming/piper.nix create mode 100644 third_party/nixpkgs/nixos/modules/services/games/mchprs.nix delete mode 100644 third_party/nixpkgs/nixos/modules/services/misc/exhibitor.nix create mode 100644 third_party/nixpkgs/nixos/modules/services/misc/homepage-dashboard.nix delete mode 100644 third_party/nixpkgs/nixos/modules/services/misc/nix-daemon.nix create mode 100644 third_party/nixpkgs/nixos/modules/services/monitoring/below.nix create mode 100644 third_party/nixpkgs/nixos/modules/services/monitoring/opentelemetry-collector.nix create mode 100644 third_party/nixpkgs/nixos/modules/services/monitoring/prometheus/exporters/graphite.nix create mode 100644 third_party/nixpkgs/nixos/modules/services/monitoring/prometheus/exporters/junos-czerwonk.nix create mode 100644 third_party/nixpkgs/nixos/modules/services/monitoring/prometheus/exporters/php-fpm.nix create mode 100644 third_party/nixpkgs/nixos/modules/services/monitoring/prometheus/exporters/scaphandre.nix create mode 100644 third_party/nixpkgs/nixos/modules/services/monitoring/vmalert.nix create mode 100644 third_party/nixpkgs/nixos/modules/services/networking/acme-dns.nix delete mode 100644 third_party/nixpkgs/nixos/modules/services/networking/ddclient.nix create mode 100644 third_party/nixpkgs/nixos/modules/services/networking/legit.nix create mode 100644 third_party/nixpkgs/nixos/modules/services/networking/sing-box.nix create mode 100644 third_party/nixpkgs/nixos/modules/services/networking/sitespeed-io.nix create mode 100644 third_party/nixpkgs/nixos/modules/services/networking/trust-dns.nix create mode 100644 third_party/nixpkgs/nixos/modules/services/security/esdm.nix create mode 100644 third_party/nixpkgs/nixos/modules/services/system/nix-daemon.nix create mode 100644 third_party/nixpkgs/nixos/modules/services/web-apps/anuko-time-tracker.nix create mode 100644 third_party/nixpkgs/nixos/modules/services/web-apps/gotosocial.md create mode 100644 third_party/nixpkgs/nixos/modules/services/web-apps/gotosocial.nix create mode 100644 third_party/nixpkgs/nixos/modules/services/web-apps/guacamole-client.nix create mode 100644 third_party/nixpkgs/nixos/modules/services/web-apps/guacamole-server.nix create mode 100644 third_party/nixpkgs/nixos/modules/services/web-apps/sftpgo.nix create mode 100644 third_party/nixpkgs/nixos/modules/services/web-servers/rustus.nix create mode 100644 third_party/nixpkgs/nixos/modules/services/web-servers/static-web-server.nix create mode 100644 third_party/nixpkgs/nixos/modules/services/x11/window-managers/dk.nix create mode 100644 third_party/nixpkgs/nixos/modules/system/activation/activatable-system.nix create mode 100644 third_party/nixpkgs/nixos/modules/system/boot/stratisroot.nix create mode 100644 third_party/nixpkgs/nixos/modules/tasks/filesystems/squashfs.nix create mode 100644 third_party/nixpkgs/nixos/tests/acme-dns.nix create mode 100644 third_party/nixpkgs/nixos/tests/anuko-time-tracker.nix create mode 100644 third_party/nixpkgs/nixos/tests/apache_datasketches.nix create mode 100644 third_party/nixpkgs/nixos/tests/calibre-server.nix create mode 100644 third_party/nixpkgs/nixos/tests/code-server.nix create mode 100644 third_party/nixpkgs/nixos/tests/common/auto-format-root-device.nix create mode 100644 third_party/nixpkgs/nixos/tests/fail2ban.nix create mode 100644 third_party/nixpkgs/nixos/tests/fakeroute.nix create mode 100644 third_party/nixpkgs/nixos/tests/guacamole-server.nix create mode 100644 third_party/nixpkgs/nixos/tests/homepage-dashboard.nix create mode 100644 third_party/nixpkgs/nixos/tests/legit.nix create mode 100644 third_party/nixpkgs/nixos/tests/lxd-ui.nix create mode 100644 third_party/nixpkgs/nixos/tests/nginx-proxyprotocol/_.test.nix.cert.pem create mode 100644 third_party/nixpkgs/nixos/tests/nginx-proxyprotocol/_.test.nix.key.pem create mode 100644 third_party/nixpkgs/nixos/tests/nginx-proxyprotocol/ca.cert.pem create mode 100644 third_party/nixpkgs/nixos/tests/nginx-proxyprotocol/ca.key.pem create mode 100644 third_party/nixpkgs/nixos/tests/nginx-proxyprotocol/default.nix create mode 100644 third_party/nixpkgs/nixos/tests/nginx-proxyprotocol/generate-certs.nix create mode 100644 third_party/nixpkgs/nixos/tests/nginx-proxyprotocol/snakeoil-certs.nix create mode 100644 third_party/nixpkgs/nixos/tests/nixos-test-driver/lib-extend.nix create mode 100644 third_party/nixpkgs/nixos/tests/opentelemetry-collector.nix create mode 100644 third_party/nixpkgs/nixos/tests/qemu-vm-volatile-root.nix create mode 100644 third_party/nixpkgs/nixos/tests/qownnotes.nix create mode 100644 third_party/nixpkgs/nixos/tests/scaphandre.nix create mode 100644 third_party/nixpkgs/nixos/tests/sftpgo.nix create mode 100644 third_party/nixpkgs/nixos/tests/sing-box.nix create mode 100644 third_party/nixpkgs/nixos/tests/systemd-boot-ovmf-broken-fat-driver.patch create mode 100644 third_party/nixpkgs/nixos/tests/systemd-nspawn-configfile.nix create mode 100644 third_party/nixpkgs/nixos/tests/twingate.nix create mode 100644 third_party/nixpkgs/nixos/tests/vscode-remote-ssh.nix create mode 100644 third_party/nixpkgs/nixos/tests/web-apps/gotosocial.nix create mode 100644 third_party/nixpkgs/nixos/tests/web-servers/static-web-server.nix create mode 100644 third_party/nixpkgs/pkgs/applications/audio/ardour/default-plugin-search-paths.patch create mode 100644 third_party/nixpkgs/pkgs/applications/audio/bolliedelayxt.lv2/default.nix create mode 100644 third_party/nixpkgs/pkgs/applications/audio/brutefir/default.nix create mode 100644 third_party/nixpkgs/pkgs/applications/audio/easyabc/default.nix create mode 100644 third_party/nixpkgs/pkgs/applications/audio/easyabc/hardcoded-paths.patch delete mode 100644 third_party/nixpkgs/pkgs/applications/audio/faustStk/default.nix create mode 100644 third_party/nixpkgs/pkgs/applications/audio/master_me/default.nix create mode 100644 third_party/nixpkgs/pkgs/applications/audio/music-player/default.nix create mode 100644 third_party/nixpkgs/pkgs/applications/audio/muzika/default.nix create mode 100644 third_party/nixpkgs/pkgs/applications/audio/noson/default.nix create mode 100644 third_party/nixpkgs/pkgs/applications/audio/samplebrain/default.nix create mode 100644 third_party/nixpkgs/pkgs/applications/audio/subtitlr/default.nix delete mode 100644 third_party/nixpkgs/pkgs/applications/audio/uhhyou.lv2/default.nix create mode 100644 third_party/nixpkgs/pkgs/applications/audio/vital/default.nix create mode 100644 third_party/nixpkgs/pkgs/applications/audio/waylyrics/default.nix rename third_party/nixpkgs/pkgs/applications/backup/proxmox-backup-client/{0003-docs-Add-target-path-fixup-variable.patch => 0001-docs-Add-target-path-fixup-variable.patch} (100%) delete mode 100644 third_party/nixpkgs/pkgs/applications/backup/proxmox-backup-client/0001-re-route-dependencies-not-available-on-crates.io-to-.patch delete mode 100644 third_party/nixpkgs/pkgs/applications/backup/proxmox-backup-client/0002-docs-drop-all-but-client-man-pages.patch create mode 100644 third_party/nixpkgs/pkgs/applications/blockchains/alfis/Cargo.lock create mode 100644 third_party/nixpkgs/pkgs/applications/blockchains/atomic-swap/default.nix create mode 100644 third_party/nixpkgs/pkgs/applications/blockchains/dcrctl/default.nix rename third_party/nixpkgs/pkgs/applications/blockchains/{taro => taproot-assets}/default.nix (61%) create mode 100644 third_party/nixpkgs/pkgs/applications/editors/codux/default.nix create mode 100644 third_party/nixpkgs/pkgs/applications/editors/edwood/default.nix delete mode 100644 third_party/nixpkgs/pkgs/applications/editors/emacs/28.nix create mode 100644 third_party/nixpkgs/pkgs/applications/editors/emacs/default.nix create mode 100644 third_party/nixpkgs/pkgs/applications/editors/emacs/elisp-packages/elpa-devel-generated.nix create mode 100644 third_party/nixpkgs/pkgs/applications/editors/emacs/elisp-packages/elpa-devel-packages.nix create mode 100644 third_party/nixpkgs/pkgs/applications/editors/emacs/elisp-packages/manual-packages/beancount/default.nix create mode 100644 third_party/nixpkgs/pkgs/applications/editors/emacs/elisp-packages/manual-packages/lsp-bridge/hardcode-dependencies.patch create mode 100755 third_party/nixpkgs/pkgs/applications/editors/emacs/elisp-packages/update-elpa-devel delete mode 100644 third_party/nixpkgs/pkgs/applications/editors/emacs/macport.nix create mode 100644 third_party/nixpkgs/pkgs/applications/editors/emacs/sources.nix rename third_party/nixpkgs/pkgs/{desktops/gnome/apps => applications/editors}/gedit/correct-gir-lib-path.patch (100%) rename third_party/nixpkgs/pkgs/{desktops/gnome/apps => applications/editors}/gedit/default.nix (92%) delete mode 100644 third_party/nixpkgs/pkgs/applications/editors/helix/grammars.nix delete mode 100644 third_party/nixpkgs/pkgs/applications/editors/helix/language-grammars.json delete mode 100755 third_party/nixpkgs/pkgs/applications/editors/helix/update.py create mode 100644 third_party/nixpkgs/pkgs/applications/editors/jetbrains/plugins/default.nix create mode 100644 third_party/nixpkgs/pkgs/applications/editors/jetbrains/plugins/plugins.json create mode 100644 third_party/nixpkgs/pkgs/applications/editors/jetbrains/plugins/specialPlugins.nix create mode 100755 third_party/nixpkgs/pkgs/applications/editors/jetbrains/plugins/update_plugins.py rename third_party/nixpkgs/pkgs/applications/editors/jetbrains/{update.py => update_ides.py} (91%) delete mode 100644 third_party/nixpkgs/pkgs/applications/editors/vim/ft-nix-support.patch rename third_party/nixpkgs/pkgs/applications/editors/vim/{configurable.nix => full.nix} (90%) create mode 100644 third_party/nixpkgs/pkgs/applications/editors/vim/plugins/patches/chadtree/emulate-venv.patch create mode 100644 third_party/nixpkgs/pkgs/applications/editors/vim/plugins/patches/lazy-nvim/no-helptags.patch create mode 100644 third_party/nixpkgs/pkgs/applications/editors/vscode/extensions/vadimcn.vscode-lldb/adapter-output-shared_object.patch create mode 100644 third_party/nixpkgs/pkgs/applications/emulators/blink/default.nix rename third_party/nixpkgs/pkgs/applications/emulators/bsnes/ares/{000-dont-rebuild-on-install.patch => 001-dont-rebuild-on-install.patch} (100%) rename third_party/nixpkgs/pkgs/applications/emulators/bsnes/ares/{001-fix-ruby.patch => 002-fix-ruby.diff} (100%) rename third_party/nixpkgs/pkgs/applications/emulators/bsnes/ares/{002-sips-to-png2icns.patch => 003-darwin-specific.patch} (53%) delete mode 100644 third_party/nixpkgs/pkgs/applications/emulators/bsnes/ares/003-fix-darwin-install.patch create mode 100644 third_party/nixpkgs/pkgs/applications/emulators/craftos-pc/test-eval-hello-world/default.nix create mode 100644 third_party/nixpkgs/pkgs/applications/emulators/craftos-pc/test-eval-hello-world/init.lua create mode 100644 third_party/nixpkgs/pkgs/applications/emulators/craftos-pc/test-eval-periphemu/default.nix create mode 100644 third_party/nixpkgs/pkgs/applications/emulators/craftos-pc/test-eval-periphemu/init.lua create mode 100644 third_party/nixpkgs/pkgs/applications/file-managers/browsr/default.nix create mode 100644 third_party/nixpkgs/pkgs/applications/file-managers/projectable/default.nix create mode 100755 third_party/nixpkgs/pkgs/applications/finance/denaro/update.sh create mode 100644 third_party/nixpkgs/pkgs/applications/gis/grass/tests.nix create mode 100644 third_party/nixpkgs/pkgs/applications/gis/tunnelx/default.nix create mode 100644 third_party/nixpkgs/pkgs/applications/graphics/curv/default.nix create mode 100644 third_party/nixpkgs/pkgs/applications/graphics/flaca/Cargo.lock create mode 100644 third_party/nixpkgs/pkgs/applications/graphics/flaca/default.nix create mode 100644 third_party/nixpkgs/pkgs/applications/graphics/halftone/default.nix create mode 100644 third_party/nixpkgs/pkgs/applications/graphics/komorebi/default.nix create mode 100644 third_party/nixpkgs/pkgs/applications/graphics/upscayl/default.nix create mode 100644 third_party/nixpkgs/pkgs/applications/graphics/xv/default.nix delete mode 100644 third_party/nixpkgs/pkgs/applications/maui/mauikit-calendar/add-akonadi-calendar.patch create mode 100644 third_party/nixpkgs/pkgs/applications/maui/mauikit-terminal.nix delete mode 100644 third_party/nixpkgs/pkgs/applications/misc/bukut/default.nix create mode 100644 third_party/nixpkgs/pkgs/applications/misc/comodoro/default.nix create mode 100644 third_party/nixpkgs/pkgs/applications/misc/done/Cargo.lock create mode 100644 third_party/nixpkgs/pkgs/applications/misc/done/default.nix create mode 100644 third_party/nixpkgs/pkgs/applications/misc/elf-dissector/fix_build_for_src_lib_disassembler_disassembler.diff delete mode 100644 third_party/nixpkgs/pkgs/applications/misc/fitnesstrax/default.nix create mode 100644 third_party/nixpkgs/pkgs/applications/misc/genesys/default.nix create mode 100644 third_party/nixpkgs/pkgs/applications/misc/gimoji/default.nix create mode 100644 third_party/nixpkgs/pkgs/applications/misc/go-thumbnailer/default.nix create mode 100644 third_party/nixpkgs/pkgs/applications/misc/go-thumbnailer/go.thumbnailer create mode 100644 third_party/nixpkgs/pkgs/applications/misc/has/default.nix create mode 100644 third_party/nixpkgs/pkgs/applications/misc/hmm/default.nix create mode 100644 third_party/nixpkgs/pkgs/applications/misc/input-leap/default.nix create mode 100644 third_party/nixpkgs/pkgs/applications/misc/johnny-reborn/default.nix create mode 100644 third_party/nixpkgs/pkgs/applications/misc/johnny-reborn/with-data.nix create mode 100644 third_party/nixpkgs/pkgs/applications/misc/kord/Cargo.lock create mode 100644 third_party/nixpkgs/pkgs/applications/misc/moonlight-qt/darwin.diff create mode 100644 third_party/nixpkgs/pkgs/applications/misc/nwg-dock-hyprland/default.nix create mode 100644 third_party/nixpkgs/pkgs/applications/misc/obs-cli/default.nix create mode 100644 third_party/nixpkgs/pkgs/applications/misc/pairdrop/default.nix create mode 100644 third_party/nixpkgs/pkgs/applications/misc/pdfposter/default.nix create mode 100644 third_party/nixpkgs/pkgs/applications/misc/please-cli/default.nix create mode 100644 third_party/nixpkgs/pkgs/applications/misc/porsmo/default.nix create mode 100644 third_party/nixpkgs/pkgs/applications/misc/pot/Cargo.lock create mode 100644 third_party/nixpkgs/pkgs/applications/misc/pot/default.nix create mode 100644 third_party/nixpkgs/pkgs/applications/misc/prusa-slicer/wxWidgets-Makefile.in-fix.patch rename third_party/nixpkgs/pkgs/{games/doom-ports => applications/misc}/shavee/default.nix (56%) delete mode 100644 third_party/nixpkgs/pkgs/applications/misc/slic3r/boost-compile-error.patch create mode 100644 third_party/nixpkgs/pkgs/applications/misc/slippy/default.nix create mode 100644 third_party/nixpkgs/pkgs/applications/misc/snagboot/default.nix create mode 100644 third_party/nixpkgs/pkgs/applications/misc/tailscale-systray/default.nix create mode 100644 third_party/nixpkgs/pkgs/applications/misc/tango/default.nix create mode 100644 third_party/nixpkgs/pkgs/applications/misc/tui-journal/default.nix create mode 100644 third_party/nixpkgs/pkgs/applications/misc/ubpm/default.nix create mode 100644 third_party/nixpkgs/pkgs/applications/misc/wallust/default.nix create mode 100644 third_party/nixpkgs/pkgs/applications/misc/watershot/default.nix create mode 100644 third_party/nixpkgs/pkgs/applications/misc/waycorner/default.nix create mode 100644 third_party/nixpkgs/pkgs/applications/networking/adguardian/default.nix create mode 100644 third_party/nixpkgs/pkgs/applications/networking/browsers/firefox/mobile-config.nix create mode 100644 third_party/nixpkgs/pkgs/applications/networking/browsers/firefox/mp4parse-rust-170.patch create mode 100644 third_party/nixpkgs/pkgs/applications/networking/browsers/tor-browser-bundle-bin/update.nix create mode 100644 third_party/nixpkgs/pkgs/applications/networking/cluster/falcoctl/default.nix create mode 100644 third_party/nixpkgs/pkgs/applications/networking/cluster/k3s/1_26/versions.nix create mode 100644 third_party/nixpkgs/pkgs/applications/networking/cluster/k3s/1_27/chart-versions.nix create mode 100644 third_party/nixpkgs/pkgs/applications/networking/cluster/k3s/1_27/versions.nix rename third_party/nixpkgs/pkgs/applications/networking/cluster/k3s/{1_26/default.nix => builder.nix} (87%) create mode 100644 third_party/nixpkgs/pkgs/applications/networking/cluster/k3s/default.nix rename third_party/nixpkgs/pkgs/applications/networking/cluster/k3s/{1_26/update.sh => update-script.sh} (69%) create mode 100644 third_party/nixpkgs/pkgs/applications/networking/cluster/k8sgpt/default.nix create mode 100644 third_party/nixpkgs/pkgs/applications/networking/cluster/kfilt/default.nix create mode 100644 third_party/nixpkgs/pkgs/applications/networking/cluster/kubectl-cnpg/default.nix create mode 100644 third_party/nixpkgs/pkgs/applications/networking/cluster/weave-gitops/default.nix create mode 100644 third_party/nixpkgs/pkgs/applications/networking/cluster/yor/default.nix create mode 100644 third_party/nixpkgs/pkgs/applications/networking/deck/default.nix create mode 100644 third_party/nixpkgs/pkgs/applications/networking/filebrowser/default.nix rename third_party/nixpkgs/pkgs/{tools/audio/mpd-discord-rpc => applications/networking/gdrive3}/Cargo.lock (59%) create mode 100644 third_party/nixpkgs/pkgs/applications/networking/gdrive3/default.nix delete mode 100644 third_party/nixpkgs/pkgs/applications/networking/gopher/geomyidae/modification-time.patch create mode 100644 third_party/nixpkgs/pkgs/applications/networking/instant-messengers/hamsket/default.nix delete mode 100755 third_party/nixpkgs/pkgs/applications/networking/instant-messengers/telegram/telegram-desktop/update.py create mode 100644 third_party/nixpkgs/pkgs/applications/networking/irc/halloy/Cargo.lock create mode 100644 third_party/nixpkgs/pkgs/applications/networking/irc/halloy/default.nix create mode 100644 third_party/nixpkgs/pkgs/applications/networking/irc/thelounge/default.nix create mode 100644 third_party/nixpkgs/pkgs/applications/networking/irc/thelounge/packages-path.patch create mode 100644 third_party/nixpkgs/pkgs/applications/networking/iroh/default.nix create mode 100644 third_party/nixpkgs/pkgs/applications/networking/mailreaders/aerc/runtime-libexec.patch delete mode 100644 third_party/nixpkgs/pkgs/applications/networking/mailreaders/aerc/runtime-sharedir.patch create mode 100644 third_party/nixpkgs/pkgs/applications/networking/mailreaders/ayatana-webmail/default.nix delete mode 100644 third_party/nixpkgs/pkgs/applications/networking/mailreaders/betterbird/betterbird.diff create mode 100644 third_party/nixpkgs/pkgs/applications/networking/mailreaders/caeml/default.nix create mode 100644 third_party/nixpkgs/pkgs/applications/networking/mailreaders/mswatch/default.nix create mode 100644 third_party/nixpkgs/pkgs/applications/networking/mailreaders/mutt/no-build-only-refs.patch create mode 100644 third_party/nixpkgs/pkgs/applications/networking/mailreaders/thunderbird/no-buildconfig-115.patch create mode 100644 third_party/nixpkgs/pkgs/applications/networking/misc/zammad/fix-sendmail-location.diff create mode 100755 third_party/nixpkgs/pkgs/applications/networking/mullvad-vpn/update.sh delete mode 100755 third_party/nixpkgs/pkgs/applications/networking/nym/update.sh create mode 100644 third_party/nixpkgs/pkgs/applications/networking/p2p/libutp/3.4.nix create mode 100644 third_party/nixpkgs/pkgs/applications/networking/p2p/transmission/4.nix create mode 100644 third_party/nixpkgs/pkgs/applications/networking/p2p/tremotesf/default.nix create mode 100644 third_party/nixpkgs/pkgs/applications/networking/syncplay/trusted_certificates.patch rename third_party/nixpkgs/pkgs/applications/office/{elementary-planner => planify}/default.nix (59%) create mode 100644 third_party/nixpkgs/pkgs/applications/office/roam-research/default.nix create mode 100644 third_party/nixpkgs/pkgs/applications/radio/abracadabra/default.nix create mode 100644 third_party/nixpkgs/pkgs/applications/radio/flamp/default.nix create mode 100644 third_party/nixpkgs/pkgs/applications/radio/fm-tune/default.nix delete mode 100644 third_party/nixpkgs/pkgs/applications/science/biology/MACS2/default.nix create mode 100644 third_party/nixpkgs/pkgs/applications/science/biology/kalign/default.nix create mode 100644 third_party/nixpkgs/pkgs/applications/science/biology/macs2/default.nix create mode 100644 third_party/nixpkgs/pkgs/applications/science/chemistry/autodock-vina/default.nix create mode 100644 third_party/nixpkgs/pkgs/applications/science/chemistry/autodock-vina/python-bindings.nix delete mode 100644 third_party/nixpkgs/pkgs/applications/science/electronics/ngspice/default.nix create mode 100644 third_party/nixpkgs/pkgs/applications/science/logic/egglog/Cargo.lock create mode 100644 third_party/nixpkgs/pkgs/applications/science/logic/egglog/default.nix create mode 100644 third_party/nixpkgs/pkgs/applications/science/logic/sharpsat-td/default.nix create mode 100644 third_party/nixpkgs/pkgs/applications/science/logic/tlaplus/tlaplus18.nix create mode 100644 third_party/nixpkgs/pkgs/applications/science/machine-learning/openbugs/default.nix create mode 100644 third_party/nixpkgs/pkgs/applications/science/misc/gplates/boost-placeholders.patch create mode 100644 third_party/nixpkgs/pkgs/applications/terminal-emulators/ctx/0001-Make-arch-detection-optional-and-fix-targets.patch create mode 100644 third_party/nixpkgs/pkgs/applications/terminal-emulators/rio/default.nix create mode 100644 third_party/nixpkgs/pkgs/applications/version-management/git-credential-manager/default.nix create mode 100644 third_party/nixpkgs/pkgs/applications/version-management/git-credential-manager/deps.nix create mode 100755 third_party/nixpkgs/pkgs/applications/version-management/git-credential-manager/update.sh create mode 100644 third_party/nixpkgs/pkgs/applications/version-management/git-credential-oauth/default.nix create mode 100644 third_party/nixpkgs/pkgs/applications/version-management/git-graph/default.nix create mode 100644 third_party/nixpkgs/pkgs/applications/version-management/git-relevant-history/default.nix rename third_party/nixpkgs/pkgs/applications/version-management/gitlab/{Remove-geo-from-database.yml.patch => Remove-unsupported-database-names.patch} (55%) delete mode 100644 third_party/nixpkgs/pkgs/applications/version-management/gitlab/gitaly/Gemfile delete mode 100644 third_party/nixpkgs/pkgs/applications/version-management/gitlab/gitaly/Gemfile.lock delete mode 100644 third_party/nixpkgs/pkgs/applications/version-management/gitlab/gitaly/gemset.nix create mode 100644 third_party/nixpkgs/pkgs/applications/version-management/gitlab/gitlab-container-registry/Disable-inmemory-storage-driver-test.patch create mode 100644 third_party/nixpkgs/pkgs/applications/version-management/gitlab/gitlab-container-registry/default.nix create mode 100644 third_party/nixpkgs/pkgs/applications/version-management/gitlab/gitlab-elasticsearch-indexer/default.nix create mode 100644 third_party/nixpkgs/pkgs/applications/version-management/gql/default.nix create mode 100644 third_party/nixpkgs/pkgs/applications/version-management/legit-web/default.nix create mode 100644 third_party/nixpkgs/pkgs/applications/version-management/stgit/0001-fix-use-canonical-Message-ID-spelling.patch create mode 100644 third_party/nixpkgs/pkgs/applications/video/crunchy-cli/default.nix create mode 100644 third_party/nixpkgs/pkgs/applications/video/cutecapture/default.nix create mode 100644 third_party/nixpkgs/pkgs/applications/video/kodi/addons/libretro-2048/default.nix create mode 100644 third_party/nixpkgs/pkgs/applications/video/kodi/addons/libretro-fuse/default.nix create mode 100644 third_party/nixpkgs/pkgs/applications/video/kodi/addons/vfs-rar/default.nix create mode 100644 third_party/nixpkgs/pkgs/applications/video/memento/default.nix create mode 100644 third_party/nixpkgs/pkgs/applications/video/mirakurun/fix-musl-detection.patch create mode 100644 third_party/nixpkgs/pkgs/applications/video/mirakurun/mirakurun.1 delete mode 100644 third_party/nixpkgs/pkgs/applications/video/mirakurun/package.json delete mode 100644 third_party/nixpkgs/pkgs/applications/video/mirakurun/update.nix delete mode 100644 third_party/nixpkgs/pkgs/applications/video/mirakurun/yarn.lock delete mode 100644 third_party/nixpkgs/pkgs/applications/video/mirakurun/yarn.nix create mode 100644 third_party/nixpkgs/pkgs/applications/video/mpv-shim-default-shaders/default.nix create mode 100644 third_party/nixpkgs/pkgs/applications/video/mpv/scripts/default.nix create mode 100644 third_party/nixpkgs/pkgs/applications/video/mpv/scripts/occivink.nix create mode 100644 third_party/nixpkgs/pkgs/applications/video/mpv/scripts/quality-menu.nix delete mode 100644 third_party/nixpkgs/pkgs/applications/video/mpv/scripts/youtube-quality.nix delete mode 100644 third_party/nixpkgs/pkgs/applications/video/natron/config.pri create mode 100644 third_party/nixpkgs/pkgs/applications/video/obs-studio/plugins/obs-gradient-source.nix create mode 100644 third_party/nixpkgs/pkgs/applications/video/obs-studio/plugins/obs-mute-filter.nix create mode 100644 third_party/nixpkgs/pkgs/applications/video/obs-studio/plugins/obs-rgb-levels-filter.nix create mode 100644 third_party/nixpkgs/pkgs/applications/video/obs-studio/plugins/obs-scale-to-sound.nix create mode 100644 third_party/nixpkgs/pkgs/applications/video/obs-studio/plugins/obs-source-switcher.nix create mode 100644 third_party/nixpkgs/pkgs/applications/video/obs-studio/plugins/obs-text-pthread.nix create mode 100644 third_party/nixpkgs/pkgs/applications/video/obs-studio/plugins/obs-transition-table.nix create mode 100644 third_party/nixpkgs/pkgs/applications/video/obs-studio/plugins/obs-tuna/default.nix create mode 100644 third_party/nixpkgs/pkgs/applications/video/obs-studio/plugins/obs-vertical-canvas.nix create mode 100644 third_party/nixpkgs/pkgs/applications/video/obs-studio/plugins/obs-websocket.nix create mode 100644 third_party/nixpkgs/pkgs/applications/video/obs-studio/plugins/waveform/default.nix create mode 100644 third_party/nixpkgs/pkgs/applications/video/srt-live-server/add-ctime-include.patch create mode 100644 third_party/nixpkgs/pkgs/applications/video/tanidvr/default.nix create mode 100644 third_party/nixpkgs/pkgs/applications/video/vivictpp/default.nix create mode 100644 third_party/nixpkgs/pkgs/applications/virtualization/stratovirt/default.nix create mode 100644 third_party/nixpkgs/pkgs/applications/virtualization/stratovirt/micro_vm-allow-SYS_clock_gettime.patch create mode 100644 third_party/nixpkgs/pkgs/applications/virtualization/tart/default.nix create mode 100644 third_party/nixpkgs/pkgs/applications/virtualization/virter/default.nix create mode 100644 third_party/nixpkgs/pkgs/applications/virtualization/virtualbox/fix-sdl.patch delete mode 100644 third_party/nixpkgs/pkgs/applications/window-managers/cage/wlroots-0_14.patch create mode 100644 third_party/nixpkgs/pkgs/applications/window-managers/dk/default.nix delete mode 100644 third_party/nixpkgs/pkgs/applications/window-managers/eww/Cargo.lock.patch delete mode 100644 third_party/nixpkgs/pkgs/applications/window-managers/leftwm/0001-patch-version.patch create mode 100644 third_party/nixpkgs/pkgs/build-support/dotnet/build-dotnet-global-tool/default.nix create mode 100644 third_party/nixpkgs/pkgs/build-support/node/fetch-npm-deps/src/util.rs create mode 100644 third_party/nixpkgs/pkgs/build-support/node/fetch-yarn-deps/common.js create mode 100755 third_party/nixpkgs/pkgs/build-support/node/fetch-yarn-deps/fixup.js delete mode 100644 third_party/nixpkgs/pkgs/build-support/rust/test/import-cargo-lock/maturin/Cargo.lock delete mode 100644 third_party/nixpkgs/pkgs/build-support/rust/test/import-cargo-lock/maturin/default.nix create mode 100644 third_party/nixpkgs/pkgs/data/fonts/intel-one-mono/default.nix create mode 100644 third_party/nixpkgs/pkgs/data/fonts/kode-mono/default.nix create mode 100644 third_party/nixpkgs/pkgs/data/fonts/linearicons-free/default.nix create mode 100644 third_party/nixpkgs/pkgs/data/icons/graphite-cursors/default.nix create mode 100644 third_party/nixpkgs/pkgs/data/icons/papirus-nord/default.nix create mode 100644 third_party/nixpkgs/pkgs/data/misc/dbip-country-lite/default.nix delete mode 100755 third_party/nixpkgs/pkgs/data/misc/v2ray-geoip/update.sh create mode 100755 third_party/nixpkgs/pkgs/data/themes/catppuccin-kde/color.sh delete mode 100755 third_party/nixpkgs/pkgs/data/themes/catppuccin-kde/install.sh create mode 100644 third_party/nixpkgs/pkgs/data/themes/chili-sddm/default.nix delete mode 100644 third_party/nixpkgs/pkgs/desktops/cdesktopenv/0001-all-remove-deprecated-sys_errlist-and-replace-with-A.patch delete mode 100644 third_party/nixpkgs/pkgs/desktops/cdesktopenv/2.3.2.patch delete mode 100644 third_party/nixpkgs/pkgs/desktops/cinnamon/cinnamon-settings-daemon/use-sane-install-dir.patch create mode 100644 third_party/nixpkgs/pkgs/desktops/cinnamon/nemo-extensions/nemo-emblems/default.nix create mode 100644 third_party/nixpkgs/pkgs/desktops/cinnamon/nemo-extensions/srcs.nix delete mode 100644 third_party/nixpkgs/pkgs/desktops/gnome/extensions/dash-to-dock/default.nix create mode 100644 third_party/nixpkgs/pkgs/desktops/gnome/extensions/extensionOverridesPatches/gtk4-ding_at_smedius.gitlab.com.patch create mode 100644 third_party/nixpkgs/pkgs/desktops/lomiri/default.nix create mode 100644 third_party/nixpkgs/pkgs/desktops/lomiri/development/cmake-extras/default.nix create mode 100644 third_party/nixpkgs/pkgs/desktops/lomiri/development/deviceinfo/default.nix create mode 100644 third_party/nixpkgs/pkgs/desktops/lomiri/development/gmenuharness/default.nix create mode 100644 third_party/nixpkgs/pkgs/desktops/lomiri/development/lomiri-api/default.nix delete mode 100644 third_party/nixpkgs/pkgs/desktops/pantheon/apps/appcenter/disable-packagekit-backend.patch delete mode 100644 third_party/nixpkgs/pkgs/desktops/pantheon/desktop/gnome-bluetooth-contract/default.nix delete mode 100644 third_party/nixpkgs/pkgs/desktops/pantheon/desktop/gnome-bluetooth-contract/exec-path.patch create mode 100644 third_party/nixpkgs/pkgs/development/compilers/assemblyscript/default.nix create mode 100644 third_party/nixpkgs/pkgs/development/compilers/bfc/default.nix create mode 100644 third_party/nixpkgs/pkgs/development/compilers/cairo/default.nix create mode 100644 third_party/nixpkgs/pkgs/development/compilers/cudatoolkit/redist/manifests/redistrib_12.2.0.json create mode 100644 third_party/nixpkgs/pkgs/development/compilers/djgpp/default.nix create mode 100644 third_party/nixpkgs/pkgs/development/compilers/djgpp/sources.nix delete mode 100644 third_party/nixpkgs/pkgs/development/compilers/dtc/0001-Depend-on-.a-instead-of-.so-when-building-static.patch delete mode 100644 third_party/nixpkgs/pkgs/development/compilers/dtc/python-3.10.patch create mode 100644 third_party/nixpkgs/pkgs/development/compilers/erg/default.nix create mode 100644 third_party/nixpkgs/pkgs/development/compilers/fleng/default.nix delete mode 100644 third_party/nixpkgs/pkgs/development/compilers/flutter/patches/flutter2/copy-without-perms.patch delete mode 100644 third_party/nixpkgs/pkgs/development/compilers/flutter/patches/flutter2/disable-auto-update.patch delete mode 100644 third_party/nixpkgs/pkgs/development/compilers/flutter/patches/flutter2/git-dir.patch delete mode 100644 third_party/nixpkgs/pkgs/development/compilers/flutter/patches/flutter2/move-cache.patch create mode 100644 third_party/nixpkgs/pkgs/development/compilers/gcc/12/lambda-ICE-PR109241.patch delete mode 100644 third_party/nixpkgs/pkgs/development/compilers/gcc/13/Added-mcf-thread-model-support-from-mcfgthread.patch create mode 100644 third_party/nixpkgs/pkgs/development/compilers/gcc/fix-bug-80431.patch delete mode 100644 third_party/nixpkgs/pkgs/development/compilers/gcc/install-info-files-serially.patch create mode 100644 third_party/nixpkgs/pkgs/development/compilers/ghc/9.2.8.nix delete mode 100644 third_party/nixpkgs/pkgs/development/compilers/ghc/9.6.1.nix create mode 100644 third_party/nixpkgs/pkgs/development/compilers/ghc/9.6.2.nix delete mode 100644 third_party/nixpkgs/pkgs/development/compilers/glslang/use-CMAKE_INSTALL_FULL_LIBDIR-in-compat-cmake-files.patch create mode 100644 third_party/nixpkgs/pkgs/development/compilers/jsonnet/fix-cpp-unresolved-symbols.patch create mode 100644 third_party/nixpkgs/pkgs/development/compilers/ligo/2706.diff delete mode 100644 third_party/nixpkgs/pkgs/development/compilers/llvm/10/lldb/default.nix delete mode 100644 third_party/nixpkgs/pkgs/development/compilers/llvm/11/lldb/default.nix delete mode 100644 third_party/nixpkgs/pkgs/development/compilers/llvm/12/lldb/default.nix delete mode 100644 third_party/nixpkgs/pkgs/development/compilers/llvm/13/lldb/default.nix delete mode 100644 third_party/nixpkgs/pkgs/development/compilers/llvm/14/lldb/default.nix delete mode 100644 third_party/nixpkgs/pkgs/development/compilers/llvm/16/lldb/default.nix rename third_party/nixpkgs/pkgs/development/compilers/llvm/{15/lldb/default.nix => common/lldb.nix} (53%) create mode 100644 third_party/nixpkgs/pkgs/development/compilers/lunarml/default.nix create mode 100644 third_party/nixpkgs/pkgs/development/compilers/nim/extra-mangling.patch create mode 100644 third_party/nixpkgs/pkgs/development/compilers/openjdk/20.nix create mode 100644 third_party/nixpkgs/pkgs/development/compilers/openjdk/darwin/20.nix create mode 100644 third_party/nixpkgs/pkgs/development/compilers/openjdk/openjfx/20.nix create mode 100644 third_party/nixpkgs/pkgs/development/compilers/opensmalltalk-vm/default.nix delete mode 100644 third_party/nixpkgs/pkgs/development/compilers/roslyn/extended-deps.nix delete mode 100644 third_party/nixpkgs/pkgs/development/compilers/rust/1_69.nix create mode 100644 third_party/nixpkgs/pkgs/development/compilers/rust/1_70.nix delete mode 100644 third_party/nixpkgs/pkgs/development/compilers/teyjus/fix-lex-to-flex.patch create mode 100644 third_party/nixpkgs/pkgs/development/compilers/typescript/default.nix create mode 100644 third_party/nixpkgs/pkgs/development/coq-modules/itauto/test.nix create mode 100644 third_party/nixpkgs/pkgs/development/embedded/arduino/arduinoOTA/default.nix delete mode 100644 third_party/nixpkgs/pkgs/development/haskell-modules/patches/gtk2hs-buildtools-fix-ghc-9.4.x.patch create mode 100644 third_party/nixpkgs/pkgs/development/haskell-modules/patches/hercules-ci-agent-cachix-1.6.patch rename third_party/nixpkgs/pkgs/development/interpreters/{clojure/babashka.nix => babashka/default.nix} (70%) create mode 100644 third_party/nixpkgs/pkgs/development/interpreters/babashka/wrapped.nix create mode 100644 third_party/nixpkgs/pkgs/development/interpreters/elixir/1.15.nix create mode 100644 third_party/nixpkgs/pkgs/development/interpreters/femtolisp/default.nix create mode 100644 third_party/nixpkgs/pkgs/development/interpreters/kamilalisp/default.nix rename third_party/nixpkgs/pkgs/development/interpreters/lua-5/{build-lua-package.nix => build-luarocks-package.nix} (100%) create mode 100644 third_party/nixpkgs/pkgs/development/interpreters/lune/Cargo.lock create mode 100644 third_party/nixpkgs/pkgs/development/interpreters/lune/default.nix rename third_party/nixpkgs/pkgs/development/interpreters/php/{8.0.nix => 8.3.nix} (57%) create mode 100644 third_party/nixpkgs/pkgs/development/interpreters/python/passthrufun.nix create mode 100644 third_party/nixpkgs/pkgs/development/interpreters/rlci/default.nix create mode 100644 third_party/nixpkgs/pkgs/development/interpreters/starlark-rust/default.nix create mode 100644 third_party/nixpkgs/pkgs/development/interpreters/wazero/default.nix delete mode 100644 third_party/nixpkgs/pkgs/development/java-modules/apache/ant-launcher.nix delete mode 100644 third_party/nixpkgs/pkgs/development/java-modules/apache/ant.nix delete mode 100644 third_party/nixpkgs/pkgs/development/java-modules/apache/commons-cli.nix delete mode 100644 third_party/nixpkgs/pkgs/development/java-modules/apache/commons-io.nix delete mode 100644 third_party/nixpkgs/pkgs/development/java-modules/apache/commons-lang.nix delete mode 100644 third_party/nixpkgs/pkgs/development/java-modules/apache/commons-lang3.nix delete mode 100644 third_party/nixpkgs/pkgs/development/java-modules/apache/commons-logging-api.nix delete mode 100644 third_party/nixpkgs/pkgs/development/java-modules/apache/xbean-reflect.nix delete mode 100644 third_party/nixpkgs/pkgs/development/java-modules/beanshell/bsh.nix delete mode 100644 third_party/nixpkgs/pkgs/development/java-modules/build-maven-package.nix delete mode 100644 third_party/nixpkgs/pkgs/development/java-modules/classworlds/classworlds.nix delete mode 100644 third_party/nixpkgs/pkgs/development/java-modules/collections.nix delete mode 100644 third_party/nixpkgs/pkgs/development/java-modules/eclipse/aether-util.nix delete mode 100644 third_party/nixpkgs/pkgs/development/java-modules/findbugs/jsr305.nix delete mode 100644 third_party/nixpkgs/pkgs/development/java-modules/google/collections.nix delete mode 100644 third_party/nixpkgs/pkgs/development/java-modules/hamcrest/all.nix delete mode 100644 third_party/nixpkgs/pkgs/development/java-modules/hamcrest/core.nix delete mode 100644 third_party/nixpkgs/pkgs/development/java-modules/junit/default.nix delete mode 100644 third_party/nixpkgs/pkgs/development/java-modules/log4j/default.nix delete mode 100644 third_party/nixpkgs/pkgs/development/java-modules/m2install.nix delete mode 100644 third_party/nixpkgs/pkgs/development/java-modules/maven-hello/default.nix delete mode 100644 third_party/nixpkgs/pkgs/development/java-modules/maven-minimal.nix delete mode 100644 third_party/nixpkgs/pkgs/development/java-modules/maven/archiver.nix delete mode 100644 third_party/nixpkgs/pkgs/development/java-modules/maven/artifact-manager.nix delete mode 100644 third_party/nixpkgs/pkgs/development/java-modules/maven/artifact.nix delete mode 100644 third_party/nixpkgs/pkgs/development/java-modules/maven/common-artifact-filters.nix delete mode 100644 third_party/nixpkgs/pkgs/development/java-modules/maven/compiler-plugin.nix delete mode 100644 third_party/nixpkgs/pkgs/development/java-modules/maven/core.nix delete mode 100644 third_party/nixpkgs/pkgs/development/java-modules/maven/dependency-tree.nix delete mode 100644 third_party/nixpkgs/pkgs/development/java-modules/maven/doxia-sink-api.nix delete mode 100644 third_party/nixpkgs/pkgs/development/java-modules/maven/enforcer.nix delete mode 100644 third_party/nixpkgs/pkgs/development/java-modules/maven/error-diagnostics.nix delete mode 100644 third_party/nixpkgs/pkgs/development/java-modules/maven/filtering.nix delete mode 100644 third_party/nixpkgs/pkgs/development/java-modules/maven/model.nix delete mode 100644 third_party/nixpkgs/pkgs/development/java-modules/maven/monitor.nix delete mode 100644 third_party/nixpkgs/pkgs/development/java-modules/maven/plugin-annotations.nix delete mode 100644 third_party/nixpkgs/pkgs/development/java-modules/maven/plugin-api.nix delete mode 100644 third_party/nixpkgs/pkgs/development/java-modules/maven/plugin-descriptor.nix delete mode 100644 third_party/nixpkgs/pkgs/development/java-modules/maven/plugin-parameter-documenter.nix delete mode 100644 third_party/nixpkgs/pkgs/development/java-modules/maven/plugin-registry.nix delete mode 100644 third_party/nixpkgs/pkgs/development/java-modules/maven/plugin-testing-harness.nix delete mode 100644 third_party/nixpkgs/pkgs/development/java-modules/maven/profile.nix delete mode 100644 third_party/nixpkgs/pkgs/development/java-modules/maven/project.nix delete mode 100644 third_party/nixpkgs/pkgs/development/java-modules/maven/reporting-api.nix delete mode 100644 third_party/nixpkgs/pkgs/development/java-modules/maven/repository-metadata.nix delete mode 100644 third_party/nixpkgs/pkgs/development/java-modules/maven/settings.nix delete mode 100644 third_party/nixpkgs/pkgs/development/java-modules/maven/shared-incremental.nix delete mode 100644 third_party/nixpkgs/pkgs/development/java-modules/maven/shared-utils.nix delete mode 100644 third_party/nixpkgs/pkgs/development/java-modules/maven/surefire-api.nix delete mode 100644 third_party/nixpkgs/pkgs/development/java-modules/maven/surefire-booter.nix delete mode 100644 third_party/nixpkgs/pkgs/development/java-modules/maven/surefire-common.nix delete mode 100644 third_party/nixpkgs/pkgs/development/java-modules/maven/surefire-junit4.nix delete mode 100644 third_party/nixpkgs/pkgs/development/java-modules/maven/toolchain.nix delete mode 100644 third_party/nixpkgs/pkgs/development/java-modules/mavenPlugins.nix delete mode 100644 third_party/nixpkgs/pkgs/development/java-modules/mojo/animal-sniffer.nix delete mode 100644 third_party/nixpkgs/pkgs/development/java-modules/mojo/java-boot-classpath-detector.nix delete mode 100644 third_party/nixpkgs/pkgs/development/java-modules/ow2/asm-all.nix delete mode 100644 third_party/nixpkgs/pkgs/development/java-modules/plexus/archiver.nix delete mode 100644 third_party/nixpkgs/pkgs/development/java-modules/plexus/build-api.nix delete mode 100644 third_party/nixpkgs/pkgs/development/java-modules/plexus/classworlds.nix delete mode 100644 third_party/nixpkgs/pkgs/development/java-modules/plexus/compiler-api.nix delete mode 100644 third_party/nixpkgs/pkgs/development/java-modules/plexus/compiler-javac.nix delete mode 100644 third_party/nixpkgs/pkgs/development/java-modules/plexus/compiler-manager.nix delete mode 100644 third_party/nixpkgs/pkgs/development/java-modules/plexus/component-annotations.nix delete mode 100644 third_party/nixpkgs/pkgs/development/java-modules/plexus/container-default.nix delete mode 100644 third_party/nixpkgs/pkgs/development/java-modules/plexus/digest.nix delete mode 100644 third_party/nixpkgs/pkgs/development/java-modules/plexus/i18n.nix delete mode 100644 third_party/nixpkgs/pkgs/development/java-modules/plexus/interactivity-api.nix delete mode 100644 third_party/nixpkgs/pkgs/development/java-modules/plexus/interpolation.nix delete mode 100644 third_party/nixpkgs/pkgs/development/java-modules/plexus/io.nix delete mode 100644 third_party/nixpkgs/pkgs/development/java-modules/plexus/utils.nix delete mode 100644 third_party/nixpkgs/pkgs/development/java-modules/poms.nix delete mode 100644 third_party/nixpkgs/pkgs/development/java-modules/sisu/guice.nix delete mode 100644 third_party/nixpkgs/pkgs/development/java-modules/sisu/inject-bean.nix delete mode 100644 third_party/nixpkgs/pkgs/development/java-modules/sisu/inject-plexus.nix delete mode 100644 third_party/nixpkgs/pkgs/development/java-modules/xerces/impl.nix delete mode 100644 third_party/nixpkgs/pkgs/development/java-modules/xml-apis/default.nix delete mode 100644 third_party/nixpkgs/pkgs/development/libraries/SDL2_ttf/2.0.15.nix create mode 100644 third_party/nixpkgs/pkgs/development/libraries/abseil-cpp/202301.nix create mode 100644 third_party/nixpkgs/pkgs/development/libraries/accountsservice/get-dm-type-from-config.patch create mode 100644 third_party/nixpkgs/pkgs/development/libraries/blst/default.nix delete mode 100644 third_party/nixpkgs/pkgs/development/libraries/boost/1.68.nix delete mode 100644 third_party/nixpkgs/pkgs/development/libraries/boost/1.69.nix delete mode 100644 third_party/nixpkgs/pkgs/development/libraries/boost/1.70.nix delete mode 100644 third_party/nixpkgs/pkgs/development/libraries/boost/1.72.nix delete mode 100644 third_party/nixpkgs/pkgs/development/libraries/boost/1.73.nix delete mode 100644 third_party/nixpkgs/pkgs/development/libraries/boost/1.74.nix delete mode 100644 third_party/nixpkgs/pkgs/development/libraries/boost/cmake-paths.patch delete mode 100644 third_party/nixpkgs/pkgs/development/libraries/boost/pthread-stack-min-fix.patch create mode 100644 third_party/nixpkgs/pkgs/development/libraries/clipper2/0001-fix-pc-paths.patch create mode 100644 third_party/nixpkgs/pkgs/development/libraries/clipper2/default.nix create mode 100644 third_party/nixpkgs/pkgs/development/libraries/ctranslate2/default.nix create mode 100644 third_party/nixpkgs/pkgs/development/libraries/cyrus-sasl-xoauth2/default.nix create mode 100644 third_party/nixpkgs/pkgs/development/libraries/db/darwin-mutexes-4.8.patch create mode 100644 third_party/nixpkgs/pkgs/development/libraries/db/darwin-mutexes.patch rename third_party/nixpkgs/pkgs/development/libraries/{tinygltf/default.nix => draco/tinygltf.nix} (100%) create mode 100644 third_party/nixpkgs/pkgs/development/libraries/fpattern/default.nix delete mode 100644 third_party/nixpkgs/pkgs/development/libraries/gnome-video-effects/fix-pc-file.patch create mode 100644 third_party/nixpkgs/pkgs/development/libraries/hpp-fcl/default.nix rename third_party/nixpkgs/pkgs/development/libraries/{vaapi-intel => intel-vaapi-driver}/default.nix (82%) create mode 100644 third_party/nixpkgs/pkgs/development/libraries/libayatana-common/default.nix delete mode 100644 third_party/nixpkgs/pkgs/development/libraries/libblockdev/fix-paths.patch create mode 100644 third_party/nixpkgs/pkgs/development/libraries/libclc/libclc-gnu-install-dirs.patch create mode 100644 third_party/nixpkgs/pkgs/development/libraries/libcs50/default.nix create mode 100644 third_party/nixpkgs/pkgs/development/libraries/libdbusmenu/requires-glib.patch delete mode 100644 third_party/nixpkgs/pkgs/development/libraries/libeatmydata/find-shell-lib.patch create mode 100644 third_party/nixpkgs/pkgs/development/libraries/libei/default.nix create mode 100644 third_party/nixpkgs/pkgs/development/libraries/libelf/fix-configure-main.patch create mode 100644 third_party/nixpkgs/pkgs/development/libraries/libgdiplus/configure-pkg-config.patch delete mode 100644 third_party/nixpkgs/pkgs/development/libraries/libidn2/fix-error-darwin.patch delete mode 100644 third_party/nixpkgs/pkgs/development/libraries/libmongo-client/default.nix create mode 100644 third_party/nixpkgs/pkgs/development/libraries/libnut/default.nix create mode 100644 third_party/nixpkgs/pkgs/development/libraries/libopus/fix-pkg-config-paths.patch create mode 100644 third_party/nixpkgs/pkgs/development/libraries/libqtdbusmock/default.nix create mode 100644 third_party/nixpkgs/pkgs/development/libraries/libqtdbustest/default.nix create mode 100644 third_party/nixpkgs/pkgs/development/libraries/libqtdbustest/less-pedantic-process-finding.patch create mode 100644 third_party/nixpkgs/pkgs/development/libraries/libremidi/default.nix delete mode 100644 third_party/nixpkgs/pkgs/development/libraries/libssh2/openssl_add_support_for_libressl_3_5.patch delete mode 100644 third_party/nixpkgs/pkgs/development/libraries/liburing/0001-Add-custom-error-function-for-tests.patch delete mode 100644 third_party/nixpkgs/pkgs/development/libraries/liburing/0002-test-Use-t_error-instead-of-glibc-s-error.patch delete mode 100644 third_party/nixpkgs/pkgs/development/libraries/liburing/0003-examples-Use-t_error-instead-of-glibc-s-error.patch rename third_party/nixpkgs/pkgs/development/libraries/matrix-sdk-crypto-nodejs/{Cargo.lock => Cargo-beta.3.lock} (100%) create mode 100644 third_party/nixpkgs/pkgs/development/libraries/matrix-sdk-crypto-nodejs/Cargo-beta.6.lock create mode 100644 third_party/nixpkgs/pkgs/development/libraries/matrix-sdk-crypto-nodejs/beta3.nix create mode 100644 third_party/nixpkgs/pkgs/development/libraries/matrix-sdk-crypto-nodejs/generic.nix delete mode 100644 third_party/nixpkgs/pkgs/development/libraries/mesa/22.3.nix delete mode 100644 third_party/nixpkgs/pkgs/development/libraries/mesa/23.0.nix rename third_party/nixpkgs/pkgs/development/libraries/mesa/{generic.nix => default.nix} (96%) rename third_party/nixpkgs/pkgs/development/libraries/{microsoft_gsl => microsoft-gsl}/default.nix (100%) delete mode 100644 third_party/nixpkgs/pkgs/development/libraries/mlt/qt-5.nix create mode 100644 third_party/nixpkgs/pkgs/development/libraries/msgpack-c/default.nix create mode 100644 third_party/nixpkgs/pkgs/development/libraries/msgpack-cxx/default.nix create mode 100644 third_party/nixpkgs/pkgs/development/libraries/mustache-tcl/default.nix create mode 100644 third_party/nixpkgs/pkgs/development/libraries/nanosvg/default.nix delete mode 100644 third_party/nixpkgs/pkgs/development/libraries/nss/85_security_load_3.77+.patch create mode 100644 third_party/nixpkgs/pkgs/development/libraries/nss/remove-c25519-support.patch create mode 100644 third_party/nixpkgs/pkgs/development/libraries/oneDNN/2.nix create mode 100644 third_party/nixpkgs/pkgs/development/libraries/openexr/gcc-13.patch delete mode 100644 third_party/nixpkgs/pkgs/development/libraries/openimagedenoise/1_2_x.nix delete mode 100644 third_party/nixpkgs/pkgs/development/libraries/openimageio/1.x.nix delete mode 100644 third_party/nixpkgs/pkgs/development/libraries/openimageio/2539_backport.patch create mode 100644 third_party/nixpkgs/pkgs/development/libraries/pdfhummus/default.nix create mode 100644 third_party/nixpkgs/pkgs/development/libraries/podofo/0.10.x.nix create mode 100644 third_party/nixpkgs/pkgs/development/libraries/qdjango/default.nix create mode 100644 third_party/nixpkgs/pkgs/development/libraries/qt-5/modules/qtpim.nix create mode 100644 third_party/nixpkgs/pkgs/development/libraries/qt-6/patches/0007-qtbase-find-qt-tools-in-QTTOOLSPATH.patch delete mode 100644 third_party/nixpkgs/pkgs/development/libraries/qtkeychain/0002-Fix-install-name-Darwin.patch create mode 100644 third_party/nixpkgs/pkgs/development/libraries/rapidyaml/default.nix delete mode 100644 third_party/nixpkgs/pkgs/development/libraries/rarian/default.nix create mode 100644 third_party/nixpkgs/pkgs/development/libraries/rocfft/device-install.patch create mode 100644 third_party/nixpkgs/pkgs/development/libraries/rocfft/split-kernel-compilation.patch create mode 100644 third_party/nixpkgs/pkgs/development/libraries/science/astronomy/libxisf/0001-Fix-pkg-config-paths.patch create mode 100644 third_party/nixpkgs/pkgs/development/libraries/science/electronics/coloquinte/default.nix create mode 100644 third_party/nixpkgs/pkgs/development/libraries/science/math/clblast/default.nix create mode 100644 third_party/nixpkgs/pkgs/development/libraries/science/math/dbcsr/default.nix create mode 100644 third_party/nixpkgs/pkgs/development/libraries/sexpp/default.nix create mode 100644 third_party/nixpkgs/pkgs/development/libraries/sioclient/default.nix create mode 100644 third_party/nixpkgs/pkgs/development/libraries/sregex/default.nix create mode 100644 third_party/nixpkgs/pkgs/development/libraries/taco/default.nix create mode 100644 third_party/nixpkgs/pkgs/development/libraries/taco/taco.patch create mode 100644 third_party/nixpkgs/pkgs/development/libraries/tbox/default.nix create mode 100644 third_party/nixpkgs/pkgs/development/libraries/tbox/libtbox.pc.in create mode 100644 third_party/nixpkgs/pkgs/development/libraries/tcl-fcgi/default.nix create mode 100644 third_party/nixpkgs/pkgs/development/libraries/tk/tk-8_6_13-find-library.patch create mode 100644 third_party/nixpkgs/pkgs/development/libraries/vectorscan/default.nix create mode 100644 third_party/nixpkgs/pkgs/development/libraries/whereami/default.nix create mode 100644 third_party/nixpkgs/pkgs/development/libraries/xdg-desktop-portal-xapp/default.nix create mode 100644 third_party/nixpkgs/pkgs/development/libraries/xmake-core-sv/default.nix create mode 100644 third_party/nixpkgs/pkgs/development/libraries/yas/default.nix delete mode 100644 third_party/nixpkgs/pkgs/development/lisp-modules/patches/log4cl-fix-build.patch create mode 100644 third_party/nixpkgs/pkgs/development/mobile/fdroidcl/default.nix create mode 100644 third_party/nixpkgs/pkgs/development/mobile/fdroidcl/go_mod_version_update.patch create mode 100644 third_party/nixpkgs/pkgs/development/mobile/ios-webkit-debug-proxy/0001-Don-t-compile-examples.patch create mode 100644 third_party/nixpkgs/pkgs/development/mobile/ios-webkit-debug-proxy/default.nix delete mode 100644 third_party/nixpkgs/pkgs/development/nim-packages/snappy/config.patch delete mode 100644 third_party/nixpkgs/pkgs/development/node-packages/thelounge-packages-path.patch delete mode 100644 third_party/nixpkgs/pkgs/development/ocaml-modules/awa/lwt.nix delete mode 100644 third_party/nixpkgs/pkgs/development/ocaml-modules/bls12-381-hash/default.nix delete mode 100644 third_party/nixpkgs/pkgs/development/ocaml-modules/camomile/0.8.2.nix create mode 100644 third_party/nixpkgs/pkgs/development/ocaml-modules/domain-local-await/default.nix create mode 100644 third_party/nixpkgs/pkgs/development/ocaml-modules/eio/default.nix create mode 100644 third_party/nixpkgs/pkgs/development/ocaml-modules/eio/linux.nix create mode 100644 third_party/nixpkgs/pkgs/development/ocaml-modules/eio/main.nix create mode 100644 third_party/nixpkgs/pkgs/development/ocaml-modules/eio/posix.nix create mode 100644 third_party/nixpkgs/pkgs/development/ocaml-modules/iomux/default.nix create mode 100644 third_party/nixpkgs/pkgs/development/ocaml-modules/memtrace/default.nix create mode 100644 third_party/nixpkgs/pkgs/development/ocaml-modules/mtime/1_x.nix create mode 100644 third_party/nixpkgs/pkgs/development/ocaml-modules/ocamlformat/generic.nix create mode 100644 third_party/nixpkgs/pkgs/development/ocaml-modules/ocamlformat/ocamlformat-lib.nix rename third_party/nixpkgs/pkgs/development/ocaml-modules/{ocamlformat-rpc-lib/default.nix => ocamlformat/ocamlformat-rpc-lib.nix} (93%) create mode 100644 third_party/nixpkgs/pkgs/development/ocaml-modules/ocamlformat/ocamlformat.nix create mode 100644 third_party/nixpkgs/pkgs/development/ocaml-modules/ppx_show/default.nix create mode 100644 third_party/nixpkgs/pkgs/development/ocaml-modules/seqes/default.nix create mode 100644 third_party/nixpkgs/pkgs/development/ocaml-modules/tdigest/default.nix delete mode 100644 third_party/nixpkgs/pkgs/development/ocaml-modules/tezos-bls12-381-polynomial/default.nix delete mode 100644 third_party/nixpkgs/pkgs/development/ocaml-modules/tezos-bls12-381-polynomial/plompiler.nix delete mode 100644 third_party/nixpkgs/pkgs/development/ocaml-modules/tezos-bls12-381-polynomial/plonk.nix create mode 100644 third_party/nixpkgs/pkgs/development/ocaml-modules/thread-table/default.nix rename third_party/nixpkgs/pkgs/development/perl-modules/{TextBibTeX-use-lib-on-aarch64.patch => TextBibTeX-use-lib.patch} (79%) create mode 100644 third_party/nixpkgs/pkgs/development/php-packages/datadog_trace/Cargo.lock create mode 100644 third_party/nixpkgs/pkgs/development/php-packages/relay/default.nix create mode 100644 third_party/nixpkgs/pkgs/development/php-packages/uv/default.nix create mode 100644 third_party/nixpkgs/pkgs/development/python-modules/Polygon3/default.nix create mode 100644 third_party/nixpkgs/pkgs/development/python-modules/aigpy/default.nix create mode 100644 third_party/nixpkgs/pkgs/development/python-modules/aioairzone-cloud/default.nix delete mode 100644 third_party/nixpkgs/pkgs/development/python-modules/aiosenseme/default.nix create mode 100644 third_party/nixpkgs/pkgs/development/python-modules/alexapy/default.nix create mode 100644 third_party/nixpkgs/pkgs/development/python-modules/androidtvremote2/default.nix create mode 100644 third_party/nixpkgs/pkgs/development/python-modules/annotated-types/default.nix delete mode 100644 third_party/nixpkgs/pkgs/development/python-modules/apache-airflow/providers.nix create mode 100644 third_party/nixpkgs/pkgs/development/python-modules/apispec-webframeworks/default.nix create mode 100644 third_party/nixpkgs/pkgs/development/python-modules/argilla/default.nix create mode 100644 third_party/nixpkgs/pkgs/development/python-modules/argos-translate-files/default.nix create mode 100644 third_party/nixpkgs/pkgs/development/python-modules/argostranslate/default.nix create mode 100644 third_party/nixpkgs/pkgs/development/python-modules/argparse-dataclass/default.nix create mode 100644 third_party/nixpkgs/pkgs/development/python-modules/array-record/default.nix create mode 100644 third_party/nixpkgs/pkgs/development/python-modules/art/default.nix create mode 100644 third_party/nixpkgs/pkgs/development/python-modules/async-tkinter-loop/default.nix create mode 100644 third_party/nixpkgs/pkgs/development/python-modules/asyncinotify/default.nix create mode 100644 third_party/nixpkgs/pkgs/development/python-modules/azure-mgmt-appcontainers/default.nix create mode 100644 third_party/nixpkgs/pkgs/development/python-modules/bandcamp-api/default.nix delete mode 100644 third_party/nixpkgs/pkgs/development/python-modules/bayespy/pr127-Fix-deprecated-numpy-types.patch create mode 100644 third_party/nixpkgs/pkgs/development/python-modules/before-after/default.nix create mode 100644 third_party/nixpkgs/pkgs/development/python-modules/biopandas/default.nix create mode 100644 third_party/nixpkgs/pkgs/development/python-modules/boilerpy3/default.nix create mode 100644 third_party/nixpkgs/pkgs/development/python-modules/bottombar/default.nix create mode 100644 third_party/nixpkgs/pkgs/development/python-modules/broadbean/default.nix create mode 100644 third_party/nixpkgs/pkgs/development/python-modules/brotli-asgi/default.nix create mode 100644 third_party/nixpkgs/pkgs/development/python-modules/cacheyou/default.nix create mode 100644 third_party/nixpkgs/pkgs/development/python-modules/calmjs-types/default.nix create mode 100644 third_party/nixpkgs/pkgs/development/python-modules/calmjs/default.nix create mode 100644 third_party/nixpkgs/pkgs/development/python-modules/camelot/default.nix create mode 100644 third_party/nixpkgs/pkgs/development/python-modules/canals/default.nix create mode 100644 third_party/nixpkgs/pkgs/development/python-modules/celery-singleton/default.nix rename third_party/nixpkgs/pkgs/{tools/security/certipy => development/python-modules/certipy-ad}/default.nix (58%) create mode 100644 third_party/nixpkgs/pkgs/development/python-modules/cffi/clang-pointer-substraction-warning.diff create mode 100644 third_party/nixpkgs/pkgs/development/python-modules/clarifai-grpc/default.nix create mode 100644 third_party/nixpkgs/pkgs/development/python-modules/clarifai/default.nix create mode 100644 third_party/nixpkgs/pkgs/development/python-modules/class-doc/default.nix create mode 100644 third_party/nixpkgs/pkgs/development/python-modules/cleanlab/default.nix create mode 100644 third_party/nixpkgs/pkgs/development/python-modules/cliche/default.nix create mode 100644 third_party/nixpkgs/pkgs/development/python-modules/click-aliases/0001-Fix-quotes-in-test.patch create mode 100644 third_party/nixpkgs/pkgs/development/python-modules/click-aliases/default.nix create mode 100644 third_party/nixpkgs/pkgs/development/python-modules/clr-loader/default.nix create mode 100644 third_party/nixpkgs/pkgs/development/python-modules/clr-loader/deps.nix create mode 100644 third_party/nixpkgs/pkgs/development/python-modules/coffea/default.nix create mode 100644 third_party/nixpkgs/pkgs/development/python-modules/correctionlib/default.nix create mode 100644 third_party/nixpkgs/pkgs/development/python-modules/cson/default.nix create mode 100644 third_party/nixpkgs/pkgs/development/python-modules/ctranslate2/default.nix create mode 100644 third_party/nixpkgs/pkgs/development/python-modules/dask-histogram/default.nix create mode 100644 third_party/nixpkgs/pkgs/development/python-modules/demes/default.nix create mode 100644 third_party/nixpkgs/pkgs/development/python-modules/demesdraw/default.nix delete mode 100644 third_party/nixpkgs/pkgs/development/python-modules/descartes/default.nix create mode 100644 third_party/nixpkgs/pkgs/development/python-modules/detectron2/default.nix create mode 100644 third_party/nixpkgs/pkgs/development/python-modules/diffimg/default.nix create mode 100644 third_party/nixpkgs/pkgs/development/python-modules/dissect-cobaltstrike/default.nix create mode 100644 third_party/nixpkgs/pkgs/development/python-modules/django-admin-datta/default.nix create mode 100644 third_party/nixpkgs/pkgs/development/python-modules/django-cachalot/default.nix create mode 100644 third_party/nixpkgs/pkgs/development/python-modules/django-cachalot/disable-unsupported-tests.patch delete mode 100644 third_party/nixpkgs/pkgs/development/python-modules/django-hijack-admin/default.nix create mode 100644 third_party/nixpkgs/pkgs/development/python-modules/django-leaflet/default.nix create mode 100644 third_party/nixpkgs/pkgs/development/python-modules/django-rosetta/default.nix create mode 100644 third_party/nixpkgs/pkgs/development/python-modules/django-sekizai/default.nix create mode 100644 third_party/nixpkgs/pkgs/development/python-modules/dotwiz/default.nix create mode 100644 third_party/nixpkgs/pkgs/development/python-modules/effdet/default.nix create mode 100644 third_party/nixpkgs/pkgs/development/python-modules/encodec/default.nix create mode 100644 third_party/nixpkgs/pkgs/development/python-modules/experiment-utilities/default.nix create mode 100644 third_party/nixpkgs/pkgs/development/python-modules/f5-icontrol-rest/default.nix create mode 100644 third_party/nixpkgs/pkgs/development/python-modules/f5-sdk/default.nix create mode 100644 third_party/nixpkgs/pkgs/development/python-modules/fairscale/default.nix create mode 100644 third_party/nixpkgs/pkgs/development/python-modules/fairseq/default.nix create mode 100644 third_party/nixpkgs/pkgs/development/python-modules/faster-fifo/default.nix create mode 100644 third_party/nixpkgs/pkgs/development/python-modules/faster-whisper/default.nix create mode 100644 third_party/nixpkgs/pkgs/development/python-modules/filedepot/default.nix delete mode 100644 third_party/nixpkgs/pkgs/development/python-modules/flet/pyproject.toml.patch create mode 100644 third_party/nixpkgs/pkgs/development/python-modules/flyingsquid/default.nix create mode 100644 third_party/nixpkgs/pkgs/development/python-modules/frida-python/default.nix create mode 100644 third_party/nixpkgs/pkgs/development/python-modules/fvcore/default.nix create mode 100644 third_party/nixpkgs/pkgs/development/python-modules/fypp/default.nix delete mode 100644 third_party/nixpkgs/pkgs/development/python-modules/geometric/ase-is-optional.patch create mode 100644 third_party/nixpkgs/pkgs/development/python-modules/google-ai-generativelanguage/default.nix create mode 100644 third_party/nixpkgs/pkgs/development/python-modules/google-generativeai/default.nix create mode 100644 third_party/nixpkgs/pkgs/development/python-modules/google-search-results/default.nix create mode 100644 third_party/nixpkgs/pkgs/development/python-modules/google/default.nix delete mode 100644 third_party/nixpkgs/pkgs/development/python-modules/gpyopt/default.nix create mode 100644 third_party/nixpkgs/pkgs/development/python-modules/grpc-interceptor/default.nix create mode 100644 third_party/nixpkgs/pkgs/development/python-modules/hyperpyyaml/default.nix create mode 100644 third_party/nixpkgs/pkgs/development/python-modules/iammeter/default.nix create mode 100644 third_party/nixpkgs/pkgs/development/python-modules/image-diff/default.nix delete mode 100644 third_party/nixpkgs/pkgs/development/python-modules/image-match/default.nix delete mode 100644 third_party/nixpkgs/pkgs/development/python-modules/imgaug/default.nix create mode 100644 third_party/nixpkgs/pkgs/development/python-modules/imgdiff/default.nix create mode 100644 third_party/nixpkgs/pkgs/development/python-modules/iopath/default.nix create mode 100644 third_party/nixpkgs/pkgs/development/python-modules/iwlib/default.nix create mode 100644 third_party/nixpkgs/pkgs/development/python-modules/jello/default.nix delete mode 100644 third_party/nixpkgs/pkgs/development/python-modules/jsonschema/3_x.nix create mode 100644 third_party/nixpkgs/pkgs/development/python-modules/kasa-crypt/default.nix create mode 100644 third_party/nixpkgs/pkgs/development/python-modules/kneed/default.nix create mode 100644 third_party/nixpkgs/pkgs/development/python-modules/knx-frontend/default.nix create mode 100644 third_party/nixpkgs/pkgs/development/python-modules/langchainplus-sdk/default.nix create mode 100644 third_party/nixpkgs/pkgs/development/python-modules/lanms-neo/default.nix create mode 100644 third_party/nixpkgs/pkgs/development/python-modules/layoutparser/default.nix create mode 100644 third_party/nixpkgs/pkgs/development/python-modules/lazy_imports/default.nix create mode 100644 third_party/nixpkgs/pkgs/development/python-modules/libretranslate/default.nix create mode 100644 third_party/nixpkgs/pkgs/development/python-modules/lime/default.nix create mode 100644 third_party/nixpkgs/pkgs/development/python-modules/litemapy/default.nix create mode 100644 third_party/nixpkgs/pkgs/development/python-modules/ltpycld2/default.nix create mode 100644 third_party/nixpkgs/pkgs/development/python-modules/luqum/default.nix create mode 100644 third_party/nixpkgs/pkgs/development/python-modules/lzallright/default.nix create mode 100644 third_party/nixpkgs/pkgs/development/python-modules/lzallright/tests.nix delete mode 100644 third_party/nixpkgs/pkgs/development/python-modules/markdownsuperscript/default.nix create mode 100644 third_party/nixpkgs/pkgs/development/python-modules/mashumaro/default.nix delete mode 100644 third_party/nixpkgs/pkgs/development/python-modules/mask-rcnn/default.nix create mode 100644 third_party/nixpkgs/pkgs/development/python-modules/matplotlib-sixel/default.nix create mode 100644 third_party/nixpkgs/pkgs/development/python-modules/matplotx/default.nix create mode 100644 third_party/nixpkgs/pkgs/development/python-modules/mdformat-admon/default.nix create mode 100644 third_party/nixpkgs/pkgs/development/python-modules/mdformat-beautysh/default.nix create mode 100644 third_party/nixpkgs/pkgs/development/python-modules/mdformat-footnote/default.nix create mode 100644 third_party/nixpkgs/pkgs/development/python-modules/mdformat-frontmatter/default.nix create mode 100644 third_party/nixpkgs/pkgs/development/python-modules/mdformat-gfm/default.nix create mode 100644 third_party/nixpkgs/pkgs/development/python-modules/mdformat-mkdocs/default.nix create mode 100644 third_party/nixpkgs/pkgs/development/python-modules/mdformat-nix-alejandra/default.nix create mode 100644 third_party/nixpkgs/pkgs/development/python-modules/mdformat-simple-breaks/default.nix create mode 100644 third_party/nixpkgs/pkgs/development/python-modules/mdformat-tables/default.nix create mode 100644 third_party/nixpkgs/pkgs/development/python-modules/mdformat-toc/default.nix create mode 100644 third_party/nixpkgs/pkgs/development/python-modules/meeko/default.nix create mode 100644 third_party/nixpkgs/pkgs/development/python-modules/metawear/default.nix create mode 100644 third_party/nixpkgs/pkgs/development/python-modules/mhcflurry/default.nix create mode 100644 third_party/nixpkgs/pkgs/development/python-modules/mhcgnomes/default.nix create mode 100644 third_party/nixpkgs/pkgs/development/python-modules/mike/default.nix create mode 100644 third_party/nixpkgs/pkgs/development/python-modules/mir_eval/default.nix create mode 100644 third_party/nixpkgs/pkgs/development/python-modules/mmcif-pdbx/default.nix create mode 100644 third_party/nixpkgs/pkgs/development/python-modules/mmtf-python/default.nix create mode 100644 third_party/nixpkgs/pkgs/development/python-modules/moreorless/default.nix create mode 100644 third_party/nixpkgs/pkgs/development/python-modules/morfessor/default.nix create mode 100644 third_party/nixpkgs/pkgs/development/python-modules/mplhep-data/default.nix create mode 100644 third_party/nixpkgs/pkgs/development/python-modules/mplhep/default.nix create mode 100644 third_party/nixpkgs/pkgs/development/python-modules/msg-parser/default.nix create mode 100644 third_party/nixpkgs/pkgs/development/python-modules/msprime/default.nix create mode 100644 third_party/nixpkgs/pkgs/development/python-modules/mullvad-closest/default.nix create mode 100644 third_party/nixpkgs/pkgs/development/python-modules/nbexec/default.nix create mode 100644 third_party/nixpkgs/pkgs/development/python-modules/nbtlib/default.nix create mode 100644 third_party/nixpkgs/pkgs/development/python-modules/netapp-lib/default.nix create mode 100644 third_party/nixpkgs/pkgs/development/python-modules/netapp-ontap/default.nix create mode 100644 third_party/nixpkgs/pkgs/development/python-modules/newick/default.nix create mode 100644 third_party/nixpkgs/pkgs/development/python-modules/nh3/default.nix create mode 100644 third_party/nixpkgs/pkgs/development/python-modules/nose3/default.nix create mode 100644 third_party/nixpkgs/pkgs/development/python-modules/oca-port/default.nix create mode 100644 third_party/nixpkgs/pkgs/development/python-modules/omemo-dr/default.nix create mode 100644 third_party/nixpkgs/pkgs/development/python-modules/onnxruntime-tools/default.nix create mode 100644 third_party/nixpkgs/pkgs/development/python-modules/opencensus-ext-azure/default.nix create mode 100644 third_party/nixpkgs/pkgs/development/python-modules/openrgb-python/default.nix create mode 100644 third_party/nixpkgs/pkgs/development/python-modules/opentelemetry-api/default.nix create mode 100644 third_party/nixpkgs/pkgs/development/python-modules/opentelemetry-exporter-otlp-proto-common/default.nix create mode 100644 third_party/nixpkgs/pkgs/development/python-modules/opentelemetry-exporter-otlp-proto-grpc/default.nix create mode 100644 third_party/nixpkgs/pkgs/development/python-modules/opentelemetry-exporter-otlp-proto-http/default.nix create mode 100644 third_party/nixpkgs/pkgs/development/python-modules/opentelemetry-exporter-otlp/default.nix create mode 100644 third_party/nixpkgs/pkgs/development/python-modules/opentelemetry-exporter-prometheus/default.nix create mode 100644 third_party/nixpkgs/pkgs/development/python-modules/opentelemetry-instrumentation-asgi/default.nix create mode 100644 third_party/nixpkgs/pkgs/development/python-modules/opentelemetry-instrumentation-django/default.nix create mode 100644 third_party/nixpkgs/pkgs/development/python-modules/opentelemetry-instrumentation-wsgi/default.nix create mode 100644 third_party/nixpkgs/pkgs/development/python-modules/opentelemetry-instrumentation/default.nix create mode 100644 third_party/nixpkgs/pkgs/development/python-modules/opentelemetry-proto/default.nix create mode 100644 third_party/nixpkgs/pkgs/development/python-modules/opentelemetry-sdk/default.nix create mode 100644 third_party/nixpkgs/pkgs/development/python-modules/opentelemetry-semantic-conventions/default.nix create mode 100644 third_party/nixpkgs/pkgs/development/python-modules/opentelemetry-test-utils/default.nix create mode 100644 third_party/nixpkgs/pkgs/development/python-modules/opentelemetry-util-http/default.nix create mode 100644 third_party/nixpkgs/pkgs/development/python-modules/opower/default.nix create mode 100644 third_party/nixpkgs/pkgs/development/python-modules/paddle2onnx/default.nix create mode 100644 third_party/nixpkgs/pkgs/development/python-modules/paddle_bfloat/binary-hashes.nix create mode 100644 third_party/nixpkgs/pkgs/development/python-modules/paddle_bfloat/default.nix create mode 100644 third_party/nixpkgs/pkgs/development/python-modules/pdb2pqr/default.nix create mode 100644 third_party/nixpkgs/pkgs/development/python-modules/pdfplumber/default.nix delete mode 100644 third_party/nixpkgs/pkgs/development/python-modules/pdfposter/default.nix create mode 100644 third_party/nixpkgs/pkgs/development/python-modules/pdm-backend/setup-hook.sh create mode 100644 third_party/nixpkgs/pkgs/development/python-modules/pem/default.nix create mode 100644 third_party/nixpkgs/pkgs/development/python-modules/pgmpy/default.nix create mode 100644 third_party/nixpkgs/pkgs/development/python-modules/pgvector/default.nix create mode 100644 third_party/nixpkgs/pkgs/development/python-modules/ping3/default.nix rename third_party/nixpkgs/pkgs/development/python-modules/{larynx-train => piper-train}/default.nix (64%) create mode 100644 third_party/nixpkgs/pkgs/development/python-modules/pkgutil-resolve-name/default.nix create mode 100644 third_party/nixpkgs/pkgs/development/python-modules/poetry-dynamic-versioning/setup-hook.sh create mode 100644 third_party/nixpkgs/pkgs/development/python-modules/posthog/default.nix create mode 100644 third_party/nixpkgs/pkgs/development/python-modules/prompthub-py/default.nix create mode 100644 third_party/nixpkgs/pkgs/development/python-modules/propka/default.nix delete mode 100644 third_party/nixpkgs/pkgs/development/python-modules/pushover/default.nix create mode 100644 third_party/nixpkgs/pkgs/development/python-modules/py-partiql-parser/default.nix delete mode 100644 third_party/nixpkgs/pkgs/development/python-modules/py-radix/default.nix create mode 100644 third_party/nixpkgs/pkgs/development/python-modules/py3nvml/default.nix delete mode 100644 third_party/nixpkgs/pkgs/development/python-modules/pyblock/default.nix create mode 100644 third_party/nixpkgs/pkgs/development/python-modules/pycodestyle/python-3.11.4-compat.patch create mode 100644 third_party/nixpkgs/pkgs/development/python-modules/pycookiecheat/default.nix delete mode 100644 third_party/nixpkgs/pkgs/development/python-modules/pygbm/default.nix create mode 100644 third_party/nixpkgs/pkgs/development/python-modules/pygnmi/default.nix create mode 100644 third_party/nixpkgs/pkgs/development/python-modules/pygsl/default.nix create mode 100644 third_party/nixpkgs/pkgs/development/python-modules/pyheck/Cargo.lock create mode 100644 third_party/nixpkgs/pkgs/development/python-modules/pyheck/default.nix create mode 100644 third_party/nixpkgs/pkgs/development/python-modules/pylddwrap/replace_env_with_placeholder.patch create mode 100644 third_party/nixpkgs/pkgs/development/python-modules/pylion/default.nix delete mode 100644 third_party/nixpkgs/pkgs/development/python-modules/pymatgen-lammps/default.nix create mode 100644 third_party/nixpkgs/pkgs/development/python-modules/pynvim-pp/default.nix create mode 100644 third_party/nixpkgs/pkgs/development/python-modules/pyperscan/default.nix create mode 100644 third_party/nixpkgs/pkgs/development/python-modules/pypika/default.nix create mode 100644 third_party/nixpkgs/pkgs/development/python-modules/pyqt3d/default.nix create mode 100644 third_party/nixpkgs/pkgs/development/python-modules/pyqtchart/default.nix create mode 100644 third_party/nixpkgs/pkgs/development/python-modules/pyqtdatavisualization/default.nix rename third_party/nixpkgs/pkgs/development/python-modules/{pyramid_jinja2 => pyramid-jinja2}/default.nix (92%) create mode 100644 third_party/nixpkgs/pkgs/development/python-modules/pyre-extensions/default.nix create mode 100644 third_party/nixpkgs/pkgs/development/python-modules/pyreaderwriterlock/default.nix delete mode 100644 third_party/nixpkgs/pkgs/development/python-modules/pyres/default.nix create mode 100644 third_party/nixpkgs/pkgs/development/python-modules/pyschlage/default.nix create mode 100644 third_party/nixpkgs/pkgs/development/python-modules/pysequoia/default.nix create mode 100644 third_party/nixpkgs/pkgs/development/python-modules/pyslim/default.nix create mode 100644 third_party/nixpkgs/pkgs/development/python-modules/pystardict/default.nix create mode 100644 third_party/nixpkgs/pkgs/development/python-modules/pysubs2/default.nix create mode 100644 third_party/nixpkgs/pkgs/development/python-modules/pytest-examples/default.nix create mode 100644 third_party/nixpkgs/pkgs/development/python-modules/pytest-grpc/default.nix create mode 100644 third_party/nixpkgs/pkgs/development/python-modules/pytest-image-diff/default.nix delete mode 100644 third_party/nixpkgs/pkgs/development/python-modules/pytest-ordering/default.nix create mode 100644 third_party/nixpkgs/pkgs/development/python-modules/pytest-parallel/default.nix create mode 100644 third_party/nixpkgs/pkgs/development/python-modules/pytest-pudb/default.nix delete mode 100644 third_party/nixpkgs/pkgs/development/python-modules/pytest-sanic/default.nix create mode 100644 third_party/nixpkgs/pkgs/development/python-modules/pytest-testinfra/default.nix rename third_party/nixpkgs/pkgs/development/python-modules/{ev3dev2 => python-ev3dev2}/default.nix (91%) create mode 100644 third_party/nixpkgs/pkgs/development/python-modules/python-ipware/default.nix create mode 100644 third_party/nixpkgs/pkgs/development/python-modules/python-opensky/default.nix create mode 100644 third_party/nixpkgs/pkgs/development/python-modules/python_docs_theme/default.nix create mode 100644 third_party/nixpkgs/pkgs/development/python-modules/pythonnet/deps.nix create mode 100644 third_party/nixpkgs/pkgs/development/python-modules/pyvisa-sim/default.nix delete mode 100644 third_party/nixpkgs/pkgs/development/python-modules/pywick/default.nix create mode 100644 third_party/nixpkgs/pkgs/development/python-modules/pyzipper/default.nix create mode 100644 third_party/nixpkgs/pkgs/development/python-modules/qcodes-contrib-drivers/default.nix create mode 100644 third_party/nixpkgs/pkgs/development/python-modules/qcodes-loop/default.nix create mode 100644 third_party/nixpkgs/pkgs/development/python-modules/qcodes/default.nix create mode 100644 third_party/nixpkgs/pkgs/development/python-modules/qgrid/default.nix create mode 100644 third_party/nixpkgs/pkgs/development/python-modules/quantulum3/default.nix delete mode 100644 third_party/nixpkgs/pkgs/development/python-modules/rabbitpy/default.nix create mode 100644 third_party/nixpkgs/pkgs/development/python-modules/rank_bm25/default.nix create mode 100644 third_party/nixpkgs/pkgs/development/python-modules/recline/default.nix create mode 100644 third_party/nixpkgs/pkgs/development/python-modules/referencing/default.nix create mode 100644 third_party/nixpkgs/pkgs/development/python-modules/rich-argparse/default.nix create mode 100644 third_party/nixpkgs/pkgs/development/python-modules/rich-pixels/default.nix create mode 100644 third_party/nixpkgs/pkgs/development/python-modules/routeros-api/default.nix create mode 100644 third_party/nixpkgs/pkgs/development/python-modules/rpds-py/default.nix create mode 100644 third_party/nixpkgs/pkgs/development/python-modules/sacrebleu/default.nix create mode 100644 third_party/nixpkgs/pkgs/development/python-modules/sdkmanager/default.nix create mode 100644 third_party/nixpkgs/pkgs/development/python-modules/semaphore-bot/default.nix create mode 100644 third_party/nixpkgs/pkgs/development/python-modules/sensirion-ble/default.nix create mode 100644 third_party/nixpkgs/pkgs/development/python-modules/serializable/default.nix create mode 100644 third_party/nixpkgs/pkgs/development/python-modules/simplekv/default.nix create mode 100644 third_party/nixpkgs/pkgs/development/python-modules/sisyphus-control/default.nix delete mode 100644 third_party/nixpkgs/pkgs/development/python-modules/slixmpp/0001-xep_0030-allow-extra-args-in-get_info_from_domain.patch create mode 100644 third_party/nixpkgs/pkgs/development/python-modules/snorkel/default.nix create mode 100644 third_party/nixpkgs/pkgs/development/python-modules/speechbrain/default.nix create mode 100644 third_party/nixpkgs/pkgs/development/python-modules/speg/default.nix delete mode 100644 third_party/nixpkgs/pkgs/development/python-modules/sphinx-navtree/default.nix create mode 100644 third_party/nixpkgs/pkgs/development/python-modules/sqlalchemy-migrate/python3.11-comp.diff create mode 100644 third_party/nixpkgs/pkgs/development/python-modules/std2/default.nix create mode 100644 third_party/nixpkgs/pkgs/development/python-modules/stdlibs/default.nix create mode 100644 third_party/nixpkgs/pkgs/development/python-modules/stemming/default.nix create mode 100644 third_party/nixpkgs/pkgs/development/python-modules/stringparser/default.nix create mode 100644 third_party/nixpkgs/pkgs/development/python-modules/summarytools/default.nix create mode 100644 third_party/nixpkgs/pkgs/development/python-modules/sv-ttk/default.nix create mode 100644 third_party/nixpkgs/pkgs/development/python-modules/tagoio-sdk/default.nix create mode 100644 third_party/nixpkgs/pkgs/development/python-modules/textual-universal-directorytree/default.nix create mode 100644 third_party/nixpkgs/pkgs/development/python-modules/tftpy/default.nix create mode 100644 third_party/nixpkgs/pkgs/development/python-modules/thorlabspm100/default.nix create mode 100644 third_party/nixpkgs/pkgs/development/python-modules/tika-client/default.nix create mode 100644 third_party/nixpkgs/pkgs/development/python-modules/tiny-proxy/default.nix create mode 100644 third_party/nixpkgs/pkgs/development/python-modules/torrent_parser/default.nix create mode 100644 third_party/nixpkgs/pkgs/development/python-modules/trailrunner/default.nix create mode 100644 third_party/nixpkgs/pkgs/development/python-modules/translatehtml/default.nix create mode 100644 third_party/nixpkgs/pkgs/development/python-modules/tritonclient/default.nix create mode 100644 third_party/nixpkgs/pkgs/development/python-modules/tskit/default.nix create mode 100644 third_party/nixpkgs/pkgs/development/python-modules/typechecks/default.nix create mode 100644 third_party/nixpkgs/pkgs/development/python-modules/types-deprecated/default.nix create mode 100644 third_party/nixpkgs/pkgs/development/python-modules/ufmt/default.nix create mode 100644 third_party/nixpkgs/pkgs/development/python-modules/universal-pathlib/default.nix create mode 100644 third_party/nixpkgs/pkgs/development/python-modules/usort/default.nix delete mode 100644 third_party/nixpkgs/pkgs/development/python-modules/validictory/default.nix create mode 100644 third_party/nixpkgs/pkgs/development/python-modules/verspec/default.nix create mode 100644 third_party/nixpkgs/pkgs/development/python-modules/volatile/default.nix create mode 100644 third_party/nixpkgs/pkgs/development/python-modules/warble/default.nix create mode 100644 third_party/nixpkgs/pkgs/development/python-modules/wikipedia/default.nix create mode 100644 third_party/nixpkgs/pkgs/development/python-modules/wyoming/default.nix create mode 100644 third_party/nixpkgs/pkgs/development/python-modules/xformers/default.nix create mode 100644 third_party/nixpkgs/pkgs/development/python-modules/xknxproject/default.nix create mode 100644 third_party/nixpkgs/pkgs/development/python-modules/xstatic-asciinema-player/default.nix create mode 100644 third_party/nixpkgs/pkgs/development/python-modules/xstatic-font-awesome/default.nix delete mode 100644 third_party/nixpkgs/pkgs/development/python-modules/zake/default.nix create mode 100644 third_party/nixpkgs/pkgs/development/skaware-packages/s6-rc-man-pages/default.nix create mode 100644 third_party/nixpkgs/pkgs/development/tools/analysis/banana-vera/default.nix delete mode 100644 third_party/nixpkgs/pkgs/development/tools/aws-sam-cli/support-click-8-1.patch delete mode 100644 third_party/nixpkgs/pkgs/development/tools/aws-sam-cli/use_forward_compatible_log_silencing.patch delete mode 100644 third_party/nixpkgs/pkgs/development/tools/buf/skip_test_requiring_dotgit.patch rename third_party/nixpkgs/pkgs/development/{java-modules/maven-fod.nix => tools/build-managers/apache-maven/build-package.nix} (75%) delete mode 100644 third_party/nixpkgs/pkgs/development/tools/build-managers/apache-maven/builder.sh create mode 100644 third_party/nixpkgs/pkgs/development/tools/build-managers/buck2/default.nix create mode 100644 third_party/nixpkgs/pkgs/development/tools/build-managers/buck2/hashes.json create mode 100755 third_party/nixpkgs/pkgs/development/tools/build-managers/buck2/update.sh create mode 100644 third_party/nixpkgs/pkgs/development/tools/build-managers/meson/darwin-case-sensitive-fs.patch create mode 100644 third_party/nixpkgs/pkgs/development/tools/build-managers/moon/default.nix create mode 100644 third_party/nixpkgs/pkgs/development/tools/build-managers/xmake/default.nix create mode 100644 third_party/nixpkgs/pkgs/development/tools/capnproto-rust/default.nix delete mode 100644 third_party/nixpkgs/pkgs/development/tools/ccloud-cli/default.nix create mode 100644 third_party/nixpkgs/pkgs/development/tools/codespelunker/default.nix create mode 100644 third_party/nixpkgs/pkgs/development/tools/database/dblab/default.nix create mode 100644 third_party/nixpkgs/pkgs/development/tools/database/dynein/default.nix create mode 100644 third_party/nixpkgs/pkgs/development/tools/database/sleek/Cargo.lock create mode 100644 third_party/nixpkgs/pkgs/development/tools/database/sleek/default.nix create mode 100644 third_party/nixpkgs/pkgs/development/tools/database/surrealdb-migrations/Cargo.lock create mode 100644 third_party/nixpkgs/pkgs/development/tools/dbus-test-runner/default.nix create mode 100644 third_party/nixpkgs/pkgs/development/tools/eslint_d/default.nix create mode 100644 third_party/nixpkgs/pkgs/development/tools/fable/default.nix create mode 100644 third_party/nixpkgs/pkgs/development/tools/faq/default.nix create mode 100644 third_party/nixpkgs/pkgs/development/tools/fastgron/default.nix create mode 100644 third_party/nixpkgs/pkgs/development/tools/fsautocomplete/default.nix create mode 100644 third_party/nixpkgs/pkgs/development/tools/fsautocomplete/deps.nix create mode 100644 third_party/nixpkgs/pkgs/development/tools/fusee-nano/default.nix create mode 100644 third_party/nixpkgs/pkgs/development/tools/gendef/default.nix create mode 100644 third_party/nixpkgs/pkgs/development/tools/github-copilot-intellij-agent/default.nix create mode 100644 third_party/nixpkgs/pkgs/development/tools/go-callvis/default.nix create mode 100644 third_party/nixpkgs/pkgs/development/tools/go-mod-graph-chart/default.nix rename third_party/nixpkgs/pkgs/development/{ocaml-modules => tools}/headache/default.nix (89%) create mode 100644 third_party/nixpkgs/pkgs/development/tools/lalrpop/default.nix create mode 100644 third_party/nixpkgs/pkgs/development/tools/lalrpop/use-correct-binary-path-in-tests.patch create mode 100644 third_party/nixpkgs/pkgs/development/tools/language-servers/crystalline/default.nix create mode 100644 third_party/nixpkgs/pkgs/development/tools/language-servers/crystalline/shards.nix create mode 100644 third_party/nixpkgs/pkgs/development/tools/language-servers/csharp-ls/default.nix create mode 100644 third_party/nixpkgs/pkgs/development/tools/language-servers/neocmakelsp/default.nix create mode 100644 third_party/nixpkgs/pkgs/development/tools/language-servers/nixd/default.nix create mode 100644 third_party/nixpkgs/pkgs/development/tools/language-servers/openscad-lsp/default.nix rename third_party/nixpkgs/pkgs/development/{python-modules => tools/language-servers}/ruff-lsp/default.nix (59%) create mode 100644 third_party/nixpkgs/pkgs/development/tools/language-servers/typst-lsp/move-typst-assets.patch create mode 100644 third_party/nixpkgs/pkgs/development/tools/language-servers/vscode-langservers-extracted/default.nix create mode 100644 third_party/nixpkgs/pkgs/development/tools/loganalyzer/default.nix create mode 100644 third_party/nixpkgs/pkgs/development/tools/melange/default.nix create mode 100644 third_party/nixpkgs/pkgs/development/tools/minizinc/gecode.msc create mode 100644 third_party/nixpkgs/pkgs/development/tools/minizinc/simple-test/aust.mzn create mode 100644 third_party/nixpkgs/pkgs/development/tools/minizinc/simple-test/default.nix create mode 100644 third_party/nixpkgs/pkgs/development/tools/minizinc/simple-test/loan.mzn create mode 100644 third_party/nixpkgs/pkgs/development/tools/minizinc/simple-test/loan1.dzn create mode 100644 third_party/nixpkgs/pkgs/development/tools/misc/binutils/CVE-2023-1972.patch create mode 100644 third_party/nixpkgs/pkgs/development/tools/misc/complgen/default.nix create mode 100644 third_party/nixpkgs/pkgs/development/tools/misc/doq/default.nix create mode 100644 third_party/nixpkgs/pkgs/development/tools/misc/ezno/default.nix create mode 100644 third_party/nixpkgs/pkgs/development/tools/misc/gperf/gperf-c++17-register-fix.patch create mode 100644 third_party/nixpkgs/pkgs/development/tools/misc/husky/default.nix create mode 100644 third_party/nixpkgs/pkgs/development/tools/misc/licenseclassifier/default.nix create mode 100644 third_party/nixpkgs/pkgs/development/tools/misc/planus/default.nix create mode 100644 third_party/nixpkgs/pkgs/development/tools/misc/protox/default.nix create mode 100644 third_party/nixpkgs/pkgs/development/tools/misc/regex-cli/default.nix create mode 100644 third_party/nixpkgs/pkgs/development/tools/misc/runme/default.nix create mode 100644 third_party/nixpkgs/pkgs/development/tools/misc/rustywind/default.nix create mode 100644 third_party/nixpkgs/pkgs/development/tools/misc/src-cli/default.nix create mode 100644 third_party/nixpkgs/pkgs/development/tools/misc/typical/default.nix create mode 100644 third_party/nixpkgs/pkgs/development/tools/misc/tyson/default.nix create mode 100644 third_party/nixpkgs/pkgs/development/tools/misc/wasmer-pack/default.nix create mode 100644 third_party/nixpkgs/pkgs/development/tools/mold/fix-debug-strip.patch create mode 100644 third_party/nixpkgs/pkgs/development/tools/nodehun/default.nix create mode 100644 third_party/nixpkgs/pkgs/development/tools/nodehun/update-nan.patch create mode 100644 third_party/nixpkgs/pkgs/development/tools/npm-check/default.nix delete mode 100644 third_party/nixpkgs/pkgs/development/tools/ocaml/ocamlformat/default.nix delete mode 100644 third_party/nixpkgs/pkgs/development/tools/ocaml/ocamlformat/generic.nix create mode 100644 third_party/nixpkgs/pkgs/development/tools/ols/default.nix create mode 100644 third_party/nixpkgs/pkgs/development/tools/parsing/tree-sitter/grammars/tree-sitter-cue.json create mode 100644 third_party/nixpkgs/pkgs/development/tools/parsing/tree-sitter/grammars/tree-sitter-wing.json create mode 100644 third_party/nixpkgs/pkgs/development/tools/patcher9x/default.nix create mode 100644 third_party/nixpkgs/pkgs/development/tools/prettierd/default.nix create mode 100644 third_party/nixpkgs/pkgs/development/tools/prettierd/package.json create mode 100644 third_party/nixpkgs/pkgs/development/tools/protoc-gen-dart/default.nix create mode 100644 third_party/nixpkgs/pkgs/development/tools/protoc-gen-dart/pubspec.lock create mode 100644 third_party/nixpkgs/pkgs/development/tools/protoc-gen-prost-crate/default.nix create mode 100644 third_party/nixpkgs/pkgs/development/tools/protoc-gen-prost-serde/default.nix create mode 100644 third_party/nixpkgs/pkgs/development/tools/protoc-gen-prost/default.nix create mode 100644 third_party/nixpkgs/pkgs/development/tools/protoc-gen-tonic/default.nix create mode 100644 third_party/nixpkgs/pkgs/development/tools/pyenv/default.nix delete mode 100644 third_party/nixpkgs/pkgs/development/tools/pypi2nix/default.nix create mode 100644 third_party/nixpkgs/pkgs/development/tools/refmt/default.nix delete mode 100755 third_party/nixpkgs/pkgs/development/tools/reindeer/update.sh create mode 100644 third_party/nixpkgs/pkgs/development/tools/rust/cargo-component/Cargo.lock create mode 100644 third_party/nixpkgs/pkgs/development/tools/rust/cargo-component/default.nix create mode 100644 third_party/nixpkgs/pkgs/development/tools/rust/cargo-cranky/default.nix create mode 100644 third_party/nixpkgs/pkgs/development/tools/rust/cargo-docset/default.nix create mode 100644 third_party/nixpkgs/pkgs/development/tools/rust/cargo-duplicates/default.nix delete mode 100644 third_party/nixpkgs/pkgs/development/tools/rust/cargo-embed/default.nix delete mode 100644 third_party/nixpkgs/pkgs/development/tools/rust/cargo-flash/default.nix create mode 100644 third_party/nixpkgs/pkgs/development/tools/rust/cargo-local-registry/default.nix create mode 100644 third_party/nixpkgs/pkgs/development/tools/rust/cargo-mutants/default.nix create mode 100644 third_party/nixpkgs/pkgs/development/tools/rust/cargo-pgrx/buildPgrxExtension.nix create mode 100644 third_party/nixpkgs/pkgs/development/tools/rust/cargo-pgrx/default.nix create mode 100644 third_party/nixpkgs/pkgs/development/tools/rust/cargo-toml-lint/default.nix rename third_party/nixpkgs/pkgs/development/tools/rust/{probe-rs-cli => probe-rs}/default.nix (76%) rename third_party/nixpkgs/pkgs/{applications/misc/taizen => development/tools/rye}/Cargo.lock (60%) create mode 100644 third_party/nixpkgs/pkgs/development/tools/semantic-release/default.nix delete mode 100644 third_party/nixpkgs/pkgs/development/tools/summon/resolve-paths.patch create mode 100644 third_party/nixpkgs/pkgs/development/tools/tailwindcss/default.nix create mode 100755 third_party/nixpkgs/pkgs/development/tools/tailwindcss/update.sh create mode 100644 third_party/nixpkgs/pkgs/development/tools/teller/default.nix create mode 100644 third_party/nixpkgs/pkgs/development/tools/twitch-cli/application-name.patch create mode 100644 third_party/nixpkgs/pkgs/development/tools/twitch-cli/default.nix delete mode 100644 third_party/nixpkgs/pkgs/development/tools/uniffi-bindgen/default.nix create mode 100644 third_party/nixpkgs/pkgs/development/tools/volta/Cargo.lock create mode 100644 third_party/nixpkgs/pkgs/development/tools/volta/default.nix create mode 100644 third_party/nixpkgs/pkgs/development/tools/wasmi/Cargo.lock create mode 100644 third_party/nixpkgs/pkgs/development/tools/wasmi/default.nix create mode 100644 third_party/nixpkgs/pkgs/development/tools/xcodes/default.nix create mode 100644 third_party/nixpkgs/pkgs/development/web/boa/default.nix create mode 100644 third_party/nixpkgs/pkgs/development/web/edge-runtime/default.nix create mode 100644 third_party/nixpkgs/pkgs/development/web/edge-runtime/librusty_v8.nix create mode 100644 third_party/nixpkgs/pkgs/games/alephone/apotheosis-x/default.nix create mode 100644 third_party/nixpkgs/pkgs/games/alephone/yuge/default.nix create mode 100644 third_party/nixpkgs/pkgs/games/atlauncher/default.nix delete mode 100644 third_party/nixpkgs/pkgs/games/clonehero/fhs-wrapper.nix delete mode 100644 third_party/nixpkgs/pkgs/games/clonehero/xdg-wrapper.nix create mode 100644 third_party/nixpkgs/pkgs/games/corsix-th/default.nix create mode 100644 third_party/nixpkgs/pkgs/games/doom-ports/doomrunner/default.nix create mode 100644 third_party/nixpkgs/pkgs/games/gamepad-tool/default.nix create mode 100644 third_party/nixpkgs/pkgs/games/ironwail/default.nix create mode 100644 third_party/nixpkgs/pkgs/games/libremines/default.nix create mode 100644 third_party/nixpkgs/pkgs/games/maptool/default.nix create mode 100644 third_party/nixpkgs/pkgs/games/mchprs/Cargo.lock create mode 100644 third_party/nixpkgs/pkgs/games/mchprs/default.nix create mode 100644 third_party/nixpkgs/pkgs/games/minesweep-rs/default.nix create mode 100644 third_party/nixpkgs/pkgs/games/openra/build-engine.nix create mode 100644 third_party/nixpkgs/pkgs/games/openra/engines/devtest/default.nix create mode 100644 third_party/nixpkgs/pkgs/games/openra/engines/devtest/deps.nix create mode 100644 third_party/nixpkgs/pkgs/games/openra/engines/release/default.nix create mode 100644 third_party/nixpkgs/pkgs/games/openra/engines/release/deps.nix rename third_party/nixpkgs/pkgs/games/{openra => openra_2019}/common.nix (79%) create mode 100644 third_party/nixpkgs/pkgs/games/openra_2019/default.nix rename third_party/nixpkgs/pkgs/games/{openra => openra_2019}/engine.nix (85%) rename third_party/nixpkgs/pkgs/games/{openra => openra_2019}/engines.nix (100%) rename third_party/nixpkgs/pkgs/games/{openra => openra_2019}/mkdirp.sh (100%) rename third_party/nixpkgs/pkgs/games/{openra => openra_2019}/mod-launch-game.sh (91%) rename third_party/nixpkgs/pkgs/games/{openra => openra_2019}/mod-update.sh (100%) rename third_party/nixpkgs/pkgs/games/{openra => openra_2019}/mod.nix (70%) rename third_party/nixpkgs/pkgs/games/{openra => openra_2019}/mods.nix (100%) rename third_party/nixpkgs/pkgs/games/{openra => openra_2019}/openra-mod.desktop (100%) rename third_party/nixpkgs/pkgs/games/{openra => openra_2019}/packages.nix (100%) create mode 100644 third_party/nixpkgs/pkgs/games/pegasus-frontend/default.nix create mode 100644 third_party/nixpkgs/pkgs/games/r2modman/default.nix delete mode 100644 third_party/nixpkgs/pkgs/games/rare/fix-instance.patch delete mode 100644 third_party/nixpkgs/pkgs/games/scid-vs-pc/0001-put-fonts-in-out.patch create mode 100644 third_party/nixpkgs/pkgs/games/shattered-pixel-dungeon/disable-beryx.patch create mode 100644 third_party/nixpkgs/pkgs/games/shipwright/default.nix create mode 100644 third_party/nixpkgs/pkgs/games/shipwright/lus-install-paths.patch create mode 100644 third_party/nixpkgs/pkgs/games/shipwright/soh-misc-otr-patches.patch create mode 100644 third_party/nixpkgs/pkgs/games/srb2/cmake.patch delete mode 100644 third_party/nixpkgs/pkgs/games/srb2/wadlocation.patch create mode 100644 third_party/nixpkgs/pkgs/games/wolfstoneextract/default.nix create mode 100644 third_party/nixpkgs/pkgs/misc/ananicy-rules-cachyos/default.nix create mode 100644 third_party/nixpkgs/pkgs/misc/drivers/epsonscan2/build.patch create mode 100644 third_party/nixpkgs/pkgs/misc/drivers/epsonscan2/default.nix create mode 100644 third_party/nixpkgs/pkgs/misc/lssecret/default.nix rename third_party/nixpkgs/pkgs/{applications/networking/instant-messengers/webcord/webcord-vencord/vencord-web-extension => misc/vencord}/default.nix (66%) create mode 100644 third_party/nixpkgs/pkgs/misc/vencord/disable-updater-ui.patch rename third_party/nixpkgs/pkgs/{applications/networking/instant-messengers/webcord/webcord-vencord/vencord-web-extension => misc/vencord}/package-lock.json (82%) rename third_party/nixpkgs/pkgs/{applications/networking/instant-messengers/webcord/webcord-vencord/vencord-web-extension => misc/vencord}/replace-git.patch (96%) create mode 100644 third_party/nixpkgs/pkgs/os-specific/darwin/airbuddy/default.nix create mode 100644 third_party/nixpkgs/pkgs/os-specific/darwin/aldente/default.nix delete mode 100644 third_party/nixpkgs/pkgs/os-specific/darwin/apple-source-releases/Libc/825_40_1.nix create mode 100644 third_party/nixpkgs/pkgs/os-specific/darwin/apple-source-releases/libmalloc/default.nix create mode 100644 third_party/nixpkgs/pkgs/os-specific/darwin/apple-source-releases/system_cmds/fix-implicit-declarations.patch create mode 100644 third_party/nixpkgs/pkgs/os-specific/darwin/bartender/default.nix rename third_party/nixpkgs/pkgs/os-specific/darwin/cctools/{darwin-no-memstream.patch => darwin-memstream.patch} (66%) create mode 100644 third_party/nixpkgs/pkgs/os-specific/darwin/cctools/llvm.nix create mode 100644 third_party/nixpkgs/pkgs/os-specific/darwin/coconutbattery/default.nix create mode 100644 third_party/nixpkgs/pkgs/os-specific/darwin/hexfiend/default.nix create mode 100644 third_party/nixpkgs/pkgs/os-specific/darwin/swift-corelibs/0002-Add-missing-launchd-header.patch create mode 100644 third_party/nixpkgs/pkgs/os-specific/darwin/swift-corelibs/0003-Fix-incompatible-pointer-conversion.patch create mode 100644 third_party/nixpkgs/pkgs/os-specific/darwin/swift-corelibs/0004-Fix-Darwin-cmake-build.patch create mode 100644 third_party/nixpkgs/pkgs/os-specific/darwin/swift-corelibs/0005-Fix-framework-installation-path.patch create mode 100644 third_party/nixpkgs/pkgs/os-specific/darwin/swift-corelibs/0006-System-CF-framework-compatibility.patch create mode 100644 third_party/nixpkgs/pkgs/os-specific/darwin/swift-corelibs/0007-Use-nixpkgs-icu.patch create mode 100644 third_party/nixpkgs/pkgs/os-specific/darwin/swift-corelibs/0008-Dont-link-libcurl.patch create mode 100644 third_party/nixpkgs/pkgs/os-specific/darwin/swift-corelibs/pure-corefoundation-hook.sh rename third_party/nixpkgs/pkgs/os-specific/linux/audit/{fix-static.patch => 000-fix-static-attribute-malloc.diff} (100%) create mode 100644 third_party/nixpkgs/pkgs/os-specific/linux/audit/001-ignore-flexible-array.patch create mode 100644 third_party/nixpkgs/pkgs/os-specific/linux/ax99100/kernel-6.4-fix-define-semaphore.patch create mode 100644 third_party/nixpkgs/pkgs/os-specific/linux/cannelloni/default.nix create mode 100644 third_party/nixpkgs/pkgs/os-specific/linux/esdm/default.nix create mode 100644 third_party/nixpkgs/pkgs/os-specific/linux/evdi/0000-fix-drm-path.patch delete mode 100644 third_party/nixpkgs/pkgs/os-specific/linux/firmware/rtl8723bs-firmware/default.nix create mode 100644 third_party/nixpkgs/pkgs/os-specific/linux/game-devices-udev-rules/default.nix delete mode 100644 third_party/nixpkgs/pkgs/os-specific/linux/jfbview/default.nix delete mode 100644 third_party/nixpkgs/pkgs/os-specific/linux/kernel/fix-em-ice-bonding.patch rename third_party/nixpkgs/pkgs/os-specific/linux/kernel/{linux-6.2.nix => linux-6.4.nix} (68%) delete mode 100644 third_party/nixpkgs/pkgs/os-specific/linux/kernel/make-maple-state-reusable-after-mas_empty_area.patch create mode 100644 third_party/nixpkgs/pkgs/os-specific/linux/kvmfr/linux-6-4-compat.patch create mode 100644 third_party/nixpkgs/pkgs/os-specific/linux/lenovo-legion/app.nix create mode 100644 third_party/nixpkgs/pkgs/os-specific/linux/lenovo-legion/default.nix create mode 100644 third_party/nixpkgs/pkgs/os-specific/linux/minimal-bootstrap/binutils/default.nix create mode 100644 third_party/nixpkgs/pkgs/os-specific/linux/minimal-bootstrap/binutils/deterministic.patch create mode 100644 third_party/nixpkgs/pkgs/os-specific/linux/minimal-bootstrap/gcc/2.nix create mode 100644 third_party/nixpkgs/pkgs/os-specific/linux/minimal-bootstrap/glibc/default.nix create mode 100644 third_party/nixpkgs/pkgs/os-specific/linux/minimal-bootstrap/heirloom-devtools/default.nix create mode 100644 third_party/nixpkgs/pkgs/os-specific/linux/minimal-bootstrap/heirloom/cp-no-socket.patch create mode 100644 third_party/nixpkgs/pkgs/os-specific/linux/minimal-bootstrap/heirloom/default.nix create mode 100644 third_party/nixpkgs/pkgs/os-specific/linux/minimal-bootstrap/heirloom/disable-programs.patch create mode 100644 third_party/nixpkgs/pkgs/os-specific/linux/minimal-bootstrap/heirloom/dont-link-lm.patch create mode 100644 third_party/nixpkgs/pkgs/os-specific/linux/minimal-bootstrap/heirloom/langinfo.patch create mode 100644 third_party/nixpkgs/pkgs/os-specific/linux/minimal-bootstrap/heirloom/meslibc-support.patch create mode 100644 third_party/nixpkgs/pkgs/os-specific/linux/minimal-bootstrap/heirloom/musl.h create mode 100644 third_party/nixpkgs/pkgs/os-specific/linux/minimal-bootstrap/heirloom/proctab.c create mode 100644 third_party/nixpkgs/pkgs/os-specific/linux/minimal-bootstrap/heirloom/proctab.patch create mode 100644 third_party/nixpkgs/pkgs/os-specific/linux/minimal-bootstrap/heirloom/strcoll.patch create mode 100644 third_party/nixpkgs/pkgs/os-specific/linux/minimal-bootstrap/heirloom/stubs.h create mode 100644 third_party/nixpkgs/pkgs/os-specific/linux/minimal-bootstrap/heirloom/sysconf.patch create mode 100644 third_party/nixpkgs/pkgs/os-specific/linux/minimal-bootstrap/heirloom/tcc-empty-ar.patch create mode 100644 third_party/nixpkgs/pkgs/os-specific/linux/minimal-bootstrap/heirloom/termios.patch create mode 100644 third_party/nixpkgs/pkgs/os-specific/linux/minimal-bootstrap/heirloom/utime.patch create mode 100644 third_party/nixpkgs/pkgs/os-specific/linux/minimal-bootstrap/heirloom/vprintf.patch create mode 100644 third_party/nixpkgs/pkgs/os-specific/linux/minimal-bootstrap/linux-headers/default.nix create mode 100644 third_party/nixpkgs/pkgs/os-specific/linux/minimal-bootstrap/xz/default.nix create mode 100644 third_party/nixpkgs/pkgs/os-specific/linux/minimal-bootstrap/xz/stubs.h create mode 100644 third_party/nixpkgs/pkgs/os-specific/linux/pam_dp9ik/default.nix create mode 100644 third_party/nixpkgs/pkgs/os-specific/linux/pam_rssh/default.nix create mode 100644 third_party/nixpkgs/pkgs/os-specific/linux/plymouth/add-runtime-plugin-path.patch create mode 100644 third_party/nixpkgs/pkgs/os-specific/linux/plymouth/dont-create-broken-symlink.patch delete mode 100644 third_party/nixpkgs/pkgs/os-specific/linux/rtl8723bs/default.nix delete mode 100644 third_party/nixpkgs/pkgs/os-specific/linux/sch_cake/default.nix rename third_party/nixpkgs/pkgs/os-specific/linux/systemd/{0005-Add-some-NixOS-specific-unit-directories.patch => 0004-Add-some-NixOS-specific-unit-directories.patch} (100%) delete mode 100644 third_party/nixpkgs/pkgs/os-specific/linux/systemd/0004-fsck-look-for-fsck-binary-not-just-in-sbin.patch rename third_party/nixpkgs/pkgs/os-specific/linux/systemd/{0006-Get-rid-of-a-useless-message-in-user-sessions.patch => 0005-Get-rid-of-a-useless-message-in-user-sessions.patch} (91%) rename third_party/nixpkgs/pkgs/os-specific/linux/systemd/{0007-hostnamed-localed-timedated-disable-methods-that-cha.patch => 0006-hostnamed-localed-timedated-disable-methods-that-cha.patch} (100%) rename third_party/nixpkgs/pkgs/os-specific/linux/systemd/{0008-Fix-hwdb-paths.patch => 0007-Fix-hwdb-paths.patch} (100%) rename third_party/nixpkgs/pkgs/os-specific/linux/systemd/{0009-Change-usr-share-zoneinfo-to-etc-zoneinfo.patch => 0008-Change-usr-share-zoneinfo-to-etc-zoneinfo.patch} (98%) rename third_party/nixpkgs/pkgs/os-specific/linux/systemd/{0010-localectl-use-etc-X11-xkb-for-list-x11.patch => 0009-localectl-use-etc-X11-xkb-for-list-x11.patch} (100%) rename third_party/nixpkgs/pkgs/os-specific/linux/systemd/{0011-build-don-t-create-statedir-and-don-t-touch-prefixdi.patch => 0010-build-don-t-create-statedir-and-don-t-touch-prefixdi.patch} (100%) rename third_party/nixpkgs/pkgs/os-specific/linux/systemd/{0012-add-rootprefix-to-lookup-dir-paths.patch => 0011-add-rootprefix-to-lookup-dir-paths.patch} (100%) rename third_party/nixpkgs/pkgs/os-specific/linux/systemd/{0013-systemd-shutdown-execute-scripts-in-etc-systemd-syst.patch => 0012-systemd-shutdown-execute-scripts-in-etc-systemd-syst.patch} (89%) rename third_party/nixpkgs/pkgs/os-specific/linux/systemd/{0014-systemd-sleep-execute-scripts-in-etc-systemd-system-.patch => 0013-systemd-sleep-execute-scripts-in-etc-systemd-system-.patch} (100%) rename third_party/nixpkgs/pkgs/os-specific/linux/systemd/{0015-path-util.h-add-placeholder-for-DEFAULT_PATH_NORMAL.patch => 0014-path-util.h-add-placeholder-for-DEFAULT_PATH_NORMAL.patch} (100%) rename third_party/nixpkgs/pkgs/os-specific/linux/systemd/{0016-pkg-config-derive-prefix-from-prefix.patch => 0015-pkg-config-derive-prefix-from-prefix.patch} (100%) rename third_party/nixpkgs/pkgs/os-specific/linux/systemd/{0017-inherit-systemd-environment-when-calling-generators.patch => 0016-inherit-systemd-environment-when-calling-generators.patch} (94%) rename third_party/nixpkgs/pkgs/os-specific/linux/systemd/{0018-core-don-t-taint-on-unmerged-usr.patch => 0017-core-don-t-taint-on-unmerged-usr.patch} (92%) rename third_party/nixpkgs/pkgs/os-specific/linux/systemd/{0019-tpm2_context_init-fix-driver-name-checking.patch => 0018-tpm2_context_init-fix-driver-name-checking.patch} (100%) create mode 100644 third_party/nixpkgs/pkgs/os-specific/linux/systemd/0019-bootctl-also-print-efi-files-not-owned-by-systemd-in.patch create mode 100644 third_party/nixpkgs/pkgs/os-specific/linux/trelay/Makefile create mode 100644 third_party/nixpkgs/pkgs/os-specific/linux/trelay/default.nix create mode 100644 third_party/nixpkgs/pkgs/os-specific/windows/mcfgthreads/pre_gcc_13.nix create mode 100644 third_party/nixpkgs/pkgs/servers/ankisyncd/Cargo.lock rename third_party/nixpkgs/pkgs/{development/python-modules => servers}/apache-airflow/0001-Revert-fix-yarn-warning-from-d3-color-27139.patch (100%) create mode 100644 third_party/nixpkgs/pkgs/servers/apache-airflow/default.nix rename third_party/nixpkgs/pkgs/{development/python-modules => servers}/apache-airflow/package.json (84%) create mode 100644 third_party/nixpkgs/pkgs/servers/apache-airflow/providers.nix rename third_party/nixpkgs/pkgs/{development/python-modules/apache-airflow/default.nix => servers/apache-airflow/python-package.nix} (94%) rename third_party/nixpkgs/pkgs/{development/python-modules => servers}/apache-airflow/update-providers.py (98%) rename third_party/nixpkgs/pkgs/{development/python-modules => servers}/apache-airflow/yarn.lock (85%) rename third_party/nixpkgs/pkgs/{development/python-modules => servers}/apache-airflow/yarn.nix (86%) create mode 100644 third_party/nixpkgs/pkgs/servers/dns/acme-dns/default.nix delete mode 100644 third_party/nixpkgs/pkgs/servers/exhibitor/default.nix delete mode 100644 third_party/nixpkgs/pkgs/servers/foundationdb/patches/clang-libcxx.patch delete mode 100644 third_party/nixpkgs/pkgs/servers/foundationdb/patches/fix-scm-version.patch delete mode 100644 third_party/nixpkgs/pkgs/servers/foundationdb/patches/gcc-fixes.patch delete mode 100644 third_party/nixpkgs/pkgs/servers/foundationdb/patches/include-fixes-6.0.patch delete mode 100644 third_party/nixpkgs/pkgs/servers/foundationdb/patches/ldflags-5.1.patch delete mode 100644 third_party/nixpkgs/pkgs/servers/foundationdb/patches/ldflags-5.2.patch delete mode 100644 third_party/nixpkgs/pkgs/servers/foundationdb/patches/ldflags-6.0.patch delete mode 100644 third_party/nixpkgs/pkgs/servers/foundationdb/patches/stdexcept-6.1.patch delete mode 100644 third_party/nixpkgs/pkgs/servers/foundationdb/patches/suppress-clang-warnings.patch delete mode 100644 third_party/nixpkgs/pkgs/servers/foundationdb/test-list.txt delete mode 100644 third_party/nixpkgs/pkgs/servers/foundationdb/vsmake.nix create mode 100644 third_party/nixpkgs/pkgs/servers/gotosocial/default.nix create mode 100644 third_party/nixpkgs/pkgs/servers/guacamole-client/default.nix create mode 100644 third_party/nixpkgs/pkgs/servers/guacamole-server/default.nix create mode 100644 third_party/nixpkgs/pkgs/servers/hiraeth/default.nix create mode 100644 third_party/nixpkgs/pkgs/servers/homepage-dashboard/default.nix delete mode 100644 third_party/nixpkgs/pkgs/servers/irrd/default.nix delete mode 100644 third_party/nixpkgs/pkgs/servers/irrd/poetry-git-overlay.nix delete mode 100644 third_party/nixpkgs/pkgs/servers/irrd/poetry.lock delete mode 100644 third_party/nixpkgs/pkgs/servers/irrd/pyproject.toml delete mode 100755 third_party/nixpkgs/pkgs/servers/irrd/update create mode 100644 third_party/nixpkgs/pkgs/servers/lenpaste/default.nix create mode 100644 third_party/nixpkgs/pkgs/servers/mail/mailpit/default.nix create mode 100644 third_party/nixpkgs/pkgs/servers/mail/spamassassin/sa_compile-use-perl5lib.patch create mode 100644 third_party/nixpkgs/pkgs/servers/mail/spamassassin/satest-no-clean-path.patch create mode 100644 third_party/nixpkgs/pkgs/servers/matrix-synapse/sliding-sync/default.nix create mode 100644 third_party/nixpkgs/pkgs/servers/monitoring/grafana/plugins/grafana-clickhouse-datasource/default.nix create mode 100644 third_party/nixpkgs/pkgs/servers/monitoring/prometheus/graphite-exporter.nix create mode 100644 third_party/nixpkgs/pkgs/servers/monitoring/prometheus/junos-czerwonk-exporter.nix create mode 100644 third_party/nixpkgs/pkgs/servers/monitoring/prometheus/php-fpm-exporter.nix create mode 100644 third_party/nixpkgs/pkgs/servers/mqtt/flashmq/default.nix create mode 100644 third_party/nixpkgs/pkgs/servers/networking/rustus/default.nix create mode 100644 third_party/nixpkgs/pkgs/servers/nextcloud/packages/27.json delete mode 100644 third_party/nixpkgs/pkgs/servers/nextcloud/patches/v24/0001-Setup-remove-custom-dbuser-creation-behavior.patch delete mode 100644 third_party/nixpkgs/pkgs/servers/nosql/mongodb/asio-no-experimental-string-view-4-2.patch delete mode 100644 third_party/nixpkgs/pkgs/servers/nosql/mongodb/asio-no-experimental-string-view.patch create mode 100644 third_party/nixpkgs/pkgs/servers/nosql/mongodb/fix-build-with-boost-1.79-5_0-linux.patch delete mode 100644 third_party/nixpkgs/pkgs/servers/nosql/mongodb/forget-build-dependencies-3-4.patch delete mode 100644 third_party/nixpkgs/pkgs/servers/nosql/mongodb/forget-build-dependencies-4-2.patch delete mode 100644 third_party/nixpkgs/pkgs/servers/nosql/mongodb/forget-build-dependencies.patch delete mode 100644 third_party/nixpkgs/pkgs/servers/nosql/mongodb/mozjs-45_fix-3-byte-opcode.patch delete mode 100644 third_party/nixpkgs/pkgs/servers/nosql/mongodb/patches/mongodb-4.0-glibc-2.34.patch delete mode 100644 third_party/nixpkgs/pkgs/servers/nosql/mongodb/v4_2.nix create mode 100644 third_party/nixpkgs/pkgs/servers/nosql/questdb/default.nix create mode 100644 third_party/nixpkgs/pkgs/servers/owntracks-recorder/default.nix create mode 100644 third_party/nixpkgs/pkgs/servers/photofield/default.nix create mode 100644 third_party/nixpkgs/pkgs/servers/pocketbase/remove-update-method.patch create mode 100644 third_party/nixpkgs/pkgs/servers/rinetd/default.nix create mode 100644 third_party/nixpkgs/pkgs/servers/scaphandre/default.nix rename third_party/nixpkgs/pkgs/{tools/misc/turbo => servers/search/quickwit}/Cargo.lock (53%) create mode 100644 third_party/nixpkgs/pkgs/servers/search/quickwit/default.nix rename third_party/nixpkgs/pkgs/servers/search/{zinc => zincsearch}/default.nix (58%) create mode 100644 third_party/nixpkgs/pkgs/servers/sip/kamailio/default.nix create mode 100644 third_party/nixpkgs/pkgs/servers/sip/kamailio/test-kamailio-bin/default.nix create mode 100644 third_party/nixpkgs/pkgs/servers/sql/gluesql/default.nix create mode 100644 third_party/nixpkgs/pkgs/servers/sql/postgresql/ext/apache_datasketches.nix create mode 100644 third_party/nixpkgs/pkgs/servers/sql/postgresql/locale-binary-path.patch create mode 100644 third_party/nixpkgs/pkgs/servers/web-apps/anuko-time-tracker/default.nix create mode 100755 third_party/nixpkgs/pkgs/servers/web-apps/lemmy/update.py delete mode 100755 third_party/nixpkgs/pkgs/servers/web-apps/lemmy/update.sh create mode 100644 third_party/nixpkgs/pkgs/servers/web-apps/livebook/default.nix delete mode 100644 third_party/nixpkgs/pkgs/servers/web-apps/outline/sequelize-command.patch create mode 100644 third_party/nixpkgs/pkgs/servers/web-apps/pict-rs/0.3.nix rename third_party/nixpkgs/pkgs/servers/web-apps/pict-rs/{Cargo.lock => Cargo-0.3.lock} (100%) create mode 100755 third_party/nixpkgs/pkgs/servers/web-apps/pixelfed/update.sh create mode 100644 third_party/nixpkgs/pkgs/servers/web-apps/searx/fix-flask-babel-3.0.patch create mode 100644 third_party/nixpkgs/pkgs/servers/web-apps/wiki-js/drop-node-check.patch rename third_party/nixpkgs/pkgs/{applications/networking/instant-messengers/deltachat-desktop => servers/windmill}/Cargo.lock (63%) create mode 100644 third_party/nixpkgs/pkgs/servers/windmill/default.nix create mode 100644 third_party/nixpkgs/pkgs/servers/windmill/run.bash.config.proto.patch create mode 100644 third_party/nixpkgs/pkgs/servers/windmill/run.go.config.proto.patch create mode 100644 third_party/nixpkgs/pkgs/servers/windmill/run.python3.config.proto.patch create mode 100644 third_party/nixpkgs/pkgs/servers/windmill/swagger-cli.patch delete mode 100644 third_party/nixpkgs/pkgs/servers/x11/xorg/xdm-fix-header-inclusion.patch create mode 100644 third_party/nixpkgs/pkgs/shells/hishtory/default.nix create mode 100644 third_party/nixpkgs/pkgs/shells/nushell/plugins/gstat.nix create mode 100644 third_party/nixpkgs/pkgs/shells/rc-9front/default.nix create mode 100644 third_party/nixpkgs/pkgs/shells/rc-9front/path.patch create mode 100644 third_party/nixpkgs/pkgs/shells/xonsh/wrapper.nix create mode 100644 third_party/nixpkgs/pkgs/shells/zsh/antidote/default.nix create mode 100644 third_party/nixpkgs/pkgs/stdenv/darwin/README.md create mode 100644 third_party/nixpkgs/pkgs/test/dotnet/default.nix create mode 100644 third_party/nixpkgs/pkgs/test/dotnet/project-references/application/Application.cs create mode 100644 third_party/nixpkgs/pkgs/test/dotnet/project-references/application/Application.csproj create mode 100644 third_party/nixpkgs/pkgs/test/dotnet/project-references/default.nix create mode 100644 third_party/nixpkgs/pkgs/test/dotnet/project-references/library/Library.cs create mode 100644 third_party/nixpkgs/pkgs/test/dotnet/project-references/library/Library.csproj create mode 100644 third_party/nixpkgs/pkgs/test/dotnet/project-references/nuget-deps.nix create mode 100644 third_party/nixpkgs/pkgs/test/haskell/incremental/default.nix delete mode 100644 third_party/nixpkgs/pkgs/tools/X11/xpra/0005-support-for-30-bit-depth-in-dummy-driver.patch create mode 100644 third_party/nixpkgs/pkgs/tools/admin/awsume/default.nix create mode 100644 third_party/nixpkgs/pkgs/tools/admin/granted/default.nix create mode 100644 third_party/nixpkgs/pkgs/tools/admin/lxd/package.json create mode 100644 third_party/nixpkgs/pkgs/tools/admin/lxd/ui.nix create mode 100644 third_party/nixpkgs/pkgs/tools/admin/lxd/wrapper.nix create mode 100644 third_party/nixpkgs/pkgs/tools/admin/netbox2netshot/default.nix create mode 100644 third_party/nixpkgs/pkgs/tools/admin/pbm/default.nix create mode 100755 third_party/nixpkgs/pkgs/tools/admin/pgadmin/update.sh create mode 100644 third_party/nixpkgs/pkgs/tools/admin/pgadmin/yarn.lock create mode 100644 third_party/nixpkgs/pkgs/tools/admin/pulsarctl/default.nix create mode 100644 third_party/nixpkgs/pkgs/tools/admin/simplotask/default.nix create mode 100644 third_party/nixpkgs/pkgs/tools/admin/tlsclient/default.nix create mode 100644 third_party/nixpkgs/pkgs/tools/admin/try/default.nix create mode 100644 third_party/nixpkgs/pkgs/tools/archivers/quickbms/0002-disable-openssl.patch create mode 100644 third_party/nixpkgs/pkgs/tools/archivers/unzip/implicit-declarations-fix.patch delete mode 100644 third_party/nixpkgs/pkgs/tools/archivers/xtrt/default.nix create mode 100644 third_party/nixpkgs/pkgs/tools/audio/beets/patches/fix-embedart-imagick-7.1.1-12.patch create mode 100644 third_party/nixpkgs/pkgs/tools/audio/beets/patches/unstable-bash-completion-always-print.patch create mode 100644 third_party/nixpkgs/pkgs/tools/audio/botamusique/catch-invalid-versions.patch create mode 100644 third_party/nixpkgs/pkgs/tools/audio/catnip-gtk4/default.nix create mode 100644 third_party/nixpkgs/pkgs/tools/audio/catnip/default.nix create mode 100644 third_party/nixpkgs/pkgs/tools/audio/mpd-notification/default.nix rename third_party/nixpkgs/pkgs/tools/audio/{larynx => piper}/default.nix (69%) create mode 100644 third_party/nixpkgs/pkgs/tools/audio/tidal-dl/default.nix create mode 100644 third_party/nixpkgs/pkgs/tools/audio/whisper-ctranslate2/default.nix create mode 100644 third_party/nixpkgs/pkgs/tools/audio/wyoming/faster-whisper-entrypoint.patch create mode 100644 third_party/nixpkgs/pkgs/tools/audio/wyoming/faster-whisper.nix create mode 100644 third_party/nixpkgs/pkgs/tools/audio/wyoming/piper-entrypoint.patch create mode 100644 third_party/nixpkgs/pkgs/tools/audio/wyoming/piper.nix create mode 100644 third_party/nixpkgs/pkgs/tools/backup/awsbck/default.nix rename third_party/nixpkgs/pkgs/{development/tools/reindeer => tools/backup/conserve}/Cargo.lock (66%) create mode 100644 third_party/nixpkgs/pkgs/tools/backup/conserve/default.nix create mode 100644 third_party/nixpkgs/pkgs/tools/backup/sigtop/default.nix create mode 100644 third_party/nixpkgs/pkgs/tools/cd-dvd/iat/default.nix create mode 100644 third_party/nixpkgs/pkgs/tools/dotool/default.nix create mode 100644 third_party/nixpkgs/pkgs/tools/dotool/fix-paths.patch delete mode 100644 third_party/nixpkgs/pkgs/tools/filesystems/9pfs/fix-darwin-build.patch rename third_party/nixpkgs/pkgs/tools/{security/biscuit-cli => filesystems/bcachefs-tools}/Cargo.lock (59%) create mode 100644 third_party/nixpkgs/pkgs/tools/filesystems/dysk/default.nix rename third_party/nixpkgs/pkgs/{os-specific/linux => tools/filesystems}/erofs-utils/default.nix (60%) create mode 100644 third_party/nixpkgs/pkgs/tools/filesystems/fuse-archive/default.nix delete mode 100644 third_party/nixpkgs/pkgs/tools/filesystems/lfs/default.nix create mode 100644 third_party/nixpkgs/pkgs/tools/filesystems/mountain-duck/default.nix delete mode 100644 third_party/nixpkgs/pkgs/tools/filesystems/reiserfsprogs/reiserfsprogs-ar-fix.patch create mode 100644 third_party/nixpkgs/pkgs/tools/filesystems/ssdfs-utils/default.nix create mode 100755 third_party/nixpkgs/pkgs/tools/filesystems/ssdfs-utils/update.sh create mode 100644 third_party/nixpkgs/pkgs/tools/games/dualsensectl/default.nix create mode 100644 third_party/nixpkgs/pkgs/tools/games/mymcplus/default.nix create mode 100755 third_party/nixpkgs/pkgs/tools/games/scarab/update.sh create mode 100644 third_party/nixpkgs/pkgs/tools/games/steamback/default.nix create mode 100644 third_party/nixpkgs/pkgs/tools/games/trigger-control/default.nix create mode 100644 third_party/nixpkgs/pkgs/tools/graphics/cgif/default.nix create mode 100644 third_party/nixpkgs/pkgs/tools/graphics/deqp-runner/default.nix delete mode 100644 third_party/nixpkgs/pkgs/tools/graphics/findimagedupes/default.nix delete mode 100644 third_party/nixpkgs/pkgs/tools/graphics/luxcorerender/default.nix create mode 100644 third_party/nixpkgs/pkgs/tools/graphics/maskromtool/default.nix create mode 100644 third_party/nixpkgs/pkgs/tools/graphics/vulkan-tools-lunarg/add-missing-macro-definition.patch create mode 100644 third_party/nixpkgs/pkgs/tools/graphics/vulkan-tools-lunarg/skip-qnx-extension.patch create mode 100644 third_party/nixpkgs/pkgs/tools/misc/basez/default.nix create mode 100644 third_party/nixpkgs/pkgs/tools/misc/bkt/default.nix create mode 100644 third_party/nixpkgs/pkgs/tools/misc/caffeine/default.nix create mode 100644 third_party/nixpkgs/pkgs/tools/misc/charasay/default.nix delete mode 100644 third_party/nixpkgs/pkgs/tools/misc/coreutils/disable-seek-hole.patch create mode 100644 third_party/nixpkgs/pkgs/tools/misc/dotacat/default.nix create mode 100644 third_party/nixpkgs/pkgs/tools/misc/eludris/default.nix create mode 100644 third_party/nixpkgs/pkgs/tools/misc/encpipe/default.nix delete mode 100644 third_party/nixpkgs/pkgs/tools/misc/exa/update-cargo-lock.diff create mode 100644 third_party/nixpkgs/pkgs/tools/misc/fclones/gui.nix create mode 100644 third_party/nixpkgs/pkgs/tools/misc/fedifetcher/default.nix create mode 100644 third_party/nixpkgs/pkgs/tools/misc/fiano/default.nix create mode 100644 third_party/nixpkgs/pkgs/tools/misc/flowgger/default.nix create mode 100644 third_party/nixpkgs/pkgs/tools/misc/fre/default.nix create mode 100644 third_party/nixpkgs/pkgs/tools/misc/fuc/add_missing_feature.patch create mode 100644 third_party/nixpkgs/pkgs/tools/misc/fuc/default.nix create mode 100644 third_party/nixpkgs/pkgs/tools/misc/gitrs/default.nix create mode 100644 third_party/nixpkgs/pkgs/tools/misc/go-ios/default.nix create mode 100644 third_party/nixpkgs/pkgs/tools/misc/grub/add-hidden-menu-entries.patch create mode 100644 third_party/nixpkgs/pkgs/tools/misc/hashpump/default.nix create mode 100644 third_party/nixpkgs/pkgs/tools/misc/hdfview/disable-mac-signing.patch create mode 100644 third_party/nixpkgs/pkgs/tools/misc/ical2orgpy/default.nix create mode 100644 third_party/nixpkgs/pkgs/tools/misc/invoice/default.nix create mode 100644 third_party/nixpkgs/pkgs/tools/misc/kicli/default.nix create mode 100644 third_party/nixpkgs/pkgs/tools/misc/kitty-img/default.nix create mode 100644 third_party/nixpkgs/pkgs/tools/misc/lavat/default.nix create mode 100644 third_party/nixpkgs/pkgs/tools/misc/lerpn/default.nix create mode 100644 third_party/nixpkgs/pkgs/tools/misc/lighthouse-steamvr/Cargo.lock create mode 100644 third_party/nixpkgs/pkgs/tools/misc/lineselect/default.nix create mode 100644 third_party/nixpkgs/pkgs/tools/misc/mdslides/default.nix create mode 100644 third_party/nixpkgs/pkgs/tools/misc/mermaid-filter/default.nix create mode 100644 third_party/nixpkgs/pkgs/tools/misc/ondir/default.nix create mode 100644 third_party/nixpkgs/pkgs/tools/misc/pfetch-rs/default.nix create mode 100644 third_party/nixpkgs/pkgs/tools/misc/pre-commit-hook-ensure-sops/default.nix create mode 100644 third_party/nixpkgs/pkgs/tools/misc/qrscan/default.nix create mode 100644 third_party/nixpkgs/pkgs/tools/misc/qt6ct/default.nix create mode 100644 third_party/nixpkgs/pkgs/tools/misc/remote-exec/default.nix create mode 100644 third_party/nixpkgs/pkgs/tools/misc/rtx/default.nix create mode 100644 third_party/nixpkgs/pkgs/tools/misc/rustypaste-cli/default.nix create mode 100644 third_party/nixpkgs/pkgs/tools/misc/sensible-utils/default.nix create mode 100644 third_party/nixpkgs/pkgs/tools/misc/spacer/default.nix create mode 100644 third_party/nixpkgs/pkgs/tools/misc/tailer/default.nix create mode 100644 third_party/nixpkgs/pkgs/tools/misc/tgpt/default.nix create mode 100644 third_party/nixpkgs/pkgs/tools/misc/ugs/default.nix create mode 100644 third_party/nixpkgs/pkgs/tools/misc/url-parser/default.nix create mode 100644 third_party/nixpkgs/pkgs/tools/misc/vrc-get/default.nix create mode 100644 third_party/nixpkgs/pkgs/tools/misc/whatsapp-chat-exporter/default.nix create mode 100644 third_party/nixpkgs/pkgs/tools/networking/ain/default.nix create mode 100644 third_party/nixpkgs/pkgs/tools/networking/containerlab/default.nix delete mode 100644 third_party/nixpkgs/pkgs/tools/networking/ddclient/default.nix create mode 100644 third_party/nixpkgs/pkgs/tools/networking/httprobe/default.nix create mode 100644 third_party/nixpkgs/pkgs/tools/networking/iperf3d/default.nix create mode 100644 third_party/nixpkgs/pkgs/tools/networking/keama/default.nix create mode 100644 third_party/nixpkgs/pkgs/tools/networking/labctl/default.nix create mode 100644 third_party/nixpkgs/pkgs/tools/networking/mailctl/default.nix create mode 100644 third_party/nixpkgs/pkgs/tools/networking/meek/default.nix create mode 100644 third_party/nixpkgs/pkgs/tools/networking/mockoon/default.nix create mode 100644 third_party/nixpkgs/pkgs/tools/networking/mqttmultimeter/default.nix create mode 100644 third_party/nixpkgs/pkgs/tools/networking/mqttmultimeter/deps.nix create mode 100644 third_party/nixpkgs/pkgs/tools/networking/pacproxy/default.nix create mode 100644 third_party/nixpkgs/pkgs/tools/networking/piknik/default.nix create mode 100644 third_party/nixpkgs/pkgs/tools/networking/polygon-cli/default.nix create mode 100644 third_party/nixpkgs/pkgs/tools/networking/sitespeed-io/default.nix create mode 100644 third_party/nixpkgs/pkgs/tools/networking/softnet/default.nix create mode 100644 third_party/nixpkgs/pkgs/tools/networking/swagger-cli/default.nix create mode 100644 third_party/nixpkgs/pkgs/tools/networking/transmission-rss/default.nix create mode 100644 third_party/nixpkgs/pkgs/tools/networking/transmission-rss/update-cargo-lock-version.patch rename third_party/nixpkgs/pkgs/{applications/editors/vim/plugins/sniprun => tools/networking/tuic}/Cargo.lock (55%) create mode 100644 third_party/nixpkgs/pkgs/tools/networking/tuic/default.nix create mode 100644 third_party/nixpkgs/pkgs/tools/networking/tunwg/default.nix create mode 100644 third_party/nixpkgs/pkgs/tools/networking/xrootd/fetchxrd.nix create mode 100755 third_party/nixpkgs/pkgs/tools/networking/zrok/update.sh create mode 100644 third_party/nixpkgs/pkgs/tools/nix/gridlock/default.nix delete mode 100644 third_party/nixpkgs/pkgs/tools/nix/nixdoc/Cargo.lock create mode 100644 third_party/nixpkgs/pkgs/tools/nix/nixpkgs-lint/default.nix create mode 100644 third_party/nixpkgs/pkgs/tools/package-management/dnf5/default.nix create mode 100644 third_party/nixpkgs/pkgs/tools/package-management/fortran-fpm/default.nix create mode 100644 third_party/nixpkgs/pkgs/tools/package-management/pacup/default.nix rename third_party/nixpkgs/pkgs/{development/python-modules/poetry-plugin-export/default.nix => tools/package-management/poetry/plugins/poetry-plugin-export.nix} (90%) create mode 100644 third_party/nixpkgs/pkgs/tools/security/age-plugin-tpm/default.nix create mode 100644 third_party/nixpkgs/pkgs/tools/security/biscuit-cli/version-0.4.0.patch create mode 100644 third_party/nixpkgs/pkgs/tools/security/bloodhound-py/default.nix create mode 100644 third_party/nixpkgs/pkgs/tools/security/certsync/default.nix create mode 100644 third_party/nixpkgs/pkgs/tools/security/chainsaw/Cargo.lock create mode 100644 third_party/nixpkgs/pkgs/tools/security/chainsaw/default.nix create mode 100644 third_party/nixpkgs/pkgs/tools/security/coze/default.nix create mode 100644 third_party/nixpkgs/pkgs/tools/security/creds/default.nix create mode 100644 third_party/nixpkgs/pkgs/tools/security/das/default.nix create mode 100644 third_party/nixpkgs/pkgs/tools/security/deepsecrets/default.nix delete mode 100644 third_party/nixpkgs/pkgs/tools/security/doas/disable-shared.patch create mode 100644 third_party/nixpkgs/pkgs/tools/security/donkey/default.nix create mode 100644 third_party/nixpkgs/pkgs/tools/security/frida-tools/default.nix create mode 100644 third_party/nixpkgs/pkgs/tools/security/fscan/default.nix create mode 100644 third_party/nixpkgs/pkgs/tools/security/goblob/default.nix create mode 100644 third_party/nixpkgs/pkgs/tools/security/jsluice/default.nix create mode 100644 third_party/nixpkgs/pkgs/tools/security/lil-pwny/default.nix create mode 100644 third_party/nixpkgs/pkgs/tools/security/msldapdump/default.nix create mode 100644 third_party/nixpkgs/pkgs/tools/security/mx-takeover/default.nix create mode 100644 third_party/nixpkgs/pkgs/tools/security/nbutools/default.nix create mode 100644 third_party/nixpkgs/pkgs/tools/security/networkminer/default.nix create mode 100644 third_party/nixpkgs/pkgs/tools/security/networkminer/deps.nix create mode 100644 third_party/nixpkgs/pkgs/tools/security/networkminer/xdg-dirs.patch delete mode 100644 third_party/nixpkgs/pkgs/tools/security/nmap/zenmap.patch create mode 100644 third_party/nixpkgs/pkgs/tools/security/noseyparker/default.nix create mode 100644 third_party/nixpkgs/pkgs/tools/security/notation/default.nix create mode 100644 third_party/nixpkgs/pkgs/tools/security/passage/darwin-getopt-path.patch create mode 100644 third_party/nixpkgs/pkgs/tools/security/pentestgpt/default.nix create mode 100644 third_party/nixpkgs/pkgs/tools/security/proxmark3/darwin-always-gui.patch create mode 100644 third_party/nixpkgs/pkgs/tools/security/responder/default.nix create mode 100644 third_party/nixpkgs/pkgs/tools/security/rnp/sexp_sexpp_rename.patch create mode 100644 third_party/nixpkgs/pkgs/tools/security/rnp/unbundle-sexpp.patch create mode 100644 third_party/nixpkgs/pkgs/tools/security/s5/default.nix create mode 100644 third_party/nixpkgs/pkgs/tools/security/sequoia-sq/default.nix create mode 100644 third_party/nixpkgs/pkgs/tools/security/sequoia-sqop/default.nix create mode 100644 third_party/nixpkgs/pkgs/tools/security/sequoia-sqv/default.nix delete mode 100644 third_party/nixpkgs/pkgs/tools/security/sequoia/default.nix delete mode 100644 third_party/nixpkgs/pkgs/tools/security/sget/default.nix create mode 100644 third_party/nixpkgs/pkgs/tools/security/zgrab2/fix-go-version-error.patch delete mode 100644 third_party/nixpkgs/pkgs/tools/security/zmap/cmake-json-0.14-fix.patch create mode 100644 third_party/nixpkgs/pkgs/tools/system/dool/default.nix create mode 100644 third_party/nixpkgs/pkgs/tools/system/epilys-bb/default.nix create mode 100644 third_party/nixpkgs/pkgs/tools/system/lact/default.nix create mode 100644 third_party/nixpkgs/pkgs/tools/system/lact/pci-ids.patch create mode 100644 third_party/nixpkgs/pkgs/tools/system/mediawriter/default.nix create mode 100644 third_party/nixpkgs/pkgs/tools/text/anew/default.nix delete mode 100644 third_party/nixpkgs/pkgs/tools/text/diffutils/fix-diff-D.patch create mode 100644 third_party/nixpkgs/pkgs/tools/text/djot-js/default.nix delete mode 100644 third_party/nixpkgs/pkgs/tools/text/gawk/darwin-no-pma.patch delete mode 100644 third_party/nixpkgs/pkgs/tools/text/gnugrep/sigsegv-loongarch.patch create mode 100644 third_party/nixpkgs/pkgs/tools/text/gtree/default.nix create mode 100644 third_party/nixpkgs/pkgs/tools/text/jotdown/default.nix create mode 100644 third_party/nixpkgs/pkgs/tools/text/languagetool-rust/default.nix create mode 100644 third_party/nixpkgs/pkgs/tools/text/mdbook-toc/default.nix create mode 100644 third_party/nixpkgs/pkgs/tools/text/rare-regex/default.nix create mode 100644 third_party/nixpkgs/pkgs/tools/text/readability-cli/default.nix create mode 100644 third_party/nixpkgs/pkgs/tools/text/repgrep/default.nix create mode 100644 third_party/nixpkgs/pkgs/tools/text/riffdiff/default.nix create mode 100644 third_party/nixpkgs/pkgs/tools/text/sgml/opensp/fix-register-storage-class.patch create mode 100644 third_party/nixpkgs/pkgs/tools/text/tml/default.nix create mode 100644 third_party/nixpkgs/pkgs/tools/text/topfew/default.nix create mode 100644 third_party/nixpkgs/pkgs/tools/text/unfurl/default.nix create mode 100644 third_party/nixpkgs/pkgs/tools/text/xml/xq/default.nix delete mode 100755 third_party/nixpkgs/pkgs/tools/typesetting/tex/texlive/fixHashes.awk create mode 100644 third_party/nixpkgs/pkgs/tools/typesetting/tex/texlive/fixed-hashes.nix delete mode 100644 third_party/nixpkgs/pkgs/tools/typesetting/tex/texlive/fixedHashes.nix create mode 100644 third_party/nixpkgs/pkgs/tools/typesetting/tex/texlive/generate-fixed-hashes.nix delete mode 100644 third_party/nixpkgs/pkgs/tools/typesetting/typst-fmt/default.nix create mode 100644 third_party/nixpkgs/pkgs/tools/typesetting/typst-live/default.nix rename third_party/nixpkgs/pkgs/tools/typesetting/{typst-fmt => typstfmt}/Cargo.lock (67%) create mode 100644 third_party/nixpkgs/pkgs/tools/typesetting/typstfmt/default.nix create mode 100644 third_party/nixpkgs/pkgs/tools/video/recyclarr/default.nix create mode 100755 third_party/nixpkgs/pkgs/tools/video/recyclarr/update.sh create mode 100644 third_party/nixpkgs/pkgs/tools/video/yaydl/default.nix delete mode 100644 third_party/nixpkgs/pkgs/tools/virtualization/cloud-init/0003-vultr-remove-check_route-check.patch rename third_party/nixpkgs/pkgs/tools/virtualization/{shipyard => jumppad}/default.nix (55%) create mode 100644 third_party/nixpkgs/pkgs/tools/virtualization/multipass/cmake_no_fetch.patch create mode 100644 third_party/nixpkgs/pkgs/tools/virtualization/multipass/lxd_socket_path.patch create mode 100644 third_party/nixpkgs/pkgs/tools/wayland/wl-clip-persist/default.nix create mode 100644 third_party/nixpkgs/pkgs/tools/wayland/wl-screenrec/default.nix create mode 100644 third_party/nixpkgs/pkgs/tools/wayland/wlay/default.nix diff --git a/third_party/nixpkgs/.git-blame-ignore-revs b/third_party/nixpkgs/.git-blame-ignore-revs index bf350b0cf8..2436c29afc 100644 --- a/third_party/nixpkgs/.git-blame-ignore-revs +++ b/third_party/nixpkgs/.git-blame-ignore-revs @@ -39,3 +39,60 @@ d1c1a0c656ccd8bd3b25d3c4287f2d075faf3cf3 # fix indentation in meteor default.nix a37a6de881ec4c6708e6b88fd16256bbc7f26bbd + +# treewide: automatically md-convert option descriptions +2e751c0772b9d48ff6923569adfa661b030ab6a2 + +# nixos/*: automatically convert option docs +087472b1e5230ffc8ba642b1e4f9218adf4634a2 + +# nixos/*: automatically convert option descriptions +ef176dcf7e76c3639571d7c6051246c8fbadf12a + +# nixos/*: automatically convert option docs to MD +61e93df1891972bae3e0c97a477bd44e8a477aa0 + +# nixos/*: convert options with admonitions to MD +722b99bc0eb57711c0498a86a3f55e6c69cdb05f + +# nixos/*: automatically convert option docs +6039648c50c7c0858b5e506c6298773a98e0f066 + +# nixos/*: md-convert options with unordered lists +c915b915b5e466a0b0b2af2906cd4d2380b8a1de + +# nixos/*: convert options with listings +f2ea09ecbe1fa1da32eaa6e036d64ac324a2986f + +# nixos/*: convert straggler options to MD +1d41cff3dc4c8f37bb5841f51fcbff705e169178 + +# nixos/*: normalize manpage references to single-line form +423545fe4865d126e86721ba30da116e29c65004 + +# nixos/documentation: split options doc build +fc614c37c653637e5475a0b0a987489b4d1f351d + +# nixos/*: convert options with admonitions to MD +722b99bc0eb57711c0498a86a3f55e6c69cdb05f + +# nixos/*: convert internal option descriptions to MD +9547123258f69efd92b54763051d6dc7f3bfcaca + +# nixos/*: replace with double linebreaks +694d5b19d30bf66687b42fb77f43ea7cd1002a62 + +# treewide: add defaultText for options with simple interpolation defaults +fb0e5be84331188a69b3edd31679ca6576edb75a + +# nixos/*: mark pre-existing markdown descriptions as mdDoc +7e7d68a250f75678451cd44f8c3d585bf750461e + +# nixos/*: normalize link format +3aebb4a2be8821a6d8a695f0908d8567dc00de31 + +# nixos/*: replace in option docs with +16102dce2fbad670bd47dd75c860a8daa5fe47ad + +# nixos/*: add trivial defaultText for options with simple defaults +25124556397ba17bfd70297000270de1e6523b0a diff --git a/third_party/nixpkgs/.github/CODEOWNERS b/third_party/nixpkgs/.github/CODEOWNERS index 4dfcd715f7..2ef607d0ff 100644 --- a/third_party/nixpkgs/.github/CODEOWNERS +++ b/third_party/nixpkgs/.github/CODEOWNERS @@ -23,7 +23,7 @@ # Libraries /lib @edolstra @infinisil -/lib/systems @alyssais @ericson2314 @matthewbauer +/lib/systems @alyssais @ericson2314 @matthewbauer @amjoseph-nixpkgs /lib/generators.nix @edolstra @Profpatsch /lib/cli.nix @edolstra @Profpatsch /lib/debug.nix @edolstra @Profpatsch @@ -37,10 +37,10 @@ /pkgs/top-level/stage.nix @Ericson2314 @matthewbauer /pkgs/top-level/splice.nix @Ericson2314 @matthewbauer /pkgs/top-level/release-cross.nix @Ericson2314 @matthewbauer -/pkgs/stdenv/generic @Ericson2314 @matthewbauer +/pkgs/stdenv/generic @Ericson2314 @matthewbauer @amjoseph-nixpkgs /pkgs/stdenv/generic/check-meta.nix @Ericson2314 @matthewbauer @piegamesde -/pkgs/stdenv/cross @Ericson2314 @matthewbauer -/pkgs/build-support/cc-wrapper @Ericson2314 +/pkgs/stdenv/cross @Ericson2314 @matthewbauer @amjoseph-nixpkgs +/pkgs/build-support/cc-wrapper @Ericson2314 @amjoseph-nixpkgs /pkgs/build-support/bintools-wrapper @Ericson2314 /pkgs/build-support/setup-hooks @Ericson2314 /pkgs/build-support/setup-hooks/auto-patchelf.sh @layus @@ -58,13 +58,9 @@ /maintainers/scripts/db-to-md.sh @jtojnar @ryantm /maintainers/scripts/doc @jtojnar @ryantm -/doc/* @fricklerhandwerk /doc/build-aux/pandoc-filters @jtojnar -/doc/builders/trivial-builders.chapter.md @fricklerhandwerk /doc/contributing/ @fricklerhandwerk /doc/contributing/contributing-to-documentation.chapter.md @jtojnar @fricklerhandwerk -/doc/stdenv @fricklerhandwerk -/doc/using @fricklerhandwerk # NixOS Internals /nixos/default.nix @infinisil @@ -128,7 +124,7 @@ /doc/languages-frameworks/rust.section.md @zowoq @winterqt @figsoda # C compilers -/pkgs/development/compilers/gcc @matthewbauer +/pkgs/development/compilers/gcc @matthewbauer @amjoseph-nixpkgs /pkgs/development/compilers/llvm @matthewbauer @RaitoBezarius # Compatibility stuff @@ -236,12 +232,12 @@ pkgs/development/python-modules/buildcatrust/ @ajs124 @lukegb @mweinelt /nixos/tests/prometheus-exporters.nix @WilliButz # PHP interpreter, packages, extensions, tests and documentation -/doc/languages-frameworks/php.section.md @aanderse @etu @globin @ma27 @talyz -/nixos/tests/php @aanderse @etu @globin @ma27 @talyz -/pkgs/build-support/build-pecl.nix @aanderse @etu @globin @ma27 @talyz -/pkgs/development/interpreters/php @jtojnar @aanderse @etu @globin @ma27 @talyz -/pkgs/development/php-packages @aanderse @etu @globin @ma27 @talyz -/pkgs/top-level/php-packages.nix @jtojnar @aanderse @etu @globin @ma27 @talyz +/doc/languages-frameworks/php.section.md @aanderse @drupol @etu @globin @ma27 @talyz +/nixos/tests/php @aanderse @drupol @etu @globin @ma27 @talyz +/pkgs/build-support/build-pecl.nix @aanderse @drupol @etu @globin @ma27 @talyz +/pkgs/development/interpreters/php @jtojnar @aanderse @drupol @etu @globin @ma27 @talyz +/pkgs/development/php-packages @aanderse @drupol @etu @globin @ma27 @talyz +/pkgs/top-level/php-packages.nix @jtojnar @aanderse @drupol @etu @globin @ma27 @talyz # Podman, CRI-O modules and related /nixos/modules/virtualisation/containers.nix @zowoq @adisbladis @@ -297,11 +293,18 @@ pkgs/development/python-modules/buildcatrust/ @ajs124 @lukegb @mweinelt /pkgs/development/compilers/dotnet @IvarWithoutBones # 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/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 # OCaml -/pkgs/build-support/ocaml @romildo @ulrikstrid -/pkgs/development/compilers/ocaml @romildo @ulrikstrid -/pkgs/development/ocaml-modules @romildo @ulrikstrid +/pkgs/build-support/ocaml @ulrikstrid +/pkgs/development/compilers/ocaml @ulrikstrid +/pkgs/development/ocaml-modules @ulrikstrid + +# ZFS +pkgs/os-specific/linux/zfs @raitobezarius +nixos/lib/make-single-disk-zfs-image.nix @raitobezarius +nixos/lib/make-multi-disk-zfs-image.nix @raitobezarius +nixos/modules/tasks/filesystems/zfs.nix @raitobezarius +nixos/tests/zfs.nix @raitobezarius diff --git a/third_party/nixpkgs/.github/PULL_REQUEST_TEMPLATE.md b/third_party/nixpkgs/.github/PULL_REQUEST_TEMPLATE.md index 5f21df834d..b2ec787313 100644 --- a/third_party/nixpkgs/.github/PULL_REQUEST_TEMPLATE.md +++ b/third_party/nixpkgs/.github/PULL_REQUEST_TEMPLATE.md @@ -22,7 +22,7 @@ For new packages please briefly describe the package or provide a link to its ho - 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/`) -- [23.05 Release Notes (or backporting 22.11 Release notes)](https://github.com/NixOS/nixpkgs/blob/master/CONTRIBUTING.md#generating-2305-release-notes) +- [23.11 Release Notes](https://github.com/NixOS/nixpkgs/blob/master/nixos/doc/manual/release-notes/rl-2311.section.md) (or backporting [23.05 Release notes](https://github.com/NixOS/nixpkgs/blob/master/nixos/doc/manual/release-notes/rl-2305.section.md)) - [ ] (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 diff --git a/third_party/nixpkgs/.github/labeler.yml b/third_party/nixpkgs/.github/labeler.yml index 44e5dcbf65..941cc65e6d 100644 --- a/third_party/nixpkgs/.github/labeler.yml +++ b/third_party/nixpkgs/.github/labeler.yml @@ -64,6 +64,9 @@ - pkgs/build-support/kernel/**/* - pkgs/os-specific/linux/kernel/**/* +"6.topic: lib": + - lib/** + "6.topic: lua": - pkgs/development/interpreters/lua-5/**/* - pkgs/development/interpreters/luajit/**/* @@ -83,6 +86,13 @@ - nixos/tests/mate.nix - pkgs/desktops/mate/**/* +"6.topic: module system": + - lib/modules.nix + - lib/types.nix + - lib/options.nix + - lib/tests/modules.sh + - lib/tests/modules/** + "6.topic: nixos": - nixos/**/* - pkgs/os-specific/linux/nixos-rebuild/**/* @@ -93,6 +103,14 @@ - pkgs/development/nim-packages/**/* - pkgs/top-level/nim-packages.nix +"6.topic: nodejs": + - doc/languages-frameworks/javascript.section.md + - pkgs/build-support/node/**/* + - pkgs/development/node-packages/**/* + - pkgs/development/tools/yarn/* + - pkgs/development/tools/yarn2nix-moretea/**/* + - pkgs/development/web/nodejs/* + "6.topic: ocaml": - doc/languages-frameworks/ocaml.section.md - pkgs/development/compilers/ocaml/**/* diff --git a/third_party/nixpkgs/.github/workflows/backport.yml b/third_party/nixpkgs/.github/workflows/backport.yml index 60ceb304ee..81fc5306fe 100644 --- a/third_party/nixpkgs/.github/workflows/backport.yml +++ b/third_party/nixpkgs/.github/workflows/backport.yml @@ -24,7 +24,7 @@ jobs: with: ref: ${{ github.event.pull_request.head.sha }} - name: Create backport PRs - uses: korthout/backport-action@v1.2.0 + uses: korthout/backport-action@v1.3.1 with: # Config README: https://github.com/korthout/backport-action#backport-action copy_labels_pattern: 'severity:\ssecurity' diff --git a/third_party/nixpkgs/.github/workflows/basic-eval.yml b/third_party/nixpkgs/.github/workflows/basic-eval.yml index 605d6a30a3..272447ecee 100644 --- a/third_party/nixpkgs/.github/workflows/basic-eval.yml +++ b/third_party/nixpkgs/.github/workflows/basic-eval.yml @@ -19,7 +19,7 @@ jobs: # we don't limit this action to only NixOS repo since the checks are cheap and useful developer feedback steps: - uses: actions/checkout@v3 - - uses: cachix/install-nix-action@v20 + - uses: cachix/install-nix-action@v22 - uses: cachix/cachix-action@v12 with: # This cache is for the nixpkgs repo checks and should not be trusted or used elsewhere. diff --git a/third_party/nixpkgs/.github/workflows/check-maintainers-sorted.yaml b/third_party/nixpkgs/.github/workflows/check-maintainers-sorted.yaml index fc03988b06..652ddd0749 100644 --- a/third_party/nixpkgs/.github/workflows/check-maintainers-sorted.yaml +++ b/third_party/nixpkgs/.github/workflows/check-maintainers-sorted.yaml @@ -16,7 +16,7 @@ jobs: 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@v20 + - uses: cachix/install-nix-action@v22 with: # explicitly enable sandbox extra_nix_config: sandbox = true diff --git a/third_party/nixpkgs/.github/workflows/compare-manuals.sh b/third_party/nixpkgs/.github/workflows/compare-manuals.sh deleted file mode 100755 index b2cc68c783..0000000000 --- a/third_party/nixpkgs/.github/workflows/compare-manuals.sh +++ /dev/null @@ -1,21 +0,0 @@ -#!/usr/bin/env nix-shell -#! nix-shell -i bash -p html-tidy - -set -euo pipefail -shopt -s inherit_errexit - -normalize() { - tidy \ - --anchor-as-name no \ - --coerce-endtags no \ - --escape-scripts no \ - --fix-backslash no \ - --fix-style-tags no \ - --fix-uri no \ - --indent yes \ - --wrap 0 \ - < "$1" \ - 2> /dev/null -} - -diff -U3 <(normalize "$1") <(normalize "$2") diff --git a/third_party/nixpkgs/.github/workflows/editorconfig.yml b/third_party/nixpkgs/.github/workflows/editorconfig.yml index 5dd85ca26f..e72f706def 100644 --- a/third_party/nixpkgs/.github/workflows/editorconfig.yml +++ b/third_party/nixpkgs/.github/workflows/editorconfig.yml @@ -28,7 +28,7 @@ jobs: 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@v20 + - uses: cachix/install-nix-action@v22 with: # nixpkgs commit is pinned so that it doesn't break # editorconfig-checker 2.4.0 diff --git a/third_party/nixpkgs/.github/workflows/manual-nixos.yml b/third_party/nixpkgs/.github/workflows/manual-nixos.yml index 85c7ac2d69..9862d8d724 100644 --- a/third_party/nixpkgs/.github/workflows/manual-nixos.yml +++ b/third_party/nixpkgs/.github/workflows/manual-nixos.yml @@ -18,7 +18,7 @@ jobs: 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@v20 + - uses: cachix/install-nix-action@v22 with: # explicitly enable sandbox extra_nix_config: sandbox = true @@ -27,13 +27,5 @@ jobs: # This cache is for the nixpkgs repo checks and should not be trusted or used elsewhere. name: nixpkgs-ci signingKey: '${{ secrets.CACHIX_SIGNING_KEY }}' - - name: Building NixOS manual with DocBook options + - name: Building NixOS manual run: NIX_PATH=nixpkgs=$(pwd) nix-build --option restrict-eval true nixos/release.nix -A manual.x86_64-linux - - name: Building NixOS manual with Markdown options - run: | - export NIX_PATH=nixpkgs=$(pwd) - nix-build \ - --option restrict-eval true \ - --arg configuration '{ documentation.nixos.options.allowDocBook = false; }' \ - nixos/release.nix \ - -A manual.x86_64-linux diff --git a/third_party/nixpkgs/.github/workflows/manual-nixpkgs.yml b/third_party/nixpkgs/.github/workflows/manual-nixpkgs.yml index 4f76a0d732..812907ab84 100644 --- a/third_party/nixpkgs/.github/workflows/manual-nixpkgs.yml +++ b/third_party/nixpkgs/.github/workflows/manual-nixpkgs.yml @@ -19,7 +19,7 @@ jobs: 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@v20 + - uses: cachix/install-nix-action@v22 with: # explicitly enable sandbox extra_nix_config: sandbox = true diff --git a/third_party/nixpkgs/.github/workflows/manual-rendering.yml b/third_party/nixpkgs/.github/workflows/manual-rendering.yml deleted file mode 100644 index ad47776086..0000000000 --- a/third_party/nixpkgs/.github/workflows/manual-rendering.yml +++ /dev/null @@ -1,64 +0,0 @@ -name: "Check NixOS Manual DocBook rendering against MD rendering" - - -on: - schedule: - # * is a special character in YAML so you have to quote this string - # Check every 24 hours - - cron: '0 0 * * *' - -permissions: - contents: read - -jobs: - check-rendering-equivalence: - permissions: - pull-requests: write # for peter-evans/create-or-update-comment to create or update comment - if: github.repository_owner == 'NixOS' - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v3 - - uses: cachix/install-nix-action@v20 - with: - # explicitly enable sandbox - extra_nix_config: sandbox = true - - uses: cachix/cachix-action@v12 - 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 }}' - - - name: Build DocBook and MD manuals - run: | - export NIX_PATH=nixpkgs=$(pwd) - nix-build \ - --option restrict-eval true \ - -o docbook nixos/release.nix \ - -A manual.x86_64-linux - nix-build \ - --option restrict-eval true \ - --arg configuration '{ documentation.nixos.options.allowDocBook = false; }' \ - -o md nixos/release.nix \ - -A manual.x86_64-linux - - - name: Compare DocBook and MD manuals - id: check - run: | - export NIX_PATH=nixpkgs=$(pwd) - .github/workflows/compare-manuals.sh \ - docbook/share/doc/nixos/options.html \ - md/share/doc/nixos/options.html - - # if the manual can't be built we don't want to notify anyone. - # while this may temporarily hide rendering failures it will be a lot - # less noisy until all nixpkgs pull requests have stopped using - # docbook for option docs. - - name: Comment on failure - uses: peter-evans/create-or-update-comment@v3 - if: ${{ failure() && steps.check.conclusion == 'failure' }} - with: - issue-number: 189318 - body: | - Markdown and DocBook manuals do not agree. - - Check https://github.com/NixOS/nixpkgs/actions/runs/${{ github.run_id }} for details. diff --git a/third_party/nixpkgs/.github/workflows/periodic-merge-24h.yml b/third_party/nixpkgs/.github/workflows/periodic-merge-24h.yml index dd0c1a2333..abfb51244f 100644 --- a/third_party/nixpkgs/.github/workflows/periodic-merge-24h.yml +++ b/third_party/nixpkgs/.github/workflows/periodic-merge-24h.yml @@ -34,10 +34,6 @@ jobs: pairs: - from: master into: haskell-updates - - from: release-22.11 - into: staging-next-22.11 - - from: staging-next-22.11 - into: staging-22.11 - from: release-23.05 into: staging-next-23.05 - from: staging-next-23.05 diff --git a/third_party/nixpkgs/.github/workflows/update-terraform-providers.yml b/third_party/nixpkgs/.github/workflows/update-terraform-providers.yml index e0e68b4bf1..e7767dbffa 100644 --- a/third_party/nixpkgs/.github/workflows/update-terraform-providers.yml +++ b/third_party/nixpkgs/.github/workflows/update-terraform-providers.yml @@ -17,7 +17,7 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 - - uses: cachix/install-nix-action@v20 + - uses: cachix/install-nix-action@v22 with: nix_path: nixpkgs=channel:nixpkgs-unstable - name: setup diff --git a/third_party/nixpkgs/CONTRIBUTING.md b/third_party/nixpkgs/CONTRIBUTING.md index 82f8d022a9..f318f19ead 100644 --- a/third_party/nixpkgs/CONTRIBUTING.md +++ b/third_party/nixpkgs/CONTRIBUTING.md @@ -61,14 +61,26 @@ Pull requests should not be squash merged in order to keep complete commit messa This means that, when addressing review comments in order to keep the pull request in an always mergeable status, you will sometimes need to rewrite your branch's history and then force-push it with `git push --force-with-lease`. Useful git commands that can help a lot with this are `git commit --patch --amend` and `git rebase --interactive`. For more details consult the git man pages or online resources like [git-rebase.io](https://git-rebase.io/) or [The Pro Git Book](https://git-scm.com/book/en/v2/Git-Tools-Rewriting-History). +## Testing changes + +To run the main types of tests locally: + +- Run package-internal tests with `nix-build --attr pkgs.PACKAGE.passthru.tests` +- Run [NixOS tests](https://nixos.org/manual/nixos/unstable/#sec-nixos-tests) with `nix-build --attr nixosTest.NAME`, where `NAME` is the name of the test listed in `nixos/tests/all-tests.nix` +- Run [global package tests](https://nixos.org/manual/nixpkgs/unstable/#sec-package-tests) with `nix-build --attr tests.PACKAGE`, where `PACKAGE` is the name of the test listed in `pkgs/test/default.nix` +- See `lib/tests/NAME.nix` for instructions on running specific library tests + ## Rebasing between branches (i.e. 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. When rebasing, care must be taken to include only the intended changes, otherwise -many CODEOWNERS will be inadvertently requested for review. To achieve this, +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. +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 @@ -102,21 +114,51 @@ 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. +``` + ## Backporting changes Follow these steps to backport a change into a release branch in compliance with the [commit policy](https://nixos.org/nixpkgs/manual/#submitting-changes-stable-release-branches). -You can add a label such as `backport release-22.11` to a PR, so that merging it will +You can add a label such as `backport release-23.05` to a PR, so that merging it will automatically create a backport (via [a GitHub Action](.github/workflows/backport.yml)). -This also works for PR's that have already been merged, and might take a couple of minutes to trigger. +This also works for pull requests that have already been merged, and might take a couple of minutes to trigger. You can also create the backport manually: 1. Take note of the commits in which the change was introduced into `master` branch. -2. Check out the target _release branch_, e.g. `release-22.11`. Do not use a _channel branch_ like `nixos-22.11` or `nixpkgs-22.11-darwin`. +2. Check out the target _release branch_, e.g. `release-23.05`. Do not use a _channel branch_ like `nixos-23.05` or `nixpkgs-23.05-darwin`. 3. Create a branch for your change, e.g. `git checkout -b backport`. 4. When the reason to backport is not obvious from the original commit message, use `git cherry-pick -xe ` and add a reason. Otherwise use `git cherry-pick -x `. That's fine for minor version updates that only include security and bug fixes, commits that fixes an otherwise broken package or similar. Please also ensure the commits exists on the master branch; in the case of squashed or rebased merges, the commit hash will change and the new commits can be found in the merge message at the bottom of the master pull request. -5. Push to GitHub and open a backport pull request. Make sure to select the release branch (e.g. `release-22.11`) as the target branch of the pull request, and link to the pull request in which the original change was committed to `master`. The pull request title should be the commit title with the release version as prefix, e.g. `[22.11]`. +5. Push to GitHub and open a backport pull request. Make sure to select the release branch (e.g. `release-23.05`) as the target branch of the pull request, and link to the pull request in which the original change was committed to `master`. The pull request title should be the commit title with the release version as prefix, e.g. `[23.05]`. 6. When the backport pull request is merged and you have the necessary privileges you can also replace the label `9.needs: port to stable` with `8.has: port to stable` on the original pull request. This way maintainers can keep track of missing backports easier. ## Criteria for Backporting changes @@ -128,19 +170,6 @@ Anything that does not cause user or downstream dependency regressions can be ba - Services which require a client to be up-to-date regardless. (E.g. `spotify`, `steam`, or `discord`) - Security critical applications (E.g. `firefox`) -## Generating 23.05 Release Notes - - -Documentation in nixpkgs is transitioning to a markdown-centric workflow. In the past release notes required a translation step to convert from markdown to a compatible docbook document, but this is no longer necessary. - -Steps for updating 23.05 Release notes: - -1. Edit `nixos/doc/manual/release-notes/rl-2305.section.md` with the desired changes -2. Commit changes to `rl-2305.section.md`. - ## Reviewing contributions See the nixpkgs manual for more details on how to [Review contributions](https://nixos.org/nixpkgs/manual/#chap-reviewing-contributions). diff --git a/third_party/nixpkgs/README.md b/third_party/nixpkgs/README.md index 4c6ad63516..d840e2a8c5 100644 --- a/third_party/nixpkgs/README.md +++ b/third_party/nixpkgs/README.md @@ -51,9 +51,9 @@ Nixpkgs and NixOS are built and tested by our continuous integration system, [Hydra](https://hydra.nixos.org/). * [Continuous package builds for unstable/master](https://hydra.nixos.org/jobset/nixos/trunk-combined) -* [Continuous package builds for the NixOS 22.11 release](https://hydra.nixos.org/jobset/nixos/release-22.11) +* [Continuous package builds for the NixOS 23.05 release](https://hydra.nixos.org/jobset/nixos/release-23.05) * [Tests for unstable/master](https://hydra.nixos.org/job/nixos/trunk-combined/tested#tabs-constituents) -* [Tests for the NixOS 22.11 release](https://hydra.nixos.org/job/nixos/release-22.11/tested#tabs-constituents) +* [Tests for the NixOS 23.05 release](https://hydra.nixos.org/job/nixos/release-23.05/tested#tabs-constituents) Artifacts successfully built with Hydra are published to cache at https://cache.nixos.org/. When successful build and test criteria are diff --git a/third_party/nixpkgs/doc/.gitignore b/third_party/nixpkgs/doc/.gitignore deleted file mode 100644 index b08285995f..0000000000 --- a/third_party/nixpkgs/doc/.gitignore +++ /dev/null @@ -1,11 +0,0 @@ -*.chapter.xml -*.section.xml -.version -functions/library/generated -functions/library/locations.xml -highlightjs -manual-full.xml -out -result -result-* -media diff --git a/third_party/nixpkgs/doc/Makefile b/third_party/nixpkgs/doc/Makefile deleted file mode 100644 index 208f23f502..0000000000 --- a/third_party/nixpkgs/doc/Makefile +++ /dev/null @@ -1,119 +0,0 @@ -MD_TARGETS=$(addsuffix .xml, $(basename $(shell find . -type f -regex '.*\.md$$' -not -name README.md))) - -PANDOC ?= pandoc - -pandoc_media_dir = media -# NOTE: Keep in sync with conversion script (/maintainers/scripts/db-to-md.sh). -# TODO: Remove raw-attribute when we can get rid of DocBook altogether. -pandoc_commonmark_enabled_extensions = +attributes+fenced_divs+footnotes+bracketed_spans+definition_lists+pipe_tables+raw_attribute -# Not needed: -# - docbook-reader/citerefentry-to-rst-role.lua (only relevant for DocBook → MarkDown/rST/MyST) -pandoc_flags = --extract-media=$(pandoc_media_dir) \ - --lua-filter=$(PANDOC_LUA_FILTERS_DIR)/diagram-generator.lua \ - --lua-filter=build-aux/pandoc-filters/myst-reader/roles.lua \ - --lua-filter=$(PANDOC_LINK_MANPAGES_FILTER) \ - --lua-filter=build-aux/pandoc-filters/docbook-writer/rst-roles.lua \ - --lua-filter=build-aux/pandoc-filters/docbook-writer/labelless-link-is-xref.lua \ - -f commonmark$(pandoc_commonmark_enabled_extensions)+smart - -.PHONY: all -all: validate format out/html/index.html out/epub/manual.epub - -.PHONY: render-md -render-md: ${MD_TARGETS} - -.PHONY: debug -debug: - nix-shell --run "xmloscopy --docbook5 ./manual.xml ./manual-full.xml" - -.PHONY: format -format: doc-support/result - find . -iname '*.xml' -type f | while read f; do \ - echo $$f ;\ - xmlformat --config-file "doc-support/result/xmlformat.conf" -i $$f ;\ - done - -.PHONY: fix-misc-xml -fix-misc-xml: - find . -iname '*.xml' -type f \ - -exec ../nixos/doc/varlistentry-fixer.rb {} ';' - -.PHONY: clean -clean: - rm -f ${MD_TARGETS} doc-support/result .version manual-full.xml functions/library/locations.xml functions/library/generated - rm -rf ./out/ ./highlightjs ./media - -.PHONY: validate -validate: manual-full.xml doc-support/result - jing doc-support/result/docbook.rng manual-full.xml - -out/html/index.html: doc-support/result manual-full.xml style.css highlightjs - mkdir -p out/html - xsltproc \ - --nonet --xinclude \ - --output $@ \ - doc-support/result/xhtml.xsl \ - ./manual-full.xml - - mkdir -p out/html/highlightjs/ - cp -r highlightjs out/html/ - - cp -r $(pandoc_media_dir) out/html/ - cp ./overrides.css out/html/ - cp ./style.css out/html/style.css - - mkdir -p out/html/images/callouts - cp doc-support/result/xsl/docbook/images/callouts/*.svg out/html/images/callouts/ - chmod u+w -R out/html/ - -out/epub/manual.epub: manual-full.xml - mkdir -p out/epub/scratch - xsltproc --nonet \ - --output out/epub/scratch/ \ - doc-support/result/epub.xsl \ - ./manual-full.xml - - cp -r $(pandoc_media_dir) out/epub/scratch/OEBPS - cp ./overrides.css out/epub/scratch/OEBPS - cp ./style.css out/epub/scratch/OEBPS - mkdir -p out/epub/scratch/OEBPS/images/callouts/ - cp doc-support/result/xsl/docbook/images/callouts/*.svg out/epub/scratch/OEBPS/images/callouts/ - echo "application/epub+zip" > mimetype - zip -0Xq "out/epub/manual.epub" mimetype - rm mimetype - cd "out/epub/scratch/" && zip -Xr9D "../manual.epub" * - rm -rf "out/epub/scratch/" - -highlightjs: doc-support/result - mkdir -p highlightjs - cp -r doc-support/result/highlightjs/highlight.pack.js highlightjs/ - cp -r doc-support/result/highlightjs/LICENSE highlightjs/ - cp -r doc-support/result/highlightjs/mono-blue.css highlightjs/ - cp -r doc-support/result/highlightjs/loader.js highlightjs/ - - -manual-full.xml: ${MD_TARGETS} .version functions/library/locations.xml functions/library/generated *.xml **/*.xml **/**/*.xml - xmllint --nonet --xinclude --noxincludenode manual.xml --output manual-full.xml - -.version: doc-support/result - ln -rfs ./doc-support/result/version .version - -doc-support/result: doc-support/default.nix - (cd doc-support; nix-build) - -functions/library/locations.xml: doc-support/result - ln -rfs ./doc-support/result/function-locations.xml functions/library/locations.xml - -functions/library/generated: doc-support/result - ln -rfs ./doc-support/result/function-docs functions/library/generated - -%.section.xml: %.section.md - $(PANDOC) $^ -t docbook \ - $(pandoc_flags) \ - -o $@ - -%.chapter.xml: %.chapter.md - $(PANDOC) $^ -t docbook \ - --top-level-division=chapter \ - $(pandoc_flags) \ - -o $@ diff --git a/third_party/nixpkgs/doc/build-aux/pandoc-filters/docbook-reader/citerefentry-to-rst-role.lua b/third_party/nixpkgs/doc/build-aux/pandoc-filters/docbook-reader/citerefentry-to-rst-role.lua deleted file mode 100644 index 281e85af27..0000000000 --- a/third_party/nixpkgs/doc/build-aux/pandoc-filters/docbook-reader/citerefentry-to-rst-role.lua +++ /dev/null @@ -1,23 +0,0 @@ ---[[ -Converts Code AST nodes produced by pandoc’s DocBook reader -from citerefentry elements into AST for corresponding role -for reStructuredText. - -We use subset of MyST syntax (CommonMark with features from rST) -so let’s use the rST AST for rST features. - -Reference: https://www.sphinx-doc.org/en/master/usage/restructuredtext/roles.html#role-manpage -]] - -function Code(elem) - elem.classes = elem.classes:map(function (x) - if x == 'citerefentry' then - elem.attributes['role'] = 'manpage' - return 'interpreted-text' - else - return x - end - end) - - return elem -end diff --git a/third_party/nixpkgs/doc/build-aux/pandoc-filters/docbook-writer/labelless-link-is-xref.lua b/third_party/nixpkgs/doc/build-aux/pandoc-filters/docbook-writer/labelless-link-is-xref.lua deleted file mode 100644 index fa97729a28..0000000000 --- a/third_party/nixpkgs/doc/build-aux/pandoc-filters/docbook-writer/labelless-link-is-xref.lua +++ /dev/null @@ -1,34 +0,0 @@ ---[[ -Converts Link AST nodes with empty label to DocBook xref elements. - -This is a temporary script to be able use cross-references conveniently -using syntax taken from MyST, while we still use docbook-xsl -for generating the documentation. - -Reference: https://myst-parser.readthedocs.io/en/latest/using/syntax.html#targets-and-cross-referencing -]] - -local function starts_with(start, str) - return str:sub(1, #start) == start -end - -local function escape_xml_arg(arg) - amps = arg:gsub('&', '&') - amps_quotes = amps:gsub('"', '"') - amps_quotes_lt = amps_quotes:gsub('<', '<') - - return amps_quotes_lt -end - -function Link(elem) - has_no_content = #elem.content == 0 - targets_anchor = starts_with('#', elem.target) - has_no_attributes = elem.title == '' and elem.identifier == '' and #elem.classes == 0 and #elem.attributes == 0 - - if has_no_content and targets_anchor and has_no_attributes then - -- xref expects idref without the pound-sign - target_without_hash = elem.target:sub(2, #elem.target) - - return pandoc.RawInline('docbook', '') - end -end diff --git a/third_party/nixpkgs/doc/build-aux/pandoc-filters/docbook-writer/rst-roles.lua b/third_party/nixpkgs/doc/build-aux/pandoc-filters/docbook-writer/rst-roles.lua deleted file mode 100644 index 5c1b034d07..0000000000 --- a/third_party/nixpkgs/doc/build-aux/pandoc-filters/docbook-writer/rst-roles.lua +++ /dev/null @@ -1,44 +0,0 @@ ---[[ -Converts AST for reStructuredText roles into corresponding -DocBook elements. - -Currently, only a subset of roles is supported. - -Reference: - List of roles: - https://www.sphinx-doc.org/en/master/usage/restructuredtext/roles.html - manpage: - https://tdg.docbook.org/tdg/5.1/citerefentry.html - file: - https://tdg.docbook.org/tdg/5.1/filename.html -]] - -function Code(elem) - if elem.classes:includes('interpreted-text') then - local tag = nil - local content = elem.text - if elem.attributes['role'] == 'manpage' then - tag = 'citerefentry' - local title, volnum = content:match('^(.+)%((%w+)%)$') - if title == nil then - -- No volnum in parentheses. - title = content - end - content = '' .. title .. '' .. (volnum ~= nil and ('' .. volnum .. '') or '') - elseif elem.attributes['role'] == 'file' then - tag = 'filename' - elseif elem.attributes['role'] == 'command' then - tag = 'command' - elseif elem.attributes['role'] == 'option' then - tag = 'option' - elseif elem.attributes['role'] == 'var' then - tag = 'varname' - elseif elem.attributes['role'] == 'env' then - tag = 'envar' - end - - if tag ~= nil then - return pandoc.RawInline('docbook', '<' .. tag .. '>' .. content .. '') - end - end -end diff --git a/third_party/nixpkgs/doc/build-aux/pandoc-filters/link-manpages.nix b/third_party/nixpkgs/doc/build-aux/pandoc-filters/link-manpages.nix deleted file mode 100644 index 2589a7c342..0000000000 --- a/third_party/nixpkgs/doc/build-aux/pandoc-filters/link-manpages.nix +++ /dev/null @@ -1,28 +0,0 @@ -{ pkgs ? import ../../.. {} }: -let - inherit (pkgs) lib; - manpageURLs = lib.importJSON (pkgs.path + "/doc/manpage-urls.json"); -in pkgs.writeText "link-manpages.lua" '' - --[[ - Adds links to known man pages that aren't already in a link. - ]] - - local manpage_urls = { - ${lib.concatStringsSep "\n" (lib.mapAttrsToList (man: url: - " [${builtins.toJSON man}] = ${builtins.toJSON url},") manpageURLs)} - } - - traverse = 'topdown' - - -- Returning false as the second value aborts processing of child elements. - function Link(elem) - return elem, false - end - - function Code(elem) - local is_man_role = elem.classes:includes('interpreted-text') and elem.attributes['role'] == 'manpage' - if is_man_role and manpage_urls[elem.text] ~= nil then - return pandoc.Link(elem, manpage_urls[elem.text]), false - end - end -'' diff --git a/third_party/nixpkgs/doc/build-aux/pandoc-filters/myst-reader/roles.lua b/third_party/nixpkgs/doc/build-aux/pandoc-filters/myst-reader/roles.lua deleted file mode 100644 index f4ef6d390b..0000000000 --- a/third_party/nixpkgs/doc/build-aux/pandoc-filters/myst-reader/roles.lua +++ /dev/null @@ -1,36 +0,0 @@ ---[[ -Replaces Str AST nodes containing {role}, followed by a Code node -by a Code node with attrs that would be produced by rST reader -from the role syntax. - -This is to emulate MyST syntax in Pandoc. -(MyST is a CommonMark flavour with rST features mixed in.) - -Reference: https://myst-parser.readthedocs.io/en/latest/syntax/syntax.html#roles-an-in-line-extension-point -]] - -function Inlines(inlines) - for i = #inlines-1,1,-1 do - local first = inlines[i] - local second = inlines[i+1] - local correct_tags = first.tag == 'Str' and second.tag == 'Code' - if correct_tags then - -- docutils supports alphanumeric strings separated by [-._:] - -- We are slightly more liberal for simplicity. - -- Allow preceding punctuation (eg '('), otherwise '({file}`...`)' - -- does not match. Also allow anything followed by a non-breaking space - -- since pandoc emits those after certain abbreviations (e.g. e.g.). - local prefix, role = first.text:match('^(.*){([-._+:%w]+)}$') - if role ~= nil and (prefix == '' or prefix:match("^.*[%p ]$") ~= nil) then - if prefix == '' then - inlines:remove(i) - else - first.text = prefix - end - second.attributes['role'] = role - second.classes:insert('interpreted-text') - end - end - end - return inlines -end diff --git a/third_party/nixpkgs/doc/build-aux/pandoc-filters/myst-writer/roles.lua b/third_party/nixpkgs/doc/build-aux/pandoc-filters/myst-writer/roles.lua deleted file mode 100644 index 0136bc5506..0000000000 --- a/third_party/nixpkgs/doc/build-aux/pandoc-filters/myst-writer/roles.lua +++ /dev/null @@ -1,25 +0,0 @@ ---[[ -Replaces Code nodes with attrs that would be produced by rST reader -from the role syntax by a Str AST node containing {role}, followed by a Code node. - -This is to emulate MyST syntax in Pandoc. -(MyST is a CommonMark flavour with rST features mixed in.) - -Reference: https://myst-parser.readthedocs.io/en/latest/syntax/syntax.html#roles-an-in-line-extension-point -]] - -function Code(elem) - local role = elem.attributes['role'] - - if elem.classes:includes('interpreted-text') and role ~= nil then - elem.classes = elem.classes:filter(function (c) - return c ~= 'interpreted-text' - end) - elem.attributes['role'] = nil - - return { - pandoc.Str('{' .. role .. '}'), - elem, - } - end -end diff --git a/third_party/nixpkgs/doc/builders.md b/third_party/nixpkgs/doc/builders.md new file mode 100644 index 0000000000..2e95942240 --- /dev/null +++ b/third_party/nixpkgs/doc/builders.md @@ -0,0 +1,12 @@ +# Builders {#part-builders} + +```{=include=} chapters +builders/fetchers.chapter.md +builders/trivial-builders.chapter.md +builders/testers.chapter.md +builders/special.md +builders/images.md +hooks/index.md +languages-frameworks/index.md +builders/packages/index.md +``` diff --git a/third_party/nixpkgs/doc/builders/fetchers.chapter.md b/third_party/nixpkgs/doc/builders/fetchers.chapter.md index b86fffa460..4d4f3f427c 100644 --- a/third_party/nixpkgs/doc/builders/fetchers.chapter.md +++ b/third_party/nixpkgs/doc/builders/fetchers.chapter.md @@ -132,11 +132,16 @@ A number of fetcher functions wrap part of `fetchurl` and `fetchzip`. They are m `fetchFromGitHub` expects four arguments. `owner` is a string corresponding to the GitHub user or organization that controls this repository. `repo` corresponds to the name of the software repository. These are located at the top of every GitHub HTML page as `owner`/`repo`. `rev` corresponds to the Git commit hash or tag (e.g `v1.0`) that will be downloaded from Git. Finally, `hash` corresponds to the hash of the extracted directory. Again, other hash algorithms are also available, but `hash` is currently preferred. +To use a different GitHub instance, use `githubBase` (defaults to `"github.com"`). + `fetchFromGitHub` uses `fetchzip` to download the source archive generated by GitHub for the specified revision. If `leaveDotGit`, `deepClone` or `fetchSubmodules` are set to `true`, `fetchFromGitHub` will use `fetchgit` instead. Refer to its section for documentation of these options. ## `fetchFromGitLab` {#fetchfromgitlab} -This is used with GitLab repositories. The arguments expected are very similar to `fetchFromGitHub` above. +This is used with GitLab repositories. It behaves similarly to `fetchFromGitHub`, and expects `owner`, `repo`, `rev`, and `hash`. + +To use a specific GitLab instance, use `domain` (defaults to `"gitlab.com"`). + ## `fetchFromGitiles` {#fetchfromgitiles} @@ -144,7 +149,7 @@ This is used with Gitiles repositories. The arguments expected are similar to `f ## `fetchFromBitbucket` {#fetchfrombitbucket} -This is used with BitBucket repositories. The arguments expected are very similar to fetchFromGitHub above. +This is used with BitBucket repositories. The arguments expected are very similar to `fetchFromGitHub` above. ## `fetchFromSavannah` {#fetchfromsavannah} diff --git a/third_party/nixpkgs/doc/builders/images.md b/third_party/nixpkgs/doc/builders/images.md new file mode 100644 index 0000000000..5596784bfa --- /dev/null +++ b/third_party/nixpkgs/doc/builders/images.md @@ -0,0 +1,13 @@ +# Images {#chap-images} + +This chapter describes tools for creating various types of images. + +```{=include=} sections +images/appimagetools.section.md +images/dockertools.section.md +images/ocitools.section.md +images/snaptools.section.md +images/portableservice.section.md +images/makediskimage.section.md +images/binarycache.section.md +``` diff --git a/third_party/nixpkgs/doc/builders/images.xml b/third_party/nixpkgs/doc/builders/images.xml deleted file mode 100644 index a4661ab5a7..0000000000 --- a/third_party/nixpkgs/doc/builders/images.xml +++ /dev/null @@ -1,15 +0,0 @@ - - Images - - This chapter describes tools for creating various types of images. - - - - - - - - - diff --git a/third_party/nixpkgs/doc/builders/packages/dlib.section.md b/third_party/nixpkgs/doc/builders/packages/dlib.section.md index 022195310a..bd5b1a20a4 100644 --- a/third_party/nixpkgs/doc/builders/packages/dlib.section.md +++ b/third_party/nixpkgs/doc/builders/packages/dlib.section.md @@ -1,6 +1,6 @@ # DLib {#dlib} -[DLib](http://dlib.net/) is a modern, C++-based toolkit which provides several machine learning algorithms. +[DLib](http://dlib.net/) is a modern, C++\-based toolkit which provides several machine learning algorithms. ## Compiling without AVX support {#compiling-without-avx-support} diff --git a/third_party/nixpkgs/doc/builders/packages/index.md b/third_party/nixpkgs/doc/builders/packages/index.md new file mode 100644 index 0000000000..1f44357024 --- /dev/null +++ b/third_party/nixpkgs/doc/builders/packages/index.md @@ -0,0 +1,27 @@ +# Packages {#chap-packages} + +This chapter contains information about how to use and maintain the Nix expressions for a number of specific packages, such as the Linux kernel or X.org. + +```{=include=} sections +citrix.section.md +dlib.section.md +eclipse.section.md +elm.section.md +emacs.section.md +firefox.section.md +fish.section.md +fuse.section.md +ibus.section.md +kakoune.section.md +linux.section.md +locales.section.md +etc-files.section.md +nginx.section.md +opengl.section.md +shell-helpers.section.md +steam.section.md +cataclysm-dda.section.md +urxvt.section.md +weechat.section.md +xorg.section.md +``` diff --git a/third_party/nixpkgs/doc/builders/packages/index.xml b/third_party/nixpkgs/doc/builders/packages/index.xml deleted file mode 100644 index 206e1e49f1..0000000000 --- a/third_party/nixpkgs/doc/builders/packages/index.xml +++ /dev/null @@ -1,29 +0,0 @@ - - Packages - - This chapter contains information about how to use and maintain the Nix expressions for a number of specific packages, such as the Linux kernel or X.org. - - - - - - - - - - - - - - - - - - - - - - - diff --git a/third_party/nixpkgs/doc/builders/special.md b/third_party/nixpkgs/doc/builders/special.md new file mode 100644 index 0000000000..6d07fa87f3 --- /dev/null +++ b/third_party/nixpkgs/doc/builders/special.md @@ -0,0 +1,11 @@ +# Special builders {#chap-special} + +This chapter describes several special builders. + +```{=include=} sections +special/fhs-environments.section.md +special/makesetuphook.section.md +special/mkshell.section.md +special/darwin-builder.section.md +special/vm-tools.section.md +``` diff --git a/third_party/nixpkgs/doc/builders/special.xml b/third_party/nixpkgs/doc/builders/special.xml deleted file mode 100644 index 18cf6cfd39..0000000000 --- a/third_party/nixpkgs/doc/builders/special.xml +++ /dev/null @@ -1,13 +0,0 @@ - - Special builders - - This chapter describes several special builders. - - - - - - - diff --git a/third_party/nixpkgs/doc/builders/special/darwin-builder.section.md b/third_party/nixpkgs/doc/builders/special/darwin-builder.section.md index 30bf2d0951..13d01a0e3a 100644 --- a/third_party/nixpkgs/doc/builders/special/darwin-builder.section.md +++ b/third_party/nixpkgs/doc/builders/special/darwin-builder.section.md @@ -1,11 +1,12 @@ -# darwin.builder {#sec-darwin-builder} +# darwin.linux-builder {#sec-darwin-builder} -`darwin.builder` provides a way to bootstrap a Linux builder on a macOS machine. +`darwin.linux-builder` provides a way to bootstrap a Linux builder on a macOS machine. This requires macOS version 12.4 or later. -This also requires that port 22 on your machine is free (since Nix does not -permit specifying a non-default SSH port for builders). +The builder runs on host port 31022 by default. +You can change it by overriding `virtualisation.darwin-builder.hostPort`. +See the [example](#sec-darwin-builder-example-flake). You will also need to be a trusted user for your Nix installation. In other words, your `/etc/nix/nix.conf` should have something like: @@ -17,7 +18,7 @@ extra-trusted-users = To launch the builder, run the following flake: ```ShellSession -$ nix run nixpkgs#darwin.builder +$ nix run nixpkgs#darwin.linux-builder ``` That will prompt you to enter your `sudo` password: @@ -50,19 +51,28 @@ To delegate builds to the remote builder, add the following options to your ``` # - Replace ${ARCH} with either aarch64 or x86_64 to match your host machine # - Replace ${MAX_JOBS} with the maximum number of builds (pick 4 if you're not sure) -builders = ssh-ng://builder@localhost ${ARCH}-linux /etc/nix/builder_ed25519 ${MAX_JOBS} - - - c3NoLWVkMjU1MTkgQUFBQUMzTnphQzFsWkRJMU5URTVBQUFBSUpCV2N4Yi9CbGFxdDFhdU90RStGOFFVV3JVb3RpQzVxQkorVXVFV2RWQ2Igcm9vdEBuaXhvcwo= +builders = ssh-ng://builder@linux-builder ${ARCH}-linux /etc/nix/builder_ed25519 ${MAX_JOBS} - - - c3NoLWVkMjU1MTkgQUFBQUMzTnphQzFsWkRJMU5URTVBQUFBSUpCV2N4Yi9CbGFxdDFhdU90RStGOFFVV3JVb3RpQzVxQkorVXVFV2RWQ2Igcm9vdEBuaXhvcwo= # Not strictly necessary, but this will reduce your disk utilization builders-use-substitutes = true ``` +To allow Nix to connect to a builder not running on port 22, you will also need to create a new file at `/etc/ssh/ssh_config.d/100-linux-builder.conf`: + +``` +Host linux-builder + Hostname localhost + HostKeyAlias linux-builder + Port 31022 +``` + … and then restart your Nix daemon to apply the change: ```ShellSession $ sudo launchctl kickstart -k system/org.nixos.nix-daemon ``` -## Example flake usage +## Example flake usage {#sec-darwin-builder-example-flake} ``` { @@ -120,7 +130,7 @@ $ sudo launchctl kickstart -k system/org.nixos.nix-daemon } ``` -## Reconfiguring the builder +## Reconfiguring the builder {#sec-darwin-builder-reconfiguring} Initially you should not change the builder configuration else you will not be able to use the binary cache. However, after you have the builder running locally diff --git a/third_party/nixpkgs/doc/builders/special/fhs-environments.section.md b/third_party/nixpkgs/doc/builders/special/fhs-environments.section.md index 5a248e4ead..8145fbd730 100644 --- a/third_party/nixpkgs/doc/builders/special/fhs-environments.section.md +++ b/third_party/nixpkgs/doc/builders/special/fhs-environments.section.md @@ -11,6 +11,8 @@ Accepted arguments are: Packages to be installed for the main host's architecture (i.e. x86_64 on x86_64 installations). Along with libraries binaries are also installed. - `multiPkgs` Packages to be installed for all architectures supported by a host (i.e. i686 and x86_64 on x86_64 installations). Only libraries are installed by default. +- `multiArch` + Whether to install 32bit multiPkgs into the FHSEnv in 64bit environments - `extraBuildCommands` Additional commands to be executed for finalizing the directory structure. - `extraBuildCommandsMulti` diff --git a/third_party/nixpkgs/doc/builders/special/makesetuphook.section.md b/third_party/nixpkgs/doc/builders/special/makesetuphook.section.md index fee508dc29..eb04241213 100644 --- a/third_party/nixpkgs/doc/builders/special/makesetuphook.section.md +++ b/third_party/nixpkgs/doc/builders/special/makesetuphook.section.md @@ -12,7 +12,7 @@ pkgs.makeSetupHook { } ./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} +### 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 { diff --git a/third_party/nixpkgs/doc/builders/special/vm-tools.section.md b/third_party/nixpkgs/doc/builders/special/vm-tools.section.md index 3b6fb0d255..8feab04902 100644 --- a/third_party/nixpkgs/doc/builders/special/vm-tools.section.md +++ b/third_party/nixpkgs/doc/builders/special/vm-tools.section.md @@ -6,7 +6,7 @@ A set of VM related utilities, that help in building some packages in more advan A bash script fragment that produces a disk image at `destination`. -### Attributes +### Attributes {#vm-tools-createEmptyImage-attributes} * `size`. The disk size, in MiB. * `fullName`. Name that will be written to `${destination}/nix-support/full-name`. @@ -20,14 +20,14 @@ Thus, any pure Nix derivation should run unmodified. If the build fails and Nix is run with the `-K/--keep-failed` option, a script `run-vm` will be left behind in the temporary build directory that allows you to boot into the VM and debug it interactively. -### Attributes +### Attributes {#vm-tools-runInLinuxVM-attributes} * `preVM` (optional). Shell command to be evaluated *before* the VM is started (i.e., on the host). * `memSize` (optional, default `512`). The memory size of the VM in MiB. * `diskImage` (optional). A file system image to be attached to `/dev/sda`. Note that currently we expect the image to contain a filesystem, not a full disk image with a partition table etc. -### Examples +### Examples {#vm-tools-runInLinuxVM-examples} Build the derivation hello inside a VM: ```nix @@ -56,13 +56,13 @@ runInLinuxVM (hello.overrideAttrs (_: { Takes a file, such as an ISO, and extracts its contents into the store. -### Attributes +### Attributes {#vm-tools-extractFs-attributes} * `file`. Path to the file to be extracted. Note that currently we expect the image to contain a filesystem, not a full disk image with a partition table etc. * `fs` (optional). Filesystem of the contents of the file. -### Examples +### Examples {#vm-tools-extractFs-examples} Extract the contents of an ISO file: ```nix @@ -82,7 +82,7 @@ Like [](#vm-tools-runInLinuxVM), but instead of using `stdenv` from the Nix stor Generate a script that can be used to run an interactive session in the given image. -### Examples +### Examples {#vm-tools-makeImageTestScript-examples} Create a script for running a Fedora 27 VM: ```nix @@ -100,7 +100,7 @@ makeImageTestScript diskImages.ubuntu2004x86_64 A set of functions that build a predefined set of minimal Linux distributions images. -### Images +### Images {#vm-tools-diskImageFuns-images} * Fedora * `fedora26x86_64` @@ -126,12 +126,12 @@ A set of functions that build a predefined set of minimal Linux distributions im * `debian11i386` * `debian11x86_64` -### Attributes +### Attributes {#vm-tools-diskImageFuns-attributes} * `size` (optional, defaults to `4096`). The size of the image, in MiB. * `extraPackages` (optional). A list names of additional packages from the distribution that should be included in the image. -### Examples +### Examples {#vm-tools-diskImageFuns-examples} 8GiB image containing Firefox in addition to the default packages: ```nix diff --git a/third_party/nixpkgs/doc/builders/testers.chapter.md b/third_party/nixpkgs/doc/builders/testers.chapter.md index 928a57673e..fb6a28b7ee 100644 --- a/third_party/nixpkgs/doc/builders/testers.chapter.md +++ b/third_party/nixpkgs/doc/builders/testers.chapter.md @@ -1,5 +1,5 @@ # Testers {#chap-testers} -This chapter describes several testing builders which are available in the testers namespace. +This chapter describes several testing builders which are available in the `testers` namespace. ## `hasPkgConfigModule` {#tester-hasPkgConfigModule} diff --git a/third_party/nixpkgs/doc/contributing.md b/third_party/nixpkgs/doc/contributing.md new file mode 100644 index 0000000000..3215dbe32b --- /dev/null +++ b/third_party/nixpkgs/doc/contributing.md @@ -0,0 +1,10 @@ +# Contributing to Nixpkgs {#part-contributing} + +```{=include=} chapters +contributing/quick-start.chapter.md +contributing/coding-conventions.chapter.md +contributing/submitting-changes.chapter.md +contributing/vulnerability-roundup.chapter.md +contributing/reviewing-contributions.chapter.md +contributing/contributing-to-documentation.chapter.md +``` diff --git a/third_party/nixpkgs/doc/contributing/coding-conventions.chapter.md b/third_party/nixpkgs/doc/contributing/coding-conventions.chapter.md index 7a538de18d..03cd3dd458 100644 --- a/third_party/nixpkgs/doc/contributing/coding-conventions.chapter.md +++ b/third_party/nixpkgs/doc/contributing/coding-conventions.chapter.md @@ -220,7 +220,9 @@ There are a few naming guidelines: - The `version` attribute _must_ start with a digit e.g`"0.3.1rc2". -- If a package is not a release but a commit from a repository, then the `version` attribute _must_ be the date of that (fetched) commit. The date _must_ be in `"unstable-YYYY-MM-DD"` format. +- If a package is a commit from a repository without a version assigned, then the `version` attribute _should_ be the latest upstream version preceding that commit, followed by `-unstable-` and the date of the (fetched) commit. The date _must_ be in `"YYYY-MM-DD"` format. + +Example: Given a project had its latest releases `2.2` in November 2021, and `3.0` in January 2022, a commit authored on March 15, 2022 for an upcoming bugfix release `2.2.1` would have `version = "2.2-unstable-2022-03-15"`. - Dashes in the package `pname` _should_ be preserved in new variable names, rather than converted to underscores or camel cased — e.g., `http-parser` instead of `http_parser` or `httpParser`. The hyphenated style is preferred in all three package names. diff --git a/third_party/nixpkgs/doc/contributing/reviewing-contributions.chapter.md b/third_party/nixpkgs/doc/contributing/reviewing-contributions.chapter.md index 6685c5b60a..10c72fe3d1 100644 --- a/third_party/nixpkgs/doc/contributing/reviewing-contributions.chapter.md +++ b/third_party/nixpkgs/doc/contributing/reviewing-contributions.chapter.md @@ -12,7 +12,7 @@ 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. -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. +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. @@ -62,6 +62,8 @@ Sample template for a package update review is provided below. - [ ] package build on ARCHITECTURE - [ ] executables tested on ARCHITECTURE - [ ] all depending packages build +- [ ] patches have a comment describing either the upstream URL or a reason why the patch wasn't upstreamed +- [ ] patches that are remotely available are fetched rather than vendored ##### Possible improvements @@ -105,7 +107,8 @@ Sample template for a new package review is provided below. - [ ] source is fetched using the appropriate function - [ ] the list of `phases` is not overridden - [ ] when a phase (like `installPhase`) is overridden it starts with `runHook preInstall` and ends with `runHook postInstall`. -- [ ] patches that are remotely available are fetched with `fetchpatch` +- [ ] patches have a comment describing either the upstream URL or a reason why the patch wasn't upstreamed +- [ ] patches that are remotely available are fetched rather than vendored ##### Possible improvements @@ -201,7 +204,7 @@ checks should be performed: them to either recommit using that key or to remove their key information. - Given a maintainter entry like this: + Given a maintainer entry like this: ``` nix { diff --git a/third_party/nixpkgs/doc/contributing/staging-workflow.dot b/third_party/nixpkgs/doc/contributing/staging-workflow.dot new file mode 100644 index 0000000000..faca7a1cad --- /dev/null +++ b/third_party/nixpkgs/doc/contributing/staging-workflow.dot @@ -0,0 +1,16 @@ +digraph { + "small changes" [shape=none] + "mass-rebuilds and other large changes" [shape=none] + "critical security fixes" [shape=none] + "broken staging-next fixes" [shape=none] + + "small changes" -> master + "mass-rebuilds and other large changes" -> staging + "critical security fixes" -> master + "broken staging-next fixes" -> "staging-next" + + "staging-next" -> master [color="#E85EB0"] [label="stabilization ends"] [fontcolor="#E85EB0"] + "staging" -> "staging-next" [color="#E85EB0"] [label="stabilization starts"] [fontcolor="#E85EB0"] + + master -> "staging-next" -> staging [color="#5F5EE8"] [label="every six hours (GitHub Action)"] [fontcolor="#5F5EE8"] +} diff --git a/third_party/nixpkgs/doc/contributing/staging-workflow.svg b/third_party/nixpkgs/doc/contributing/staging-workflow.svg new file mode 100644 index 0000000000..1a174a7883 --- /dev/null +++ b/third_party/nixpkgs/doc/contributing/staging-workflow.svg @@ -0,0 +1,102 @@ + + + + + + + + + +small changes +small changes + + + +master + +master + + + +small changes->master + + + + + +mass-rebuilds and other large changes +mass-rebuilds and other large changes + + + +staging + +staging + + + +mass-rebuilds and other large changes->staging + + + + + +critical security fixes +critical security fixes + + + +critical security fixes->master + + + + + +broken staging-next fixes +broken staging-next fixes + + + +staging-next + +staging-next + + + +broken staging-next fixes->staging-next + + + + + +master->staging-next + + +every six hours (GitHub Action) + + + +staging->staging-next + + +stabilization starts + + + +staging-next->master + + +stabilization ends + + + +staging-next->staging + + +every six hours (GitHub Action) + + + diff --git a/third_party/nixpkgs/doc/contributing/submitting-changes.chapter.md b/third_party/nixpkgs/doc/contributing/submitting-changes.chapter.md index 30fe4fa47d..5a3d269569 100644 --- a/third_party/nixpkgs/doc/contributing/submitting-changes.chapter.md +++ b/third_party/nixpkgs/doc/contributing/submitting-changes.chapter.md @@ -214,39 +214,81 @@ The last checkbox is fits [CONTRIBUTING.md](https://github.com/NixOS/nixpkgs/blo - Hydra builds for master and staging should not be used as testing platform, it’s a build farm for changes that have been already tested. - When changing the bootloader installation process, extra care must be taken. Grub installations cannot be rolled back, hence changes may break people’s installations forever. For any non-trivial change to the bootloader please file a PR asking for review, especially from \@edolstra. +### Branches {#submitting-changes-branches} + +The `nixpkgs` repository has three major branches: +- `master` +- `staging` +- `staging-next` + +The most important distinction between them is that `staging` +(colored red in the diagram below) can receive commits which cause +a mass-rebuild (for example, anything that changes the `drvPath` of +`stdenv`). The other two branches `staging-next` and `master` +(colored green in the diagram below) can *not* receive commits which +cause a mass-rebuild. + +Arcs between the branches show possible merges into these branches, +either from other branches or from independently submitted PRs. The +colors of these edges likewise show whether or not they could +trigger a mass rebuild (red) or must not trigger a mass rebuild +(green). + +Hydra runs automatic builds for the green branches. + +Notice that the automatic merges are all green arrows. This is by +design. Any merge which might cause a mass rebuild on a branch +which has automatic builds (`staging-next`, `master`) will be a +manual merge to make sure it is good use of compute power. + +Nixpkgs has two branches so that there is one branch (`staging`) +which accepts mass-rebuilding commits, and one fast-rebuilding +branch which accepts independent PRs (`master`). The `staging-next` +branch allows the Hydra operators to batch groups of commits to +`staging` to be built. By keeping the `staging-next` branch +separate from `staging`, this batching does not block +developers from merging changes into `staging`. + ```{.graphviz caption="Staging workflow"} digraph { - "small changes" [shape=none] - "mass-rebuilds and other large changes" [shape=none] - "critical security fixes" [shape=none] - "broken staging-next fixes" [shape=none] + master [color="green" fontcolor=green] + "staging-next" [color="green" fontcolor=green] + staging [color="red" fontcolor=red] - "small changes" -> master - "mass-rebuilds and other large changes" -> staging - "critical security fixes" -> master - "broken staging-next fixes" -> "staging-next" + "small changes" [fontcolor=green shape=none] + "small changes" -> master [color=green] - "staging-next" -> master [color="#E85EB0"] [label="stabilization ends"] [fontcolor="#E85EB0"] - "staging" -> "staging-next" [color="#E85EB0"] [label="stabilization starts"] [fontcolor="#E85EB0"] + "mass-rebuilds and other large changes" [fontcolor=red shape=none] + "mass-rebuilds and other large changes" -> staging [color=red] - master -> "staging-next" -> staging [color="#5F5EE8"] [label="every six hours (GitHub Action)"] [fontcolor="#5F5EE8"] + "critical security fixes" [fontcolor=green shape=none] + "critical security fixes" -> master [color=green] + + "staging fixes which do not cause staging to mass-rebuild" [fontcolor=green shape=none] + "staging fixes which do not cause staging to mass-rebuild" -> "staging-next" [color=green] + + "staging-next" -> master [color="red"] [label="manual merge"] [fontcolor="red"] + "staging" -> "staging-next" [color="red"] [label="manual merge"] [fontcolor="red"] + + master -> "staging-next" [color="green"] [label="automatic merge (GitHub Action)"] [fontcolor="green"] + "staging-next" -> staging [color="green"] [label="automatic merge (GitHub Action)"] [fontcolor="green"] } ``` -[This GitHub Action](https://github.com/NixOS/nixpkgs/blob/master/.github/workflows/periodic-merge-6h.yml) brings changes from `master` to `staging-next` and from `staging-next` to `staging` every 6 hours; these are the blue arrows in the diagram above. The purple arrows in the diagram above are done manually and much less frequently. You can get an idea of how often these merges occur by looking at the git history. +[This GitHub Action](https://github.com/NixOS/nixpkgs/blob/master/.github/workflows/periodic-merge-6h.yml) brings changes from `master` to `staging-next` and from `staging-next` to `staging` every 6 hours; these are the green arrows in the diagram above. The red arrows in the diagram above are done manually and much less frequently. You can get an idea of how often these merges occur by looking at the git history. -### Master branch {#submitting-changes-master-branch} +#### Master branch {#submitting-changes-master-branch} The `master` branch is the main development branch. It should only see non-breaking commits that do not cause mass rebuilds. -### Staging branch {#submitting-changes-staging-branch} +#### Staging branch {#submitting-changes-staging-branch} The `staging` branch is a development branch where mass-rebuilds go. Mass rebuilds are commits that cause rebuilds for many packages, like more than 500 (or perhaps, if it's 'light' packages, 1000). It should only see non-breaking mass-rebuild commits. That means it is not to be used for testing, and changes must have been well tested already. If the branch is already in a broken state, please refrain from adding extra new breakages. During the process of a releasing a new NixOS version, this branch or the release-critical packages can be restricted to non-breaking changes. -### Staging-next branch {#submitting-changes-staging-next-branch} +#### Staging-next branch {#submitting-changes-staging-next-branch} The `staging-next` branch is for stabilizing mass-rebuilds submitted to the `staging` branch prior to merging them into `master`. Mass-rebuilds must go via the `staging` branch. It must only see non-breaking commits that are fixing issues blocking it from being merged into the `master` branch. @@ -254,7 +296,7 @@ If the branch is already in a broken state, please refrain from adding extra new During the process of a releasing a new NixOS version, this branch or the release-critical packages can be restricted to non-breaking changes. -### Stable release branches {#submitting-changes-stable-release-branches} +#### Stable release branches {#submitting-changes-stable-release-branches} The same staging workflow applies to stable release branches, but the main branch is called `release-*` instead of `master`. diff --git a/third_party/nixpkgs/doc/default.nix b/third_party/nixpkgs/doc/default.nix index 4f55c95a04..8efa406ec1 100644 --- a/third_party/nixpkgs/doc/default.nix +++ b/third_party/nixpkgs/doc/default.nix @@ -1,43 +1,146 @@ { pkgs ? (import ./.. { }), nixpkgs ? { }}: let - doc-support = import ./doc-support { inherit pkgs nixpkgs; }; + inherit (pkgs) lib; + inherit (lib) hasPrefix removePrefix; + + 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 = "sources"; description = "source filtering functions"; } + { name = "cli"; description = "command-line serialization functions"; } + ]; + }; + + epub = pkgs.runCommand "manual.epub" { + nativeBuildInputs = with pkgs; [ libxslt zip ]; + + epub = '' + + + Nixpkgs Manual + Version ${pkgs.lib.version} + + + Temporarily unavailable + + The Nixpkgs manual is currently not available in EPUB format, + please use the HTML manual + instead. + + + If you've used the EPUB manual in the past and it has been useful to you, please + let us know. + + + + ''; + + 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; [ - pandoc - graphviz - libxml2 - libxslt - zip - jing - xmlformat + nixos-render-docs ]; - src = pkgs.nix-gitignore.gitignoreSource [] ./.; + src = ./.; postPatch = '' - ln -s ${doc-support} ./doc-support/result + ln -s ${optionsDoc.optionsJSON}/share/doc/nixos/options.json ./config-options.json ''; - preBuild = '' - make -j$NIX_BUILD_CORES render-md + buildPhase = '' + cat \ + ./functions/library.md.in \ + ${lib-docs}/index.md \ + > ./functions/library.md + substitute ./manual.md.in ./manual.md \ + --replace '@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 ./overrides.css ./style.css + + nixos-render-docs manual html \ + --manpage-urls ./manpage-urls.json \ + --revision ${pkgs.lib.trivial.revisionWithDefault (pkgs.rev or "master")} \ + --stylesheet style.css \ + --stylesheet overrides.css \ + --stylesheet highlightjs/mono-blue.css \ + --script ./highlightjs/highlight.pack.js \ + --script ./highlightjs/loader.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/html "$dest" + mv out "$dest" mv "$dest/index.html" "$dest/manual.html" - mv out/epub/manual.epub "$dest/nixpkgs-manual.epub" + 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 ''; - - # Environment variables - PANDOC_LUA_FILTERS_DIR = "${pkgs.pandoc-lua-filters}/share/pandoc/filters"; - PANDOC_LINK_MANPAGES_FILTER = import build-aux/pandoc-filters/link-manpages.nix { inherit pkgs; }; } diff --git a/third_party/nixpkgs/doc/doc-support/default.nix b/third_party/nixpkgs/doc/doc-support/default.nix deleted file mode 100644 index cfa7cbdc82..0000000000 --- a/third_party/nixpkgs/doc/doc-support/default.nix +++ /dev/null @@ -1,87 +0,0 @@ -{ pkgs ? (import ../.. {}), nixpkgs ? { }}: -let - inherit (pkgs) lib; - inherit (lib) hasPrefix removePrefix; - - 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 = "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 = "sources"; description = "source filtering functions"; } - { name = "cli"; description = "command-line serialization functions"; } - ]; - - locationsXml = import ./lib-function-locations.nix { inherit pkgs nixpkgs libsets; }; - functionDocs = import ./lib-function-docs.nix { inherit locationsXml pkgs libsets; }; - version = pkgs.lib.version; - - epub-xsl = pkgs.writeText "epub.xsl" '' - - - - - - ''; - - xhtml-xsl = pkgs.writeText "xhtml.xsl" '' - - - - - - ''; - - # 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.runCommand "doc-support" {} -'' - mkdir result - ( - cd result - ln -s ${locationsXml} ./function-locations.xml - ln -s ${functionDocs} ./function-docs - ln -s ${optionsDoc.optionsDocBook} ./config-options.docbook.xml - - ln -s ${pkgs.docbook5}/xml/rng/docbook/docbook.rng ./docbook.rng - ln -s ${pkgs.docbook_xsl_ns}/xml/xsl ./xsl - ln -s ${epub-xsl} ./epub.xsl - ln -s ${xhtml-xsl} ./xhtml.xsl - - ln -s ${./xmlformat.conf} ./xmlformat.conf - ln -s ${pkgs.documentation-highlighter} ./highlightjs - - echo -n "${version}" > ./version - ) - mv result $out -'' diff --git a/third_party/nixpkgs/doc/doc-support/lib-function-docs.nix b/third_party/nixpkgs/doc/doc-support/lib-function-docs.nix index cf218fa704..8592fafbbd 100644 --- a/third_party/nixpkgs/doc/doc-support/lib-function-docs.nix +++ b/third_party/nixpkgs/doc/doc-support/lib-function-docs.nix @@ -1,36 +1,41 @@ # Generates the documentation for library functions via nixdoc. -{ pkgs, locationsXml, libsets }: +{ pkgs, nixpkgs, libsets }: -with pkgs; stdenv.mkDerivation { +with pkgs; + +let + locationsJSON = import ./lib-function-locations.nix { inherit pkgs nixpkgs libsets; }; +in +stdenv.mkDerivation { name = "nixpkgs-lib-docs"; src = ../../lib; buildInputs = [ nixdoc ]; installPhase = '' function docgen { - # TODO: wrap lib.$1 in , make nixdoc not escape it - if [[ -e "../lib/$1.nix" ]]; then - nixdoc -c "$1" -d "lib.$1: $2" -f "$1.nix" > "$out/$1.xml" + name=$1 + baseName=$2 + description=$3 + # TODO: wrap lib.$name in , make nixdoc not escape it + if [[ -e "../lib/$baseName.nix" ]]; then + nixdoc -c "$name" -d "lib.$name: $description" -l ${locationsJSON} -f "$baseName.nix" > "$out/$name.md" else - nixdoc -c "$1" -d "lib.$1: $2" -f "$1/default.nix" > "$out/$1.xml" + nixdoc -c "$name" -d "lib.$name: $description" -l ${locationsJSON} -f "$baseName/default.nix" > "$out/$name.md" fi - echo "" >> "$out/index.xml" + echo "$out/$name.md" >> "$out/index.md" } mkdir -p "$out" - cat > "$out/index.xml" << 'EOF' - - + cat > "$out/index.md" << 'EOF' + ```{=include=} sections EOF - ${lib.concatMapStrings ({ name, description }: '' - docgen ${name} ${lib.escapeShellArg description} + ${lib.concatMapStrings ({ name, baseName ? name, description }: '' + docgen ${name} ${baseName} ${lib.escapeShellArg description} '') libsets} - echo "" >> "$out/index.xml" - - ln -s ${locationsXml} $out/locations.xml + echo '```' >> "$out/index.md" ''; } diff --git a/third_party/nixpkgs/doc/doc-support/lib-function-locations.nix b/third_party/nixpkgs/doc/doc-support/lib-function-locations.nix index 1ee5964833..e6794617fd 100644 --- a/third_party/nixpkgs/doc/doc-support/lib-function-locations.nix +++ b/third_party/nixpkgs/doc/doc-support/lib-function-locations.nix @@ -58,28 +58,18 @@ let [ "-prime" ]; urlPrefix = "https://github.com/NixOS/nixpkgs/blob/${revision}"; - xmlstrings = (nixpkgsLib.strings.concatMapStrings - ({ name, value }: - '' -
${name} - - Located at - ${value.file}:${builtins.toString value.line} - in <nixpkgs>. - -
- '') - relativeLocs); + jsonLocs = builtins.listToAttrs + (builtins.map + ({ name, value }: { + name = sanitizeId name; + value = + let + text = "${value.file}:${builtins.toString value.line}"; + target = "${urlPrefix}/${value.file}#L${builtins.toString value.line}"; + in + "[${text}](${target}) in ``"; + }) + relativeLocs); -in pkgs.writeText - "locations.xml" - '' -
- All the locations for every lib function - This file is only for inclusion by other files. - ${xmlstrings} -
- '' +in +pkgs.writeText "locations.json" (builtins.toJSON jsonLocs) diff --git a/third_party/nixpkgs/doc/doc-support/parameters.xml b/third_party/nixpkgs/doc/doc-support/parameters.xml deleted file mode 100644 index 5b39d2f7f1..0000000000 --- a/third_party/nixpkgs/doc/doc-support/parameters.xml +++ /dev/null @@ -1,19 +0,0 @@ - - - - - - - - - - - - - - - - - diff --git a/third_party/nixpkgs/doc/doc-support/xmlformat.conf b/third_party/nixpkgs/doc/doc-support/xmlformat.conf deleted file mode 100644 index c3f39c7fd8..0000000000 --- a/third_party/nixpkgs/doc/doc-support/xmlformat.conf +++ /dev/null @@ -1,72 +0,0 @@ -# -# DocBook Configuration file for "xmlformat" -# see http://www.kitebird.com/software/xmlformat/ -# 10 Sept. 2004 -# - -# Only block elements -ackno address appendix article biblioentry bibliography bibliomixed \ -biblioset blockquote book bridgehead callout calloutlist caption caution \ -chapter chapterinfo classsynopsis cmdsynopsis colophon constraintdef \ -constructorsynopsis dedication destructorsynopsis entry epigraph equation example \ -figure formalpara funcsynopsis glossary glossdef glossdiv glossentry glosslist \ -glosssee glossseealso graphic graphicco highlights imageobjectco important \ -index indexdiv indexentry indexinfo info informalequation informalexample \ -informalfigure informaltable legalnotice literallayout lot lotentry mediaobject \ -mediaobjectco msgmain msgset note orderedlist para part preface primaryie \ -procedure qandadiv qandaentry qandaset refentry refentrytitle reference \ -refnamediv refsect1 refsect2 refsect3 refsection revhistory screenshot sect1 \ -sect2 sect3 sect4 sect5 section seglistitem set setindex sidebar simpara \ -simplesect step substeps synopfragment synopsis table term title \ -toc variablelist varlistentry warning itemizedlist listitem \ -footnote colspec partintro row simplelist subtitle tbody tgroup thead tip - format block - normalize no - - -#appendix bibliography chapter glossary preface reference -# element-break 3 - -sect1 section - element-break 2 - - -# -para abstract - format block - entry-break 1 - exit-break 1 - normalize yes - -title - format block - normalize = yes - entry-break = 0 - exit-break = 0 - -# Inline elements -abbrev accel acronym action application citation citebiblioid citerefentry citetitle \ -classname co code command computeroutput constant country database date email emphasis \ -envar errorcode errorname errortext errortype exceptionname fax filename \ -firstname firstterm footnoteref foreignphrase funcdef funcparams function \ -glossterm group guibutton guiicon guilabel guimenu guimenuitem guisubmenu \ -hardware holder honorific indexterm inlineequation inlinegraphic inlinemediaobject \ -interface interfacename \ -keycap keycode keycombo keysym lineage link literal manvolnum markup medialabel \ -menuchoice methodname methodparam modifier mousebutton olink ooclass ooexception \ -oointerface option optional otheraddr othername package paramdef parameter personname \ -phrase pob postcode productname prompt property quote refpurpose replaceable \ -returnvalue revnumber sgmltag state street structfield structname subscript \ -superscript surname symbol systemitem token trademark type ulink userinput \ -uri varargs varname void wordasword xref year mathphrase member tag - format inline - -programlisting screen - format verbatim - entry-break = 0 - exit-break = 0 - -# This is needed so that the spacing inside those tags is kept. -term cmdsynopsis arg - normalize yes - format block diff --git a/third_party/nixpkgs/doc/functions.md b/third_party/nixpkgs/doc/functions.md new file mode 100644 index 0000000000..09033c9e3c --- /dev/null +++ b/third_party/nixpkgs/doc/functions.md @@ -0,0 +1,11 @@ +# Functions reference {#chap-functions} + +The nixpkgs repository has several utility functions to manipulate Nix expressions. + +```{=include=} sections +functions/library.md +functions/generators.section.md +functions/debug.section.md +functions/prefer-remote-fetch.section.md +functions/nix-gitignore.section.md +``` diff --git a/third_party/nixpkgs/doc/functions.xml b/third_party/nixpkgs/doc/functions.xml deleted file mode 100644 index 8ef530d307..0000000000 --- a/third_party/nixpkgs/doc/functions.xml +++ /dev/null @@ -1,14 +0,0 @@ - - Functions reference - - The nixpkgs repository has several utility functions to manipulate Nix expressions. - - - - - - - diff --git a/third_party/nixpkgs/doc/functions/generators.section.md b/third_party/nixpkgs/doc/functions/generators.section.md index d54e5027c7..8b3ae6843a 100644 --- a/third_party/nixpkgs/doc/functions/generators.section.md +++ b/third_party/nixpkgs/doc/functions/generators.section.md @@ -16,7 +16,7 @@ let if v == true then ''"yes"'' else if v == false then ''"no"'' else if isString v then ''"${v}"'' - # and delegats all other values to the default generator + # and delegates all other values to the default generator else generators.mkValueStringDefault {} v; } ":"; }; diff --git a/third_party/nixpkgs/doc/functions/library.md.in b/third_party/nixpkgs/doc/functions/library.md.in new file mode 100644 index 0000000000..e17de86feb --- /dev/null +++ b/third_party/nixpkgs/doc/functions/library.md.in @@ -0,0 +1,5 @@ +# Nixpkgs Library Functions {#sec-functions-library} + +Nixpkgs provides a standard library at `pkgs.lib`, or through `import `. + + diff --git a/third_party/nixpkgs/doc/functions/library.xml b/third_party/nixpkgs/doc/functions/library.xml deleted file mode 100644 index 788ea0b94f..0000000000 --- a/third_party/nixpkgs/doc/functions/library.xml +++ /dev/null @@ -1,14 +0,0 @@ -
- Nixpkgs Library Functions - - - Nixpkgs provides a standard library at pkgs.lib, or through import <nixpkgs/lib>. - - - - -
diff --git a/third_party/nixpkgs/doc/hooks/autoconf.section.md b/third_party/nixpkgs/doc/hooks/autoconf.section.md index 13d75910f1..90e4681ef9 100644 --- a/third_party/nixpkgs/doc/hooks/autoconf.section.md +++ b/third_party/nixpkgs/doc/hooks/autoconf.section.md @@ -1,4 +1,3 @@ - -### Autoconf {#setup-hook-autoconf} +# Autoconf {#setup-hook-autoconf} The `autoreconfHook` derivation adds `autoreconfPhase`, which runs autoreconf, libtoolize and automake, essentially preparing the configure script in autotools-based builds. Most autotools-based packages come with the configure script pre-generated, but this hook is necessary for a few packages and when you need to patch the package’s configure scripts. diff --git a/third_party/nixpkgs/doc/hooks/automake.section.md b/third_party/nixpkgs/doc/hooks/automake.section.md index 562ac18fcd..dd0ff9c0cc 100644 --- a/third_party/nixpkgs/doc/hooks/automake.section.md +++ b/third_party/nixpkgs/doc/hooks/automake.section.md @@ -1,4 +1,3 @@ - -### Automake {#setup-hook-automake} +# Automake {#setup-hook-automake} Adds the `share/aclocal` subdirectory of each build input to the `ACLOCAL_PATH` environment variable. diff --git a/third_party/nixpkgs/doc/hooks/autopatchelf.section.md b/third_party/nixpkgs/doc/hooks/autopatchelf.section.md index 9c2852ccf2..008a90d461 100644 --- a/third_party/nixpkgs/doc/hooks/autopatchelf.section.md +++ b/third_party/nixpkgs/doc/hooks/autopatchelf.section.md @@ -1,5 +1,4 @@ - -### autoPatchelfHook {#setup-hook-autopatchelfhook} +# autoPatchelfHook {#setup-hook-autopatchelfhook} This is a special setup hook which helps in packaging proprietary software in that it automatically tries to find missing shared library dependencies of ELF files based on the given `buildInputs` and `nativeBuildInputs`. diff --git a/third_party/nixpkgs/doc/hooks/breakpoint.section.md b/third_party/nixpkgs/doc/hooks/breakpoint.section.md index 9600e06b79..424a9424b5 100644 --- a/third_party/nixpkgs/doc/hooks/breakpoint.section.md +++ b/third_party/nixpkgs/doc/hooks/breakpoint.section.md @@ -1,5 +1,4 @@ - -### breakpointHook {#breakpointhook} +# breakpointHook {#breakpointhook} This hook will make a build pause instead of stopping when a failure happens. It prevents nix from cleaning up the build environment immediately and allows the user to attach to a build environment using the `cntr` command. Upon build error it will print instructions on how to use `cntr`, which can be used to enter the environment for debugging. Installing cntr and running the command will provide shell access to the build sandbox of failed build. At `/var/lib/cntr` the sandboxed filesystem is mounted. All commands and files of the system are still accessible within the shell. To execute commands from the sandbox use the cntr exec subcommand. `cntr` is only supported on Linux-based platforms. To use it first add `cntr` to your `environment.systemPackages` on NixOS or alternatively to the root user on non-NixOS systems. Then in the package that is supposed to be inspected, add `breakpointHook` to `nativeBuildInputs`. diff --git a/third_party/nixpkgs/doc/hooks/cmake.section.md b/third_party/nixpkgs/doc/hooks/cmake.section.md index 58fbfa45a2..b5dc5a9144 100644 --- a/third_party/nixpkgs/doc/hooks/cmake.section.md +++ b/third_party/nixpkgs/doc/hooks/cmake.section.md @@ -1,4 +1,3 @@ - -### cmake {#cmake} +# cmake {#cmake} 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 hook’s 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. diff --git a/third_party/nixpkgs/doc/hooks/gdk-pixbuf.section.md b/third_party/nixpkgs/doc/hooks/gdk-pixbuf.section.md index 565216560a..cf7203dfc6 100644 --- a/third_party/nixpkgs/doc/hooks/gdk-pixbuf.section.md +++ b/third_party/nixpkgs/doc/hooks/gdk-pixbuf.section.md @@ -1,4 +1,3 @@ - -### gdk-pixbuf {#setup-hook-gdk-pixbuf} +# gdk-pixbuf {#setup-hook-gdk-pixbuf} Exports `GDK_PIXBUF_MODULE_FILE` environment variable to the builder. Add librsvg package to `buildInputs` to get svg support. See also the [setup hook description in GNOME platform docs](#ssec-gnome-hooks-gdk-pixbuf). diff --git a/third_party/nixpkgs/doc/hooks/ghc.section.md b/third_party/nixpkgs/doc/hooks/ghc.section.md index a4b0841ea4..ac054b954a 100644 --- a/third_party/nixpkgs/doc/hooks/ghc.section.md +++ b/third_party/nixpkgs/doc/hooks/ghc.section.md @@ -1,4 +1,3 @@ - -### GHC {#ghc} +# GHC {#ghc} Creates a temporary package database and registers every Haskell build input in it (TODO: how?). diff --git a/third_party/nixpkgs/doc/hooks/gnome.section.md b/third_party/nixpkgs/doc/hooks/gnome.section.md index 8c209d9b47..b10e808020 100644 --- a/third_party/nixpkgs/doc/hooks/gnome.section.md +++ b/third_party/nixpkgs/doc/hooks/gnome.section.md @@ -1,4 +1,3 @@ - -### GNOME platform {#gnome-platform} +# GNOME platform {#gnome-platform} Hooks related to GNOME platform and related libraries like GLib, GTK and GStreamer are described in [](#sec-language-gnome). diff --git a/third_party/nixpkgs/doc/hooks/index.md b/third_party/nixpkgs/doc/hooks/index.md new file mode 100644 index 0000000000..c1e86a3033 --- /dev/null +++ b/third_party/nixpkgs/doc/hooks/index.md @@ -0,0 +1,33 @@ +# Hooks reference {#chap-hooks} + +Nixpkgs has several hook packages that augment the stdenv phases. + +The stdenv built-in hooks are documented in [](#ssec-setup-hooks). + +```{=include=} sections +autoconf.section.md +automake.section.md +autopatchelf.section.md +breakpoint.section.md +cmake.section.md +gdk-pixbuf.section.md +ghc.section.md +gnome.section.md +installShellFiles.section.md +libiconv.section.md +libxml2.section.md +meson.section.md +ninja.section.md +patch-rc-path-hooks.section.md +perl.section.md +pkg-config.section.md +postgresql-test-hook.section.md +python.section.md +qt-4.section.md +scons.section.md +tetex-tex-live.section.md +unzip.section.md +validatePkgConfig.section.md +waf.section.md +xcbuild.section.md +``` diff --git a/third_party/nixpkgs/doc/hooks/index.xml b/third_party/nixpkgs/doc/hooks/index.xml deleted file mode 100644 index 0917fac6c0..0000000000 --- a/third_party/nixpkgs/doc/hooks/index.xml +++ /dev/null @@ -1,37 +0,0 @@ - - Hooks reference - - Nixpkgs has several hook packages that augment the stdenv phases. - - - The stdenv built-in hooks are documented in . - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/third_party/nixpkgs/doc/hooks/installShellFiles.section.md b/third_party/nixpkgs/doc/hooks/installShellFiles.section.md index d27527503f..84adea2fa3 100644 --- a/third_party/nixpkgs/doc/hooks/installShellFiles.section.md +++ b/third_party/nixpkgs/doc/hooks/installShellFiles.section.md @@ -1,5 +1,4 @@ - -### `installShellFiles` {#installshellfiles} +# `installShellFiles` {#installshellfiles} 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. diff --git a/third_party/nixpkgs/doc/hooks/libiconv.section.md b/third_party/nixpkgs/doc/hooks/libiconv.section.md index c228fe339e..0ffa6d09b0 100644 --- a/third_party/nixpkgs/doc/hooks/libiconv.section.md +++ b/third_party/nixpkgs/doc/hooks/libiconv.section.md @@ -1,4 +1,3 @@ - -### libiconv, libintl {#libiconv-libintl} +# libiconv, libintl {#libiconv-libintl} A few libraries automatically add to `NIX_LDFLAGS` their library, making their symbols automatically available to the linker. This includes libiconv and libintl (gettext). This is done to provide compatibility between GNU Linux, where libiconv and libintl are bundled in, and other systems where that might not be the case. Sometimes, this behavior is not desired. To disable this behavior, set `dontAddExtraLibs`. diff --git a/third_party/nixpkgs/doc/hooks/libxml2.section.md b/third_party/nixpkgs/doc/hooks/libxml2.section.md index 770ef9ff3f..df387fb5e2 100644 --- a/third_party/nixpkgs/doc/hooks/libxml2.section.md +++ b/third_party/nixpkgs/doc/hooks/libxml2.section.md @@ -1,4 +1,3 @@ - -### libxml2 {#setup-hook-libxml2} +# libxml2 {#setup-hook-libxml2} Adds every file named `catalog.xml` found under the `xml/dtd` and `xml/xsl` subdirectories of each build input to the `XML_CATALOG_FILES` environment variable. diff --git a/third_party/nixpkgs/doc/hooks/meson.section.md b/third_party/nixpkgs/doc/hooks/meson.section.md index 32804b5e32..fd7779e646 100644 --- a/third_party/nixpkgs/doc/hooks/meson.section.md +++ b/third_party/nixpkgs/doc/hooks/meson.section.md @@ -1,26 +1,25 @@ - -### Meson {#meson} +# Meson {#meson} Overrides the configure phase to run meson to generate Ninja files. To run these files, you should accompany Meson with ninja. By default, `enableParallelBuilding` is enabled as Meson supports parallel building almost everywhere. -#### Variables controlling Meson {#variables-controlling-meson} +## Variables controlling Meson {#variables-controlling-meson} -##### `mesonFlags` {#mesonflags} +### `mesonFlags` {#mesonflags} Controls the flags passed to meson. -##### `mesonBuildType` {#mesonbuildtype} +### `mesonBuildType` {#mesonbuildtype} Which [`--buildtype`](https://mesonbuild.com/Builtin-options.html#core-options) to pass to Meson. We default to `plain`. -##### `mesonAutoFeatures` {#mesonautofeatures} +### `mesonAutoFeatures` {#mesonautofeatures} What value to set [`-Dauto_features=`](https://mesonbuild.com/Builtin-options.html#core-options) to. We default to `enabled`. -##### `mesonWrapMode` {#mesonwrapmode} +### `mesonWrapMode` {#mesonwrapmode} What value to set [`-Dwrap_mode=`](https://mesonbuild.com/Builtin-options.html#core-options) to. We default to `nodownload` as we disallow network access. -##### `dontUseMesonConfigure` {#dontusemesonconfigure} +### `dontUseMesonConfigure` {#dontusemesonconfigure} Disables using Meson’s `configurePhase`. diff --git a/third_party/nixpkgs/doc/hooks/ninja.section.md b/third_party/nixpkgs/doc/hooks/ninja.section.md index 5ea1ee8707..4b0e33feb5 100644 --- a/third_party/nixpkgs/doc/hooks/ninja.section.md +++ b/third_party/nixpkgs/doc/hooks/ninja.section.md @@ -1,4 +1,3 @@ - -### ninja {#ninja} +# ninja {#ninja} Overrides the build, install, and check phase to run ninja instead of make. You can disable this behavior with the `dontUseNinjaBuild`, `dontUseNinjaInstall`, and `dontUseNinjaCheck`, respectively. Parallel building is enabled by default in Ninja. diff --git a/third_party/nixpkgs/doc/hooks/perl.section.md b/third_party/nixpkgs/doc/hooks/perl.section.md index 403227a9bf..06942bd3c0 100644 --- a/third_party/nixpkgs/doc/hooks/perl.section.md +++ b/third_party/nixpkgs/doc/hooks/perl.section.md @@ -1,4 +1,3 @@ - -### Perl {#setup-hook-perl} +# Perl {#setup-hook-perl} Adds the `lib/site_perl` subdirectory of each build input to the `PERL5LIB` environment variable. For instance, if `buildInputs` contains Perl, then the `lib/site_perl` subdirectory of each input is added to the `PERL5LIB` environment variable. diff --git a/third_party/nixpkgs/doc/hooks/pkg-config.section.md b/third_party/nixpkgs/doc/hooks/pkg-config.section.md index 969c81f6d1..c98701cf9c 100644 --- a/third_party/nixpkgs/doc/hooks/pkg-config.section.md +++ b/third_party/nixpkgs/doc/hooks/pkg-config.section.md @@ -1,4 +1,3 @@ - -### pkg-config {#setup-hook-pkg-config} +# pkg-config {#setup-hook-pkg-config} Adds the `lib/pkgconfig` and `share/pkgconfig` subdirectories of each build input to the `PKG_CONFIG_PATH` environment variable. diff --git a/third_party/nixpkgs/doc/hooks/python.section.md b/third_party/nixpkgs/doc/hooks/python.section.md index a46a727e95..ecaae491e9 100644 --- a/third_party/nixpkgs/doc/hooks/python.section.md +++ b/third_party/nixpkgs/doc/hooks/python.section.md @@ -1,4 +1,3 @@ - -### Python {#setup-hook-python} +# Python {#setup-hook-python} Adds the `lib/${python.libPrefix}/site-packages` subdirectory of each build input to the `PYTHONPATH` environment variable. diff --git a/third_party/nixpkgs/doc/hooks/qt-4.section.md b/third_party/nixpkgs/doc/hooks/qt-4.section.md index f15d858e23..4b704df495 100644 --- a/third_party/nixpkgs/doc/hooks/qt-4.section.md +++ b/third_party/nixpkgs/doc/hooks/qt-4.section.md @@ -1,4 +1,3 @@ - -### Qt 4 {#qt-4} +# Qt 4 {#qt-4} Sets the `QTDIR` environment variable to Qt’s path. diff --git a/third_party/nixpkgs/doc/hooks/scons.section.md b/third_party/nixpkgs/doc/hooks/scons.section.md index 1392269e5d..0a7a7aa023 100644 --- a/third_party/nixpkgs/doc/hooks/scons.section.md +++ b/third_party/nixpkgs/doc/hooks/scons.section.md @@ -1,4 +1,3 @@ - -### scons {#scons} +# scons {#scons} Overrides the build, install, and check phases. This uses the scons build system as a replacement for make. scons does not provide a configure phase, so everything is managed at build and install time. diff --git a/third_party/nixpkgs/doc/hooks/tetex-tex-live.section.md b/third_party/nixpkgs/doc/hooks/tetex-tex-live.section.md index 0ecdcc12e4..b702971d72 100644 --- a/third_party/nixpkgs/doc/hooks/tetex-tex-live.section.md +++ b/third_party/nixpkgs/doc/hooks/tetex-tex-live.section.md @@ -1,4 +1,3 @@ - -### teTeX / TeX Live {#tetex-tex-live} +# teTeX / TeX Live {#tetex-tex-live} Adds the `share/texmf-nix` subdirectory of each build input to the `TEXINPUTS` environment variable. diff --git a/third_party/nixpkgs/doc/hooks/unzip.section.md b/third_party/nixpkgs/doc/hooks/unzip.section.md index 91dc072de6..5ec67e576a 100644 --- a/third_party/nixpkgs/doc/hooks/unzip.section.md +++ b/third_party/nixpkgs/doc/hooks/unzip.section.md @@ -1,4 +1,3 @@ - -### unzip {#unzip} +# unzip {#unzip} This setup hook will allow you to unzip .zip files specified in `$src`. There are many similar packages like `unrar`, `undmg`, etc. diff --git a/third_party/nixpkgs/doc/hooks/validatePkgConfig.section.md b/third_party/nixpkgs/doc/hooks/validatePkgConfig.section.md index 8719ae930f..aa6e0c06c2 100644 --- a/third_party/nixpkgs/doc/hooks/validatePkgConfig.section.md +++ b/third_party/nixpkgs/doc/hooks/validatePkgConfig.section.md @@ -1,4 +1,3 @@ - -### validatePkgConfig {#validatepkgconfig} +# validatePkgConfig {#validatepkgconfig} The `validatePkgConfig` hook validates all pkg-config (`.pc`) files in a package. This helps catching some common errors in pkg-config files, such as undefined variables. diff --git a/third_party/nixpkgs/doc/hooks/waf.section.md b/third_party/nixpkgs/doc/hooks/waf.section.md index de65abde45..ee1bccff1d 100644 --- a/third_party/nixpkgs/doc/hooks/waf.section.md +++ b/third_party/nixpkgs/doc/hooks/waf.section.md @@ -1,4 +1,3 @@ - -### wafHook {#wafhook} +# wafHook {#wafhook} Overrides the configure, build, and install phases. This will run the “waf†script used by many projects. If `wafPath` (default `./waf`) doesn’t exist, it will copy the version of waf available in Nixpkgs. `wafFlags` can be used to pass flags to the waf script. diff --git a/third_party/nixpkgs/doc/hooks/xcbuild.section.md b/third_party/nixpkgs/doc/hooks/xcbuild.section.md index 1426431f6d..bf404b64c3 100644 --- a/third_party/nixpkgs/doc/hooks/xcbuild.section.md +++ b/third_party/nixpkgs/doc/hooks/xcbuild.section.md @@ -1,4 +1,3 @@ - -### xcbuildHook {#xcbuildhook} +# xcbuildHook {#xcbuildhook} Overrides the build and install phases to run the "xcbuild" command. This hook is needed when a project only comes with build files for the XCode build system. You can disable this behavior by setting buildPhase and configurePhase to a custom value. xcbuildFlags controls flags passed only to xcbuild. diff --git a/third_party/nixpkgs/doc/languages-frameworks/bower.section.md b/third_party/nixpkgs/doc/languages-frameworks/bower.section.md index 6226dc0702..fceb6aaccb 100644 --- a/third_party/nixpkgs/doc/languages-frameworks/bower.section.md +++ b/third_party/nixpkgs/doc/languages-frameworks/bower.section.md @@ -1,6 +1,6 @@ # Bower {#sec-bower} -[Bower](https://bower.io) is a package manager for web site front-end components. Bower packages (comprising of build artefacts and sometimes sources) are stored in `git` repositories, typically on Github. The package registry is run by the Bower team with package metadata coming from the `bower.json` file within each package. +[Bower](https://bower.io) is a package manager for web site front-end components. Bower packages (comprising of build artifacts and sometimes sources) are stored in `git` repositories, typically on Github. The package registry is run by the Bower team with package metadata coming from the `bower.json` file within each package. The end result of running Bower is a `bower_components` directory which can be included in the web app's build process. @@ -41,32 +41,18 @@ The function is implemented in [pkgs/development/bower-modules/generic/default.n ### Example buildBowerComponents {#ex-buildBowerComponents} -```{=docbook} - +```nix bowerComponents = buildBowerComponents { name = "my-web-app"; - generated = ./bower-packages.nix; - src = myWebApp; + generated = ./bower-packages.nix; # note 1 + src = myWebApp; # note 2 }; - ``` In ["buildBowerComponents" example](#ex-buildBowerComponents) the following arguments are of special significance to the function: -```{=docbook} - - - - generated specifies the file which was created by bower2nix. - - - - - src is your project's sources. It needs to contain a bower.json file. - - - -``` +1. `generated` specifies the file which was created by {command}`bower2nix`. +2. `src` is your project's sources. It needs to contain a {file}`bower.json` file. `buildBowerComponents` will run Bower to link together the output of `bower2nix`, resulting in a `bower_components` directory which can be used. @@ -91,10 +77,9 @@ gulp.task('build', [], function () { ### Example Full example — default.nix {#ex-buildBowerComponentsDefaultNix} -```{=docbook} - +```nix { myWebApp ? { outPath = ./.; name = "myWebApp"; } -, pkgs ? import <nixpkgs> {} +, pkgs ? import {} }: pkgs.stdenv.mkDerivation { @@ -103,49 +88,29 @@ pkgs.stdenv.mkDerivation { buildInputs = [ pkgs.nodePackages.gulp ]; - bowerComponents = pkgs.buildBowerComponents { + bowerComponents = pkgs.buildBowerComponents { # note 1 name = "my-web-app"; generated = ./bower-packages.nix; src = myWebApp; }; buildPhase = '' - cp --reflink=auto --no-preserve=mode -R $bowerComponents/bower_components . - export HOME=$PWD - ${pkgs.nodePackages.gulp}/bin/gulp build + cp --reflink=auto --no-preserve=mode -R $bowerComponents/bower_components . # note 2 + export HOME=$PWD # note 3 + ${pkgs.nodePackages.gulp}/bin/gulp build # note 4 ''; installPhase = "mv gulpdist $out"; } - ``` A few notes about [Full example — `default.nix`](#ex-buildBowerComponentsDefaultNix): -```{=docbook} - - - - The result of buildBowerComponents is an input to the frontend build. - - - - - Whether to symlink or copy the bower_components directory depends on the build tool in use. In this case a copy is used to avoid gulp silliness with permissions. - - - - - gulp requires HOME to refer to a writeable directory. - - - - - The actual build command. Other tools could be used. - - - -``` +1. The result of `buildBowerComponents` is an input to the frontend build. +2. Whether to symlink or copy the {file}`bower_components` directory depends on the build tool in use. + In this case a copy is used to avoid {command}`gulp` silliness with permissions. +3. {command}`gulp` requires `HOME` to refer to a writeable directory. +4. The actual build command in this example is {command}`gulp`. Other tools could be used instead. ## Troubleshooting {#ssec-bower2nix-troubleshooting} diff --git a/third_party/nixpkgs/doc/languages-frameworks/cuda.section.md b/third_party/nixpkgs/doc/languages-frameworks/cuda.section.md index f523a8c884..6b19e02e74 100644 --- a/third_party/nixpkgs/doc/languages-frameworks/cuda.section.md +++ b/third_party/nixpkgs/doc/languages-frameworks/cuda.section.md @@ -8,7 +8,7 @@ A package set is available for each CUDA version, so for example `cudaPackages_11_6`. Within each set is a matching version of the above listed packages. Additionally, other versions of the packages that are packaged and compatible are available as well. For example, there can be a -`cudaPackages.cudnn_8_3_2` package. +`cudaPackages.cudnn_8_3` package. To use one or more CUDA packages in an expression, give the expression a `cudaPackages` parameter, and in case CUDA is optional ```nix @@ -28,7 +28,7 @@ set. ```nix mypkg = let cudaPackages = cudaPackages_11_5.overrideScope' (final: prev: { - cudnn = prev.cudnn_8_3_2; + cudnn = prev.cudnn_8_3; }}); in callPackage { inherit cudaPackages; }; ``` diff --git a/third_party/nixpkgs/doc/languages-frameworks/dhall.section.md b/third_party/nixpkgs/doc/languages-frameworks/dhall.section.md index 83fe2e9ae0..846b8cfd31 100644 --- a/third_party/nixpkgs/doc/languages-frameworks/dhall.section.md +++ b/third_party/nixpkgs/doc/languages-frameworks/dhall.section.md @@ -307,12 +307,12 @@ $ nix-env --install --attr haskellPackages.dhall-nixpkgs $ nix-env --install --attr nix-prefetch-git # Used by dhall-to-nixpkgs -$ dhall-to-nixpkgs github https://github.com/Gabriel439/dhall-semver.git +$ dhall-to-nixpkgs github https://github.com/Gabriella439/dhall-semver.git { buildDhallGitHubPackage, Prelude }: buildDhallGitHubPackage { name = "dhall-semver"; githubBase = "github.com"; - owner = "Gabriel439"; + owner = "Gabriella439"; repo = "dhall-semver"; rev = "2d44ae605302ce5dc6c657a1216887fbb96392a4"; fetchSubmodules = false; diff --git a/third_party/nixpkgs/doc/languages-frameworks/dotnet.section.md b/third_party/nixpkgs/doc/languages-frameworks/dotnet.section.md index b6a622875a..246490d67d 100644 --- a/third_party/nixpkgs/doc/languages-frameworks/dotnet.section.md +++ b/third_party/nixpkgs/doc/languages-frameworks/dotnet.section.md @@ -92,7 +92,7 @@ The `dotnetCorePackages.sdk` contains both a runtime and the full sdk of a given To package Dotnet applications, you can use `buildDotnetModule`. This has similar arguments to `stdenv.mkDerivation`, with the following additions: -* `projectFile` is used for specifying the dotnet project file, relative to the source root. These usually have `.sln` or `.csproj` file extensions. This can be a list of multiple projects as well. Most of the time dotnet can figure this location out by itself, so this should only be set if necessary. +* `projectFile` is used for specifying the dotnet project file, relative to the source root. These have `.sln` (entire solution) or `.csproj` (single project) file extensions. This can be a list of multiple projects as well. When omitted, will attempt to find and build the solution (`.sln`). If running into problems, make sure to set it to a file (or a list of files) with the `.csproj` extension - building applications as entire solutions is not fully supported by the .NET CLI. * `nugetDeps` takes either a path to a `deps.nix` file, or a derivation. The `deps.nix` file can be generated using the script attached to `passthru.fetch-deps`. This file can also be generated manually using `nuget-to-nix` tool, which is available in nixpkgs. If the argument is a derivation, it will be used directly and assume it has the same output as `mkNugetDeps`. * `packNupkg` is used to pack project as a `nupkg`, and installs it to `$out/share`. If set to `true`, the derivation can be used as a dependency for another dotnet project by adding it to `projectReferences`. * `projectReferences` can be used to resolve `ProjectReference` project items. Referenced projects can be packed with `buildDotnetModule` by setting the `packNupkg = true` attribute and passing a list of derivations to `projectReferences`. Since we are sharing referenced projects as NuGets they must be added to csproj/fsproj files as `PackageReference` as well. @@ -108,11 +108,13 @@ To package Dotnet applications, you can use `buildDotnetModule`. This has simila * `executables` is used to specify which executables get wrapped to `$out/bin`, relative to `$out/lib/$pname`. If this is unset, all executables generated will get installed. If you do not want to install any, set this to `[]`. This gets done in the `preFixup` phase. * `runtimeDeps` is used to wrap libraries into `LD_LIBRARY_PATH`. This is how dotnet usually handles runtime dependencies. * `buildType` is used to change the type of build. Possible values are `Release`, `Debug`, etc. By default, this is set to `Release`. -* `selfContainedBuild` allows to enable the [self-contained](https://docs.microsoft.com/en-us/dotnet/core/deploying/#publish-self-contained) build flag. By default, it is set to false and generated applications have a dependency on the selected dotnet runtime. If enabled, the dotnet runtime is bundled into the executable and the built app has no dependency on Dotnet. +* `selfContainedBuild` allows to enable the [self-contained](https://docs.microsoft.com/en-us/dotnet/core/deploying/#publish-self-contained) build flag. By default, it is set to false and generated applications have a dependency on the selected dotnet runtime. If enabled, the dotnet runtime is bundled into the executable and the built app has no dependency on .NET. +* `useAppHost` will enable creation of a binary executable that runs the .NET application using the specified root. More info in [Microsoft docs](https://learn.microsoft.com/en-us/dotnet/core/deploying/#publish-framework-dependent). Enabled by default. +* `useDotnetFromEnv` will change the binary wrapper so that it uses the .NET from the environment. The runtime specified by `dotnet-runtime` is given as a fallback in case no .NET is installed in the user's environment. This is most useful for .NET global tools and LSP servers, which often extend the .NET CLI and their runtime should match the users' .NET runtime. * `dotnet-sdk` is useful in cases where you need to change what dotnet SDK is being used. You can also set this to the result of `dotnetSdkPackages.combinePackages`, if the project uses multiple SDKs to build. * `dotnet-runtime` is useful in cases where you need to change what dotnet runtime is being used. This can be either a regular dotnet runtime, or an aspnetcore. * `dotnet-test-sdk` is useful in cases where unit tests expect a different dotnet SDK. By default, this is set to the `dotnet-sdk` attribute. -* `testProjectFile` is useful in cases where the regular project file does not contain the unit tests. It gets restored and build, but not installed. You may need to regenerate your nuget lockfile after setting this. +* `testProjectFile` is useful in cases where the regular project file does not contain the unit tests. It gets restored and build, but not installed. You may need to regenerate your nuget lockfile after setting this. Note that if set, only tests from this project are executed. * `disabledTests` is used to disable running specific unit tests. This gets passed as: `dotnet test --filter "FullyQualifiedName!={}"`, to ensure compatibility with all unit test frameworks. * `dotnetRestoreFlags` can be used to pass flags to `dotnet restore`. * `dotnetBuildFlags` can be used to pass flags to `dotnet build`. @@ -121,7 +123,7 @@ To package Dotnet applications, you can use `buildDotnetModule`. This has simila * `dotnetPackFlags` can be used to pass flags to `dotnet pack`. Used only if `packNupkg` is set to `true`. * `dotnetFlags` can be used to pass flags to all of the above phases. -When packaging a new application, you need to fetch its dependencies. You can run `nix-build -A package.fetch-deps` to generate a script that will build a lockfile for you. After running the script you should have the location of the generated lockfile printed to the console, which can be copied to a stable directory. Then set `nugetDeps = ./deps.nix` and you're ready to build the derivation. +When packaging a new application, you need to fetch its dependencies. Create an empty `deps.nix`, set `nugetDeps = ./deps.nix`, then run `nix-build -A package.fetch-deps` to generate a script that will build the lockfile for you. Here is an example `default.nix`, using some of the previously discussed arguments: ```nix @@ -151,3 +153,60 @@ in buildDotnetModule rec { runtimeDeps = [ ffmpeg ]; # This will wrap ffmpeg's library path into `LD_LIBRARY_PATH`. } ``` + +## Dotnet global tools {#dotnet-global-tools} + +[.NET Global tools](https://learn.microsoft.com/en-us/dotnet/core/tools/global-tools) are a mechanism provided by the dotnet CLI to install .NET binaries from Nuget packages. + +They can be installed either as a global tool for the entire system, or as a local tool specific to project. + +The local installation is the easiest and works on NixOS in the same way as on other Linux distributions. +[See dotnet documention](https://learn.microsoft.com/en-us/dotnet/core/tools/global-tools#install-a-local-tool) to learn more. + +[The global installation method](https://learn.microsoft.com/en-us/dotnet/core/tools/global-tools#install-a-global-tool) +should also work most of the time. You have to remember to update the `PATH` +value to the location the tools are installed to (the CLI will inform you about it during installation) and also set +the `DOTNET_ROOT` value, so that the tool can find the .NET SDK package. +You can find the path to the SDK by running `nix eval --raw nixpkgs#dotnet-sdk` (substitute the `dotnet-sdk` package for +another if a different SDK version is needed). + +This method is not recommended on NixOS, since it's not declarative and involves installing binaries not made for NixOS, +which will not always work. + +The third, and preferred way, is packaging the tool into a Nix derivation. + +### Packaging Dotnet global tools {#packaging-dotnet-global-tools} + +Dotnet global tools are standard .NET binaries, just made available through a special +NuGet package. Therefore, they can be built and packaged like every .NET application, +using `buildDotnetModule`. + +If however the source is not available or difficult to build, the +`buildDotnetGlobalTool` helper can be used, which will package the tool +straight from its NuGet package. + +This helper has the same arguments as `buildDotnetModule`, with a few differences: + +* `pname` and `version` are required, and will be used to find the NuGet package of the tool +* `nugetName` can be used to override the NuGet package name that will be downloaded, if it's different from `pname` +* `nugetSha256` is the hash of the fetched NuGet package. Set this to `lib.fakeHash256` for the first build, and it will error out, giving you the proper hash. Also remember to update it during version updates (it will not error out if you just change the version while having a fetched package in `/nix/store`) +* `dotnet-runtime` is set to `dotnet-sdk` by default. When changing this, remember that .NET tools fetched from NuGet require an SDK. + +Here is an example of packaging `pbm`, an unfree binary without source available: +```nix +{ buildDotnetGlobalTool, lib }: + +buildDotnetGlobalTool { + pname = "pbm"; + version = "1.3.1"; + + nugetSha256 = "sha256-ZG2HFyKYhVNVYd2kRlkbAjZJq88OADe3yjxmLuxXDUo="; + + meta = with lib; { + homepage = "https://cmd.petabridge.com/index.html"; + changelog = "https://cmd.petabridge.com/articles/RELEASE_NOTES.html"; + license = licenses.unfree; + platforms = platforms.linux; + }; +} +``` diff --git a/third_party/nixpkgs/doc/languages-frameworks/gnome.section.md b/third_party/nixpkgs/doc/languages-frameworks/gnome.section.md index 3c8539ac42..5208f1013c 100644 --- a/third_party/nixpkgs/doc/languages-frameworks/gnome.section.md +++ b/third_party/nixpkgs/doc/languages-frameworks/gnome.section.md @@ -27,7 +27,7 @@ The modules are typically installed to `lib/gio/modules/` directory of a package In particular, we recommend: -* adding `dconf.lib` for any software on Linux that reads [GSettings](#ssec-gnome-settings) (even transitivily through e.g. GTK’s file manager) +* adding `dconf.lib` for any software on Linux that reads [GSettings](#ssec-gnome-settings) (even transitively through e.g. GTK’s file manager) * adding `glib-networking` for any software that accesses network using GIO or libsoup – glib-networking contains a module that implements TLS support and loads system-wide proxy settings To allow software to use various virtual file systems, `gvfs` package can be also added. But that is usually an optional feature so we typically use `gvfs` from the system (e.g. installed globally using NixOS module). @@ -137,15 +137,15 @@ Most GNOME package offer [`updateScript`](#var-passthru-updateScript), it is the ## Frequently encountered issues {#ssec-gnome-common-issues} -#### `GLib-GIO-ERROR **: 06:04:50.903: No GSettings schemas are installed on the system` {#ssec-gnome-common-issues-no-schemas} +### `GLib-GIO-ERROR **: 06:04:50.903: No GSettings schemas are installed on the system` {#ssec-gnome-common-issues-no-schemas} There are no schemas available in `XDG_DATA_DIRS`. Temporarily add a random package containing schemas like `gsettings-desktop-schemas` to `buildInputs`. [`glib`](#ssec-gnome-hooks-glib) and [`wrapGAppsHook`](#ssec-gnome-hooks-wrapgappshook) setup hooks will take care of making the schemas available to application and you will see the actual missing schemas with the [next error](#ssec-gnome-common-issues-missing-schema). Or you can try looking through the source code for the actual schemas used. -#### `GLib-GIO-ERROR **: 06:04:50.903: Settings schema ‘org.gnome.foo’ is not installed` {#ssec-gnome-common-issues-missing-schema} +### `GLib-GIO-ERROR **: 06:04:50.903: Settings schema ‘org.gnome.foo’ is not installed` {#ssec-gnome-common-issues-missing-schema} Package is missing some GSettings schemas. You can find out the package containing the schema with `nix-locate org.gnome.foo.gschema.xml` and let the hooks handle the wrapping as [above](#ssec-gnome-common-issues-no-schemas). -#### When using `wrapGAppsHook` with special derivers you can end up with double wrapped binaries. {#ssec-gnome-common-issues-double-wrapped} +### When using `wrapGAppsHook` with special derivers you can end up with double wrapped binaries. {#ssec-gnome-common-issues-double-wrapped} This is because derivers like `python.pkgs.buildPythonApplication` or `qt5.mkDerivation` have setup-hooks automatically added that produce wrappers with makeWrapper. The simplest way to workaround that is to disable the `wrapGAppsHook` automatic wrapping with `dontWrapGApps = true;` and pass the arguments it intended to pass to makeWrapper to another. @@ -193,7 +193,7 @@ mkDerivation { } ``` -#### I am packaging a project that cannot be wrapped, like a library or GNOME Shell extension. {#ssec-gnome-common-issues-unwrappable-package} +### I am packaging a project that cannot be wrapped, like a library or GNOME Shell extension. {#ssec-gnome-common-issues-unwrappable-package} You can rely on applications depending on the library setting the necessary environment variables but that is often easy to miss. Instead we recommend to patch the paths in the source code whenever possible. Here are some examples: @@ -209,6 +209,6 @@ You can rely on applications depending on the library setting the necessary envi []{#ssec-gnome-common-issues-unwrappable-package-gsettings-c} [Hard-coding GSettings schema path in C library](https://github.com/NixOS/nixpkgs/blob/29c120c065d03b000224872251bed93932d42412/pkgs/development/libraries/glib-networking/default.nix#L31-L34) – nothing special other than using [Coccinelle patch](https://github.com/NixOS/nixpkgs/pull/67957#issuecomment-527717467) to generate the patch itself. -#### I need to wrap a binary outside `bin` and `libexec` directories. {#ssec-gnome-common-issues-weird-location} +### I need to wrap a binary outside `bin` and `libexec` directories. {#ssec-gnome-common-issues-weird-location} You can manually trigger the wrapping with `wrapGApp` in `preFixup` phase. It takes a path to a program as a first argument; the remaining arguments are passed directly to [`wrapProgram`](#fun-wrapProgram) function. diff --git a/third_party/nixpkgs/doc/languages-frameworks/go.section.md b/third_party/nixpkgs/doc/languages-frameworks/go.section.md index c697a69087..cf18084142 100644 --- a/third_party/nixpkgs/doc/languages-frameworks/go.section.md +++ b/third_party/nixpkgs/doc/languages-frameworks/go.section.md @@ -19,7 +19,7 @@ In the following is an example expression using `buildGoModule`, the following a To avoid updating this field when dependencies change, run `go mod vendor` in your source repo and set `vendorHash = null;` To obtain the actual hash, set `vendorHash = lib.fakeSha256;` and run the build ([more details here](#sec-source-hashes)). -- `proxyVendor`: Fetches (go mod download) and proxies the vendor directory. This is useful if your code depends on c code and go mod tidy does not include the needed sources to build or if any dependency has case-insensitive conflicts which will produce platform dependant `vendorHash` checksums. +- `proxyVendor`: Fetches (go mod download) and proxies the vendor directory. This is useful if your code depends on c code and go mod tidy does not include the needed sources to build or if any dependency has case-insensitive conflicts which will produce platform-dependent `vendorHash` checksums. - `modPostBuild`: Shell commands to run after the build of the go-modules executes `go mod vendor`, and before calculating fixed output derivation's `vendorHash` (or `vendorSha256`). Note that if you change this attribute, you need to update `vendorHash` (or `vendorSha256`) attribute. ```nix diff --git a/third_party/nixpkgs/doc/languages-frameworks/haskell.section.md b/third_party/nixpkgs/doc/languages-frameworks/haskell.section.md index a36843c97c..6097233184 100644 --- a/third_party/nixpkgs/doc/languages-frameworks/haskell.section.md +++ b/third_party/nixpkgs/doc/languages-frameworks/haskell.section.md @@ -23,7 +23,7 @@ installing and using them. All of these packages are originally defined in the `haskellPackages` package set and are re-exposed with a reduced dependency closure for convenience. -(see `justStaticExecutables` below) +(see `justStaticExecutables` or `separateBinOutput` below) The `haskellPackages` set includes at least one version of every package from Hackage as well as some manually injected packages. This amounts to a lot of @@ -45,16 +45,17 @@ The attribute names in `haskellPackages` always correspond with their name on Hackage. Since Hackage allows names that are not valid Nix without escaping, you need to take care when handling attribute names like `3dmodels`. -For packages that are part of [Stackage], we use the version prescribed by a -Stackage solver (usually the current LTS one) as the default version. For all -other packages we use the latest version from Hackage. See -[below](#haskell-available-versions) to learn which versions are provided -exactly. +For packages that are part of [Stackage] (a curated set of known to be +compatible packages), we use the version prescribed by a Stackage snapshot +(usually the current LTS one) as the default version. For all other packages we +use the latest version from [Hackage](https://hackage.org) (the repository of +basically all open source Haskell packages). See [below](#haskell-available- +versions) for a few more details on this. -Roughly half of the 16K packages contained in `haskellPackages` don't actually -build and are marked as broken semi-automatically. Most of those packages are -deprecated or unmaintained, but sometimes packages that should build, do not -build. Very often fixing them is not a lot of work. +Roughly half of the 16K packages contained in `haskellPackages` don’t actually +build and are [marked as broken semi-automatically](https://github.com/NixOS/nixpkgs/blob/haskell-updates/pkgs/development/haskell-modules/configuration-hackage2nix/broken.yaml). +Most of those packages are deprecated or unmaintained, but sometimes packages +that should build, do not build. Very often fixing them is not a lot of work. + +```nix +let + # Name of the compiler and package set you want to change. If you are using + # the default package set `haskellPackages`, you need to look up what version + # of GHC it currently uses (note that this is subject to change). + ghcName = "ghc92"; + # Desired new setting + enableProfiling = true; +in + +[ + # The first overlay modifies the GHC derivation so that it does or does not + # build profiling versions of the core libraries bundled with it. It is + # recommended to only use such an overlay if you are enabling profiling on a + # platform that doesn't by default, because compiling GHC from scratch is + # quite expensive. + (final: prev: + let + inherit (final) lib; + in + + { + haskell = lib.recursiveUpdate prev.haskell { + compiler.${ghcName} = prev.haskell.compiler.${ghcName}.override { + # Unfortunately, the GHC setting is named differently for historical reasons + enableProfiledLibs = enableProfiling; + }; + }; + }) + + (final: prev: + let + inherit (final) lib; + haskellLib = final.haskell.lib.compose; + in + + { + haskell = lib.recursiveUpdate prev.haskell { + packages.${ghcName} = prev.haskell.packages.${ghcName}.override { + overrides = hfinal: hprev: { + mkDerivation = args: hprev.mkDerivation (args // { + # Since we are forcing our ideas upon mkDerivation, this change will + # affect every package in the package set. + enableLibraryProfiling = enableProfiling; + + # To actually use profiling on an executable, executable profiling + # needs to be enabled for the executable you want to profile. You + # can either do this globally or… + enableExecutableProfiling = enableProfiling; + }); + + # …only for the package that contains an executable you want to profile. + # That saves on unnecessary rebuilds for packages that you only depend + # on for their library, but also contain executables (e.g. pandoc). + my-executable = haskellLib.enableExecutableProfiling hprev.my-executable; + + # If you are disabling profiling to save on build time, but want to + # retain the ability to substitute from the binary cache. Drop the + # override for mkDerivation above and instead have an override like + # this for the specific packages you are building locally and want + # to make cheaper to build. + my-library = haskellLib.disableLibraryProfiling hprev.my-library; + }; + }; + }; + }) +] +``` + + + [Stackage]: https://www.stackage.org [cabal-project-files]: https://cabal.readthedocs.io/en/latest/cabal-project.html [cabal2nix]: https://github.com/nixos/cabal2nix @@ -1083,8 +1289,11 @@ on the issue linked above. [haskell.nix]: https://input-output-hk.github.io/haskell.nix/index.html [HLS user guide]: https://haskell-language-server.readthedocs.io/en/latest/configuration.html#configuring-your-editor [hoogle]: https://wiki.haskell.org/Hoogle +[incremental-builds]: https://www.haskellforall.com/2022/12/nixpkgs-support-for-incremental-haskell.html [jailbreak-cabal]: https://github.com/NixOS/jailbreak-cabal/ +[multiple-outputs]: https://nixos.org/manual/nixpkgs/stable/#chap-multiple-output [optparse-applicative-completions]: https://github.com/pcapriotti/optparse-applicative/blob/7726b63796aa5d0df82e926d467f039b78ca09e2/README.md#bash-zsh-and-fish-completions [profiling-detail]: https://cabal.readthedocs.io/en/latest/cabal-project.html#cfg-field-profiling-detail [profiling]: https://downloads.haskell.org/~ghc/latest/docs/html/users_guide/profiling.html [search.nixos.org]: https://search.nixos.org +[turtle]: https://hackage.haskell.org/package/turtle diff --git a/third_party/nixpkgs/doc/languages-frameworks/index.md b/third_party/nixpkgs/doc/languages-frameworks/index.md new file mode 100644 index 0000000000..cdbf08f179 --- /dev/null +++ b/third_party/nixpkgs/doc/languages-frameworks/index.md @@ -0,0 +1,45 @@ +# Languages and frameworks {#chap-language-support} + +The [standard build environment](#chap-stdenv) makes it easy to build typical Autotools-based packages with very little code. Any other kind of package can be accommodated by overriding the appropriate phases of `stdenv`. However, there are specialised functions in Nixpkgs to easily build packages for other programming languages, such as Perl or Haskell. These are described in this chapter. + +```{=include=} sections +agda.section.md +android.section.md +beam.section.md +bower.section.md +chicken.section.md +coq.section.md +crystal.section.md +cuda.section.md +cuelang.section.md +dart.section.md +dhall.section.md +dotnet.section.md +emscripten.section.md +gnome.section.md +go.section.md +haskell.section.md +hy.section.md +idris.section.md +ios.section.md +java.section.md +javascript.section.md +lisp.section.md +lua.section.md +maven.section.md +nim.section.md +ocaml.section.md +octave.section.md +perl.section.md +php.section.md +pkg-config.section.md +python.section.md +qt.section.md +r.section.md +ruby.section.md +rust.section.md +swift.section.md +texlive.section.md +titanium.section.md +vim.section.md +``` diff --git a/third_party/nixpkgs/doc/languages-frameworks/index.xml b/third_party/nixpkgs/doc/languages-frameworks/index.xml deleted file mode 100644 index 94c4e30302..0000000000 --- a/third_party/nixpkgs/doc/languages-frameworks/index.xml +++ /dev/null @@ -1,47 +0,0 @@ - - Languages and frameworks - - The standard build environment makes it easy to build typical Autotools-based packages with very little code. Any other kind of package can be accommodated by overriding the appropriate phases of stdenv. However, there are specialised functions in Nixpkgs to easily build packages for other programming languages, such as Perl or Haskell. These are described in this chapter. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/third_party/nixpkgs/doc/languages-frameworks/ios.section.md b/third_party/nixpkgs/doc/languages-frameworks/ios.section.md index 04b013be12..eb8e2ca553 100644 --- a/third_party/nixpkgs/doc/languages-frameworks/ios.section.md +++ b/third_party/nixpkgs/doc/languages-frameworks/ios.section.md @@ -104,7 +104,7 @@ The above function takes a variety of parameters: and the location where the source code resides * `sdkVersion` specifies which version of the iOS SDK to use. -It also possile to adjust the `xcodebuild` parameters. This is only needed in +It also possible to adjust the `xcodebuild` parameters. This is only needed in rare circumstances. In most cases the default values should suffice: * Specifies which `xcodebuild` target to build. By default it takes the target @@ -130,7 +130,7 @@ In addition, you need to set the following parameters: store certificates. * `generateIPA` specifies that we want to produce an IPA file (this is probably what you want) -* `generateXCArchive` specifies thet we want to produce an xcarchive file. +* `generateXCArchive` specifies that we want to produce an xcarchive file. When building IPA files on Hydra and when it is desired to allow iOS devices to install IPAs by browsing to the Hydra build products page, you can enable the diff --git a/third_party/nixpkgs/doc/languages-frameworks/javascript.section.md b/third_party/nixpkgs/doc/languages-frameworks/javascript.section.md index fdb570ebc3..0a2099b0a6 100644 --- a/third_party/nixpkgs/doc/languages-frameworks/javascript.section.md +++ b/third_party/nixpkgs/doc/languages-frameworks/javascript.section.md @@ -143,7 +143,7 @@ To update NPM packages in nixpkgs, run the same `generate.sh` script: #### Git protocol error {#javascript-git-error} Some packages may have Git dependencies from GitHub specified with `git://`. -GitHub has [disabled unecrypted Git connections](https://github.blog/2021-09-01-improving-git-protocol-security-github/#no-more-unauthenticated-git), so you may see the following error when running the generate script: +GitHub has [disabled unencrypted Git connections](https://github.blog/2021-09-01-improving-git-protocol-security-github/#no-more-unauthenticated-git), so you may see the following error when running the generate script: ``` The unauthenticated git protocol on port 9418 is no longer supported @@ -196,10 +196,14 @@ buildNpmPackage rec { * `npmDepsHash`: The output hash of the dependencies for this project. Can be calculated in advance with [`prefetch-npm-deps`](#javascript-buildNpmPackage-prefetch-npm-deps). * `makeCacheWritable`: Whether to make the cache writable prior to installing dependencies. Don't set this unless npm tries to write to the cache directory, as it can slow down the build. * `npmBuildScript`: The script to run to build the project. Defaults to `"build"`. +* `npmWorkspace`: The workspace directory within the project to build and install. +* `dontNpmBuild`: Option to disable running the build script. Set to `true` if the package does not have a build script. Defaults to `false`. Alternatively, setting `buildPhase` explicitly also disables this. +* `dontNpmInstall`: Option to disable running `npm install`. Defaults to `false`. Alternatively, setting `installPhase` explicitly also disables this. * `npmFlags`: Flags to pass to all npm commands. -* `npmInstallFlags`: Flags to pass to `npm ci` and `npm prune`. +* `npmInstallFlags`: Flags to pass to `npm ci`. * `npmBuildFlags`: Flags to pass to `npm run ${npmBuildScript}`. * `npmPackFlags`: Flags to pass to `npm pack`. +* `npmPruneFlags`: Flags to pass to `npm prune`. Defaults to the value of `npmInstallFlags`. #### prefetch-npm-deps {#javascript-buildNpmPackage-prefetch-npm-deps} diff --git a/third_party/nixpkgs/doc/languages-frameworks/lua.section.md b/third_party/nixpkgs/doc/languages-frameworks/lua.section.md index 2ed02ab9d6..c5049326a7 100644 --- a/third_party/nixpkgs/doc/languages-frameworks/lua.section.md +++ b/third_party/nixpkgs/doc/languages-frameworks/lua.section.md @@ -179,7 +179,7 @@ Each interpreter has the following attributes: #### `buildLuarocksPackage` function {#buildluarockspackage-function} -The `buildLuarocksPackage` function is implemented in `pkgs/development/interpreters/lua-5/build-lua-package.nix` +The `buildLuarocksPackage` function is implemented in `pkgs/development/interpreters/lua-5/build-luarocks-package.nix` The following is an example: ```nix luaposix = buildLuarocksPackage { diff --git a/third_party/nixpkgs/doc/languages-frameworks/maven.section.md b/third_party/nixpkgs/doc/languages-frameworks/maven.section.md index cc5b4e3ed7..3b5e2e14ee 100644 --- a/third_party/nixpkgs/doc/languages-frameworks/maven.section.md +++ b/third_party/nixpkgs/doc/languages-frameworks/maven.section.md @@ -165,6 +165,39 @@ The build will fail, and tell you the expected `outputHash` to place. When you'v If your package uses _SNAPSHOT_ dependencies or _version ranges_; there is a strong likelihood that over-time your output hash will change since the resolved dependencies may change. Hence this method is less recommended then using `buildMaven`. +#### Stable Maven plugins {#stable-maven-plugins} + +Maven defines default versions for its core plugins, e.g. `maven-compiler-plugin`. +If your project does not override these versions, an upgrade of Maven will change the version of the used plugins. +This changes the output of the first invocation and the plugins required by the second invocation. +However, since a hash is given for the output of the first invocation, the second invocation will simply fail +because the requested plugins are missing. +This will prevent automatic upgrades of Maven: the manual fix for this is to change the hash of the first invocation. + +To make sure that your package does not add manual effort when upgrading Maven, explicitly define versions for all +plugins. You can check if this is the case by adding the following plugin to your (parent) POM: + +```xml + + org.apache.maven.plugins + maven-enforcer-plugin + 3.3.0 + + + enforce-plugin-versions + + enforce + + + + + + + + + +``` + ## Building a JAR {#building-a-jar} Regardless of which strategy is chosen above, the step to build the derivation is the same. diff --git a/third_party/nixpkgs/doc/languages-frameworks/nim.section.md b/third_party/nixpkgs/doc/languages-frameworks/nim.section.md index 4f97c7585f..6b0fb3df03 100644 --- a/third_party/nixpkgs/doc/languages-frameworks/nim.section.md +++ b/third_party/nixpkgs/doc/languages-frameworks/nim.section.md @@ -15,32 +15,23 @@ case of packages not containing exported library code the attribute The following example shows a Nim program that depends only on Nim libraries: ```nix -{ lib, nimPackages, fetchurl }: - -nimPackages.buildNimPackage rec { - pname = "hottext"; - version = "1.4"; +{ lib, nimPackages, fetchFromGitHub }: +nimPackages.buildNimPackage (finalAttrs: { + pname = "ttop"; + version = "1.0.1"; nimBinOnly = true; - src = fetchurl { - url = "https://git.sr.ht/~ehmry/hottext/archive/v${version}.tar.gz"; - hash = "sha256-hIUofi81zowSMbt1lUsxCnVzfJGN3FEiTtN8CEFpwzY="; + src = fetchFromGitHub { + owner = "inv2004"; + repo = "ttop"; + rev = "v${finalAttrs.version}"; + hash = "sha256-x4Uczksh6p3XX/IMrOFtBxIleVHdAPX9e8n32VAUTC4="; }; - buildInputs = with nimPackages; [ - bumpy - chroma - flatty - nimsimd - pixie - sdl2 - typography - vmath - zippy - ]; -} + buildInputs = with nimPackages; [ asciigraph illwill parsetoml zippy ]; +}) ``` ## Nim library packages in Nixpkgs {#nim-library-packages-in-nixpkgs} @@ -60,15 +51,15 @@ non-Nim package: ```nix { lib, buildNimPackage, fetchNimble, SDL2 }: -buildNimPackage rec { +buildNimPackage (finalAttrs: { pname = "sdl2"; version = "2.0.4"; src = fetchNimble { - inherit pname version; - hash = "sha256-qDtVSnf+7rTq36WAxgsUZ8XoUk4sKwHyt8EJcY5WP+o="; + inherit (finalAttrs) pname version; + hash = "sha256-Vtcj8goI4zZPQs2TbFoBFlcR5UqDtOldaXSH/+/xULk="; }; propagatedBuildInputs = [ SDL2 ]; -} +}) ``` ## `buildNimPackage` parameters {#buildnimpackage-parameters} diff --git a/third_party/nixpkgs/doc/languages-frameworks/php.section.md b/third_party/nixpkgs/doc/languages-frameworks/php.section.md index 8600e49d45..6c4315f5c4 100644 --- a/third_party/nixpkgs/doc/languages-frameworks/php.section.md +++ b/third_party/nixpkgs/doc/languages-frameworks/php.section.md @@ -22,7 +22,7 @@ NixOS - not necessarily the latest major release from upstream. All available PHP attributes are wrappers around their respective binary PHP package and provide commonly used extensions this way. The -real PHP 7.4 package, i.e. the unwrapped one, is available as +real PHP 8.1 package, i.e. the unwrapped one, is available as `php81.unwrapped`; see the next section for more details. Interactive tools built on PHP are put in `php.packages`; composer is diff --git a/third_party/nixpkgs/doc/languages-frameworks/python.section.md b/third_party/nixpkgs/doc/languages-frameworks/python.section.md index 9cd80b9385..23c8526787 100644 --- a/third_party/nixpkgs/doc/languages-frameworks/python.section.md +++ b/third_party/nixpkgs/doc/languages-frameworks/python.section.md @@ -512,9 +512,10 @@ when building the bindings and are therefore added as `buildInputs`. ```nix { lib -, pkgs , buildPythonPackage , fetchPypi +, libxml2 +, libxslt }: buildPythonPackage rec { @@ -528,8 +529,8 @@ buildPythonPackage rec { }; buildInputs = [ - pkgs.libxml2 - pkgs.libxslt + libxml2 + libxslt ]; meta = with lib; { @@ -554,11 +555,13 @@ therefore we have to set `LDFLAGS` and `CFLAGS`. ```nix { lib -, pkgs , buildPythonPackage , fetchPypi # dependencies +, fftw +, fftwFloat +, fftwLongDouble , numpy , scipy }: @@ -574,9 +577,9 @@ buildPythonPackage rec { }; buildInputs = [ - pkgs.fftw - pkgs.fftwFloat - pkgs.fftwLongDouble + fftw + fftwFloat + fftwLongDouble ]; propagatedBuildInputs = [ @@ -585,8 +588,8 @@ buildPythonPackage rec { ]; preConfigure = '' - export LDFLAGS="-L${pkgs.fftw.dev}/lib -L${pkgs.fftwFloat.out}/lib -L${pkgs.fftwLongDouble.out}/lib" - export CFLAGS="-I${pkgs.fftw.dev}/include -I${pkgs.fftwFloat.dev}/include -I${pkgs.fftwLongDouble.dev}/include" + export LDFLAGS="-L${fftw.dev}/lib -L${fftwFloat.out}/lib -L${fftwLongDouble.out}/lib" + export CFLAGS="-I${fftw.dev}/include -I${fftwFloat.dev}/include -I${fftwLongDouble.dev}/include" ''; # Tests cannot import pyfftw. pyfftw works fine though. @@ -995,7 +998,7 @@ and in this case the `python3` interpreter is automatically used. ### Interpreters {#interpreters} Versions 2.7, 3.8, 3.9, 3.10 and 3.11 of the CPython interpreter are available -as respectively `python27`, python38`, `python39`, `python310` and `python311`. +as respectively `python27`, `python38`, `python39`, `python310` and `python311`. The aliases `python2` and `python3` correspond to respectively `python27` and `python310`. The attribute `python` maps to `python2`. The PyPy interpreters compatible with Python 2.7 and 3 are available as `pypy27` and `pypy3`, with @@ -1514,10 +1517,6 @@ Note: There is a boolean value `lib.inNixShell` set to `true` if nix-shell is in Packages inside nixpkgs are written by hand. However many tools exist in community to help save time. No tool is preferred at the moment. -- [pypi2nix](https://github.com/nix-community/pypi2nix): Generate Nix - expressions for your Python project. Note that [sharing derivations from - pypi2nix with nixpkgs is possible but not - encouraged](https://github.com/nix-community/pypi2nix/issues/222#issuecomment-443497376). - [nixpkgs-pytools](https://github.com/nix-community/nixpkgs-pytools) - [poetry2nix](https://github.com/nix-community/poetry2nix) diff --git a/third_party/nixpkgs/doc/languages-frameworks/qt.section.md b/third_party/nixpkgs/doc/languages-frameworks/qt.section.md index e09194e391..2300c5f60e 100644 --- a/third_party/nixpkgs/doc/languages-frameworks/qt.section.md +++ b/third_party/nixpkgs/doc/languages-frameworks/qt.section.md @@ -10,37 +10,22 @@ pure and explicit at build-time, at the cost of introducing an extra indirection ## Nix expression for a Qt package (default.nix) {#qt-default-nix} -```{=docbook} - -{ stdenv, lib, qtbase, wrapQtAppsHook }: +```nix +{ stdenv, lib, qtbase, wrapQtAppsHook }: stdenv.mkDerivation { pname = "myapp"; version = "1.0"; buildInputs = [ qtbase ]; - nativeBuildInputs = [ wrapQtAppsHook ]; + nativeBuildInputs = [ wrapQtAppsHook ]; } - - - - - - Import Qt modules directly, that is: qtbase, qtdeclarative, etc. - Do not import Qt package sets such as qt5 - because the Qt versions of dependencies may not be coherent, causing build and runtime failures. - - - - - All Qt packages must include wrapQtAppsHook in - nativeBuildInputs, or you must explicitly set - dontWrapQtApps. - - - ``` +It is important to import Qt modules directly, that is: `qtbase`, `qtdeclarative`, etc. *Do not* import Qt package sets such as `qt5` because the Qt versions of dependencies may not be coherent, causing build and runtime failures. + +Additionally all Qt packages must include `wrapQtAppsHook` in `nativeBuildInputs`, or you must explicitly set `dontWrapQtApps`. + ## Locating runtime dependencies {#qt-runtime-dependencies} Qt applications must be wrapped to find runtime dependencies. diff --git a/third_party/nixpkgs/doc/lib.md b/third_party/nixpkgs/doc/lib.md new file mode 100644 index 0000000000..2c3105333e --- /dev/null +++ b/third_party/nixpkgs/doc/lib.md @@ -0,0 +1,6 @@ +# Nixpkgs `lib` {#id-1.4} + +```{=include=} chapters +functions.md +module-system/module-system.chapter.md +``` diff --git a/third_party/nixpkgs/doc/manual.md.in b/third_party/nixpkgs/doc/manual.md.in new file mode 100644 index 0000000000..a4a73a9130 --- /dev/null +++ b/third_party/nixpkgs/doc/manual.md.in @@ -0,0 +1,14 @@ +# Nixpkgs Manual {#nixpkgs-manual} +## Version @MANUAL_VERSION@ + +```{=include=} chapters +preface.chapter.md +``` + +```{=include=} parts +using-nixpkgs.md +lib.md +stdenv.md +builders.md +contributing.md +``` diff --git a/third_party/nixpkgs/doc/manual.xml b/third_party/nixpkgs/doc/manual.xml deleted file mode 100644 index de3d40f553..0000000000 --- a/third_party/nixpkgs/doc/manual.xml +++ /dev/null @@ -1,49 +0,0 @@ - - - Nixpkgs Manual - Version - - - - - Using Nixpkgs - - - - - - Nixpkgs <code>lib</code> - - - - - Standard environment - - - - - - - - Builders - - - - - - - - - - - Contributing to Nixpkgs - - - - - - - - diff --git a/third_party/nixpkgs/doc/shell.nix b/third_party/nixpkgs/doc/shell.nix deleted file mode 100644 index 5fa2b44248..0000000000 --- a/third_party/nixpkgs/doc/shell.nix +++ /dev/null @@ -1,3 +0,0 @@ -{ pkgs ? import ../. { } }: -(import ./default.nix { }).overrideAttrs -(x: { buildInputs = (x.buildInputs or [ ]) ++ [ pkgs.xmloscopy pkgs.ruby ]; }) diff --git a/third_party/nixpkgs/doc/stdenv.md b/third_party/nixpkgs/doc/stdenv.md new file mode 100644 index 0000000000..1ef81f84b5 --- /dev/null +++ b/third_party/nixpkgs/doc/stdenv.md @@ -0,0 +1,9 @@ +# Standard environment {#part-stdenv} + +```{=include=} chapters +stdenv/stdenv.chapter.md +stdenv/meta.chapter.md +stdenv/multiple-output.chapter.md +stdenv/cross-compilation.chapter.md +stdenv/platform-notes.chapter.md +``` diff --git a/third_party/nixpkgs/doc/stdenv/meta.chapter.md b/third_party/nixpkgs/doc/stdenv/meta.chapter.md index 2e0cae67d5..e626e79429 100644 --- a/third_party/nixpkgs/doc/stdenv/meta.chapter.md +++ b/third_party/nixpkgs/doc/stdenv/meta.chapter.md @@ -70,7 +70,7 @@ A list of the maintainers of this Nix expression. Maintainers are defined in [`n ### `mainProgram` {#var-meta-mainProgram} -The name of the main binary for the package. This effects the binary `nix run` executes and falls back to the name of the package. Example: `"rg"` +The name of the main binary for the package. This affects the binary `nix run` executes and falls back to the name of the package. Example: `"rg"` ### `priority` {#var-meta-priority} @@ -128,7 +128,7 @@ Prefer `passthru.tests` for tests that are introduced in nixpkgs because: * we can run `passthru.tests` independently * `installCheckPhase` adds overhead to each build -For more on how to write and run package tests, see . +For more on how to write and run package tests, see [](#sec-package-tests). #### NixOS tests {#var-meta-tests-nixos} @@ -182,7 +182,7 @@ runCommand "my-package-test" { ### `timeout` {#var-meta-timeout} -A timeout (in seconds) for building the derivation. If the derivation takes longer than this time to build, it can fail due to breaking the timeout. However, all computers do not have the same computing power, hence some builders may decide to apply a multiplicative factor to this value. When filling this value in, try to keep it approximately consistent with other values already present in `nixpkgs`. +A timeout (in seconds) for building the derivation. If the derivation takes longer than this time to build, Hydra will fail it due to breaking the timeout. However, all computers do not have the same computing power, hence some builders may decide to apply a multiplicative factor to this value. When filling this value in, try to keep it approximately consistent with other values already present in `nixpkgs`. `meta` attributes are not stored in the instantiated derivation. Therefore, this setting may be lost when the package is used as a dependency. diff --git a/third_party/nixpkgs/doc/stdenv/stdenv.chapter.md b/third_party/nixpkgs/doc/stdenv/stdenv.chapter.md index a923da935c..a0f81b97f6 100644 --- a/third_party/nixpkgs/doc/stdenv/stdenv.chapter.md +++ b/third_party/nixpkgs/doc/stdenv/stdenv.chapter.md @@ -286,7 +286,7 @@ This is where “sum-like†comes in from above: We can just sum all of the hos Because of the bounds checks, the uncommon cases are `h = t` and `h + 2 = t`. In the former case, the motivation for `mapOffset` is that since its host and target platforms are the same, no transitive dependency of it should be able to “discover†an offset greater than its reduced target offsets. `mapOffset` effectively “squashes†all its transitive dependencies’ offsets so that none will ever be greater than the target offset of the original `h = t` package. In the other case, `h + 1` is skipped over between the host and target offsets. Instead of squashing the offsets, we need to “rip†them apart so no transitive dependencies’ offset is that one. -Overall, the unifying theme here is that propagation shouldn’t be introducing transitive dependencies involving platforms the depending package is unaware of. \[One can imagine the dependending package asking for dependencies with the platforms it knows about; other platforms it doesn’t know how to ask for. The platform description in that scenario is a kind of unforagable capability.\] The offset bounds checking and definition of `mapOffset` together ensure that this is the case. Discovering a new offset is discovering a new platform, and since those platforms weren’t in the derivation “spec†of the needing package, they cannot be relevant. From a capability perspective, we can imagine that the host and target platforms of a package are the capabilities a package requires, and the depending package must provide the capability to the dependency. +Overall, the unifying theme here is that propagation shouldn’t be introducing transitive dependencies involving platforms the depending package is unaware of. \[One can imagine the depending package asking for dependencies with the platforms it knows about; other platforms it doesn’t know how to ask for. The platform description in that scenario is a kind of unforgeable capability.\] The offset bounds checking and definition of `mapOffset` together ensure that this is the case. Discovering a new offset is discovering a new platform, and since those platforms weren’t in the derivation “spec†of the needing package, they cannot be relevant. From a capability perspective, we can imagine that the host and target platforms of a package are the capabilities a package requires, and the depending package must provide the capability to the dependency. #### Variables specifying dependencies {#variables-specifying-dependencies} @@ -464,10 +464,8 @@ The commit object contains the following values: If the returned array contains exactly one object (e.g. `[{}]`), all values are optional and will be determined automatically. -```{=docbook} - -Standard output of an update script using commit feature -``` +::: {.example #var-passthru-updateScript-example-commit} +# Standard output of an update script using commit feature ```json [ @@ -481,10 +479,7 @@ If the returned array contains exactly one object (e.g. `[{}]`), all values are } ] ``` - -```{=docbook} - -``` +::: ### Recursive attributes in `mkDerivation` {#mkderivation-recursive-attributes} @@ -971,7 +966,8 @@ to `~/.gdbinit`. GDB will then be able to find debug information installed via ` The installCheck phase checks whether the package was installed correctly by running its test suite against the installed directories. The default `installCheck` calls `make installcheck`. -It is often better to add tests that are not part of the source distribution to `passthru.tests` (see ). This avoids adding overhead to every build and enables us to run them independently. +It is often better to add tests that are not part of the source distribution to `passthru.tests` (see +[](#var-meta-tests)). This avoids adding overhead to every build and enables us to run them independently. #### Variables controlling the installCheck phase {#variables-controlling-the-installcheck-phase} @@ -1234,7 +1230,7 @@ This runs the strip command on installed binaries and libraries. This removes un This setup hook patches installed scripts to add Nix store paths to their shebang interpreter as found in the build environment. The [shebang](https://en.wikipedia.org/wiki/Shebang_(Unix)) line tells a Unix-like operating system which interpreter to use to execute the script's contents. -::: note +::: {.note} The [generic builder][generic-builder] populates `PATH` from inputs of the derivation. ::: @@ -1272,7 +1268,7 @@ patchShebangs --build configure Interpreter paths that point to a valid Nix store location are not changed. -::: note +::: {.note} A script file must be marked as executable, otherwise it will not be considered. ::: diff --git a/third_party/nixpkgs/doc/using-nixpkgs.md b/third_party/nixpkgs/doc/using-nixpkgs.md new file mode 100644 index 0000000000..bb222ae384 --- /dev/null +++ b/third_party/nixpkgs/doc/using-nixpkgs.md @@ -0,0 +1,7 @@ +# Using Nixpkgs {#part-using} + +```{=include=} chapters +using/configuration.chapter.md +using/overlays.chapter.md +using/overrides.chapter.md +``` diff --git a/third_party/nixpkgs/doc/using/configuration.chapter.md b/third_party/nixpkgs/doc/using/configuration.chapter.md index e657cb21c2..8d246b117b 100644 --- a/third_party/nixpkgs/doc/using/configuration.chapter.md +++ b/third_party/nixpkgs/doc/using/configuration.chapter.md @@ -185,8 +185,10 @@ You can define a function called `packageOverrides` in your local `~/.config/nix The following attributes can be passed in [`config`](#chap-packageconfig). -```{=docbook} - +```{=include=} options +id-prefix: opt- +list-id: configuration-variable-list +source: ../config-options.json ``` diff --git a/third_party/nixpkgs/doc/using/overrides.chapter.md b/third_party/nixpkgs/doc/using/overrides.chapter.md index 198b450419..a1ef9afb0b 100644 --- a/third_party/nixpkgs/doc/using/overrides.chapter.md +++ b/third_party/nixpkgs/doc/using/overrides.chapter.md @@ -16,6 +16,12 @@ Example usages: pkgs.foo.override { arg1 = val1; arg2 = val2; ... } ``` +It's also possible to access the previous arguments. + +```nix +pkgs.foo.override (previous: { arg1 = previous.arg1; ... }) +``` + ```nix @@ -36,15 +42,15 @@ In the first example, `pkgs.foo` is the result of a function call with some defa The function `overrideAttrs` allows overriding the attribute set passed to a `stdenv.mkDerivation` call, producing a new derivation based on the original one. This function is available on all derivations produced by the `stdenv.mkDerivation` function, which is most packages in the nixpkgs expression `pkgs`. -Example usage: +Example usages: ```nix -helloWithDebug = pkgs.hello.overrideAttrs (finalAttrs: previousAttrs: { - separateDebugInfo = true; +helloBar = pkgs.hello.overrideAttrs (finalAttrs: previousAttrs: { + pname = previousAttrs.pname + "-bar"; }); ``` -In the above example, the `separateDebugInfo` attribute is overridden to be true, thus building debug info for `helloWithDebug`, while all other attributes will be retained from the original `hello` package. +In the above example, "-bar" is appended to the pname attribute, while all other attributes will be retained from the original `hello` package. The argument `previousAttrs` is conventionally used to refer to the attr set originally passed to `stdenv.mkDerivation`. @@ -52,6 +58,16 @@ The argument `finalAttrs` refers to the final attributes passed to `mkDerivation If only a one-argument function is written, the argument has the meaning of `previousAttrs`. +Function arguments can be omitted entirely if there is no need to access `previousAttrs` or `finalAttrs`. + +```nix +helloWithDebug = pkgs.hello.overrideAttrs { + separateDebugInfo = true; +}; +``` + +In the above example, the `separateDebugInfo` attribute is overridden to be true, thus building debug info for `helloWithDebug`. + ::: {.note} Note that `separateDebugInfo` is processed only by the `stdenv.mkDerivation` function, not the generated, raw Nix derivation. Thus, using `overrideDerivation` will not work in this case, as it overrides only the attributes of the final derivation. It is for this reason that `overrideAttrs` should be preferred in (almost) all cases to `overrideDerivation`, i.e. to allow using `stdenv.mkDerivation` to process input arguments, as well as the fact that it is easier to use (you can use the same attribute names you see in your Nix code, instead of the ones generated (e.g. `buildInputs` vs `nativeBuildInputs`), and it involves less typing). ::: diff --git a/third_party/nixpkgs/lib/attrsets.nix b/third_party/nixpkgs/lib/attrsets.nix index 1f11eaaa82..0335146e2a 100644 --- a/third_party/nixpkgs/lib/attrsets.nix +++ b/third_party/nixpkgs/lib/attrsets.nix @@ -3,7 +3,7 @@ let inherit (builtins) head tail length; - inherit (lib.trivial) flip id mergeAttrs pipe; + inherit (lib.trivial) id mergeAttrs; inherit (lib.strings) concatStringsSep concatMapStringsSep escapeNixIdentifier sanitizeDerivationName; inherit (lib.lists) foldr foldl' concatMap concatLists elemAt all partition groupBy take foldl; in @@ -123,7 +123,11 @@ rec { { x = "a"; y = "b"; } => { x = "a"; xa = "a"; y = "b"; yb = "b"; } */ - concatMapAttrs = f: flip pipe [ (mapAttrs f) attrValues (foldl' mergeAttrs { }) ]; + concatMapAttrs = f: v: + foldl' mergeAttrs { } + (attrValues + (mapAttrs f v) + ); /* Update or set specific paths of an attribute set. diff --git a/third_party/nixpkgs/lib/customisation.nix b/third_party/nixpkgs/lib/customisation.nix index fe32e890f3..a9281b1ab6 100644 --- a/third_party/nixpkgs/lib/customisation.nix +++ b/third_party/nixpkgs/lib/customisation.nix @@ -46,12 +46,6 @@ rec { // (drv.passthru or {}) // - # TODO(@Artturin): remove before release 23.05 and only have __spliced. - (lib.optionalAttrs (drv ? crossDrv && drv ? nativeDrv) { - crossDrv = overrideDerivation drv.crossDrv f; - nativeDrv = overrideDerivation drv.nativeDrv f; - }) - // lib.optionalAttrs (drv ? __spliced) { __spliced = {} // (lib.mapAttrs (_: sDrv: overrideDerivation sDrv f) drv.__spliced); }); diff --git a/third_party/nixpkgs/lib/debug.nix b/third_party/nixpkgs/lib/debug.nix index a851cd7477..97e87acccf 100644 --- a/third_party/nixpkgs/lib/debug.nix +++ b/third_party/nixpkgs/lib/debug.nix @@ -15,22 +15,15 @@ { lib }: let inherit (lib) - isInt - attrNames isList isAttrs substring - addErrorContext attrValues concatLists - concatStringsSep const elem generators - head id - isDerivation - isFunction mapAttrs trace; in diff --git a/third_party/nixpkgs/lib/default.nix b/third_party/nixpkgs/lib/default.nix index 8fea4b8ad6..73b8ad8715 100644 --- a/third_party/nixpkgs/lib/default.nix +++ b/third_party/nixpkgs/lib/default.nix @@ -138,7 +138,7 @@ let mergeDefaultOption mergeOneOption mergeEqualOption mergeUniqueOption getValues getFiles optionAttrSetToDocList optionAttrSetToDocList' - scrubOptionValue literalExpression literalExample literalDocBook + scrubOptionValue literalExpression literalExample showOption showOptionWithDefLocs showFiles unknownModule mkOption mkPackageOption mkPackageOptionMD mdDoc literalMD; diff --git a/third_party/nixpkgs/lib/derivations.nix b/third_party/nixpkgs/lib/derivations.nix index dce98b46dd..5b7ed1868e 100644 --- a/third_party/nixpkgs/lib/derivations.nix +++ b/third_party/nixpkgs/lib/derivations.nix @@ -31,7 +31,7 @@ in (lazyDerivation { inherit derivation; meta.foo = true; }).meta - In these expressions, it `derivation` _will_ be evaluated: + In these expressions, `derivation` _will_ be evaluated: "${lazyDerivation { inherit derivation }}" diff --git a/third_party/nixpkgs/lib/filesystem.nix b/third_party/nixpkgs/lib/filesystem.nix index 4860d4d02a..f5bb8e9b59 100644 --- a/third_party/nixpkgs/lib/filesystem.nix +++ b/third_party/nixpkgs/lib/filesystem.nix @@ -9,10 +9,6 @@ let pathExists ; - inherit (lib.strings) - hasPrefix - ; - inherit (lib.filesystem) pathType ; diff --git a/third_party/nixpkgs/lib/fixed-points.nix b/third_party/nixpkgs/lib/fixed-points.nix index 926428293c..a63f349b71 100644 --- a/third_party/nixpkgs/lib/fixed-points.nix +++ b/third_party/nixpkgs/lib/fixed-points.nix @@ -1,34 +1,49 @@ { lib, ... }: rec { - # Compute the fixed point of the given function `f`, which is usually an - # attribute set that expects its final, non-recursive representation as an - # argument: - # - # f = self: { foo = "foo"; bar = "bar"; foobar = self.foo + self.bar; } - # - # Nix evaluates this recursion until all references to `self` have been - # resolved. At that point, the final result is returned and `f x = x` holds: - # - # nix-repl> fix f - # { bar = "bar"; foo = "foo"; foobar = "foobar"; } - # - # Type: fix :: (a -> a) -> a - # - # See https://en.wikipedia.org/wiki/Fixed-point_combinator for further - # details. + /* + Compute the fixed point of the given function `f`, which is usually an + attribute set that expects its final, non-recursive representation as an + argument: + + ``` + f = self: { foo = "foo"; bar = "bar"; foobar = self.foo + self.bar; } + ``` + + Nix evaluates this recursion until all references to `self` have been + resolved. At that point, the final result is returned and `f x = x` holds: + + ``` + nix-repl> fix f + { bar = "bar"; foo = "foo"; foobar = "foobar"; } + ``` + + Type: fix :: (a -> a) -> a + + See https://en.wikipedia.org/wiki/Fixed-point_combinator for further + details. + */ fix = f: let x = f x; in x; - # A variant of `fix` that records the original recursive attribute set in the - # result. This is useful in combination with the `extends` function to - # implement deep overriding. See pkgs/development/haskell-modules/default.nix - # for a concrete example. + /* + A variant of `fix` that records the original recursive attribute set in the + result, in an attribute named `__unfix__`. + + This is useful in combination with the `extends` function to + implement deep overriding. + */ fix' = f: let x = f x // { __unfix__ = f; }; in x; - # Return the fixpoint that `f` converges to when called recursively, starting - # with the input `x`. - # - # nix-repl> converge (x: x / 2) 16 - # 0 + /* + Return the fixpoint that `f` converges to when called iteratively, starting + with the input `x`. + + ``` + nix-repl> converge (x: x / 2) 16 + 0 + ``` + + Type: (a -> a) -> a -> a + */ converge = f: x: let x' = f x; @@ -37,75 +52,94 @@ rec { then x else converge f x'; - # Modify the contents of an explicitly recursive attribute set in a way that - # honors `self`-references. This is accomplished with a function - # - # g = self: super: { foo = super.foo + " + "; } - # - # that has access to the unmodified input (`super`) as well as the final - # non-recursive representation of the attribute set (`self`). `extends` - # differs from the native `//` operator insofar as that it's applied *before* - # references to `self` are resolved: - # - # nix-repl> fix (extends g f) - # { bar = "bar"; foo = "foo + "; foobar = "foo + bar"; } - # - # The name of the function is inspired by object-oriented inheritance, i.e. - # think of it as an infix operator `g extends f` that mimics the syntax from - # Java. It may seem counter-intuitive to have the "base class" as the second - # argument, but it's nice this way if several uses of `extends` are cascaded. - # - # To get a better understanding how `extends` turns a function with a fix - # point (the package set we start with) into a new function with a different fix - # point (the desired packages set) lets just see, how `extends g f` - # unfolds with `g` and `f` defined above: - # - # extends g f = self: let super = f self; in super // g self super; - # = self: let super = { foo = "foo"; bar = "bar"; foobar = self.foo + self.bar; }; in super // g self super - # = self: { foo = "foo"; bar = "bar"; foobar = self.foo + self.bar; } // g self { foo = "foo"; bar = "bar"; foobar = self.foo + self.bar; } - # = self: { foo = "foo"; bar = "bar"; foobar = self.foo + self.bar; } // { foo = "foo" + " + "; } - # = self: { foo = "foo + "; bar = "bar"; foobar = self.foo + self.bar; } - # + /* + Modify the contents of an explicitly recursive attribute set in a way that + honors `self`-references. This is accomplished with a function + + ```nix + g = self: super: { foo = super.foo + " + "; } + ``` + + that has access to the unmodified input (`super`) as well as the final + non-recursive representation of the attribute set (`self`). `extends` + differs from the native `//` operator insofar as that it's applied *before* + references to `self` are resolved: + + ``` + nix-repl> fix (extends g f) + { bar = "bar"; foo = "foo + "; foobar = "foo + bar"; } + ``` + + The name of the function is inspired by object-oriented inheritance, i.e. + think of it as an infix operator `g extends f` that mimics the syntax from + Java. It may seem counter-intuitive to have the "base class" as the second + argument, but it's nice this way if several uses of `extends` are cascaded. + + To get a better understanding how `extends` turns a function with a fix + point (the package set we start with) into a new function with a different fix + point (the desired packages set) lets just see, how `extends g f` + unfolds with `g` and `f` defined above: + + ``` + extends g f = self: let super = f self; in super // g self super; + = self: let super = { foo = "foo"; bar = "bar"; foobar = self.foo + self.bar; }; in super // g self super + = self: { foo = "foo"; bar = "bar"; foobar = self.foo + self.bar; } // g self { foo = "foo"; bar = "bar"; foobar = self.foo + self.bar; } + = self: { foo = "foo"; bar = "bar"; foobar = self.foo + self.bar; } // { foo = "foo" + " + "; } + = self: { foo = "foo + "; bar = "bar"; foobar = self.foo + self.bar; } + ``` + */ extends = f: rattrs: self: let super = rattrs self; in super // f self super; - # Compose two extending functions of the type expected by 'extends' - # into one where changes made in the first are available in the - # 'super' of the second + /* + Compose two extending functions of the type expected by 'extends' + into one where changes made in the first are available in the + 'super' of the second + */ composeExtensions = f: g: final: prev: let fApplied = f final prev; prev' = prev // fApplied; in fApplied // g final prev'; - # Compose several extending functions of the type expected by 'extends' into - # one where changes made in preceding functions are made available to - # subsequent ones. - # - # composeManyExtensions : [packageSet -> packageSet -> packageSet] -> packageSet -> packageSet -> packageSet - # ^final ^prev ^overrides ^final ^prev ^overrides + /* + Compose several extending functions of the type expected by 'extends' into + one where changes made in preceding functions are made available to + subsequent ones. + + ``` + composeManyExtensions : [packageSet -> packageSet -> packageSet] -> packageSet -> packageSet -> packageSet + ^final ^prev ^overrides ^final ^prev ^overrides + ``` + */ composeManyExtensions = lib.foldr (x: y: composeExtensions x y) (final: prev: {}); - # Create an overridable, recursive attribute set. For example: - # - # nix-repl> obj = makeExtensible (self: { }) - # - # nix-repl> obj - # { __unfix__ = «lambda»; extend = «lambda»; } - # - # nix-repl> obj = obj.extend (self: super: { foo = "foo"; }) - # - # nix-repl> obj - # { __unfix__ = «lambda»; extend = «lambda»; foo = "foo"; } - # - # nix-repl> obj = obj.extend (self: super: { foo = super.foo + " + "; bar = "bar"; foobar = self.foo + self.bar; }) - # - # nix-repl> obj - # { __unfix__ = «lambda»; bar = "bar"; extend = «lambda»; foo = "foo + "; foobar = "foo + bar"; } + /* + Create an overridable, recursive attribute set. For example: + + ``` + nix-repl> obj = makeExtensible (self: { }) + + nix-repl> obj + { __unfix__ = «lambda»; extend = «lambda»; } + + nix-repl> obj = obj.extend (self: super: { foo = "foo"; }) + + nix-repl> obj + { __unfix__ = «lambda»; extend = «lambda»; foo = "foo"; } + + nix-repl> obj = obj.extend (self: super: { foo = super.foo + " + "; bar = "bar"; foobar = self.foo + self.bar; }) + + nix-repl> obj + { __unfix__ = «lambda»; bar = "bar"; extend = «lambda»; foo = "foo + "; foobar = "foo + bar"; } + ``` + */ makeExtensible = makeExtensibleWithCustomName "extend"; - # Same as `makeExtensible` but the name of the extending attribute is - # customized. + /* + Same as `makeExtensible` but the name of the extending attribute is + customized. + */ makeExtensibleWithCustomName = extenderName: rattrs: fix' (self: (rattrs self) // { ${extenderName} = f: makeExtensibleWithCustomName extenderName (extends f rattrs); diff --git a/third_party/nixpkgs/lib/generators.nix b/third_party/nixpkgs/lib/generators.nix index 496845fc9a..a2dddedd2d 100644 --- a/third_party/nixpkgs/lib/generators.nix +++ b/third_party/nixpkgs/lib/generators.nix @@ -168,7 +168,7 @@ rec { mkKeyValue ? mkKeyValueDefault {} "=", # allow lists as values for duplicate keys listsAsDuplicateKeys ? false - }: { globalSection, sections }: + }: { globalSection, sections ? {} }: ( if globalSection == {} then "" else (toKeyValue { inherit mkKeyValue listsAsDuplicateKeys; } globalSection) diff --git a/third_party/nixpkgs/lib/licenses.nix b/third_party/nixpkgs/lib/licenses.nix index a9a1170050..ee71488263 100644 --- a/third_party/nixpkgs/lib/licenses.nix +++ b/third_party/nixpkgs/lib/licenses.nix @@ -1,7 +1,7 @@ { lib }: lib.mapAttrs (lname: lset: let - defaultLicense = rec { + defaultLicense = { shortName = lname; free = true; # Most of our licenses are Free, explicitly declare unfree additions as such! deprecated = false; @@ -98,6 +98,11 @@ in mkLicense lset) ({ fullName = "Artistic License 1.0"; }; + artistic1-cl8 = { + spdxId = "Artistic-1.0-cl8"; + fullName = "Artistic License 1.0 w/clause 8"; + }; + artistic2 = { spdxId = "Artistic-2.0"; fullName = "Artistic License 2.0"; @@ -178,6 +183,11 @@ in mkLicense lset) ({ fullName = ''BSD 3-clause "New" or "Revised" License''; }; + bsd3Clear = { + spdxId = "BSD-3-Clause-Clear"; + fullName = "BSD 3-Clause Clear License"; + }; + bsdOriginal = { spdxId = "BSD-4-Clause"; fullName = ''BSD 4-clause "Original" or "Old" License''; @@ -215,6 +225,12 @@ in mkLicense lset) ({ url = "https://opensource.org/licenses/CAL-1.0"; }; + caldera = { + spdxId = "Caldera"; + fullName = "Caldera License"; + url = "http://www.lemis.com/grog/UNIX/ancient-source-all.pdf"; + }; + capec = { fullName = "Common Attack Pattern Enumeration and Classification"; url = "https://capec.mitre.org/about/termsofuse.html"; @@ -284,11 +300,26 @@ in mkLicense lset) ({ free = false; }; + cc-by-sa-10 = { + spdxId = "CC-BY-SA-1.0"; + fullName = "Creative Commons Attribution Share Alike 1.0"; + }; + + cc-by-sa-20 = { + spdxId = "CC-BY-SA-2.0"; + fullName = "Creative Commons Attribution Share Alike 2.0"; + }; + cc-by-sa-25 = { spdxId = "CC-BY-SA-2.5"; fullName = "Creative Commons Attribution Share Alike 2.5"; }; + cc-by-10 = { + spdxId = "CC-BY-1.0"; + fullName = "Creative Commons Attribution 1.0"; + }; + cc-by-30 = { spdxId = "CC-BY-3.0"; fullName = "Creative Commons Attribution 3.0"; @@ -475,6 +506,16 @@ in mkLicense lset) ({ url = "http://www.schristiancollins.com/generaluser.php"; # license included in sources }; + gfl = { + fullName = "GUST Font License"; + url = "http://www.gust.org.pl/fonts/licenses/GUST-FONT-LICENSE.txt"; + }; + + gfsl = { + fullName = "GUST Font Source License"; + url = "http://www.gust.org.pl/fonts/licenses/GUST-FONT-SOURCE-LICENSE.txt"; + }; + gpl1Only = { spdxId = "GPL-1.0-only"; fullName = "GNU General Public License v1.0 only"; @@ -556,6 +597,12 @@ in mkLicense lset) ({ fullName = "Imlib2 License"; }; + info-zip = { + spdxId = "Info-ZIP"; + fullName = "Info-ZIP License"; + url = "http://www.info-zip.org/pub/infozip/license.html"; + }; + inria-compcert = { fullName = "INRIA Non-Commercial License Agreement for the CompCert verified compiler"; url = "https://compcert.org/doc/LICENSE.txt"; @@ -603,12 +650,24 @@ in mkLicense lset) ({ free = true; }; + fairsource09 = { + fullName = "Fair Source License, version 0.9"; + url = "https://fair.io/v0.9.txt"; + free = false; + redistributable = true; + }; + issl = { fullName = "Intel Simplified Software License"; url = "https://software.intel.com/en-us/license/intel-simplified-software-license"; free = false; }; + knuth = { + fullName = "Knuth CTAN License"; + spdxId = "Knuth-CTAN"; + }; + lal12 = { spdxId = "LAL-1.2"; fullName = "Licence Art Libre 1.2"; @@ -685,11 +744,21 @@ in mkLicense lset) ({ url = "https://opensource.franz.com/preamble.html"; }; + lppl1 = { + spdxId = "LPPL-1.0"; + fullName = "LaTeX Project Public License v1.0"; + }; + lppl12 = { spdxId = "LPPL-1.2"; fullName = "LaTeX Project Public License v1.2"; }; + lppl13a = { + spdxId = "LPPL-1.3a"; + fullName = "LaTeX Project Public License v1.3a"; + }; + lppl13c = { spdxId = "LPPL-1.3c"; fullName = "LaTeX Project Public License v1.3c"; @@ -747,6 +816,12 @@ in mkLicense lset) ({ fullName = "Microsoft Public License"; }; + mulan-psl2 = { + spdxId = "MulanPSL-2.0"; + fullName = "Mulan Permissive Software License, Version 2"; + url = "https://license.coscl.org.cn/MulanPSL2"; + }; + nasa13 = { spdxId = "NASA-1.3"; fullName = "NASA Open Source Agreement 1.3"; @@ -805,6 +880,11 @@ in mkLicense lset) ({ fullName = "OpenSSL License"; }; + opubl = { + spdxId = "OPUBL-1.0"; + fullName = "Open Publication License v1.0"; + }; + osl2 = { spdxId = "OSL-2.0"; fullName = "Open Software License 2.0"; @@ -927,6 +1007,14 @@ in mkLicense lset) ({ url = "https://github.com/thestk/stk/blob/master/LICENSE"; }; + sustainableUse = { + shortName = "sustainable"; + fullName = "Sustainable Use License"; + url = "https://github.com/n8n-io/n8n/blob/master/LICENSE.md"; + free = false; + redistributable = false; # only free to redistribute "for non-commercial purposes" + }; + tsl = { shortName = "TSL"; fullName = "Timescale License Agreegment"; diff --git a/third_party/nixpkgs/lib/lists.nix b/third_party/nixpkgs/lib/lists.nix index 2186cd4a79..5d9af0cf71 100644 --- a/third_party/nixpkgs/lib/lists.nix +++ b/third_party/nixpkgs/lib/lists.nix @@ -198,8 +198,38 @@ rec { default: # Input list list: - let found = filter pred list; - in if found == [] then default else head found; + let + # A naive recursive implementation would be much simpler, but + # would also overflow the evaluator stack. We use `foldl'` as a workaround + # because it reuses the same stack space, evaluating the function for one + # element after another. We can't return early, so this means that we + # sacrifice early cutoff, but that appears to be an acceptable cost. A + # clever scheme with "exponential search" is possible, but appears over- + # engineered for now. See https://github.com/NixOS/nixpkgs/pull/235267 + + # Invariant: + # - if index < 0 then el == elemAt list (- index - 1) and all elements before el didn't satisfy pred + # - if index >= 0 then pred (elemAt list index) and all elements before (elemAt list index) didn't satisfy pred + # + # We start with index -1 and the 0'th element of the list, which satisfies the invariant + resultIndex = foldl' (index: el: + if index < 0 then + # No match yet before the current index, we need to check the element + if pred el then + # We have a match! Turn it into the actual index to prevent future iterations from modifying it + - index - 1 + else + # Still no match, update the index to the next element (we're counting down, so minus one) + index - 1 + else + # There's already a match, propagate the index without evaluating anything + index + ) (-1) list; + in + if resultIndex < 0 then + default + else + elemAt list resultIndex; /* Return true if function `pred` returns true for at least one element of `list`. diff --git a/third_party/nixpkgs/lib/modules.nix b/third_party/nixpkgs/lib/modules.nix index 4dc8c663b2..f16df20425 100644 --- a/third_party/nixpkgs/lib/modules.nix +++ b/third_party/nixpkgs/lib/modules.nix @@ -21,7 +21,6 @@ let isBool isFunction isList - isPath isString length mapAttrs @@ -134,11 +133,6 @@ let ${if prefix == [] then null # unset => visible else "internal"} = true; - # TODO: hidden during the markdown transition to not expose downstream - # users of the docs infra to markdown if they're not ready for it. - # we don't make this visible conditionally because it can impact - # performance (https://github.com/NixOS/nixpkgs/pull/208407#issuecomment-1368246192) - visible = false; # TODO: Change the type of this option to a submodule with a # freeformType, so that individual arguments can be documented # separately @@ -545,59 +539,74 @@ let mergeModules' = prefix: options: configs: let - /* byName is like foldAttrs, but will look for attributes to merge in the - specified attribute name. - - byName "foo" (module: value: ["module.hidden=${module.hidden},value=${value}"]) - [ - { - hidden="baz"; - foo={qux="bar"; gla="flop";}; - } - { - hidden="fli"; - foo={qux="gne"; gli="flip";}; - } - ] - ===> - { - gla = [ "module.hidden=baz,value=flop" ]; - gli = [ "module.hidden=fli,value=flip" ]; - qux = [ "module.hidden=baz,value=bar" "module.hidden=fli,value=gne" ]; - } - */ - byName = attr: f: modules: - zipAttrsWith (n: concatLists) - (map (module: let subtree = module.${attr}; in + # an attrset 'name' => list of submodules that declare ‘name’. + declsByName = + zipAttrsWith + (n: concatLists) + (map + (module: let subtree = module.options; in if !(builtins.isAttrs subtree) then - throw (if attr == "config" then '' - You're trying to define a value of type `${builtins.typeOf subtree}' - rather than an attribute set for the option - `${builtins.concatStringsSep "." prefix}'! - - This usually happens if `${builtins.concatStringsSep "." prefix}' has option - definitions inside that are not matched. Please check how to properly define - this option by e.g. referring to `man 5 configuration.nix'! - '' else '' + throw '' An option declaration for `${builtins.concatStringsSep "." prefix}' has type `${builtins.typeOf subtree}' rather than an attribute set. Did you mean to define this outside of `options'? - '') + '' else - mapAttrs (n: f module) subtree - ) modules); - # an attrset 'name' => list of submodules that declare ‘name’. - declsByName = byName "options" (module: option: - [{ inherit (module) _file; options = option; }] - ) options; + mapAttrs + (n: option: + [{ inherit (module) _file; options = option; }] + ) + subtree + ) + options); + + # The root of any module definition must be an attrset. + checkedConfigs = + assert + lib.all + (c: + # TODO: I have my doubts that this error would occur when option definitions are not matched. + # The implementation of this check used to be tied to a superficially similar check for + # options, so maybe that's why this is here. + isAttrs c.config || throw '' + In module `${c.file}', you're trying to define a value of type `${builtins.typeOf c.config}' + rather than an attribute set for the option + `${builtins.concatStringsSep "." prefix}'! + + This usually happens if `${builtins.concatStringsSep "." prefix}' has option + definitions inside that are not matched. Please check how to properly define + this option by e.g. referring to `man 5 configuration.nix'! + '' + ) + configs; + configs; + # an attrset 'name' => list of submodules that define ‘name’. - defnsByName = byName "config" (module: value: - map (config: { inherit (module) file; inherit config; }) (pushDownProperties value) - ) configs; + pushedDownDefinitionsByName = + zipAttrsWith + (n: concatLists) + (map + (module: + mapAttrs + (n: value: + map (config: { inherit (module) file; inherit config; }) (pushDownProperties value) + ) + module.config + ) + checkedConfigs); # extract the definitions for each loc - defnsByName' = byName "config" (module: value: - [{ inherit (module) file; inherit value; }] - ) configs; + rawDefinitionsByName = + zipAttrsWith + (n: concatLists) + (map + (module: + mapAttrs + (n: value: + [{ inherit (module) file; inherit value; }] + ) + module.config + ) + checkedConfigs); # Convert an option tree decl to a submodule option decl optionTreeToOption = decl: @@ -619,8 +628,8 @@ let # We're descending into attribute ‘name’. let loc = prefix ++ [name]; - defns = defnsByName.${name} or []; - defns' = defnsByName'.${name} or []; + defns = pushedDownDefinitionsByName.${name} or []; + defns' = rawDefinitionsByName.${name} or []; optionDecls = filter (m: isOption m.options) decls; in if length optionDecls == length decls then @@ -663,7 +672,7 @@ let # Propagate all unmatched definitions from nested option sets mapAttrs (n: v: v.unmatchedDefns) resultsByName # Plus the definitions for the current prefix that don't have a matching option - // removeAttrs defnsByName' (attrNames matchedOptions); + // removeAttrs rawDefinitionsByName (attrNames matchedOptions); in { inherit matchedOptions; @@ -910,6 +919,40 @@ let else opt // { type = opt.type.substSubModules opt.options; options = []; }; + /* + Merge an option's definitions in a way that preserves the priority of the + individual attributes in the option value. + + This does not account for all option semantics, such as readOnly. + + Type: + option -> attrsOf { highestPrio, value } + */ + mergeAttrDefinitionsWithPrio = opt: + let + defsByAttr = + lib.zipAttrs ( + lib.concatLists ( + lib.concatMap + ({ value, ... }@def: + map + (lib.mapAttrsToList (k: value: { ${k} = def // { inherit value; }; })) + (pushDownProperties value) + ) + opt.definitionsWithLocations + ) + ); + in + assert opt.type.name == "attrsOf" || opt.type.name == "lazyAttrsOf"; + lib.mapAttrs + (k: v: + let merging = lib.mergeDefinitions (opt.loc ++ [k]) opt.type.nestedTypes.elemType v; + in { + value = merging.mergedValue; + inherit (merging.defsFinal') highestPrio; + }) + defsByAttr; + /* Properties. */ mkIf = condition: content: @@ -1146,14 +1189,11 @@ let use = id; }; - /* Transitional version of mkAliasOptionModule that uses MD docs. */ - mkAliasOptionModuleMD = from: to: doRename { - inherit from to; - visible = true; - warn = false; - use = id; - markdown = true; - }; + /* Transitional version of mkAliasOptionModule that uses MD docs. + + This function is no longer necessary and merely an alias of `mkAliasOptionModule`. + */ + mkAliasOptionModuleMD = mkAliasOptionModule; /* mkDerivedConfig : Option a -> (a -> Definition b) -> Definition b @@ -1175,7 +1215,7 @@ let (opt.highestPrio or defaultOverridePriority) (f opt.value); - doRename = { from, to, visible, warn, use, withPriority ? true, markdown ? false }: + doRename = { from, to, visible, warn, use, withPriority ? true }: { config, options, ... }: let fromOpt = getAttrFromPath from options; @@ -1186,9 +1226,7 @@ let { options = setAttrByPath from (mkOption { inherit visible; - description = if markdown - then lib.mdDoc "Alias of {option}`${showOption to}`." - else "Alias of ."; + description = "Alias of {option}`${showOption to}`."; apply = x: use (toOf config); } // optionalAttrs (toType != null) { type = toType; @@ -1256,6 +1294,7 @@ private // importJSON importTOML mergeDefinitions + mergeAttrDefinitionsWithPrio mergeOptionDecls # should be private? mkAfter mkAliasAndWrapDefinitions diff --git a/third_party/nixpkgs/lib/options.nix b/third_party/nixpkgs/lib/options.nix index af7914bb51..c42bc1e6c6 100644 --- a/third_party/nixpkgs/lib/options.nix +++ b/third_party/nixpkgs/lib/options.nix @@ -100,10 +100,7 @@ rec { name: mkOption { default = false; example = true; - description = - if name ? _type && name._type == "mdDoc" - then lib.mdDoc "Whether to enable ${name.text}." - else "Whether to enable ${name}."; + description = "Whether to enable ${name}."; type = lib.types.bool; }; @@ -185,10 +182,10 @@ rec { (if isList example then "pkgs." + concatStringsSep "." example else example); }); - /* Like mkPackageOption, but emit an mdDoc description instead of DocBook. */ - mkPackageOptionMD = pkgs: name: extra: - let option = mkPackageOption pkgs name extra; - in option // { description = lib.mdDoc option.description; }; + /* Alias of mkPackageOption. Previously used to create options with markdown + documentation, which is no longer required. + */ + mkPackageOptionMD = mkPackageOption; /* This option accepts anything, but it does not produce any result. @@ -344,26 +341,12 @@ rec { if ! isString text then throw "literalExpression expects a string." else { _type = "literalExpression"; inherit text; }; - literalExample = lib.warn "literalExample is deprecated, use literalExpression instead, or use literalDocBook for a non-Nix description." literalExpression; - - - /* For use in the `defaultText` and `example` option attributes. Causes the - given DocBook text to be inserted verbatim in the documentation, for when - a `literalExpression` would be too hard to read. - */ - literalDocBook = text: - if ! isString text then throw "literalDocBook expects a string." - else - lib.warnIf (lib.isInOldestRelease 2211) - "literalDocBook is deprecated, use literalMD instead" - { _type = "literalDocBook"; inherit text; }; + literalExample = lib.warn "literalExample is deprecated, use literalExpression instead, or use literalMD for a non-Nix description." literalExpression; /* Transition marker for documentation that's already migrated to markdown - syntax. + syntax. This is a no-op and no longer needed. */ - mdDoc = text: - if ! isString text then throw "mdDoc expects a string." - else { _type = "mdDoc"; inherit text; }; + mdDoc = lib.id; /* For use in the `defaultText` and `example` option attributes. Causes the given MD text to be inserted verbatim in the documentation, for when diff --git a/third_party/nixpkgs/lib/path/default.nix b/third_party/nixpkgs/lib/path/default.nix index a4a08668ae..936e9b0302 100644 --- a/third_party/nixpkgs/lib/path/default.nix +++ b/third_party/nixpkgs/lib/path/default.nix @@ -7,6 +7,7 @@ let isPath split match + typeOf ; inherit (lib.lists) @@ -18,6 +19,7 @@ let all concatMap foldl' + take ; inherit (lib.strings) @@ -100,6 +102,22 @@ let # An empty string is not a valid relative path, so we need to return a `.` when we have no components (if components == [] then "." else concatStringsSep "/" components); + # Type: Path -> { root :: Path, components :: [ String ] } + # + # Deconstruct a path value type into: + # - root: The filesystem root of the path, generally `/` + # - components: All the path's components + # + # This is similar to `splitString "/" (toString path)` but safer + # because it can distinguish different filesystem roots + deconstructPath = + let + recurse = components: base: + # If the parent of a path is the path itself, then it's a filesystem root + if base == dirOf base then { root = base; inherit components; } + else recurse ([ (baseNameOf base) ] ++ components) (dirOf base); + in recurse []; + in /* No rec! Add dependencies on this file at the top. */ { /* Append a subpath string to a path. @@ -108,6 +126,12 @@ in /* No rec! Add dependencies on this file at the top. */ { More specifically, it checks that the first argument is a [path value type](https://nixos.org/manual/nix/stable/language/values.html#type-path"), and that the second argument is a valid subpath string (see `lib.path.subpath.isValid`). + Laws: + + - Not influenced by subpath normalisation + + append p s == append p (subpath.normalise s) + Type: append :: Path -> String -> Path @@ -149,6 +173,51 @@ in /* No rec! Add dependencies on this file at the top. */ { ${subpathInvalidReason subpath}''; path + ("/" + subpath); + /* + Whether the first path is a component-wise prefix of the second path. + + Laws: + + - `hasPrefix p q` is only true if `q == append p s` for some subpath `s`. + + - `hasPrefix` is a [non-strict partial order](https://en.wikipedia.org/wiki/Partially_ordered_set#Non-strict_partial_order) over the set of all path values + + Type: + hasPrefix :: Path -> Path -> Bool + + Example: + hasPrefix /foo /foo/bar + => true + hasPrefix /foo /foo + => true + hasPrefix /foo/bar /foo + => false + hasPrefix /. /foo + => true + */ + hasPrefix = + path1: + assert assertMsg + (isPath path1) + "lib.path.hasPrefix: First argument is of type ${typeOf path1}, but a path was expected"; + let + path1Deconstructed = deconstructPath path1; + in + path2: + assert assertMsg + (isPath path2) + "lib.path.hasPrefix: Second argument is of type ${typeOf path2}, but a path was expected"; + let + path2Deconstructed = deconstructPath path2; + in + assert assertMsg + (path1Deconstructed.root == path2Deconstructed.root) '' + lib.path.hasPrefix: Filesystem roots must be the same for both paths, but paths with different roots were given: + first argument: "${toString path1}" with root "${toString path1Deconstructed.root}" + second argument: "${toString path2}" with root "${toString path2Deconstructed.root}"''; + take (length path1Deconstructed.components) path2Deconstructed.components == path1Deconstructed.components; + + /* Whether a value is a valid subpath string. - The value is a string diff --git a/third_party/nixpkgs/lib/path/tests/default.nix b/third_party/nixpkgs/lib/path/tests/default.nix index 9a31e42828..6b8e515f43 100644 --- a/third_party/nixpkgs/lib/path/tests/default.nix +++ b/third_party/nixpkgs/lib/path/tests/default.nix @@ -24,8 +24,9 @@ pkgs.runCommand "lib-path-tests" { export TEST_LIB=$PWD/lib echo "Running unit tests lib/path/tests/unit.nix" - nix-instantiate --eval lib/path/tests/unit.nix \ - --argstr libpath "$TEST_LIB" + nix-instantiate --eval --show-trace \ + --argstr libpath "$TEST_LIB" \ + lib/path/tests/unit.nix echo "Running property tests lib/path/tests/prop.sh" bash lib/path/tests/prop.sh ${toString seed} diff --git a/third_party/nixpkgs/lib/path/tests/prop.sh b/third_party/nixpkgs/lib/path/tests/prop.sh index e48c6667fa..9fea521577 100755 --- a/third_party/nixpkgs/lib/path/tests/prop.sh +++ b/third_party/nixpkgs/lib/path/tests/prop.sh @@ -71,7 +71,7 @@ fi # Precalculate all normalisations with a single Nix call. Calling Nix for each # string individually would take way too long -nix-instantiate --eval --strict --json \ +nix-instantiate --eval --strict --json --show-trace \ --argstr libpath "$TEST_LIB" \ --argstr dir "$tmp/strings" \ "$SCRIPT_DIR"/prop.nix \ diff --git a/third_party/nixpkgs/lib/path/tests/unit.nix b/third_party/nixpkgs/lib/path/tests/unit.nix index 61c4ab4d6f..9c5b752cf6 100644 --- a/third_party/nixpkgs/lib/path/tests/unit.nix +++ b/third_party/nixpkgs/lib/path/tests/unit.nix @@ -3,7 +3,7 @@ { libpath }: let lib = import libpath; - inherit (lib.path) append subpath; + inherit (lib.path) hasPrefix append subpath; cases = lib.runTests { # Test examples from the lib.path.append documentation @@ -40,6 +40,23 @@ let expected = false; }; + testHasPrefixExample1 = { + expr = hasPrefix /foo /foo/bar; + expected = true; + }; + testHasPrefixExample2 = { + expr = hasPrefix /foo /foo; + expected = true; + }; + testHasPrefixExample3 = { + expr = hasPrefix /foo/bar /foo; + expected = false; + }; + testHasPrefixExample4 = { + expr = hasPrefix /. /foo; + expected = true; + }; + # Test examples from the lib.path.subpath.isValid documentation testSubpathIsValidExample1 = { expr = subpath.isValid null; diff --git a/third_party/nixpkgs/lib/sources.nix b/third_party/nixpkgs/lib/sources.nix index d990777c6f..8b7cd5c84f 100644 --- a/third_party/nixpkgs/lib/sources.nix +++ b/third_party/nixpkgs/lib/sources.nix @@ -5,22 +5,16 @@ let inherit (builtins) match - readDir split storeDir - tryEval ; inherit (lib) boolToString filter - getAttr isString - pathExists readFile ; inherit (lib.filesystem) - pathType - pathIsDirectory pathIsRegularFile ; diff --git a/third_party/nixpkgs/lib/strings.nix b/third_party/nixpkgs/lib/strings.nix index e875520c68..1eb6cf9c1a 100644 --- a/third_party/nixpkgs/lib/strings.nix +++ b/third_party/nixpkgs/lib/strings.nix @@ -18,6 +18,7 @@ rec { elemAt filter fromJSON + genList head isInt isList @@ -264,7 +265,8 @@ rec { lib.strings.hasPrefix: The first argument (${toString pref}) is a path value, but only strings are supported. There is almost certainly a bug in the calling code, since this function always returns `false` in such a case. This function also copies the path to the Nix store, which may not be what you want. - This behavior is deprecated and will throw an error in the future.'' + This behavior is deprecated and will throw an error in the future. + You might want to use `lib.path.hasPrefix` instead, which correctly supports paths.'' (substring 0 (stringLength pref) str == pref); /* Determine whether a string has given suffix. @@ -345,7 +347,7 @@ rec { => [ "�" "�" "�" "�" ] */ stringToCharacters = s: - map (p: substring p 1 s) (lib.range 0 (stringLength s - 1)); + genList (p: substring p 1 s) (stringLength s); /* Manipulate a string character by character and replace them by strings before concatenating the results. diff --git a/third_party/nixpkgs/lib/systems/architectures.nix b/third_party/nixpkgs/lib/systems/architectures.nix index 57b9184ca6..9be8c80e3f 100644 --- a/third_party/nixpkgs/lib/systems/architectures.nix +++ b/third_party/nixpkgs/lib/systems/architectures.nix @@ -3,8 +3,15 @@ rec { # gcc.arch to its features (as in /proc/cpuinfo) features = { + # x86_64 Generic + # Spec: https://gitlab.com/x86-psABIs/x86-64-ABI/ default = [ ]; + x86-64 = [ ]; + x86-64-v2 = [ "sse3" "ssse3" "sse4_1" "sse4_2" ]; + x86-64-v3 = [ "sse3" "ssse3" "sse4_1" "sse4_2" "avx" "avx2" "fma" ]; + x86-64-v4 = [ "sse3" "ssse3" "sse4_1" "sse4_2" "avx" "avx2" "avx512" "fma" ]; # x86_64 Intel + nehalem = [ "sse3" "ssse3" "sse4_1" "sse4_2" "aes" ]; westmere = [ "sse3" "ssse3" "sse4_1" "sse4_2" "aes" ]; sandybridge = [ "sse3" "ssse3" "sse4_1" "sse4_2" "aes" "avx" ]; ivybridge = [ "sse3" "ssse3" "sse4_1" "sse4_2" "aes" "avx" ]; @@ -18,6 +25,7 @@ rec { cascadelake = [ "sse3" "ssse3" "sse4_1" "sse4_2" "aes" "avx" "avx2" "avx512" "fma" ]; cooperlake = [ "sse3" "ssse3" "sse4_1" "sse4_2" "aes" "avx" "avx2" "avx512" "fma" ]; tigerlake = [ "sse3" "ssse3" "sse4_1" "sse4_2" "aes" "avx" "avx2" "avx512" "fma" ]; + alderlake = [ "sse3" "ssse3" "sse4_1" "sse4_2" "aes" "avx" "avx2" "fma" ]; # x86_64 AMD btver1 = [ "sse3" "ssse3" "sse4_1" "sse4_2" ]; btver2 = [ "sse3" "ssse3" "sse4_1" "sse4_2" "aes" "avx" ]; @@ -28,6 +36,7 @@ rec { znver1 = [ "sse3" "ssse3" "sse4_1" "sse4_2" "sse4a" "aes" "avx" "avx2" "fma" ]; znver2 = [ "sse3" "ssse3" "sse4_1" "sse4_2" "sse4a" "aes" "avx" "avx2" "fma" ]; znver3 = [ "sse3" "ssse3" "sse4_1" "sse4_2" "sse4a" "aes" "avx" "avx2" "fma" ]; + znver4 = [ "sse3" "ssse3" "sse4_1" "sse4_2" "sse4a" "aes" "avx" "avx2" "avx512" "fma" ]; # other armv5te = [ ]; armv6 = [ ]; @@ -39,23 +48,35 @@ rec { # a superior CPU has all the features of an inferior and is able to build and test code for it inferiors = { + # x86_64 Generic + default = [ ]; + x86-64 = [ ]; + x86-64-v2 = [ "x86-64" ]; + x86-64-v3 = [ "x86-64-v2" ] ++ inferiors.x86-64-v2; + x86-64-v4 = [ "x86-64-v3" ] ++ inferiors.x86-64-v3; + # x86_64 Intel # https://gcc.gnu.org/onlinedocs/gcc/x86-Options.html - default = [ ]; - westmere = [ ]; - sandybridge = [ "westmere" ] ++ inferiors.westmere; - ivybridge = [ "sandybridge" ] ++ inferiors.sandybridge; - haswell = [ "ivybridge" ] ++ inferiors.ivybridge; - broadwell = [ "haswell" ] ++ inferiors.haswell; - skylake = [ "broadwell" ] ++ inferiors.broadwell; - skylake-avx512 = [ "skylake" ] ++ inferiors.skylake; + nehalem = [ "x86-64-v2" ] ++ inferiors.x86-64-v2; + westmere = [ "nehalem" ] ++ inferiors.nehalem; + sandybridge = [ "westmere" ] ++ inferiors.westmere; + ivybridge = [ "sandybridge" ] ++ inferiors.sandybridge; + + haswell = lib.unique ([ "ivybridge" "x86-64-v3" ] ++ inferiors.ivybridge ++ inferiors.x86-64-v3); + broadwell = [ "haswell" ] ++ inferiors.haswell; + skylake = [ "broadwell" ] ++ inferiors.broadwell; + + skylake-avx512 = lib.unique ([ "skylake" "x86-64-v4" ] ++ inferiors.skylake ++ inferiors.x86-64-v4); cannonlake = [ "skylake-avx512" ] ++ inferiors.skylake-avx512; icelake-client = [ "cannonlake" ] ++ inferiors.cannonlake; icelake-server = [ "icelake-client" ] ++ inferiors.icelake-client; - cascadelake = [ "skylake-avx512" ] ++ inferiors.cannonlake; + cascadelake = [ "cannonlake" ] ++ inferiors.cannonlake; cooperlake = [ "cascadelake" ] ++ inferiors.cascadelake; tigerlake = [ "icelake-server" ] ++ inferiors.icelake-server; + # CX16 does not exist on alderlake, while it does on nearly all other intel CPUs + alderlake = [ ]; + # x86_64 AMD # TODO: fill this (need testing) btver1 = [ ]; @@ -83,9 +104,10 @@ rec { # https://gcc.gnu.org/onlinedocs/gcc/x86-Options.html # https://en.wikichip.org/wiki/amd/microarchitectures/zen # https://en.wikichip.org/wiki/intel/microarchitectures/skylake - znver1 = [ "skylake" ] ++ inferiors.skylake; + znver1 = [ "skylake" ] ++ inferiors.skylake; # Includes haswell and x86-64-v3 znver2 = [ "znver1" ] ++ inferiors.znver1; znver3 = [ "znver2" ] ++ inferiors.znver2; + znver4 = lib.unique ([ "znver3" "x86-64-v4" ] ++ inferiors.znver3 ++ inferiors.x86-64-v4); # other armv5te = [ ]; diff --git a/third_party/nixpkgs/lib/systems/default.nix b/third_party/nixpkgs/lib/systems/default.nix index f4784c61c6..a3462d2d42 100644 --- a/third_party/nixpkgs/lib/systems/default.nix +++ b/third_party/nixpkgs/lib/systems/default.nix @@ -9,6 +9,24 @@ rec { examples = import ./examples.nix { inherit lib; }; architectures = import ./architectures.nix { inherit lib; }; + /* + Elaborated systems contain functions, which means that they don't satisfy + `==` for a lack of reflexivity. + + They might *appear* to satisfy `==` reflexivity when the same exact value is + compared to itself, because object identity is used as an "optimization"; + compare the value with a reconstruction of itself, e.g. with `f == a: f a`, + or perhaps calling `elaborate` twice, and one will see reflexivity fail as described. + + Hence a custom equality test. + + Note that this does not canonicalize the systems, so you'll want to make sure + both arguments have been `elaborate`-d. + */ + equals = + let removeFunctions = a: lib.filterAttrs (_: v: !builtins.isFunction v) a; + in a: b: removeFunctions a == removeFunctions b; + /* List of all Nix system doubles the nixpkgs flake will expose the package set for. All systems listed here must be supported by nixpkgs as `localSystem`. @@ -68,7 +86,7 @@ rec { # choice. else "bfd"; extensions = rec { - sharedLibrary = + sharedLibrary = assert final.hasSharedLibraries; /**/ if final.isDarwin then ".dylib" else if final.isWindows then ".dll" else ".so"; @@ -114,6 +132,25 @@ rec { # uname -r release = null; }; + + # It is important that hasSharedLibraries==false when the platform has no + # dynamic library loader. Various tools (including the gcc build system) + # have knowledge of which platforms are incapable of dynamic linking, and + # will still build on/for those platforms with --enable-shared, but simply + # omit any `.so` build products such as libgcc_s.so. When that happens, + # it causes hard-to-troubleshoot build failures. + hasSharedLibraries = with final; + (isAndroid || isGnu || isMusl # Linux (allows multiple libcs) + || isDarwin || isSunOS || isOpenBSD || isFreeBSD || isNetBSD # BSDs + || isCygwin || isMinGW # Windows + ) && !isStatic; + + # The difference between `isStatic` and `hasSharedLibraries` is mainly the + # addition of the `staticMarker` (see make-derivation.nix). Some + # platforms, like embedded machines without a libc (e.g. arm-none-eabi) + # don't support dynamic linking, but don't get the `staticMarker`. + # `pkgsStatic` sets `isStatic=true`, so `pkgsStatic.hostPlatform` always + # has the `staticMarker`. isStatic = final.isWasm || final.isRedox; # Just a guess, based on `system` @@ -193,8 +230,7 @@ rec { }; wine = (pkgs.winePackagesFor "wine${toString final.parsed.cpu.bits}").minimal; in - if final.parsed.kernel.name == pkgs.stdenv.hostPlatform.parsed.kernel.name && - pkgs.stdenv.hostPlatform.canExecute final + if pkgs.stdenv.hostPlatform.canExecute final then "${pkgs.runtimeShell} -c '\"$@\"' --" else if final.isWindows then "${wine}/bin/wine${lib.optionalString (final.parsed.cpu.bits == 64) "64"}" diff --git a/third_party/nixpkgs/lib/systems/doubles.nix b/third_party/nixpkgs/lib/systems/doubles.nix index 6d2f015674..13f029ee1f 100644 --- a/third_party/nixpkgs/lib/systems/doubles.nix +++ b/third_party/nixpkgs/lib/systems/doubles.nix @@ -27,9 +27,9 @@ let # Linux "aarch64-linux" "armv5tel-linux" "armv6l-linux" "armv7a-linux" "armv7l-linux" "i686-linux" "loongarch64-linux" "m68k-linux" "microblaze-linux" - "microblazeel-linux" "mipsel-linux" "mips64el-linux" "powerpc64-linux" - "powerpc64le-linux" "riscv32-linux" "riscv64-linux" "s390-linux" - "s390x-linux" "x86_64-linux" + "microblazeel-linux" "mips-linux" "mips64-linux" "mips64el-linux" + "mipsel-linux" "powerpc64-linux" "powerpc64le-linux" "riscv32-linux" + "riscv64-linux" "s390-linux" "s390x-linux" "x86_64-linux" # MMIXware "mmix-mmixware" @@ -41,7 +41,7 @@ let # none "aarch64_be-none" "aarch64-none" "arm-none" "armv6l-none" "avr-none" "i686-none" - "microblaze-none" "microblazeel-none" "msp430-none" "or1k-none" "m68k-none" + "microblaze-none" "microblazeel-none" "mips-none" "mips64-none" "msp430-none" "or1k-none" "m68k-none" "powerpc-none" "powerpcle-none" "riscv32-none" "riscv64-none" "rx-none" "s390-none" "s390x-none" "vc4-none" "x86_64-none" diff --git a/third_party/nixpkgs/lib/systems/examples.nix b/third_party/nixpkgs/lib/systems/examples.nix index 4edbf4df4b..8d9c09561d 100644 --- a/third_party/nixpkgs/lib/systems/examples.nix +++ b/third_party/nixpkgs/lib/systems/examples.nix @@ -37,6 +37,10 @@ rec { config = "armv6l-unknown-linux-gnueabihf"; } // platforms.raspberrypi; + bluefield2 = { + config = "aarch64-unknown-linux-gnu"; + } // platforms.bluefield2; + remarkable1 = { config = "armv7l-unknown-linux-gnueabihf"; } // platforms.zero-gravitas; @@ -91,22 +95,16 @@ rec { } // platforms.fuloong2f_n32; # can execute on 32bit chip - mips-linux-gnu = { config = "mips-unknown-linux-gnu"; } // platforms.gcc_mips32r2_o32; - mipsel-linux-gnu = { config = "mipsel-unknown-linux-gnu"; } // platforms.gcc_mips32r2_o32; - mipsisa32r6-linux-gnu = { config = "mipsisa32r6-unknown-linux-gnu"; } // platforms.gcc_mips32r6_o32; - mipsisa32r6el-linux-gnu = { config = "mipsisa32r6el-unknown-linux-gnu"; } // platforms.gcc_mips32r6_o32; + mips-linux-gnu = { config = "mips-unknown-linux-gnu"; } // platforms.gcc_mips32r2_o32; + mipsel-linux-gnu = { config = "mipsel-unknown-linux-gnu"; } // platforms.gcc_mips32r2_o32; # require 64bit chip (for more registers, 64-bit floating point, 64-bit "long long") but use 32bit pointers - mips64-linux-gnuabin32 = { config = "mips64-unknown-linux-gnuabin32"; } // platforms.gcc_mips64r2_n32; - mips64el-linux-gnuabin32 = { config = "mips64el-unknown-linux-gnuabin32"; } // platforms.gcc_mips64r2_n32; - mipsisa64r6-linux-gnuabin32 = { config = "mipsisa64r6-unknown-linux-gnuabin32"; } // platforms.gcc_mips64r6_n32; - mipsisa64r6el-linux-gnuabin32 = { config = "mipsisa64r6el-unknown-linux-gnuabin32"; } // platforms.gcc_mips64r6_n32; + mips64-linux-gnuabin32 = { config = "mips64-unknown-linux-gnuabin32"; } // platforms.gcc_mips64r2_n32; + mips64el-linux-gnuabin32 = { config = "mips64el-unknown-linux-gnuabin32"; } // platforms.gcc_mips64r2_n32; # 64bit pointers - mips64-linux-gnuabi64 = { config = "mips64-unknown-linux-gnuabi64"; } // platforms.gcc_mips64r2_64; - mips64el-linux-gnuabi64 = { config = "mips64el-unknown-linux-gnuabi64"; } // platforms.gcc_mips64r2_64; - mipsisa64r6-linux-gnuabi64 = { config = "mipsisa64r6-unknown-linux-gnuabi64"; } // platforms.gcc_mips64r6_64; - mipsisa64r6el-linux-gnuabi64 = { config = "mipsisa64r6el-unknown-linux-gnuabi64"; } // platforms.gcc_mips64r6_64; + mips64-linux-gnuabi64 = { config = "mips64-unknown-linux-gnuabi64"; } // platforms.gcc_mips64r2_64; + mips64el-linux-gnuabi64 = { config = "mips64el-unknown-linux-gnuabi64"; } // platforms.gcc_mips64r2_64; muslpi = raspberryPi // { config = "armv6l-unknown-linux-musleabihf"; @@ -135,6 +133,16 @@ rec { libc = "newlib"; }; + mips64-embedded = { + config = "mips64-none-elf"; + libc = "newlib"; + }; + + mips-embedded = { + config = "mips-none-elf"; + libc = "newlib"; + }; + loongarch64-linux = { config = "loongarch64-unknown-linux-gnu"; }; diff --git a/third_party/nixpkgs/lib/systems/inspect.nix b/third_party/nixpkgs/lib/systems/inspect.nix index 89e9f4231d..022e459c39 100644 --- a/third_party/nixpkgs/lib/systems/inspect.nix +++ b/third_party/nixpkgs/lib/systems/inspect.nix @@ -87,7 +87,7 @@ rec { isNone = { kernel = kernels.none; }; isAndroid = [ { abi = abis.android; } { abi = abis.androideabi; } ]; - isGnu = with abis; map (a: { abi = a; }) [ gnuabi64 gnu gnueabi gnueabihf gnuabielfv1 gnuabielfv2 ]; + isGnu = with abis; map (a: { abi = a; }) [ gnuabi64 gnuabin32 gnu gnueabi gnueabihf gnuabielfv1 gnuabielfv2 ]; isMusl = with abis; map (a: { abi = a; }) [ musl musleabi musleabihf muslabin32 muslabi64 ]; isUClibc = with abis; map (a: { abi = a; }) [ uclibc uclibceabi uclibceabihf ]; diff --git a/third_party/nixpkgs/lib/systems/parse.nix b/third_party/nixpkgs/lib/systems/parse.nix index ea8e1ff8fc..6eb4f27cc5 100644 --- a/third_party/nixpkgs/lib/systems/parse.nix +++ b/third_party/nixpkgs/lib/systems/parse.nix @@ -91,14 +91,10 @@ rec { microblaze = { bits = 32; significantByte = bigEndian; family = "microblaze"; }; microblazeel = { bits = 32; significantByte = littleEndian; family = "microblaze"; }; - mips = { bits = 32; significantByte = bigEndian; family = "mips"; }; - mipsel = { bits = 32; significantByte = littleEndian; family = "mips"; }; - mipsisa32r6 = { bits = 32; significantByte = bigEndian; family = "mips"; }; - mipsisa32r6el = { bits = 32; significantByte = littleEndian; family = "mips"; }; - mips64 = { bits = 64; significantByte = bigEndian; family = "mips"; }; - mips64el = { bits = 64; significantByte = littleEndian; family = "mips"; }; - mipsisa64r6 = { bits = 64; significantByte = bigEndian; family = "mips"; }; - mipsisa64r6el = { bits = 64; significantByte = littleEndian; family = "mips"; }; + mips = { bits = 32; significantByte = bigEndian; family = "mips"; }; + mipsel = { bits = 32; significantByte = littleEndian; family = "mips"; }; + mips64 = { bits = 64; significantByte = bigEndian; family = "mips"; }; + mips64el = { bits = 64; significantByte = littleEndian; family = "mips"; }; mmix = { bits = 64; significantByte = bigEndian; family = "mmix"; }; diff --git a/third_party/nixpkgs/lib/systems/platforms.nix b/third_party/nixpkgs/lib/systems/platforms.nix index d574943e47..0b6a9f3891 100644 --- a/third_party/nixpkgs/lib/systems/platforms.nix +++ b/third_party/nixpkgs/lib/systems/platforms.nix @@ -209,6 +209,14 @@ rec { # Legacy attribute, for compatibility with existing configs only. raspberrypi2 = armv7l-hf-multiplatform; + # Nvidia Bluefield 2 (w. crypto support) + bluefield2 = { + gcc = { + arch = "armv8-a+fp+simd+crc+crypto"; + cpu = "cortex-a72"; + }; + }; + zero-gravitas = { linux-kernel = { name = "zero-gravitas"; diff --git a/third_party/nixpkgs/lib/tests/filesystem.sh b/third_party/nixpkgs/lib/tests/filesystem.sh index 4a5ffeb124..cfd333d000 100755 --- a/third_party/nixpkgs/lib/tests/filesystem.sh +++ b/third_party/nixpkgs/lib/tests/filesystem.sh @@ -35,58 +35,50 @@ touch regular ln -s target symlink mkfifo fifo -checkPathType() { - local path=$1 - local expectedPathType=$2 - local actualPathType=$(nix-instantiate --eval --strict --json 2>&1 \ - -E '{ path }: let lib = import ; in lib.filesystem.pathType path' \ - --argstr path "$path") - if [[ "$actualPathType" != "$expectedPathType" ]]; then - die "lib.filesystem.pathType \"$path\" == $actualPathType, but $expectedPathType was expected" +expectSuccess() { + local expr=$1 + local expectedResultRegex=$2 + if ! result=$(nix-instantiate --eval --strict --json \ + --expr "with (import ).filesystem; $expr"); then + die "$expr failed to evaluate, but it was expected to succeed" + fi + if [[ ! "$result" =~ $expectedResultRegex ]]; then + die "$expr == $result, but $expectedResultRegex was expected" fi } -checkPathType "/" '"directory"' -checkPathType "$PWD/directory" '"directory"' -checkPathType "$PWD/regular" '"regular"' -checkPathType "$PWD/symlink" '"symlink"' -checkPathType "$PWD/fifo" '"unknown"' -checkPathType "$PWD/non-existent" "error: evaluation aborted with the following error message: 'lib.filesystem.pathType: Path $PWD/non-existent does not exist.'" - -checkPathIsDirectory() { - local path=$1 - local expectedIsDirectory=$2 - local actualIsDirectory=$(nix-instantiate --eval --strict --json 2>&1 \ - -E '{ path }: let lib = import ; in lib.filesystem.pathIsDirectory path' \ - --argstr path "$path") - if [[ "$actualIsDirectory" != "$expectedIsDirectory" ]]; then - die "lib.filesystem.pathIsDirectory \"$path\" == $actualIsDirectory, but $expectedIsDirectory was expected" +expectFailure() { + local expr=$1 + local expectedErrorRegex=$2 + if result=$(nix-instantiate --eval --strict --json 2>"$work/stderr" \ + --expr "with (import ).filesystem; $expr"); then + die "$expr evaluated successfully to $result, but it was expected to fail" + fi + if [[ ! "$(<"$work/stderr")" =~ $expectedErrorRegex ]]; then + die "Error was $(<"$work/stderr"), but $expectedErrorRegex was expected" fi } -checkPathIsDirectory "/" "true" -checkPathIsDirectory "$PWD/directory" "true" -checkPathIsDirectory "$PWD/regular" "false" -checkPathIsDirectory "$PWD/symlink" "false" -checkPathIsDirectory "$PWD/fifo" "false" -checkPathIsDirectory "$PWD/non-existent" "false" +expectSuccess "pathType /." '"directory"' +expectSuccess "pathType $PWD/directory" '"directory"' +expectSuccess "pathType $PWD/regular" '"regular"' +expectSuccess "pathType $PWD/symlink" '"symlink"' +expectSuccess "pathType $PWD/fifo" '"unknown"' +# Different errors depending on whether the builtins.readFilePath primop is available or not +expectFailure "pathType $PWD/non-existent" "error: (evaluation aborted with the following error message: 'lib.filesystem.pathType: Path $PWD/non-existent does not exist.'|getting status of '$PWD/non-existent': No such file or directory)" -checkPathIsRegularFile() { - local path=$1 - local expectedIsRegularFile=$2 - local actualIsRegularFile=$(nix-instantiate --eval --strict --json 2>&1 \ - -E '{ path }: let lib = import ; in lib.filesystem.pathIsRegularFile path' \ - --argstr path "$path") - if [[ "$actualIsRegularFile" != "$expectedIsRegularFile" ]]; then - die "lib.filesystem.pathIsRegularFile \"$path\" == $actualIsRegularFile, but $expectedIsRegularFile was expected" - fi -} +expectSuccess "pathIsDirectory /." "true" +expectSuccess "pathIsDirectory $PWD/directory" "true" +expectSuccess "pathIsDirectory $PWD/regular" "false" +expectSuccess "pathIsDirectory $PWD/symlink" "false" +expectSuccess "pathIsDirectory $PWD/fifo" "false" +expectSuccess "pathIsDirectory $PWD/non-existent" "false" -checkPathIsRegularFile "/" "false" -checkPathIsRegularFile "$PWD/directory" "false" -checkPathIsRegularFile "$PWD/regular" "true" -checkPathIsRegularFile "$PWD/symlink" "false" -checkPathIsRegularFile "$PWD/fifo" "false" -checkPathIsRegularFile "$PWD/non-existent" "false" +expectSuccess "pathIsRegularFile /." "false" +expectSuccess "pathIsRegularFile $PWD/directory" "false" +expectSuccess "pathIsRegularFile $PWD/regular" "true" +expectSuccess "pathIsRegularFile $PWD/symlink" "false" +expectSuccess "pathIsRegularFile $PWD/fifo" "false" +expectSuccess "pathIsRegularFile $PWD/non-existent" "false" echo >&2 tests ok diff --git a/third_party/nixpkgs/lib/tests/misc.nix b/third_party/nixpkgs/lib/tests/misc.nix index 231f19c513..ce980436c1 100644 --- a/third_party/nixpkgs/lib/tests/misc.nix +++ b/third_party/nixpkgs/lib/tests/misc.nix @@ -518,6 +518,46 @@ runTests { expected = false; }; + testFindFirstExample1 = { + expr = findFirst (x: x > 3) 7 [ 1 6 4 ]; + expected = 6; + }; + + testFindFirstExample2 = { + expr = findFirst (x: x > 9) 7 [ 1 6 4 ]; + expected = 7; + }; + + testFindFirstEmpty = { + expr = findFirst (abort "when the list is empty, the predicate is not needed") null []; + expected = null; + }; + + testFindFirstSingleMatch = { + expr = findFirst (x: x == 5) null [ 5 ]; + expected = 5; + }; + + testFindFirstSingleDefault = { + expr = findFirst (x: false) null [ (abort "if the predicate doesn't access the value, it must not be evaluated") ]; + expected = null; + }; + + testFindFirstNone = { + expr = builtins.tryEval (findFirst (x: x == 2) null [ 1 (throw "the last element must be evaluated when there's no match") ]); + expected = { success = false; value = false; }; + }; + + # Makes sure that the implementation doesn't cause a stack overflow + testFindFirstBig = { + expr = findFirst (x: x == 1000000) null (range 0 1000000); + expected = 1000000; + }; + + testFindFirstLazy = { + expr = findFirst (x: x == 1) 7 [ 1 (abort "list elements after the match must not be evaluated") ]; + expected = 1; + }; # ATTRSETS diff --git a/third_party/nixpkgs/lib/tests/modules.sh b/third_party/nixpkgs/lib/tests/modules.sh index 7fdc3d3d81..50f24c09ca 100755 --- a/third_party/nixpkgs/lib/tests/modules.sh +++ b/third_party/nixpkgs/lib/tests/modules.sh @@ -61,6 +61,18 @@ checkConfigError() { # Shorthand meta attribute does not duplicate the config checkConfigOutput '^"one two"$' config.result ./shorthand-meta.nix +checkConfigOutput '^true$' config.result ./test-mergeAttrDefinitionsWithPrio.nix + +# types.pathInStore +checkConfigOutput '".*/store/0lz9p8xhf89kb1c1kk6jxrzskaiygnlh-bash-5.2-p15.drv"' config.pathInStore.ok1 ./types.nix +checkConfigOutput '".*/store/0fb3ykw9r5hpayd05sr0cizwadzq1d8q-bash-5.2-p15"' config.pathInStore.ok2 ./types.nix +checkConfigOutput '".*/store/0fb3ykw9r5hpayd05sr0cizwadzq1d8q-bash-5.2-p15/bin/bash"' config.pathInStore.ok3 ./types.nix +checkConfigError 'A definition for option .* is not of type .path in the Nix store.. Definition values:\n\s*- In .*: ""' config.pathInStore.bad1 ./types.nix +checkConfigError 'A definition for option .* is not of type .path in the Nix store.. Definition values:\n\s*- In .*: ".*/store"' config.pathInStore.bad2 ./types.nix +checkConfigError 'A definition for option .* is not of type .path in the Nix store.. Definition values:\n\s*- In .*: ".*/store/"' config.pathInStore.bad3 ./types.nix +checkConfigError 'A definition for option .* is not of type .path in the Nix store.. Definition values:\n\s*- In .*: ".*/store/.links"' config.pathInStore.bad4 ./types.nix +checkConfigError 'A definition for option .* is not of type .path in the Nix store.. Definition values:\n\s*- In .*: "/foo/bar"' config.pathInStore.bad5 ./types.nix + # Check boolean option. checkConfigOutput '^false$' config.enable ./declare-enable.nix checkConfigError 'The option .* does not exist. Definition values:\n\s*- In .*: true' config.enable ./define-enable.nix @@ -195,7 +207,7 @@ checkConfigOutput '^"foo"$' config.submodule.foo ./declare-submoduleWith-special ## shorthandOnlyDefines config behaves as expected checkConfigOutput '^true$' config.submodule.config ./declare-submoduleWith-shorthand.nix ./define-submoduleWith-shorthand.nix checkConfigError 'is not of type `boolean' config.submodule.config ./declare-submoduleWith-shorthand.nix ./define-submoduleWith-noshorthand.nix -checkConfigError "You're trying to define a value of type \`bool'\n\s*rather than an attribute set for the option" config.submodule.config ./declare-submoduleWith-noshorthand.nix ./define-submoduleWith-shorthand.nix +checkConfigError "In module ..*define-submoduleWith-shorthand.nix., you're trying to define a value of type \`bool'\n\s*rather than an attribute set for the option" config.submodule.config ./declare-submoduleWith-noshorthand.nix ./define-submoduleWith-shorthand.nix checkConfigOutput '^true$' config.submodule.config ./declare-submoduleWith-noshorthand.nix ./define-submoduleWith-noshorthand.nix ## submoduleWith should merge all modules in one swoop @@ -378,7 +390,7 @@ checkConfigOutput '^{ }$' config.sub.nixosOk ./class-check.nix checkConfigError 'The module .*/module-class-is-darwin.nix was imported into nixos instead of darwin.' config.sub.nixosFail.config ./class-check.nix # submoduleWith type merge with different class -checkConfigError 'error: A submoduleWith option is declared multiple times with conflicting class values "darwin" and "nixos".' config.sub.mergeFail.config ./class-check.nix +checkConfigError 'A submoduleWith option is declared multiple times with conflicting class values "darwin" and "nixos".' config.sub.mergeFail.config ./class-check.nix # _type check checkConfigError 'Could not load a value as a module, because it is of type "flake", in file .*/module-imports-_type-check.nix' config.ok.config ./module-imports-_type-check.nix diff --git a/third_party/nixpkgs/lib/tests/modules/test-mergeAttrDefinitionsWithPrio.nix b/third_party/nixpkgs/lib/tests/modules/test-mergeAttrDefinitionsWithPrio.nix new file mode 100644 index 0000000000..3233f41513 --- /dev/null +++ b/third_party/nixpkgs/lib/tests/modules/test-mergeAttrDefinitionsWithPrio.nix @@ -0,0 +1,21 @@ +{ lib, options, ... }: + +let + defs = lib.modules.mergeAttrDefinitionsWithPrio options._module.args; + assertLazy = pos: throw "${pos.file}:${toString pos.line}:${toString pos.column}: The test must not evaluate this the assertLazy thunk, but it did. Unexpected strictness leads to unexpected errors and performance problems."; +in + +{ + options.result = lib.mkOption { }; + config._module.args = { + default = lib.mkDefault (assertLazy __curPos); + regular = null; + force = lib.mkForce (assertLazy __curPos); + unused = assertLazy __curPos; + }; + config.result = + assert defs.default.highestPrio == (lib.mkDefault (assertLazy __curPos)).priority; + assert defs.regular.highestPrio == lib.modules.defaultOverridePriority; + assert defs.force.highestPrio == (lib.mkForce (assertLazy __curPos)).priority; + true; +} diff --git a/third_party/nixpkgs/lib/tests/modules/types.nix b/third_party/nixpkgs/lib/tests/modules/types.nix new file mode 100644 index 0000000000..7c43a6819e --- /dev/null +++ b/third_party/nixpkgs/lib/tests/modules/types.nix @@ -0,0 +1,24 @@ +{ lib, ... }: +let + inherit (builtins) + storeDir; + inherit (lib) + types + mkOption + ; +in +{ + options = { + pathInStore = mkOption { type = types.lazyAttrsOf types.pathInStore; }; + }; + config = { + pathInStore.ok1 = "${storeDir}/0lz9p8xhf89kb1c1kk6jxrzskaiygnlh-bash-5.2-p15.drv"; + pathInStore.ok2 = "${storeDir}/0fb3ykw9r5hpayd05sr0cizwadzq1d8q-bash-5.2-p15"; + pathInStore.ok3 = "${storeDir}/0fb3ykw9r5hpayd05sr0cizwadzq1d8q-bash-5.2-p15/bin/bash"; + pathInStore.bad1 = ""; + pathInStore.bad2 = "${storeDir}"; + pathInStore.bad3 = "${storeDir}/"; + pathInStore.bad4 = "${storeDir}/.links"; # technically true, but not reasonable + pathInStore.bad5 = "/foo/bar"; + }; +} diff --git a/third_party/nixpkgs/lib/tests/release.nix b/third_party/nixpkgs/lib/tests/release.nix index f5c6e81030..805f7a7e95 100644 --- a/third_party/nixpkgs/lib/tests/release.nix +++ b/third_party/nixpkgs/lib/tests/release.nix @@ -2,53 +2,63 @@ # Don't test properties of pkgs.lib, but rather the lib in the parent directory pkgs ? import ../.. {} // { lib = throw "pkgs.lib accessed, but the lib tests should use nixpkgs' lib path directly!"; }, nix ? pkgs.nix, + nixVersions ? [ pkgs.nixVersions.minimum nix pkgs.nixVersions.unstable ], }: -pkgs.runCommand "nixpkgs-lib-tests" { - buildInputs = [ - (import ./check-eval.nix) - (import ./maintainers.nix { - inherit pkgs; - lib = import ../.; - }) - (import ./teams.nix { - inherit pkgs; - lib = import ../.; - }) - (import ../path/tests { - inherit pkgs; - }) - ]; - nativeBuildInputs = [ - nix - ]; - strictDeps = true; -} '' - datadir="${nix}/share" - export TEST_ROOT=$(pwd)/test-tmp - export NIX_BUILD_HOOK= - export NIX_CONF_DIR=$TEST_ROOT/etc - export NIX_LOCALSTATE_DIR=$TEST_ROOT/var - export NIX_LOG_DIR=$TEST_ROOT/var/log/nix - export NIX_STATE_DIR=$TEST_ROOT/var/nix - export NIX_STORE_DIR=$TEST_ROOT/store - export PAGER=cat - cacheDir=$TEST_ROOT/binary-cache +let + testWithNix = nix: + pkgs.runCommand "nixpkgs-lib-tests-nix-${nix.version}" { + buildInputs = [ + (import ./check-eval.nix) + (import ./maintainers.nix { + inherit pkgs; + lib = import ../.; + }) + (import ./teams.nix { + inherit pkgs; + lib = import ../.; + }) + (import ../path/tests { + inherit pkgs; + }) + ]; + nativeBuildInputs = [ + nix + ]; + strictDeps = true; + } '' + datadir="${nix}/share" + export TEST_ROOT=$(pwd)/test-tmp + export NIX_BUILD_HOOK= + export NIX_CONF_DIR=$TEST_ROOT/etc + export NIX_LOCALSTATE_DIR=$TEST_ROOT/var + export NIX_LOG_DIR=$TEST_ROOT/var/log/nix + export NIX_STATE_DIR=$TEST_ROOT/var/nix + export NIX_STORE_DIR=$TEST_ROOT/store + export PAGER=cat + cacheDir=$TEST_ROOT/binary-cache - mkdir -p $NIX_CONF_DIR - echo "experimental-features = nix-command" >> $NIX_CONF_DIR/nix.conf + nix-store --init - nix-store --init + cp -r ${../.} lib + echo "Running lib/tests/modules.sh" + bash lib/tests/modules.sh - cp -r ${../.} lib - echo "Running lib/tests/modules.sh" - bash lib/tests/modules.sh + echo "Running lib/tests/filesystem.sh" + TEST_LIB=$PWD/lib bash lib/tests/filesystem.sh - echo "Running lib/tests/filesystem.sh" - TEST_LIB=$PWD/lib bash lib/tests/filesystem.sh + echo "Running lib/tests/sources.sh" + TEST_LIB=$PWD/lib bash lib/tests/sources.sh - echo "Running lib/tests/sources.sh" - TEST_LIB=$PWD/lib bash lib/tests/sources.sh + echo "Running lib/tests/systems.nix" + [[ $(nix-instantiate --eval --strict lib/tests/systems.nix | tee /dev/stderr) == '[ ]' ]]; - touch $out -'' + mkdir $out + echo success > $out/${nix.version} + ''; + +in + pkgs.symlinkJoin { + name = "nixpkgs-lib-tests"; + paths = map testWithNix nixVersions; + } diff --git a/third_party/nixpkgs/lib/tests/sources.sh b/third_party/nixpkgs/lib/tests/sources.sh index a7f490a79d..cda77aa96b 100755 --- a/third_party/nixpkgs/lib/tests/sources.sh +++ b/third_party/nixpkgs/lib/tests/sources.sh @@ -23,14 +23,19 @@ clean_up() { trap clean_up EXIT cd "$work" +# Crudely unquotes a JSON string by just taking everything between the first and the second quote. +# We're only using this for resulting /nix/store paths, which can't contain " anyways, +# nor can they contain any other characters that would need to be escaped specially in JSON +# This way we don't need to add a dependency on e.g. jq +crudeUnquoteJSON() { + cut -d \" -f2 +} + touch {README.md,module.o,foo.bar} -# nix-instantiate doesn't write out the source, only computing the hash, so -# this uses the experimental nix command instead. - -dir="$(nix eval --impure --raw --expr '(with import ; "${ +dir="$(nix-instantiate --eval --strict --read-write-mode --json --expr '(with import ; "${ cleanSource ./. -}")')" +}")' | crudeUnquoteJSON)" (cd "$dir"; find) | sort -f | diff -U10 - <(cat < + sys == elaborate (toLosslessStringMaybe sys) + + NOTE: This property is not guaranteed when `sys` was elaborated by a different + version of Nixpkgs. + */ + toLosslessStringMaybe = sys: + if lib.isString sys then sys + else if lib.systems.equals sys (lib.systems.elaborate sys.system) then sys.system + else null; + +in +lib.runTests ( # We assert that the new algorithmic way of generating these lists matches the # way they were hard-coded before. # @@ -5,20 +34,14 @@ # calculating the lists anyway?". The answer is one can mindlessly update these # tests as new platforms become supported, and then just give the diff a quick # sanity check before committing :). -let - lib = import ../default.nix; - mseteq = x: y: { - expr = lib.sort lib.lessThan x; - expected = lib.sort lib.lessThan y; - }; -in -with lib.systems.doubles; lib.runTests { + +(with lib.systems.doubles; { testall = mseteq all (linux ++ darwin ++ freebsd ++ openbsd ++ netbsd ++ illumos ++ wasi ++ windows ++ embedded ++ mmix ++ js ++ genode ++ redox); testarm = mseteq arm [ "armv5tel-linux" "armv6l-linux" "armv6l-netbsd" "armv6l-none" "armv7a-linux" "armv7a-netbsd" "armv7l-linux" "armv7l-netbsd" "arm-none" "armv7a-darwin" ]; testarmv7 = mseteq armv7 [ "armv7a-darwin" "armv7a-linux" "armv7l-linux" "armv7a-netbsd" "armv7l-netbsd" ]; testi686 = mseteq i686 [ "i686-linux" "i686-freebsd13" "i686-genode" "i686-netbsd" "i686-openbsd" "i686-cygwin" "i686-windows" "i686-none" "i686-darwin" ]; - testmips = mseteq mips [ "mips64el-linux" "mipsel-linux" "mipsel-netbsd" ]; + testmips = mseteq mips [ "mips-none" "mips64-none" "mips-linux" "mips64-linux" "mips64el-linux" "mipsel-linux" "mipsel-netbsd" ]; testmmix = mseteq mmix [ "mmix-mmixware" ]; testpower = mseteq power [ "powerpc-netbsd" "powerpc-none" "powerpc64-linux" "powerpc64le-linux" "powerpcle-none" ]; testriscv = mseteq riscv [ "riscv32-linux" "riscv64-linux" "riscv32-netbsd" "riscv64-netbsd" "riscv32-none" "riscv64-none" ]; @@ -34,9 +57,49 @@ with lib.systems.doubles; lib.runTests { testredox = mseteq redox [ "x86_64-redox" ]; testgnu = mseteq gnu (linux /* ++ kfreebsd ++ ... */); testillumos = mseteq illumos [ "x86_64-solaris" ]; - testlinux = mseteq linux [ "aarch64-linux" "armv5tel-linux" "armv6l-linux" "armv7a-linux" "armv7l-linux" "i686-linux" "mips64el-linux" "mipsel-linux" "riscv32-linux" "riscv64-linux" "x86_64-linux" "powerpc64-linux" "powerpc64le-linux" "m68k-linux" "s390-linux" "s390x-linux" "microblaze-linux" "microblazeel-linux" "loongarch64-linux" ]; + testlinux = mseteq linux [ "aarch64-linux" "armv5tel-linux" "armv6l-linux" "armv7a-linux" "armv7l-linux" "i686-linux" "loongarch64-linux" "m68k-linux" "microblaze-linux" "microblazeel-linux" "mips-linux" "mips64-linux" "mips64el-linux" "mipsel-linux" "powerpc64-linux" "powerpc64le-linux" "riscv32-linux" "riscv64-linux" "s390-linux" "s390x-linux" "x86_64-linux" ]; testnetbsd = mseteq netbsd [ "aarch64-netbsd" "armv6l-netbsd" "armv7a-netbsd" "armv7l-netbsd" "i686-netbsd" "m68k-netbsd" "mipsel-netbsd" "powerpc-netbsd" "riscv32-netbsd" "riscv64-netbsd" "x86_64-netbsd" ]; testopenbsd = mseteq openbsd [ "i686-openbsd" "x86_64-openbsd" ]; testwindows = mseteq windows [ "i686-cygwin" "x86_64-cygwin" "i686-windows" "x86_64-windows" ]; testunix = mseteq unix (linux ++ darwin ++ freebsd ++ openbsd ++ netbsd ++ illumos ++ cygwin ++ redox); +}) + +// { + test_equals_example_x86_64-linux = { + expr = lib.systems.equals (lib.systems.elaborate "x86_64-linux") (lib.systems.elaborate "x86_64-linux"); + expected = true; + }; + + test_toLosslessStringMaybe_example_x86_64-linux = { + expr = toLosslessStringMaybe (lib.systems.elaborate "x86_64-linux"); + expected = "x86_64-linux"; + }; + test_toLosslessStringMaybe_fail = { + expr = toLosslessStringMaybe (lib.systems.elaborate "x86_64-linux" // { something = "extra"; }); + expected = null; + }; } + +# Generate test cases to assert that a change in any non-function attribute makes a platform unequal +// lib.concatMapAttrs (platformAttrName: origValue: { + + ${"test_equals_unequal_${platformAttrName}"} = + let modified = + assert origValue != arbitraryValue; + lib.systems.elaborate "x86_64-linux" // { ${platformAttrName} = arbitraryValue; }; + arbitraryValue = x: "<>"; + in { + expr = lib.systems.equals (lib.systems.elaborate "x86_64-linux") modified; + expected = { + # Changes in these attrs are not detectable because they're function. + # The functions should be derived from the data, so this is not a problem. + canExecute = null; + emulator = null; + emulatorAvailable = null; + isCompatible = null; + }?${platformAttrName}; + }; + +}) (lib.systems.elaborate "x86_64-linux" /* arbitrary choice, just to get all the elaborated attrNames */) + +) diff --git a/third_party/nixpkgs/lib/trivial.nix b/third_party/nixpkgs/lib/trivial.nix index 26e4b32400..34c100959e 100644 --- a/third_party/nixpkgs/lib/trivial.nix +++ b/third_party/nixpkgs/lib/trivial.nix @@ -179,7 +179,7 @@ rec { they take effect as soon as the oldest release reaches end of life. */ oldestSupportedRelease = # Update on master only. Do not backport. - 2211; + 2305; /* Whether a feature is supported in all supported releases (at the time of release branch-off, if applicable). See `oldestSupportedRelease`. */ diff --git a/third_party/nixpkgs/lib/types.nix b/third_party/nixpkgs/lib/types.nix index 9360d42f58..ddd37f260c 100644 --- a/third_party/nixpkgs/lib/types.nix +++ b/third_party/nixpkgs/lib/types.nix @@ -211,7 +211,7 @@ rec { # nixos/doc/manual/development/option-types.xml! types = rec { - raw = mkOptionType rec { + raw = mkOptionType { name = "raw"; description = "raw value"; descriptionClass = "noun"; @@ -461,6 +461,7 @@ rec { # - strings with context, e.g. "${pkgs.foo}" or (toString pkgs.foo) # - hardcoded store path literals (/nix/store/hash-foo) or strings without context # ("/nix/store/hash-foo"). These get a context added to them using builtins.storePath. + # If you don't need a *top-level* store path, consider using pathInStore instead. package = mkOptionType { name = "package"; descriptionClass = "noun"; @@ -491,6 +492,14 @@ rec { merge = mergeEqualOption; }; + pathInStore = mkOptionType { + name = "pathInStore"; + description = "path in the Nix store"; + descriptionClass = "noun"; + check = x: isStringLike x && builtins.match "${builtins.storeDir}/[^.].*" (toString x) != null; + merge = mergeEqualOption; + }; + listOf = elemType: mkOptionType rec { name = "listOf"; description = "list of ${optionDescriptionPhrase (class: class == "noun" || class == "composite") elemType}"; diff --git a/third_party/nixpkgs/maintainers/maintainer-list.nix b/third_party/nixpkgs/maintainers/maintainer-list.nix index c4fafc03ac..5294d2e0e4 100644 --- a/third_party/nixpkgs/maintainers/maintainer-list.nix +++ b/third_party/nixpkgs/maintainers/maintainer-list.nix @@ -64,6 +64,12 @@ githubId = 64707304; name = "Dmitry Kulikov"; }; + _0x120581f = { + email = "nixpkgs@0x120581f.dev"; + name = "0x120581f"; + github = "0x120581f"; + githubId = 130835755; + }; _0x4A6F = { email = "mail-maintainer@0x4A6F.dev"; matrix = "@0x4a6f:matrix.org"; @@ -177,12 +183,28 @@ githubId = 12578560; name = "Quinn Bohner"; }; + _8-bit-fox = { + email = "sebastian@markwaerter.de"; + github = "8-bit-fox"; + githubId = 43320117; + name = "Sebastian Marquardt"; + }; _9999years = { email = "rbt@fastmail.com"; github = "9999years"; githubId = 15312184; name = "Rebecca Turner"; }; + _999eagle = { + email = "github@999eagle.moe"; + matrix = "@sophie:catgirl.cloud"; + github = "999eagle"; + githubId = 1221984; + name = "Sophie Tauchert"; + keys = [{ + fingerprint = "7B59 F09E 0FE5 BC34 F032 1FB4 5270 1DE5 F5F5 1125"; + }]; + }; a1russell = { email = "adamlr6+pub@gmail.com"; github = "a1russell"; @@ -303,6 +325,12 @@ githubId = 2321000; name = "Ruslan Babayev"; }; + abustany = { + email = "adrien@bustany.org"; + github = "abustany"; + githubId = 2526296; + name = "Adrien Bustany"; + }; acairncross = { email = "acairncross@gmail.com"; github = "acairncross"; @@ -504,6 +532,12 @@ githubId = 44871469; name = "Etienne Wodey"; }; + aither64 = { + email = "aither@havefun.cz"; + github = "aither64"; + githubId = 4717906; + name = "Jakub Skokan"; + }; ajgrf = { email = "a@ajgrf.com"; github = "ajgrf"; @@ -598,6 +632,12 @@ githubId = 43479487; name = "Titouan Biteau"; }; + aldoborrero = { + email = "aldoborrero+nixos@pm.me"; + github = "aldoborrero"; + githubId = 82811; + name = "Aldo Borrero"; + }; aleksana = { email = "me@aleksana.moe"; github = "Aleksanaa"; @@ -773,6 +813,12 @@ fingerprint = "B422 CFB1 C9EF 73F7 E1E2 698D F53E 3233 42F7 A6D3A"; }]; }; + alxsimon = { + email = "alexis.simon@normalesup.org"; + github = "alxsimon"; + githubId = 9567176; + name = "Alexis Simon"; + }; alyaeanyx = { email = "alyaeanyx@mailbox.org"; github = "alyaeanyx"; @@ -931,6 +977,12 @@ githubId = 123550; name = "André Silva"; }; + andresnav = { + email = "nix@andresnav.com"; + github = "andres-nav"; + githubId = 118762770; + name = "Andres Navarro"; + }; andrestylianos = { email = "andre.stylianos@gmail.com"; github = "andrestylianos"; @@ -1179,6 +1231,12 @@ githubId = 914687; name = "Alexis Praga"; }; + aprl = { + email = "aprl@acab.dev"; + github = "cutestnekoaqua"; + githubId = 30842467; + name = "April John"; + }; ar1a = { email = "aria@ar1as.space"; github = "ar1a"; @@ -1399,6 +1457,12 @@ githubId = 453170; name = "Alastair Pharo"; }; + astavie = { + email = "astavie@pm.me"; + github = "astavie"; + githubId = 7745457; + name = "Astavie"; + }; astro = { email = "astro@spaceboyz.net"; github = "astro"; @@ -1627,6 +1691,12 @@ fingerprint = "2688 0377 C31D 9E81 9BDF 83A8 C8C6 BDDB 3847 F72B"; }]; }; + azd325 = { + email = "tim.kleinschmidt@gmail.com"; + github = "Azd325"; + githubId = 426541; + name = "Tim Kleinschmidt"; + }; azuwis = { email = "azuwis@gmail.com"; github = "azuwis"; @@ -1758,6 +1828,16 @@ fingerprint = "A3E1 C409 B705 50B3 BF41 492B 5684 0A61 4DBE 37AE"; }]; }; + bastaynav = { + name = "Ivan Bastrakov"; + email = "bastaynav@proton.me"; + matrix = "@bastaynav:matrix.org"; + github = "bastaynav"; + githubId = 6987136; + keys = [{ + fingerprint = "2C6D 37D4 6AA1 DCDA BE8D F346 43E2 CF4C 01B9 4940"; + }]; + }; basvandijk = { email = "v.dijk.bas@gmail.com"; github = "basvandijk"; @@ -1857,6 +1937,12 @@ githubId = 11135; name = "Berk D. Demir"; }; + bddvlpr = { + email = "luna@bddvlpr.com"; + github = "bddvlpr"; + githubId = 17461028; + name = "Luna Simons"; + }; bdesham = { email = "benjamin@esham.io"; github = "bdesham"; @@ -1875,6 +1961,12 @@ github = "beardhatcode"; githubId = 662538; }; + beeb = { + name = "Valentin Bersier"; + email = "hi@beeb.li"; + github = "beeb"; + githubId = 703631; + }; beezow = { name = "beezow"; email = "zbeezow@gmail.com"; @@ -1915,6 +2007,16 @@ fingerprint = "E9A3 7864 2165 28CE 507C CA82 72EA BF75 C331 CD25"; }]; }; + Benjamin-L = { + name = "Benjamin Lee"; + email = "benjamin@computer.surgery"; + matrix = "@benjamin:computer.surgery"; + github = "Benjamin-L"; + githubId = 6504174; + keys = [{ + fingerprint = "9D84 09A0 44FC 1EEB AE2D FA30 FB96 24E2 885D 55A4"; + }]; + }; benkuhn = { email = "ben@ben-kuhn.com"; github = "ben-kuhn"; @@ -2180,12 +2282,25 @@ fingerprint = "17C7 95D4 871C 2F87 83C8 053D 0C61 C4E5 907F 76C8"; }]; }; + booniepepper = { + name = "J.R. Hill"; + email = "justin@so.dang.cool"; + github = "booniepepper"; + githubId = 17605298; + }; bootstrap-prime = { email = "bootstrap.prime@gmail.com"; github = "bootstrap-prime"; githubId = 68566724; name = "bootstrap-prime"; }; + boozedog = { + email = "code@booze.dog"; + github = "boozedog"; + githubId = 1410808; + matrix = "@boozedog:matrix.org"; + name = "David A. Buser"; + }; borisbabic = { email = "boris.ivan.babic@gmail.com"; github = "borisbabic"; @@ -2439,7 +2554,7 @@ }; cafkafk = { email = "christina@cafkafk.com"; - matrix = "@cafkafk:matrix.cafkafk.com"; + matrix = "@cafkafk:m.cafkafk.com"; name = "Christina Sørensen"; github = "cafkafk"; githubId = 89321978; @@ -2452,6 +2567,12 @@ } ]; }; + CaitlinDavitt = { + email = "CaitlinDavitt@gmail.com"; + github = "CaitlinDavitt"; + githubId = 48105979; + name = "Caitlin Davitt"; + }; calavera = { email = "david.calavera@gmail.com"; github = "calavera"; @@ -2543,6 +2664,12 @@ githubId = 82591; name = "Carl Sverre"; }; + carlthome = { + name = "Carl Thomé"; + email = "carlthome@gmail.com"; + github = "carlthome"; + githubId = 1595907; + }; carpinchomug = { email = "aki.suda@protonmail.com"; github = "carpinchomug"; @@ -2730,6 +2857,13 @@ githubId = 6608071; name = "Charles Huyghues-Despointes"; }; + chayleaf = { + email = "chayleaf-nix@pavluk.org"; + github = "chayleaf"; + githubId = 9590981; + matrix = "@chayleaf:matrix.pavluk.org"; + name = "Anna Pavlyuk"; + }; chekoopa = { email = "chekoopa@mail.ru"; github = "chekoopa"; @@ -2781,6 +2915,12 @@ githubId = 14790226; name = "Hubert Jasudowicz"; }; + c-h-johnson = { + name = "Charles Johnson"; + email = "charles@charlesjohnson.name"; + github = "c-h-johnson"; + githubId = 138403247; + }; chkno = { email = "scottworley@scottworley.com"; github = "chkno"; @@ -2919,7 +3059,7 @@ }; citadelcore = { email = "alex@arctarus.co.uk"; - github = "CitadelCore"; + github = "VertexA115"; githubId = 5567402; name = "Alex Zero"; keys = [{ @@ -3049,6 +3189,15 @@ githubId = 34317; name = "Corey O'Connor"; }; + code-asher = { + email = "ash@coder.com"; + github = "code-asher"; + githubId = 45609798; + name = "Asher"; + keys = [{ + fingerprint = "6E3A FA6D 915C C2A4 D26F C53E 7BB4 BA9C 783D 2BBC"; + }]; + }; CodeLongAndProsper90 = { github = "CodeLongAndProsper90"; githubId = 50145141; @@ -3139,6 +3288,12 @@ githubId = 244239; name = "Mauricio Collares"; }; + coloquinte = { + email = "gabriel.gouvine_nix@m4x.org"; + github = "coloquinte"; + githubId = 4102525; + name = "Gabriel Gouvine"; + }; commandodev = { email = "ben@perurbis.com"; github = "commandodev"; @@ -3164,6 +3319,12 @@ name = "Changsheng Wu"; githubId = 2083950; }; + conni2461 = { + email = "simon.hauser@outlook.com"; + github = "Conni2461"; + name = "Simon Hauser"; + githubId = 15233006; + }; connorbaker = { email = "connor.baker@tweag.io"; matrix = "@connorbaker:matrix.org"; @@ -3524,6 +3685,12 @@ fingerprint = "4779 D1D5 3C97 2EAE 34A5 ED3D D8AF C4BF 0567 0F9D"; }]; }; + dariof4 = { + name = "dariof4"; + email = "dazedtank@gmail.com"; + github = "dariof4"; + githubId = 9992814; + }; darkonion0 = { name = "Alexandre Peruggia"; email = "darkgenius1@protonmail.com"; @@ -3652,6 +3819,12 @@ githubId = 49904992; name = "Dawid Sowa"; }; + dbalan = { + email = "nix@dbalan.in"; + github = "dbalan"; + githubId = 223910; + name = "Dhananjay Balan"; + }; dbeckwith = { email = "djbsnx@gmail.com"; github = "dbeckwith"; @@ -3709,6 +3882,12 @@ fingerprint = "9B43 6B14 77A8 79C2 6CDB 6604 C171 2510 02C2 00F2"; }]; }; + deemp = { + email = "deempleton@gmail.com"; + github = "deemp"; + githubId = 48378098; + name = "Danila Danko"; + }; deepfire = { email = "_deepfire@feelingofgreen.ru"; github = "deepfire"; @@ -3877,6 +4056,13 @@ githubId = 17111639; name = "Devin Singh"; }; + devpikachu = { + email = "andrei.hava@proton.me"; + matrix = "@andrei:matrix.detpikachu.dev"; + github = "devpikachu"; + githubId = 30475873; + name = "Andrei Hava"; + }; devusb = { email = "mhelton@devusb.us"; github = "devusb"; @@ -4103,6 +4289,14 @@ githubId = 39825; name = "Dominik Honnef"; }; + donovanglover = { + github = "donovanglover"; + githubId = 2374245; + name = "Donovan Glover"; + keys = [{ + fingerprint = "EE7D 158E F9E7 660E 0C33 86B2 8FC5 F7D9 0A5D 8F4D"; + }]; + }; doriath = { email = "tomasz.zurkowski@gmail.com"; github = "doriath"; @@ -4239,12 +4433,12 @@ }; dsuetin = { name = "Danil Suetin"; - email = "suetin085@gmail.com"; + email = "suetin085+nixpkgs@protonmail.com"; matrix = "@dani0854:matrix.org"; github = "dani0854"; githubId = 32674935; keys = [{ - fingerprint = "6CC2 D713 6703 0D86 CA29 C71F 23B5 AA6F A374 F2FE"; + fingerprint = "E033 FE26 0E62 224B B35C 75C9 DE8B 9CED 0696 C600"; }]; }; dsymbol = { @@ -4386,6 +4580,15 @@ githubId = 1516017; name = "Ed Cragg"; }; + eddsteel = { + email = "edd@eddsteel.com"; + github = "eddsteel"; + githubId = 206872; + name = "Edd Steel"; + keys = [{ + fingerprint = "1BE8 48D7 6C7C 4C51 349D DDCC 3362 0159 D403 85A0"; + }]; + }; edef = { email = "edef@edef.eu"; github = "edef1c"; @@ -4432,6 +4635,12 @@ githubId = 54799; name = "Edward Tjörnhammar"; }; + ee2500 = { + email = "earthengine@skiff.com"; + github = "ee2500"; + githubId = 134107129; + name = "EarthEngine"; + }; eelco = { email = "edolstra+nixpkgs@gmail.com"; github = "edolstra"; @@ -4910,6 +5119,12 @@ githubId = 1847524; name = "Evan Stoll"; }; + evanrichter = { + email = "evanjrichter@gmail.com"; + github = "evanrichter"; + githubId = 330292; + name = "Evan Richter"; + }; evax = { email = "nixos@evax.fr"; github = "evax"; @@ -4928,6 +5143,12 @@ githubId = 2512008; name = "Even Brenden"; }; + evilmav = { + email = "elenskiy.ilya@gmail.com"; + github = "evilmav"; + githubId = 6803717; + name = "Ilya Elenskiy"; + }; evils = { email = "evils.devils@protonmail.com"; matrix = "@evils:nixos.dev"; @@ -4975,6 +5196,12 @@ fingerprint = "FC1D 3E4F CBCA 80DF E870 6397 C811 6E3A 0C1C A76A"; }]; }; + exploitoverload = { + email = "nix@exploitoverload.com"; + github = "exploitoverload"; + githubId = 99678549; + name = "Asier Armenteros"; + }; extends = { email = "sharosari@gmail.com"; github = "ImExtends"; @@ -5241,6 +5468,12 @@ githubId = 2489598; name = "Felix Breidenstein"; }; + flemzord = { + email = "maxence@maireaux.fr"; + github = "flemzord"; + githubId = 1952914; + name = "Maxence Maireaux"; + }; flexagoon = { email = "flexagoon@pm.me"; github = "flexagoon"; @@ -5392,6 +5625,12 @@ githubId = 7551358; name = "Frede Emil"; }; + Freed-Wu = { + email = "wuzhenyu@ustc.edu"; + github = "Freed-Wu"; + githubId = 32936898; + name = "Wu Zhenyu"; + }; freezeboy = { github = "freezeboy"; githubId = 13279982; @@ -5403,6 +5642,18 @@ githubId = 609279; name = "Isaac Shapira"; }; + freyacodes = { + email = "freya@arbjerg.dev"; + github = "freyacodes"; + githubId = 2582617; + name = "Freya Arbjerg"; + }; + fricklerhandwerk = { + email = "valentin@fricklerhandwerk.de"; + github = "fricklerhandwerk"; + githubId = 6599296; + name = "Valentin Gagarin"; + }; fridh = { email = "fridh@fridh.nl"; github = "FRidh"; @@ -5445,6 +5696,12 @@ githubId = 134872; name = "Sergei Lukianov"; }; + fsagbuya = { + email = "fa@m-labs.ph"; + github = "fsagbuya"; + githubId = 77672306; + name = "Florian Agbuya"; + }; fstamour = { email = "fr.st-amour@gmail.com"; github = "fstamour"; @@ -5495,7 +5752,7 @@ }; fuzen = { email = "me@fuzen.cafe"; - github = "Fuzen-py"; + github = "LovingMelody"; githubId = 17859309; name = "Fuzen"; }; @@ -5524,18 +5781,18 @@ githubId = 606000; name = "Gabriel Adomnicai"; }; - Gabriel439 = { - email = "Gabriel439@gmail.com"; - github = "Gabriella439"; - githubId = 1313787; - name = "Gabriel Gonzalez"; - }; GabrielDougherty = { email = "contact@gabrieldougherty.com"; github = "GabrielDougherty"; githubId = 10541219; name = "Gabriel Dougherty"; }; + Gabriella439 = { + email = "GenuineGabriella@gmail.com"; + github = "Gabriella439"; + githubId = 1313787; + name = "Gabriella Gonzalez"; + }; gador = { email = "florian.brandes@posteo.de"; github = "gador"; @@ -5545,6 +5802,16 @@ fingerprint = "0200 3EF8 8D2B CF2D 8F00 FFDC BBB3 E40E 5379 7FD9"; }]; }; + gaelreyrol = { + email = "me@gaelreyrol.dev"; + matrix = "@Zevran:matrix.org"; + name = "Gaël Reyrol"; + github = "gaelreyrol"; + githubId = 498465; + keys = [{ + fingerprint = "3492 D8FA ACFF 4C5F A56E 50B7 DFB9 B69A 2C42 7F61"; + }]; + }; GaetanLepage = { email = "gaetan@glepage.com"; github = "GaetanLepage"; @@ -5563,6 +5830,11 @@ githubId = 7047019; name = "Florent Becker"; }; + galen = { + github = "galenhuntington"; + githubId = 1851962; + name = "Galen Huntington"; + }; gamb = { email = "adam.gamble@pm.me"; github = "gamb"; @@ -5629,6 +5901,12 @@ githubId = 81654; name = "Damjan Georgievski"; }; + gdd = { + email = "gabriel.doriath.dohler@ens.fr"; + github = "gabriel-doriath-dohler"; + githubId = 40209356; + name = "Gabriel Doriath Döhler"; + }; gdinh = { email = "nix@contact.dinh.ai"; github = "gdinh"; @@ -5695,6 +5973,19 @@ githubId = 10353047; name = "Tobias Happ"; }; + getchoo = { + email = "getchoo@tuta.io"; + github = "getchoo"; + githubId = 48872998; + name = "Seth"; + }; + getpsyched = { + name = "Priyanshu Tripathi"; + email = "priyanshutr@proton.me"; + matrix = "@getpsyched:matrix.org"; + github = "getpsyched"; + githubId = 43472218; + }; gfrascadorio = { email = "gfrascadorio@tutanota.com"; github = "gfrascadorio"; @@ -5708,15 +5999,6 @@ githubId = 3217744; name = "Peter Ferenczy"; }; - ggwpaiushtha = { - name = "Ivan"; - email = "ggwpaiushtha@gmail.com"; - github = "GGwpAiushtha"; - githubId = 6987136; - keys = [{ - fingerprint = "2C6D 37D4 6AA1 DCDA BE8D F346 43E2 CF4C 01B9 4940"; - }]; - }; ghostbuster91 = { name = "Kasper Kondzielski"; email = "kghost0@gmail.com"; @@ -5816,6 +6098,21 @@ githubId = 25820499; name = "Roman Kretschmer"; }; + goatchurchprime = { + email = "julian@goatchurch.org.uk"; + github = "goatchurchprime"; + githubId = 677254; + name = "Julian Todd"; + }; + gobidev = { + email = "adrian.groh@t-online.de"; + github = "Gobidev"; + githubId = 50576978; + name = "Adrian Groh"; + keys = [{ + fingerprint = "62BD BF30 83E9 7076 9665 B60B 3AA3 153E 98B0 D771"; + }]; + }; goertzenator = { email = "daniel.goertzen@gmail.com"; github = "goertzenator"; @@ -5849,15 +6146,6 @@ githubId = 1621335; name = "Andrew Trachenko"; }; - gordias = { - name = "Gordias"; - email = "gordias@disroot.org"; - github = "gordiasdot"; - githubId = 94724133; - keys = [{ - fingerprint = "C006 B8A0 0618 F3B6 E0E4 2ECD 5D47 2848 30FA A4FA"; - }]; - }; gotcha = { email = "gotcha@bubblenet.be"; github = "gotcha"; @@ -6335,13 +6623,6 @@ githubId = 72349937; name = "Hikari"; }; - - hiljusti = { - name = "J.R. Hill"; - email = "hiljusti@so.dang.cool"; - github = "hiljusti"; - githubId = 17605298; - }; hirenashah = { email = "hiren@hiren.io"; github = "hirenashah"; @@ -6358,6 +6639,12 @@ fingerprint = "45A9 9917 578C D629 9F5F B5B4 C22D 4DE4 D7B3 2D19"; }]; }; + hitsmaxft = { + name = "Bhe Hongtyu"; + email = "mfthits@gmail.com"; + github = "hitsmaxft"; + githubId = 352727; + }; hjones2199 = { email = "hjones2199@gmail.com"; github = "hjones2199"; @@ -6391,6 +6678,15 @@ githubId = 6074754; name = "Hlodver Sigurdsson"; }; + hmajid2301 = { + name = "Haseeb Majid"; + email = "hello@haseebmajid.dev"; + github = "hmajid2301"; + githubId = 998807; + keys = [{ + fingerprint = "A236 785D 59F1 9076 1E9C E8EC 7828 3DB3 D233 E1F9"; + }]; + }; hmenke = { name = "Henri Menke"; email = "henri@henrimenke.de"; @@ -6517,6 +6813,11 @@ fingerprint = "78C2 E81C 828A 420B 269A EBC1 49FA 39F8 A7F7 35F9"; }]; }; + hulr = { + github = "hulr"; + githubId = 17255815; + name = "hulr"; + }; humancalico = { email = "humancalico@disroot.org"; github = "humancalico"; @@ -6717,7 +7018,7 @@ }; ilya-kolpakov = { email = "ilya.kolpakov@gmail.com"; - github = "ilya-kolpakov"; + github = "1pakch"; githubId = 592849; name = "Ilya Kolpakov"; }; @@ -6858,6 +7159,11 @@ githubId = 1817528; name = "Igor Polyakov"; }; + iquerejeta = { + github = "iquerejeta"; + githubId = 31273774; + name = "Inigo Querejeta-Azurmendi"; + }; irenes = { name = "Irene Knapp"; email = "ireneista@gmail.com"; @@ -6874,6 +7180,12 @@ githubId = 137306; name = "Michele Catalano"; }; + isaozler = { + email = "isaozler@gmail.com"; + github = "isaozler"; + githubId = 1378630; + name = "Isa Ozler"; + }; isgy = { name = "isgy"; email = "isgy@teiyg.com"; @@ -6997,6 +7309,12 @@ github = "j4m3s-s"; githubId = 9413812; }; + jacfal = { + name = "Jakub Pravda"; + email = "me@jakubpravda.net"; + github = "jakub-pravda"; + githubId = 16310411; + }; jacg = { name = "Jacek Generowicz"; email = "jacg@my-post-office.net"; @@ -7061,6 +7379,11 @@ github = "jali-clarke"; githubId = 17733984; }; + james-atkins = { + name = "James Atkins"; + github = "james-atkins"; + githubId = 9221409; + }; jamiemagee = { email = "jamie.magee@gmail.com"; github = "JamieMagee"; @@ -7113,7 +7436,7 @@ jayesh-bhoot = { name = "Jayesh Bhoot"; email = "jb@jayeshbhoot.com"; - github = "jayeshbhoot"; + github = "bhootjb"; githubId = 1915507; }; jayman2000 = { @@ -7200,6 +7523,12 @@ githubId = 8685505; name = "Jen-Chieh Shen"; }; + jcspeegs = { + email = "justin@speegs.com"; + github = "jcspeegs"; + githubId = 34928409; + name = "Justin Speegle"; + }; jcumming = { email = "jack@mudshark.org"; github = "jcumming"; @@ -7521,6 +7850,12 @@ githubId = 8900; name = "Johan Magnus Jonsson"; }; + jmbaur = { + email = "jaredbaur@fastmail.com"; + github = "jmbaur"; + githubId = 45740526; + name = "Jared Baur"; + }; jmc-figueira = { email = "business+nixos@jmc-figueira.dev"; github = "jmc-figueira"; @@ -7592,10 +7927,10 @@ name = "Jocelyn Thode"; }; joedevivo = { - github = "joedevivo"; - githubId = 55951; - name = "Joe DeVivo"; - }; + github = "joedevivo"; + githubId = 55951; + name = "Joe DeVivo"; + }; joelancaster = { email = "joe.a.lancas@gmail.com"; github = "JoeLancaster"; @@ -7669,6 +8004,12 @@ githubId = 2576152; name = "John M. Harris, Jr."; }; + johnpyp = { + name = "John Paul Penaloza"; + email = "johnpyp.dev@gmail.com"; + github = "johnpyp"; + githubId = 20625636; + }; johnramsden = { email = "johnramsden@riseup.net"; github = "johnramsden"; @@ -7779,6 +8120,17 @@ github = "jorsn"; githubId = 4646725; }; + joscha = { + name = "joscha Loos"; + email = "j.loos@posteo.net"; + githubId = 57965027; + }; + josephst = { + name = "Joseph Stahl"; + email = "hello@josephstahl.com"; + github = "josephst"; + githubId = 1269177; + }; joshniemela = { name = "Joshua Niemelä"; email = "josh@jniemela.dk"; @@ -7925,7 +8277,7 @@ }; juaningan = { email = "juaningan@gmail.com"; - github = "uningan"; + github = "oneingan"; githubId = 810075; name = "Juan Rodal"; }; @@ -7966,6 +8318,13 @@ githubId = 21160136; name = "Julien Moutinho"; }; + Julow = { + email = "jules@j3s.fr"; + matrix = "@juloo:matrix.org"; + github = "Julow"; + githubId = 2310568; + name = "Jules Aguillon"; + }; jumper149 = { email = "felixspringer149@gmail.com"; github = "jumper149"; @@ -8177,6 +8536,12 @@ githubId = 37185887; name = "Calvin Kim"; }; + keenanweaver = { + email = "keenanweaver@protonmail.com"; + name = "Keenan Weaver"; + github = "keenanweaver"; + githubId = 37268985; + }; keksbg = { email = "keksbg@riseup.net"; name = "Stella"; @@ -8266,6 +8631,12 @@ githubId = 546087; name = "Kristoffer K. Føllesdal"; }; + khaser = { + email = "a-horohorin@mail.ru"; + github = "khaser"; + githubId = 59027018; + name = "Andrey Khorokhorin"; + }; kho-dialga = { email = "ivandashenyou@gmail.com"; github = "Kho-Dialga"; @@ -8888,7 +9259,7 @@ github = "leifhelm"; githubId = 31693262; name = "Jakob Leifhelm"; - keys =[{ + keys = [{ fingerprint = "4A82 F68D AC07 9FFD 8BF0 89C4 6817 AA02 3810 0822"; }]; }; @@ -9130,6 +9501,12 @@ fingerprint = "74F5 E5CC 19D3 B5CB 608F 6124 68FF 81E6 A785 0F49"; }]; }; + liyangau = { + email = "d@aufomm.com"; + github = "liyangau"; + githubId = 71299093; + name = "Li Yang"; + }; lizelive = { email = "nixpkgs@lize.live"; github = "lizelive"; @@ -9217,6 +9594,12 @@ githubId = 5624721; name = "Ben Wolsieffer"; }; + lord-valen = { + name = "Lord Valen"; + matrix = "@lord-valen:matrix.org"; + github = "Lord-Valen"; + githubId = 46138807; + }; lorenz = { name = "Lorenz Brun"; email = "lorenz@brun.one"; @@ -9324,6 +9707,12 @@ githubId = 59375051; name = "Lucas Ransan"; }; + LucaGuerra = { + email = "luca@guerra.sh"; + github = "LucaGuerra"; + githubId = 35580196; + name = "Luca Guerra"; + }; lucasew = { email = "lucas59356@gmail.com"; github = "lucasew"; @@ -9381,6 +9770,13 @@ githubId = 22085373; name = "Luis Hebendanz"; }; + luisnquin = { + email = "lpaandres2020@gmail.com"; + matrix = "@luisnquin:matrix.org"; + github = "luisnquin"; + githubId = 86449787; + name = "Luis Quiñones"; + }; luispedro = { email = "luis@luispedro.org"; github = "luispedro"; @@ -9403,6 +9799,12 @@ fingerprint = "97A0 AE5E 03F3 499B 7D7A 65C6 76A4 1432 37EF 5817"; }]; }; + lukaswrz = { + email = "lukas@wrz.one"; + github = "lukaswrz"; + githubId = 84395723; + name = "Lukas Wurzinger"; + }; lukeadams = { email = "luke.adams@belljar.io"; github = "lukeadams"; @@ -9544,6 +9946,11 @@ fingerprint = "1147 43F1 E707 6F3E 6F4B 2C96 B9A8 B592 F126 F8E8"; }]; }; + mac-chaffee = { + name = "Mac Chaffee"; + github = "mac-chaffee"; + githubId = 7581860; + }; maddiethecafebabe = { email = "maddie@cafebabe.date"; github = "maddiethecafebabe"; @@ -9652,6 +10059,11 @@ githubId = 2914269; name = "Malo Bourgon"; }; + malt3 = { + github = "malt3"; + githubId = 1780588; + name = "Malte Poll"; + }; malte-v = { email = "nixpkgs@mal.tc"; github = "malte-v"; @@ -9664,6 +10076,12 @@ githubId = 346094; name = "Michael Alyn Miller"; }; + mangoiv = { + email = "contact@mangoiv.com"; + github = "mangoiv"; + githubId = 40720523; + name = "MangoIV"; + }; manojkarthick = { email = "smanojkarthick@gmail.com"; github = "manojkarthick"; @@ -9939,7 +10357,16 @@ githubId = 95194; name = "Mauricio Scheffer"; }; - maxbrunet = { + mawis = { + email = "m@tthias.eu"; + github = "mawis"; + githubId = 2042030; + name = "Matthias Wimmer"; + keys = [{ + fingerprint = "CAEC A12D CE23 37A6 6DFD 17B0 7AC7 631D 70D6 C898"; + }]; + }; + maxbrunet = { email = "max@brnt.mx"; github = "maxbrunet"; githubId = 32458727; @@ -10088,6 +10515,15 @@ githubId = 683809; name = "Jeffrey Brent McBeth"; }; + mccurdyc = { + email = "mccurdyc22@gmail.com"; + github = "mccurdyc"; + githubId = 5546264; + name = "Colton J. McCurdy"; + keys = [{ + fingerprint = "D709 03C8 0BE9 ACDC 14F0 3BFB 77BF E531 397E DE94"; + }]; + }; mcmtroffaes = { email = "matthias.troffaes@gmail.com"; github = "mcmtroffaes"; @@ -10240,6 +10676,11 @@ githubId = 9469313; name = "Gregoire Martinache"; }; + mgregson = { + github = "mgregson"; + githubId = 333572; + name = "Michael Gregson"; + }; mgttlinger = { email = "megoettlinger@gmail.com"; github = "mgttlinger"; @@ -10300,6 +10741,12 @@ github = "michaelBelsanti"; githubId = 62124625; }; + michaelCTS = { + email = "michael.vogel@cts.co"; + name = "Michael Vogel"; + github = "michaelCTS"; + githubId = 132582212; + }; michaelgrahamevans = { email = "michaelgrahamevans@gmail.com"; name = "Michael Evans"; @@ -10311,7 +10758,7 @@ name = "Michael Pacheco"; github = "MichaelPachec0"; githubId = 48970112; - keys = [ { + keys = [{ fingerprint = "8D12 991F 5558 C501 70B2 779C 7811 46B0 B5F9 5F64"; }]; }; @@ -10321,6 +10768,12 @@ githubId = 1699466; name = "Michael Peyton Jones"; }; + michaelshmitty = { + name = "Michael Smith"; + email = "shmitty@protonmail.com"; + github = "michaelshmitty"; + githubId = 114845; + }; michalrus = { email = "m@michalrus.com"; github = "michalrus"; @@ -10491,6 +10944,15 @@ githubId = 1776903; name = "Andrew Abbott"; }; + Misaka13514 = { + name = "Misaka13514"; + email = "Misaka13514@gmail.com"; + matrix = "@misaka13514:matrix.org"; + github = "Misaka13514"; + githubId = 54669781; + keys = + [{ fingerprint = "293B 93D8 A471 059F 85D7 16A6 5BA9 2099 D9BE 2DAA"; }]; + }; mislavzanic = { email = "mislavzanic3@gmail.com"; github = "mislavzanic"; @@ -10623,6 +11085,12 @@ githubId = 708570; name = "Manuel Mendez"; }; + mmusnjak = { + email = "marko.musnjak@gmail.com"; + github = "mmusnjak"; + githubId = 668956; + name = "Marko MuÅ¡njak"; + }; mnacamura = { email = "m.nacamura@gmail.com"; github = "mnacamura"; @@ -10691,6 +11159,12 @@ fingerprint = "6460 4147 C434 F65E C306 A21F 135E EDD0 F719 34F3"; }]; }; + moody = { + email = "moody@posixcafe.org"; + github = "majiru"; + githubId = 3579600; + name = "Jacob Moody"; + }; moosingin3space = { email = "moosingin3space@gmail.com"; github = "moosingin3space"; @@ -11011,6 +11485,16 @@ githubId = 22817873; name = "Ember Keske"; }; + n3oney = { + name = "MichaÅ‚ Minarowski"; + email = "nixpkgs@neoney.dev"; + github = "n3oney"; + githubId = 30625554; + matrix = "@neoney:matrix.org"; + keys = [{ + fingerprint = "9E6A 25F2 C1F2 9D76 ED00 1932 1261 173A 01E1 0298"; + }]; + }; nadrieril = { email = "nadrieril@gmail.com"; github = "Nadrieril"; @@ -11038,6 +11522,11 @@ githubId = 1009523; name = "Ashijit Pramanik"; }; + name-snrl = { + github = "name-snrl"; + githubId = 72071763; + name = "Yusup Urazaev"; + }; namore = { email = "namor@hemio.de"; github = "namore"; @@ -11381,6 +11870,12 @@ fingerprint = "E576 BFB2 CF6E B13D F571 33B9 E315 A758 4613 1564"; }]; }; + nielsegberts = { + email = "nix@nielsegberts.nl"; + github = "nielsegberts"; + githubId = 368712; + name = "Niels Egberts"; + }; nigelgbanks = { name = "Nigel Banks"; email = "nigel.g.banks@gmail.com"; @@ -11423,6 +11918,16 @@ githubId = 26231126; name = "Nils ANDRÉ-CHANG"; }; + nim65s = { + email = "guilhem.saurel@laas.fr"; + matrix = "@gsaurel:laas.fr"; + github = "nim65s"; + githubId = 131929; + name = "Guilhem Saurel"; + keys = [{ + fingerprint = "9B1A 7906 5D2F 2B80 6C8A 5A1C 7D2A CDAF 4653 CF28"; + }]; + }; ninjatrappeur = { email = "felix@alternativebit.fr"; matrix = "@ninjatrappeur:matrix.org"; @@ -11565,9 +12070,10 @@ }; NotAShelf = { name = "NotAShelf"; - email = "itsashelf@gmail.com"; + email = "raf@notashelf.dev"; github = "NotAShelf"; githubId = 62766066; + matrix = "@raf:notashelf.dev"; }; notbandali = { name = "Amin Bandali"; @@ -11591,6 +12097,12 @@ githubId = 2946283; name = "Brian Cohen"; }; + nova-madeline = { + matrix = "@nova:tchncs.de"; + github = "nova-r"; + githubId = 126072875; + name = "nova madeline"; + }; novenary = { email = "streetwalkermc@gmail.com"; github = "9ary"; @@ -11659,7 +12171,7 @@ name = "Kartik Gokte"; }; nullishamy = { - email = "amy.codes@null.net"; + email = "spam@amyerskine.me"; name = "nullishamy"; github = "nullishamy"; githubId = 99221043; @@ -11723,6 +12235,12 @@ githubId = 30825096; name = "Ning Zhang"; }; + oaksoaj = { + email = "oaksoaj@riseup.net"; + name = "Oaksoaj"; + github = "oaksoaj"; + githubId = 103952141; + }; obadz = { email = "obadz-nixos@obadz.com"; github = "obadz"; @@ -11851,6 +12369,15 @@ github = "jackyliu16"; githubId = 50787361; }; + onemoresuza = { + name = "Coutinho de Souza"; + email = "dev@onemoresuza.mailer.me"; + github = "onemoresuza"; + githubId = 106456302; + keys = [{ + fingerprint = "484F D3B8 BAD7 BF5D 8B68 2AEA A2ED 1159 935E 4D7E"; + }]; + }; onixie = { email = "onixie@gmail.com"; github = "onixie"; @@ -11881,6 +12408,15 @@ github = "ony"; githubId = 11265; }; + ooliver1 = { + name = "Oliver Wilkes"; + email = "oliverwilkes2006@icloud.com"; + github = "ooliver1"; + githubId = 34910574; + keys = [{ + fingerprint = "D055 8A23 3947 B7A0 F966 B07F 0B41 0348 9833 7273"; + }]; + }; opeik = { email = "sandro@stikic.com"; github = "opeik"; @@ -11905,6 +12441,12 @@ githubId = 75299; name = "Malcolm Matalka"; }; + orichter = { + email = "richter-oliver@gmx.net"; + github = "RichterOliver"; + githubId = 135209509; + name = "Oliver Richter"; + }; orivej = { email = "orivej@gmx.fr"; github = "orivej"; @@ -12406,6 +12948,12 @@ githubId = 421510; name = "Noé Rubinstein"; }; + pho = { + email = "phofin@gmail.com"; + github = "pho"; + githubId = 88469; + name = "Jaime Breva"; + }; photex = { email = "photex@gmail.com"; github = "photex"; @@ -12491,6 +13039,12 @@ githubId = 1830959; name = "Piper McCorkle"; }; + piturnah = { + email = "peterhebden6@gmail.com"; + github = "piturnah"; + githubId = 20472367; + name = "Peter Hebden"; + }; pjbarnoy = { email = "pjbarnoy@gmail.com"; github = "pjbarnoy"; @@ -12833,6 +13387,12 @@ githubId = 406946; name = "Valentin Lorentz"; }; + proofconstruction = { + email = "source@proof.construction"; + github = "proofconstruction"; + githubId = 74747193; + name = "Alexander Groleau"; + }; proofofkeags = { email = "keagan.mcclelland@gmail.com"; github = "ProofOfKeags"; @@ -13046,6 +13606,12 @@ githubId = 18196237; name = "Quentin Inkling"; }; + quentin-m = { + email = "me+nix@quentin-machu.fr"; + github = "Quentin-M"; + githubId = 1332289; + name = "Quentin Machu"; + }; qyliss = { email = "hi@alyssa.is"; github = "alyssais"; @@ -13467,7 +14033,7 @@ name = "Riley Inman"; }; riotbib = { - email = "github-nix@lnrt.de"; + email = "lennart@cope.cool"; github = "riotbib"; githubId = 43172581; name = "Lennart Mühlenmeier"; @@ -13850,6 +14416,15 @@ githubId = 889991; name = "Ryan Artecona"; }; + ryane = { + email = "ryanesc@gmail.com"; + github = "ryane"; + githubId = 7346; + name = "Ryan Eschinger"; + keys = [{ + fingerprint = "E4F4 1EAB BF0F C785 06D8 62EF EF68 CF41 D42A 593D"; + }]; + }; ryanorendorff = { github = "ryanorendorff"; githubId = 12442942; @@ -14266,6 +14841,13 @@ githubId = 1286668; name = "Thilo Uttendorfer"; }; + sents = { + email = "finn@krein.moe"; + github = "sents"; + githubId = 26575793; + matrix = "@sents:matrix.org"; + name = "Finn Krein"; + }; sephalon = { email = "me@sephalon.net"; github = "sephalon"; @@ -14326,6 +14908,12 @@ fingerprint = "A317 37B3 693C 921B 480C C629 4A2A AAA3 82F8 294C"; }]; }; + sestrella = { + email = "sestrella.me@gmail.com"; + github = "sestrella"; + githubId = 2049686; + name = "Sebastián Estrella"; + }; seylerius = { name = "Sable Seyler"; email = "sable@seyleri.us"; @@ -14498,6 +15086,12 @@ github = "kf5grd"; githubId = 18297490; }; + shortcord = { + name = "Short Cord"; + email = "short@shortcord.com"; + github = "shortcord"; + githubId = 3823744; + }; shou = { email = "x+g@shou.io"; github = "Shou"; @@ -14519,6 +15113,11 @@ githubId = 6224096; name = "Soner Sayakci"; }; + shymega = { + name = "Dom Rodriguez"; + github = "shymega"; + githubId = 1334592; + }; siddharthist = { email = "langston.barrett@gmail.com"; github = "langston-barrett"; @@ -14550,6 +15149,12 @@ githubId = 16090; name = "Yann Hodique"; }; + sigmanificient = { + email = "sigmanificient@gmail.com"; + github = "Sigmanificient"; + githubId = 53050011; + name = "Yohann Boniface"; + }; sikmir = { email = "sikmir@disroot.org"; github = "sikmir"; @@ -14627,6 +15232,12 @@ githubId = 74881555; name = "Fofanov Sergey"; }; + sitaaax = { + email = "johannes@kle1n.com"; + github = "SitAAAx"; + githubId = 74413170; + name = "Johannes Klein"; + }; sivteck = { email = "sivaram1992@gmail.com"; github = "sivteck"; @@ -14780,6 +15391,12 @@ githubId = 1437166; name = "Xia Bin"; }; + sochotnicky = { + email = "stanislav+github@ochotnicky.com"; + github = "sochotnicky"; + githubId = 55726; + name = "Stanislav Ochotnický"; + }; softinio = { email = "code@softinio.com"; github = "softinio"; @@ -15148,6 +15765,12 @@ githubId = 38893265; name = "StrikerLulu"; }; + stteague = { + email = "stteague505@yahoo.com"; + github = "stteague"; + githubId = 77596767; + name = "Scott Teague"; + }; stumoss = { email = "samoss@gmail.com"; github = "stumoss"; @@ -15305,6 +15928,13 @@ githubId = 20063502; name = "Sybrand Aarnoutse"; }; + syboxez = { + email = "syboxez@gmail.com"; + matrix = "@Syboxez:matrix.org"; + github = "syboxez"; + githubId = 12841859; + name = "Syboxez Blank"; + }; symphorien = { email = "symphorien_nixpkgs@xlumurb.eu"; matrix = "@symphorien:xlumurb.eu"; @@ -15556,6 +16186,13 @@ githubId = 1755789; name = "Robert Irelan"; }; + tengkuizdihar = { + name = "Tengku Izdihar"; + email = "tengkuizdihar@gmail.com"; + matrix = "@tengkuizdihar:matrix.org"; + github = "tengkuizdihar"; + githubId = 22078730; + }; tennox = { email = "tennox+nix@txlab.io"; github = "tennox"; @@ -15808,6 +16445,12 @@ github = "thielema"; githubId = 898989; }; + thillux = { + name = "Markus Theil"; + email = "theil.markus@gmail.com"; + github = "thillux"; + githubId = 2171995; + }; thilobillerbeck = { name = "Thilo Billerbeck"; email = "thilo.billerbeck@officerent.de"; @@ -15908,6 +16551,12 @@ github = "TilCreator"; githubId = 18621411; }; + tillkruss = { + name = "Till Krüss"; + email = "till@kruss.io"; + github = "tillkruss"; + githubId = 665029; + }; tilpner = { name = "Till Höppner"; email = "nixpkgs@tilpner.com"; @@ -16006,6 +16655,12 @@ githubId = 3159881; name = "Tobias Markus"; }; + tm-drtina = { + email = "tm.drtina@gmail.com"; + github = "tm-drtina"; + githubId = 26902865; + name = "Tomas Drtina"; + }; tmountain = { email = "tinymountain@gmail.com"; github = "tmountain"; @@ -16301,6 +16956,12 @@ githubId = 9413924; name = "Thorsten Weber"; }; + twesterhout = { + name = "Tom Westerhout"; + matrix = "@twesterhout:matrix.org"; + github = "twesterhout"; + githubId = 14264576; + }; twey = { email = "twey@twey.co.uk"; github = "Twey"; @@ -16362,6 +17023,15 @@ fingerprint = "EE59 5E29 BB5B F2B3 5ED2 3F1C D276 FF74 6700 7335"; }]; }; + undefined-moe = { + name = "undefined"; + email = "i@undefined.moe"; + github = "undefined-moe"; + githubId = 29992205; + keys = [{ + fingerprint = "6684 4E7D D213 C75D 8828 6215 C714 A58B 6C1E 0F52"; + }]; + }; unhammer = { email = "unhammer@fsfe.org"; github = "unhammer"; @@ -16602,6 +17272,12 @@ github = "vdot0x23"; githubId = 40716069; }; + vector1dev = { + name = "vector1dev"; + matrix = "@vector1dev:vector1.dev"; + github = "vector1dev"; + githubId = 127302590; + }; veehaitch = { name = "Vincent Haupert"; email = "mail@vincent-haupert.de"; @@ -16662,7 +17338,7 @@ githubId = 7953163; name = "Vika Shleina"; keys = [{ - fingerprint = "B3C0 DA1A C18B 82E8 CA8B B1D1 4F62 CD07 CE64 796A"; + fingerprint = "5814 50EB 6E17 E715 7C63 E7F1 9879 8C3C 4D68 8D6D"; }]; }; vincentbernat = { @@ -16834,6 +17510,15 @@ githubId = 5228243; name = "waelwindows"; }; + wahtique = { + name = "William Veal Phan"; + email = "williamvphan@yahoo.fr"; + github = "wahtique"; + githubId = 55251330; + keys = [{ + fingerprint = "9262 E3A7 D129 C4DD A7C1 26CE 370D D9BE 9121 F0B3"; + }]; + }; waiting-for-dev = { email = "marc@lamarciana.com"; github = "waiting-for-dev"; @@ -16885,14 +17570,14 @@ github = "wdavidw"; githubId = 46896; }; - WeebSorceress = { - name = "WeebSorceress"; - email = "hello@weebsorceress.anonaddy.me"; - matrix = "@weebsorceress:matrix.org"; - github = "WeebSorceress"; - githubId = 106774777; + weathercold = { + name = "Weathercold"; + email = "weathercold.scr@gmail.com"; + matrix = "@weathercold:matrix.org"; + github = "Weathercold"; + githubId = 49368953; keys = [{ - fingerprint = "659A 9BC3 F904 EC24 1461 2EFE 7F57 3443 17F0 FA43"; + fingerprint = "D20F C904 A145 8B28 53D8 FBA0 0422 0096 01E4 87FC"; }]; }; wegank = { @@ -17346,10 +18031,10 @@ }; yayayayaka = { email = "nixpkgs@uwu.is"; - matrix = "@lara:uwu.is"; + matrix = "@yaya:uwu.is"; github = "yayayayaka"; githubId = 73759599; - name = "Lara A."; + name = "Yaya"; }; ydlr = { name = "ydlr"; @@ -17524,6 +18209,16 @@ fingerprint = "9F19 3AE8 AA25 647F FC31 46B5 416F 303B 43C2 0AC3"; }]; }; + yvan-sraka = { + email = "yvan@sraka.xyz"; + github = "yvan-sraka"; + githubId = 705213; + keys = [{ + fingerprint = "FE9A 953C 97E4 54FE 6598 BFDD A4FB 3EAA 6F45 2379"; + }]; + matrix = "@/yvan:matrix.org"; + name = "Yvan Sraka"; + }; yvesf = { email = "yvesf+nix@xapek.org"; github = "yvesf"; @@ -17673,6 +18368,12 @@ githubId = 2189609; name = "Zhaofeng Li"; }; + zi3m5f = { + name = "zi3m5f"; + email = "k7n3o3a6f@mozmail.com"; + github = "zi3m5f"; + githubId = 113244000; + }; ziguana = { name = "Zig Uana"; email = "git@ziguana.dev"; @@ -17798,5 +18499,11 @@ githubId = 32876; name = "Diego Zamboni"; }; + zzzsy = { + email = "me@zzzsy.top"; + github = "zzzsyyy"; + githubId = 59917878; + name = "Mathias Zhang"; + }; } /* Keep the list alphabetically sorted. */ diff --git a/third_party/nixpkgs/maintainers/scripts/check-hydra-by-maintainer.nix b/third_party/nixpkgs/maintainers/scripts/check-hydra-by-maintainer.nix index 326aae47f8..c40729a397 100644 --- a/third_party/nixpkgs/maintainers/scripts/check-hydra-by-maintainer.nix +++ b/third_party/nixpkgs/maintainers/scripts/check-hydra-by-maintainer.nix @@ -1,15 +1,18 @@ { maintainer }: let - pkgs = import ./../../default.nix { }; + pkgs = import ./../../default.nix { + config.allowAliases = false; + }; + inherit (pkgs) lib; maintainer_ = pkgs.lib.maintainers.${maintainer}; packagesWith = cond: return: prefix: set: - (pkgs.lib.flatten - (pkgs.lib.mapAttrsToList + (lib.flatten + (lib.mapAttrsToList (name: pkg: let result = builtins.tryEval ( - if pkgs.lib.isDerivation pkg && cond name pkg then + if lib.isDerivation pkg && cond name pkg then # Skip packages whose closure fails on evaluation. # This happens for pkgs like `python27Packages.djangoql` # that have disabled Python pkgs as dependencies. @@ -42,7 +45,7 @@ let ) ) (name: name) - ("") + "" pkgs; in diff --git a/third_party/nixpkgs/maintainers/scripts/fix-maintainers.pl b/third_party/nixpkgs/maintainers/scripts/fix-maintainers.pl index 81f6450c5f..a83df9ec0c 100755 --- a/third_party/nixpkgs/maintainers/scripts/fix-maintainers.pl +++ b/third_party/nixpkgs/maintainers/scripts/fix-maintainers.pl @@ -42,7 +42,7 @@ while(my($k, $v) = each %$maintainers_json) { } my $resp_json = from_json($resp->content); my $api_user = %$resp_json{"login"}; - if ($current_user ne $api_user) { + if (lc($current_user) ne lc($api_user)) { print $current_user . " is now known on github as " . $api_user . ". Editing maintainer-list.nix…\n"; my $file = path($maintainers_list_nix); my $data = $file->slurp_utf8; diff --git a/third_party/nixpkgs/maintainers/scripts/nix-generate-from-cpan.pl b/third_party/nixpkgs/maintainers/scripts/nix-generate-from-cpan.pl index ce0599dda0..6754f79009 100755 --- a/third_party/nixpkgs/maintainers/scripts/nix-generate-from-cpan.pl +++ b/third_party/nixpkgs/maintainers/scripts/nix-generate-from-cpan.pl @@ -6,6 +6,7 @@ use warnings; use CPAN::Meta(); use CPANPLUS::Backend(); +use MIME::Base64; use Module::CoreList; use Getopt::Long::Descriptive qw( describe_options ); use JSON::PP qw( encode_json ); @@ -354,6 +355,11 @@ sub render_license { return $license_line; } +sub sha256_to_sri { + my ($sha256) = @_; + return "sha256-" . encode_base64(pack("H*", $sha256), ''); +} + my ( $opt, $module_name ) = handle_opts(); Log::Log4perl->easy_init( @@ -380,8 +386,9 @@ INFO( "package: ", $module->package, " (", "$pkg_name-$pkg_version", ", ", $attr INFO( "path: ", $module->path ); my $tar_path = $module->fetch(); +my $sri_hash = sha256_to_sri($module->status->checksum_value); INFO( "downloaded to: ", $tar_path ); -INFO( "sha-256: ", $module->status->checksum_value ); +INFO( "hash: ", $sri_hash ); my $pkg_path = $module->extract(); INFO( "unpacked to: ", $pkg_path ); @@ -436,7 +443,7 @@ print < 0; diff --git a/third_party/nixpkgs/maintainers/scripts/update-dotnet-lockfiles.nix b/third_party/nixpkgs/maintainers/scripts/update-dotnet-lockfiles.nix new file mode 100644 index 0000000000..22ceff1ffa --- /dev/null +++ b/third_party/nixpkgs/maintainers/scripts/update-dotnet-lockfiles.nix @@ -0,0 +1,72 @@ +/* + To run: + + nix-shell maintainers/scripts/update-dotnet-lockfiles.nix + + This script finds all the derivations in nixpkgs that have a 'fetch-deps' + attribute, and runs all of them sequentially. This is useful to test changes + to 'fetch-deps', 'nuget-to-nix', or other changes to the dotnet build + infrastructure. Regular updates should be done through the individual packages + update scripts. + */ +let + pkgs = import ../.. {}; + + inherit (pkgs) lib; + + packagesWith = cond: pkgs: + let + packagesWithInner = attrs: + lib.unique ( + lib.concatLists ( + lib.mapAttrsToList (name: elem: + let + result = builtins.tryEval elem; + in + if result.success then + let + value = result.value; + in + if lib.isDerivation value then + lib.optional (cond value) value + else + if lib.isAttrs value && (value.recurseForDerivations or false || value.recurseForRelease or false) then + packagesWithInner value + else [] + else []) attrs)); + in + packagesWithInner pkgs; + + packages = + packagesWith (pkgs: pkgs ? fetch-deps) pkgs; + + helpText = '' + Please run: + + % nix-shell maintainers/scripts/update-dotnet-lockfiles.nix + ''; + + fetchScripts = map (p: p.fetch-deps) packages; + +in pkgs.stdenv.mkDerivation { + name = "nixpkgs-update-dotnet-lockfiles"; + buildCommand = '' + echo "" + echo "----------------------------------------------------------------" + echo "" + echo "Not possible to update packages using \`nix-build\`" + echo "" + echo "${helpText}" + echo "----------------------------------------------------------------" + exit 1 + ''; + shellHook = '' + unset shellHook # do not contaminate nested shells + set -e + for x in $fetchScripts; do + $x + done + exit + ''; + inherit fetchScripts; +} diff --git a/third_party/nixpkgs/maintainers/team-list.nix b/third_party/nixpkgs/maintainers/team-list.nix index cbf4b0dc48..821486d55a 100644 --- a/third_party/nixpkgs/maintainers/team-list.nix +++ b/third_party/nixpkgs/maintainers/team-list.nix @@ -213,7 +213,7 @@ with lib.maintainers; { dhall = { members = [ - Gabriel439 + Gabriella439 ehmry ]; scope = "Maintain Dhall and related packages."; @@ -272,6 +272,14 @@ with lib.maintainers; { enableFeatureFreezePing = true; }; + flutter = { + members = [ gilice mkg20001 RossComputerGuy FlafyDev hacker1024 ]; + scope = "Maintain Flutter and Dart-related packages and build tools"; + shortName = "flutter"; + enableFeatureFreezePing = false; + githubTeams = [ "flutter" ]; + }; + freedesktop = { members = [ jtojnar ]; scope = "Maintain Freedesktop.org packages for graphical desktop."; @@ -292,11 +300,25 @@ with lib.maintainers; { members = [ imincik sikmir + nh2 + willcohen ]; scope = "Maintain geospatial packages."; shortName = "Geospatial"; }; + gitlab = { + members = [ + globin + krav + talyz + yayayayaka + yuka + ]; + scope = "Maintain gitlab packages."; + shortName = "gitlab"; + }; + golang = { members = [ kalbasit @@ -383,7 +405,6 @@ with lib.maintainers; { members = [ cleeyv ryantm - yuka ]; scope = "Maintain Jitsi."; shortName = "Jitsi"; @@ -468,6 +489,15 @@ with lib.maintainers; { enableFeatureFreezePing = true; }; + lomiri = { + members = [ + OPNA2608 + ]; + scope = "Maintain Lomiri desktop environment and related packages."; + shortName = "Lomiri"; + enableFeatureFreezePing = true; + }; + lumiguide = { # Verify additions by approval of an already existing member of the team. members = [ @@ -537,7 +567,6 @@ with lib.maintainers; { ma27 fadenb mguentner - ekleog ralith dandellion sumnerevans @@ -552,11 +581,21 @@ with lib.maintainers; { emilytrau ericson2314 jk + siraben ]; scope = "Maintain the minimal-bootstrap toolchain and related packages."; shortName = "Minimal Bootstrap"; }; + mercury = { + members = [ + _9999years + Gabriella439 + ]; + scope = "Group registry for packages maintained by Mercury"; + shortName = "Mercury Employees"; + }; + mobile = { members = [ samueldr @@ -567,7 +606,6 @@ with lib.maintainers; { nix = { members = [ - Profpatsch eelco grahamc pierron @@ -594,7 +632,6 @@ with lib.maintainers; { lilyinstarlight marsam winter - yuka ]; scope = "Maintain Node.js runtimes and build tooling."; shortName = "Node.js"; @@ -615,7 +652,6 @@ with lib.maintainers; { openstack = { members = [ - emilytrau SuperSandro2000 ]; scope = "Maintain the ecosystem around OpenStack"; diff --git a/third_party/nixpkgs/nixos/doc/manual/configuration/customizing-packages.section.md b/third_party/nixpkgs/nixos/doc/manual/configuration/customizing-packages.section.md index bceeeb2d7a..709a07b09c 100644 --- a/third_party/nixpkgs/nixos/doc/manual/configuration/customizing-packages.section.md +++ b/third_party/nixpkgs/nixos/doc/manual/configuration/customizing-packages.section.md @@ -12,6 +12,29 @@ Unfortunately, Nixpkgs currently lacks a way to query available configuration options. ::: +::: {.note} +Alternatively, many packages come with extensions one might add. +Examples include: +- [`passExtensions.pass-otp`](https://search.nixos.org/packages/query=passExtensions.pass-otp) +- [`python310Packages.requests`](https://search.nixos.org/packages/query=python310Packages.requests) + +You can use them like this: +```nix +environment.systemPackages = with pkgs; [ + sl + (pass.withExtensions (subpkgs: with subpkgs; [ + pass-audit + pass-otp + pass-genphrase + ])) + (python3.withPackages (subpkgs: with subpkgs; [ + requests + ])) + cowsay +]; +``` +::: + Apart from high-level options, it's possible to tweak a package in almost arbitrary ways, such as changing or disabling dependencies of a package. For instance, the Emacs package in Nixpkgs by default has a diff --git a/third_party/nixpkgs/nixos/doc/manual/configuration/gpu-accel.chapter.md b/third_party/nixpkgs/nixos/doc/manual/configuration/gpu-accel.chapter.md index aa41e25e56..40878b5da4 100644 --- a/third_party/nixpkgs/nixos/doc/manual/configuration/gpu-accel.chapter.md +++ b/third_party/nixpkgs/nixos/doc/manual/configuration/gpu-accel.chapter.md @@ -189,7 +189,7 @@ Older Intel GPUs use the i965 driver, which can be installed with: ```nix hardware.opengl.extraPackages = [ - vaapiIntel + intel-vaapi-driver ]; ``` diff --git a/third_party/nixpkgs/nixos/doc/manual/configuration/renaming-interfaces.section.md b/third_party/nixpkgs/nixos/doc/manual/configuration/renaming-interfaces.section.md index 18390c959b..5b515e9f82 100644 --- a/third_party/nixpkgs/nixos/doc/manual/configuration/renaming-interfaces.section.md +++ b/third_party/nixpkgs/nixos/doc/manual/configuration/renaming-interfaces.section.md @@ -37,7 +37,7 @@ even if networkd is disabled. Alternatively, we can use a plain old udev rule: ```nix -services.udev.initrdRules = '' +boot.initrd.services.udev.rules = '' SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", \ ATTR{address}=="52:54:00:12:01:01", KERNEL=="eth*", NAME="wan" ''; @@ -45,7 +45,7 @@ services.udev.initrdRules = '' ::: {.warning} The rule must be installed in the initrd using -`services.udev.initrdRules`, not the usual `services.udev.extraRules` +`boot.initrd.services.udev.rules`, not the usual `services.udev.extraRules` option. This is to avoid race conditions with other programs controlling the interface. ::: diff --git a/third_party/nixpkgs/nixos/doc/manual/default.nix b/third_party/nixpkgs/nixos/doc/manual/default.nix index 68132f302e..40af4c1fa0 100644 --- a/third_party/nixpkgs/nixos/doc/manual/default.nix +++ b/third_party/nixpkgs/nixos/doc/manual/default.nix @@ -6,7 +6,6 @@ , extraSources ? [] , baseOptionsJSON ? null , warningsAreErrors ? true -, allowDocBook ? true , prefix ? ../../.. }: @@ -17,10 +16,6 @@ let lib = pkgs.lib; - docbook_xsl_ns = pkgs.docbook-xsl-ns.override { - withManOptDedupPatch = true; - }; - manpageUrls = pkgs.path + "/doc/manpage-urls.json"; # We need to strip references to /nix/store/* from options, @@ -33,7 +28,7 @@ let stripAnyPrefixes = lib.flip (lib.foldr lib.removePrefix) prefixesToStrip; optionsDoc = buildPackages.nixosOptionsDoc { - inherit options revision baseOptionsJSON warningsAreErrors allowDocBook; + inherit options revision baseOptionsJSON warningsAreErrors; transformOptions = opt: opt // { # Clean up declaration sites to not refer to the NixOS source tree. declarations = map stripAnyPrefixes opt.declarations; @@ -68,73 +63,6 @@ let optionIdPrefix = "test-opt-"; }; - toc = builtins.toFile "toc.xml" - '' - - - - - - - ''; - - manualXsltprocOptions = toString [ - "--param chapter.autolabel 0" - "--param part.autolabel 0" - "--param preface.autolabel 0" - "--param reference.autolabel 0" - "--param section.autolabel 0" - "--stringparam html.stylesheet 'style.css overrides.css highlightjs/mono-blue.css'" - "--stringparam html.script './highlightjs/highlight.pack.js ./highlightjs/loader.js'" - "--param xref.with.number.and.title 0" - "--param toc.section.depth 0" - "--param generate.consistent.ids 1" - "--stringparam admon.style ''" - "--stringparam callout.graphics.extension .svg" - "--stringparam current.docid manual" - "--param chunk.section.depth 0" - "--param chunk.first.sections 1" - "--param use.id.as.filename 1" - "--stringparam chunk.toc ${toc}" - ]; - - linterFunctions = '' - # outputs the context of an xmllint error output - # LEN lines around the failing line are printed - function context { - # length of context - local LEN=6 - # lines to print before error line - local BEFORE=4 - - # xmllint output lines are: - # file.xml:1234: there was an error on line 1234 - while IFS=':' read -r file line rest; do - echo - if [[ -n "$rest" ]]; then - echo "$file:$line:$rest" - local FROM=$(($line>$BEFORE ? $line - $BEFORE : 1)) - # number lines & filter context - nl --body-numbering=a "$file" | sed -n "$FROM,+$LEN p" - else - if [[ -n "$line" ]]; then - echo "$file:$line" - else - echo "$file" - fi - fi - done - } - - function lintrng { - xmllint --debug --noout --nonet \ - --relaxng ${docbook5}/xml/rng/docbook/docbook.rng \ - "$1" \ - 2>&1 | context 1>&2 - # ^ redirect assumes xmllint doesn’t print to stdout - } - ''; - prepareManualFromMD = '' cp -r --no-preserve=all $inputs/* . @@ -154,61 +82,13 @@ let ${testOptionsDoc.optionsJSON}/share/doc/nixos/options.json ''; - manual-combined = runCommand "nixos-manual-combined" - { inputs = lib.sourceFilesBySuffices ./. [ ".xml" ".md" ]; - nativeBuildInputs = [ pkgs.nixos-render-docs pkgs.libxml2.bin pkgs.libxslt.bin ]; - meta.description = "The NixOS manual as plain docbook XML"; - } - '' - ${prepareManualFromMD} - - nixos-render-docs -j $NIX_BUILD_CORES manual docbook \ - --manpage-urls ${manpageUrls} \ - --revision ${lib.escapeShellArg revision} \ - ./manual.md \ - ./manual-combined-pre.xml - - xsltproc \ - -o manual-combined.xml ${./../../lib/make-options-doc/postprocess-option-descriptions.xsl} \ - manual-combined-pre.xml - - ${linterFunctions} - - mkdir $out - cp manual-combined.xml $out/ - - lintrng $out/manual-combined.xml - ''; - - manpages-combined = runCommand "nixos-manpages-combined.xml" - { nativeBuildInputs = [ buildPackages.libxml2.bin buildPackages.libxslt.bin ]; - meta.description = "The NixOS manpages as plain docbook XML"; - } - '' - mkdir generated - cp -prd ${./man-pages.xml} man-pages.xml - ln -s ${optionsDoc.optionsDocBook} generated/options-db.xml - - xmllint --xinclude --noxincludenode --output $out ./man-pages.xml - - ${linterFunctions} - - lintrng $out - ''; - in rec { - inherit (optionsDoc) optionsJSON optionsNix optionsDocBook optionsUsedDocbook; + inherit (optionsDoc) optionsJSON optionsNix optionsDocBook; # Generate the NixOS manual. manualHTML = runCommand "nixos-manual-html" - { nativeBuildInputs = - if allowDocBook then [ - buildPackages.libxml2.bin - buildPackages.libxslt.bin - ] else [ - buildPackages.nixos-render-docs - ]; - inputs = lib.optionals (! allowDocBook) (lib.sourceFilesBySuffices ./. [ ".md" ]); + { nativeBuildInputs = [ buildPackages.nixos-render-docs ]; + inputs = lib.sourceFilesBySuffices ./. [ ".md" ]; meta.description = "The NixOS manual in HTML format"; allowedReferences = ["out"]; } @@ -221,38 +101,21 @@ in rec { cp ${../../../doc/overrides.css} $dst/overrides.css cp -r ${pkgs.documentation-highlighter} $dst/highlightjs - ${if allowDocBook then '' - xsltproc \ - ${manualXsltprocOptions} \ - --stringparam id.warnings "1" \ - --nonet --output $dst/ \ - ${docbook_xsl_ns}/xml/xsl/docbook/xhtml/chunktoc.xsl \ - ${manual-combined}/manual-combined.xml \ - |& tee xsltproc.out - grep "^ID recommended on" xsltproc.out &>/dev/null && echo "error: some IDs are missing" && false - rm xsltproc.out + ${prepareManualFromMD} - mkdir -p $dst/images/callouts - cp ${docbook_xsl_ns}/xml/xsl/docbook/images/callouts/*.svg $dst/images/callouts/ - '' else '' - ${prepareManualFromMD} - - # TODO generator is set like this because the docbook/md manual compare workflow will - # trigger if it's different - nixos-render-docs -j $NIX_BUILD_CORES manual html \ - --manpage-urls ${manpageUrls} \ - --revision ${lib.escapeShellArg revision} \ - --generator "DocBook XSL Stylesheets V${docbook_xsl_ns.version}" \ - --stylesheet style.css \ - --stylesheet overrides.css \ - --stylesheet highlightjs/mono-blue.css \ - --script ./highlightjs/highlight.pack.js \ - --script ./highlightjs/loader.js \ - --toc-depth 1 \ - --chunk-toc-depth 1 \ - ./manual.md \ - $dst/index.html - ''} + nixos-render-docs -j $NIX_BUILD_CORES manual html \ + --manpage-urls ${manpageUrls} \ + --revision ${lib.escapeShellArg revision} \ + --generator "nixos-render-docs ${lib.version}" \ + --stylesheet style.css \ + --stylesheet overrides.css \ + --stylesheet highlightjs/mono-blue.css \ + --script ./highlightjs/highlight.pack.js \ + --script ./highlightjs/loader.js \ + --toc-depth 1 \ + --chunk-toc-depth 1 \ + ./manual.md \ + $dst/index.html mkdir -p $out/nix-support echo "nix-build out $out" >> $out/nix-support/hydra-build-products @@ -267,19 +130,41 @@ in rec { manualEpub = runCommand "nixos-manual-epub" { nativeBuildInputs = [ buildPackages.libxml2.bin buildPackages.libxslt.bin buildPackages.zip ]; + doc = '' + + + NixOS Manual + Version ${lib.version} + + + Temporarily unavailable + + The NixOS manual is currently not available in EPUB format, + please use the HTML manual + instead. + + + If you've used the EPUB manual in the past and it has been useful to you, please + let us know. + + + + ''; + passAsFile = [ "doc" ]; } '' # Generate the epub manual. dst=$out/share/doc/nixos xsltproc \ - ${manualXsltprocOptions} \ + --param chapter.autolabel 0 \ --nonet --xinclude --output $dst/epub/ \ ${docbook_xsl_ns}/xml/xsl/docbook/epub/docbook.xsl \ - ${manual-combined}/manual-combined.xml + $docPath - mkdir -p $dst/epub/OEBPS/images/callouts - cp -r ${docbook_xsl_ns}/xml/xsl/docbook/images/callouts/*.svg $dst/epub/OEBPS/images/callouts # */ echo "application/epub+zip" > mimetype manual="$dst/nixos-manual.epub" zip -0Xq "$manual" mimetype @@ -296,10 +181,6 @@ in rec { manpages = runCommand "nixos-manpages" { nativeBuildInputs = [ buildPackages.installShellFiles - ] ++ lib.optionals allowDocBook [ - buildPackages.libxml2.bin - buildPackages.libxslt.bin - ] ++ lib.optionals (! allowDocBook) [ buildPackages.nixos-render-docs ]; allowedReferences = ["out"]; @@ -308,24 +189,11 @@ in rec { # Generate manpages. mkdir -p $out/share/man/man8 installManPage ${./manpages}/* - ${if allowDocBook - then '' - xsltproc --nonet \ - --maxdepth 6000 \ - --param man.output.in.separate.dir 1 \ - --param man.output.base.dir "'$out/share/man/'" \ - --param man.endnotes.are.numbered 0 \ - --param man.break.after.slash 1 \ - ${docbook_xsl_ns}/xml/xsl/docbook/manpages/docbook.xsl \ - ${manpages-combined} - '' - else '' - mkdir -p $out/share/man/man5 - nixos-render-docs -j $NIX_BUILD_CORES options manpage \ - --revision ${lib.escapeShellArg revision} \ - ${optionsJSON}/share/doc/nixos/options.json \ - $out/share/man/man5/configuration.nix.5 - ''} + mkdir -p $out/share/man/man5 + nixos-render-docs -j $NIX_BUILD_CORES options manpage \ + --revision ${lib.escapeShellArg revision} \ + ${optionsJSON}/share/doc/nixos/options.json \ + $out/share/man/man5/configuration.nix.5 ''; } diff --git a/third_party/nixpkgs/nixos/doc/manual/development/option-types.section.md b/third_party/nixpkgs/nixos/doc/manual/development/option-types.section.md index 9e156ebff9..44bb3b4782 100644 --- a/third_party/nixpkgs/nixos/doc/manual/development/option-types.section.md +++ b/third_party/nixpkgs/nixos/doc/manual/development/option-types.section.md @@ -20,6 +20,11 @@ merging is handled. coerced to a string. Even if derivations can be considered as paths, the more specific `types.package` should be preferred. +`types.pathInStore` + +: A path that is contained in the Nix store. This can be a top-level store + path like `pkgs.hello` or a descendant like `"${pkgs.hello}/bin/hello"`. + `types.package` : A top-level store path. This can be an attribute set pointing diff --git a/third_party/nixpkgs/nixos/doc/manual/installation/upgrading.chapter.md b/third_party/nixpkgs/nixos/doc/manual/installation/upgrading.chapter.md index 26b6b8cc23..d39e1b786d 100644 --- a/third_party/nixpkgs/nixos/doc/manual/installation/upgrading.chapter.md +++ b/third_party/nixpkgs/nixos/doc/manual/installation/upgrading.chapter.md @@ -6,7 +6,7 @@ expressions and associated binaries. The NixOS channels are updated automatically from NixOS's Git repository after certain tests have passed and all packages have been built. These channels are: -- *Stable channels*, such as [`nixos-22.11`](https://nixos.org/channels/nixos-22.11). +- *Stable channels*, such as [`nixos-23.05`](https://channels.nixos.org/nixos-23.05). These only get conservative bug fixes and package upgrades. For instance, a channel update may cause the Linux kernel on your system to be upgraded from 4.19.34 to 4.19.38 (a minor bug fix), but not @@ -14,13 +14,13 @@ passed and all packages have been built. These channels are: Stable channels are generally maintained until the next stable branch is created. -- The *unstable channel*, [`nixos-unstable`](https://nixos.org/channels/nixos-unstable). +- The *unstable channel*, [`nixos-unstable`](https://channels.nixos.org/nixos-unstable). This corresponds to NixOS's main development branch, and may thus see radical changes between channel updates. It's not recommended for production systems. -- *Small channels*, such as [`nixos-22.11-small`](https://nixos.org/channels/nixos-22.11-small) - or [`nixos-unstable-small`](https://nixos.org/channels/nixos-unstable-small). +- *Small channels*, such as [`nixos-23.05-small`](https://channels.nixos.org/nixos-23.05-small) + or [`nixos-unstable-small`](https://channels.nixos.org/nixos-unstable-small). These are identical to the stable and unstable channels described above, except that they contain fewer binary packages. This means they get updated faster than the regular channels (for instance, when a critical security patch @@ -28,7 +28,7 @@ passed and all packages have been built. These channels are: built from source than usual. They're mostly intended for server environments and as such contain few GUI applications. -To see what channels are available, go to . +To see what channels are available, go to . (Note that the URIs of the various channels redirect to a directory that contains the channel's latest version and includes ISO images and VirtualBox appliances.) Please note that during the release process, @@ -38,38 +38,38 @@ newest supported stable release. When you first install NixOS, you're automatically subscribed to the NixOS channel that corresponds to your installation source. For -instance, if you installed from a 22.11 ISO, you will be subscribed to -the `nixos-22.11` channel. To see which NixOS channel you're subscribed +instance, if you installed from a 23.05 ISO, you will be subscribed to +the `nixos-23.05` channel. To see which NixOS channel you're subscribed to, run the following as root: ```ShellSession # nix-channel --list | grep nixos -nixos https://nixos.org/channels/nixos-unstable +nixos https://channels.nixos.org/nixos-unstable ``` To switch to a different NixOS channel, do ```ShellSession -# nix-channel --add https://nixos.org/channels/channel-name nixos +# nix-channel --add https://channels.nixos.org/channel-name nixos ``` (Be sure to include the `nixos` parameter at the end.) For instance, to -use the NixOS 22.11 stable channel: +use the NixOS 23.05 stable channel: ```ShellSession -# nix-channel --add https://nixos.org/channels/nixos-22.11 nixos +# nix-channel --add https://channels.nixos.org/nixos-23.05 nixos ``` If you have a server, you may want to use the "small" channel instead: ```ShellSession -# nix-channel --add https://nixos.org/channels/nixos-22.11-small nixos +# nix-channel --add https://channels.nixos.org/nixos-23.05-small nixos ``` And if you want to live on the bleeding edge: ```ShellSession -# nix-channel --add https://nixos.org/channels/nixos-unstable nixos +# nix-channel --add https://channels.nixos.org/nixos-unstable nixos ``` You can then upgrade NixOS to the latest version in your chosen channel @@ -114,5 +114,5 @@ the new generation contains a different kernel, initrd or kernel modules. You can also specify a channel explicitly, e.g. ```nix -system.autoUpgrade.channel = https://nixos.org/channels/nixos-22.11; +system.autoUpgrade.channel = "https://channels.nixos.org/nixos-23.05"; ``` diff --git a/third_party/nixpkgs/nixos/doc/manual/man-pages.xml b/third_party/nixpkgs/nixos/doc/manual/man-pages.xml deleted file mode 100644 index 52183f1f9e..0000000000 --- a/third_party/nixpkgs/nixos/doc/manual/man-pages.xml +++ /dev/null @@ -1,46 +0,0 @@ - - NixOS Reference Pages - - - EelcoDolstra - Author - - - The Nixpkgs/NixOS contributors - Author - - 2007-2022Eelco Dolstra and the Nixpkgs/NixOS contributors - - - - - configuration.nix - 5 - NixOS - - - - configuration.nix - NixOS system configuration specification - - - Description - - The file /etc/nixos/configuration.nix contains the - declarative specification of your NixOS system configuration. The command - nixos-rebuild takes this file and realises the system - configuration specified therein. - - - - Options - - You can use the following options in configuration.nix. - - - - - diff --git a/third_party/nixpkgs/nixos/doc/manual/release-notes/rl-2111.section.md b/third_party/nixpkgs/nixos/doc/manual/release-notes/rl-2111.section.md index 159881a0ac..400eb1062d 100644 --- a/third_party/nixpkgs/nixos/doc/manual/release-notes/rl-2111.section.md +++ b/third_party/nixpkgs/nixos/doc/manual/release-notes/rl-2111.section.md @@ -441,6 +441,8 @@ In addition to numerous new and upgraded packages, this release has the followin - `pkgs.haskell-language-server` will now by default be linked dynamically to improve TemplateHaskell compatibility. To mitigate the increased closure size it will now by default only support our current default ghc (at the moment 9.0.2). Add other ghc versions via e.g. `pkgs.haskell-language-server.override { supportedGhcVersions = [ "90" "92" ]; }`. +- `pkgs.redis` is now built using the system jemalloc. This disables the experimental active defragmentation feature of redis. Users who require this feature can switch back to redis' vendored version of jemalloc by setting `services.redis.package = pkgs.redis.override { useSystemJemalloc = false; };`. + ## Other Notable Changes {#sec-release-21.11-notable-changes} diff --git a/third_party/nixpkgs/nixos/doc/manual/release-notes/rl-2305.section.md b/third_party/nixpkgs/nixos/doc/manual/release-notes/rl-2305.section.md index 9d7387a75a..a31f3511a4 100644 --- a/third_party/nixpkgs/nixos/doc/manual/release-notes/rl-2305.section.md +++ b/third_party/nixpkgs/nixos/doc/manual/release-notes/rl-2305.section.md @@ -1,65 +1,84 @@ -# Release 23.05 (“Stoatâ€, 2023.05/??) {#sec-release-23.05} +# Release 23.05 (“Stoatâ€, 2023.05/31) {#sec-release-23.05} -Support is planned until the end of December 2023, handing over to 23.11. +The NixOS release team is happy to announce a new version of NixOS. The release is called NixOS 23.05 ("Stoat"). + +NixOS is a Linux distribution, whose set of packages can also be used on other Linux systems and macOS. + +Support is planned until the end of December 2023, handing over to NixOS 23.11. + +To upgrade to the latest release, follow the [upgrade chapter](https://nixos.org/manual/nixos/stable/index.html#sec-upgrading). ## Highlights {#sec-release-23.05-highlights} -In addition to numerous new and upgraded packages, this release has the following highlights: +In addition to numerous new and updated packages, this release has the following highlights: - +- The default [Nix](https://github.com/NixOS/nix) version was updated from 2.11 to 2.13. In particular, this includes a [small language alteration](https://github.com/NixOS/nix/issues/8259) in the way floats are represented in `builtins.toJSON`. See the release notes for [2.12](https://nixos.org/manual/nix/stable/release-notes/rl-2.12.html) and [2.13](https://nixos.org/manual/nix/unstable/release-notes/rl-2.13.html) for more information. -- Core version changes: +- The default [Linux Kernel](https://kernel.org/) was updated from version 5.15 to 6.1, see [Kernelnewbies](https://kernelnewbies.org/Linux_6.1) for what has changed. All Kernels currently shown on [kernel.org](https://kernel.org/) are available. - - default linux: 5.15 -\> 6.1, all supported kernels available +- [systemd](https://systemd.io) has been updated from v252 to v253, see [the release notes](https://github.com/systemd/systemd/blob/v253/NEWS#L3-L659) for more information on the changes. + - Updating with `nixos-rebuild boot` and rebooting is recommended, since in some rare cases the `nixos-rebuild switch` into the new generation on a live system might fail due to missing mount units. - - systemd has been updated to v253.1, see [the pull request](https://github.com/NixOS/nixpkgs/pull/216826) for more info. - It's recommended to use `nixos-rebuild boot` and `reboot`, rather than `nixos-rebuild switch` - since in some rare cases - the switch of a live system might fail. +- [glibc](https://www.gnu.org/software/libc/) has been updated from version 2.35 to 2.37, see [the release notes](https://sourceware.org/glibc/wiki/Release/2.37) for what was changed. - - glibc: 2.35 -\> 2.37 +- [libxcrypt](https://github.com/besser82/libxcrypt), the library providing the `crypt(3)` password hashing function, is now built without support for algorithms not flagged [`strong`](https://github.com/besser82/libxcrypt/blob/v4.4.33/lib/hashes.conf#L48). This affects the availability of password hashing algorithms used for system login (`login(1)`, `passwd(1)`), but also Apache2 Basic-Auth, Samba, OpenLDAP, Dovecot, and [many other packages](https://sourcegraph.com/search?q=context:global+repo:%5Egithub%5C.com/NixOS/nixpkgs%24+libxcrypt&patternType=standard&sm=1&groupBy=path). -- Cinnamon has been updated to 5.6, see [the pull request](https://github.com/NixOS/nixpkgs/pull/201328#issue-1449910204) for what is changed. +- NixOS now defaults to using [nsncd](https://github.com/twosigma/nsncd), a non-caching reimplementation of nscd in Rust, as its NSS lookup dispatcher. This replaces the buggy and deprecated nscd implementation provided through glibc. When you find problems, you can switch back by disabling it: + ```nix + services.nscd.enableNsncd = false; + ``` -- GNOME has been upgraded to version 44. Please see the [release notes](https://release.gnome.org/44/) for details. +- The internal option `boot.bootspec.enable` is now enabled by default because [RFC 0125](https://github.com/NixOS/rfcs/pull/125) was merged. This means you will have a bootspec document called `boot.json` generated for each system and specialisation in the top-level. This is useful to enable advanced boot use cases in NixOS, such as Secure Boot. -- KDE Plasma has been updated to v5.27, see [the release notes](https://kde.org/announcements/plasma/5/5.27.0/) for what is changed. +- Two changes to `nixos-rebuild` are important to highlight as well. + - Support for an extra `--specialisation` option was added that can be used to change specialisation for `switch` and `test` commands. + - The `--target-host` and `--build-host` options no longer treat the `localhost` value specially – to build on resp. deploy to a local machine, omit the relevant flag. -- Python implements [PEP 668](https://peps.python.org/pep-0668/), providing better feedback to users that try to run `pip install` system-wide. +- [Python](https://www.python.org) implements [PEP 668](https://peps.python.org/pep-0668/), providing better feedback to users that try to run `pip install` for system-wide or user home installations. -- `nixos-rebuild` now supports an extra `--specialisation` option that can be used to change specialisation for `switch` and `test` commands. +- [Cinnamon](https://github.com/linuxmint/Cinnamon) has been updated to version 5.6, see [the pull request](https://github.com/NixOS/nixpkgs/pull/201328#issue-1449910204) for what was changed. -- `libxcrypt`, the library providing the `crypt(3)` password hashing function, is now built without support for algorithms not flagged [`strong`](https://github.com/besser82/libxcrypt/blob/v4.4.33/lib/hashes.conf#L48). This affects the availability of password hashing algorithms used for system login (`login(1)`, `passwd(1)`), but also Apache2 Basic-Auth, Samba, OpenLDAP, Dovecot, and [many other packages](https://github.com/search?q=repo%3ANixOS%2Fnixpkgs%20libxcrypt&type=code). +- [GNOME](https://www.gnome.org) has been updated to version 44, see the [the release notes](https://release.gnome.org/44/) for details. -- `boot.bootspec.enable` (internal option) is now enabled by default because [RFC-0125](https://github.com/NixOS/rfcs/pull/125) was merged. This means you will have a bootspec document called `boot.json` generated for each system and specialisation in the top-level. This is useful to enable advanced boot usecases in NixOS such as SecureBoot. +- [KDE Plasma](https://kde.org/de/plasma-desktop/) has been updated to version 5.27, see [the release notes](https://kde.org/announcements/plasma/5/5.27.0/) for what was changed. + +- `openra` was updated to `20230225`. Due to large scope of the update, currently only `openraPackages.engines.release` and `openraPackages.engines.latest` packages are available. + If you want to use the old engine versions or mods, they were moved to the `openraPackages_2019` namespace. ## New Services {#sec-release-23.05-new-services} - - - [Akkoma](https://akkoma.social), an ActivityPub microblogging server. Available as [services.akkoma](options.html#opt-services.akkoma.enable). -- [Pixelfed](https://pixelfed.org/), an Instagram-like ActivityPub server. Available as [services.pixelfed](options.html#opt-services.pixelfed.enable). +- [alertmanager-irc-relay](https://github.com/google/alertmanager-irc-relay), a Prometheus Alertmanager IRC Relay. Available as [services.prometheus.alertmanagerIrcRelay](options.html#opt-services.prometheus.alertmanagerIrcRelay.enable). + +- [alice-lg](github.com/alice-lg/alice-lg), a looking-glass for BGP sessions. Available as [services.alice-lg](#opt-services.alice-lg.enable). + +- [atuin](https://github.com/ellie/atuin), a sync server for shell history. Available as [services.atuin](#opt-services.atuin.enable). + +- [authelia](https://www.authelia.com/), an open-source authentication and authorization server. Available as [services.authelia](options.html#opt-services.authelia.enable). + +- [birdwatcher](github.com/alice-lg/birdwatcher), a small HTTP server meant to provide an API defined by Barry O'Donovan's birds-eye to the BIRD internet routing daemon. Available as [services.birdwatcher](#opt-services.birdwatcher.enable). - [blesh](https://github.com/akinomyoga/ble.sh), a line editor written in pure bash. Available as [programs.bash.blesh](#opt-programs.bash.blesh.enable). -- [webhook](https://github.com/adnanh/webhook), a lightweight webhook server. Available as [services.webhook](#opt-services.webhook.enable). +- [Budgie Desktop](https://github.com/BuddiesOfBudgie/budgie-desktop), a familiar, modern desktop environment. Available as [services.xserver.desktopManager.budgie](options.html#opt-services.xserver.desktopManager.budgie). -- [cups-pdf-to-pdf](https://github.com/alexivkin/CUPS-PDF-to-PDF), a pdf-generating cups backend based on [cups-pdf](https://www.cups-pdf.de/). Available as [services.printing.cups-pdf](#opt-services.printing.cups-pdf.enable). - -- [clash-verge](https://github.com/zzzgydi/clash-verge), A Clash GUI based on tauri. Available as [programs.clash-verge](#opt-programs.clash-verge.enable). +- [clash-verge](https://github.com/zzzgydi/clash-verge), a Clash GUI based on tauri. Available as [programs.clash-verge](#opt-programs.clash-verge.enable). - [Cloudlog](https://www.magicbug.co.uk/cloudlog/), a web-based Amateur Radio logging application. Available as [services.cloudlog](#opt-services.cloudlog.enable). +- [consul-template](https://github.com/hashicorp/consul-template/), a template renderer, notifier, and supervisor for HashiCorp Consul and Vault data. Available as [services.consul-template](#opt-services.consul-template.instances). + +- [cups-pdf-to-pdf](https://github.com/alexivkin/CUPS-PDF-to-PDF), a PDF-generating CUPS backend based on [cups-pdf](https://www.cups-pdf.de/). Available as [services.printing.cups-pdf](#opt-services.printing.cups-pdf.enable). + - [Deepin Desktop Environment](https://github.com/linuxdeepin/dde), an elegant, easy to use and reliable desktop environment. Available as [services.xserver.desktopManager.deepin](options.html#opt-services.xserver.desktopManager.deepin). -- [system-repart](https://www.freedesktop.org/software/systemd/man/systemd-repart.service.html), grow and add partitions to a partition table. Available as [systemd.repart](options.html#opt-systemd.repart) and [boot.initrd.systemd.repart](options.html#opt-boot.initrd.systemd.repart) +- [esphome](https://esphome.io), a dashboard to configure ESP8266/ESP32 devices for use with Home Automation systems. Available as [services.esphome](#opt-services.esphome.enable). - [frigate](https://frigate.video), an open source NVR built around real-time AI object detection. Available as [services.frigate](#opt-services.frigate.enable). - [fzf](https://github.com/junegunn/fzf), a command line fuzzyfinder. Available as [programs.fzf](#opt-programs.fzf.fuzzyCompletion). -- [readarr](https://github.com/Readarr/Readarr), Book Manager and Automation (Sonarr for Ebooks). Available as [services.readarr](options.html#opt-services.readarr.enable). - - [gemstash](https://github.com/rubygems/gemstash), a RubyGems.org cache and private gem server. Available as [services.gemstash](#opt-services.gemstash.enable). - [gitea-actions-runner](https://gitea.com/gitea/act_runner), a CI runner for Gitea/Forgejo Actions. Available as [services.gitea-actions-runner](#opt-services.gitea-actions-runner.instances). @@ -68,129 +87,121 @@ In addition to numerous new and upgraded packages, this release has the followin - [go2rtc](https://github.com/AlexxIT/go2rtc), a camera streaming appliation with support for RTSP, WebRTC, HomeKit, FFMPEG, RTMP and other protocols. Available as [services.go2rtc](options.html#opt-services.go2rtc.enable). -- [harmonia](https://github.com/nix-community/harmonia/), Nix binary cache implemented in rust using libnix-store. Available as [services.harmonia](options.html#opt-services.harmonia.enable). - -- [hyprland](https://github.com/hyprwm/hyprland), a dynamic tiling Wayland compositor that doesn't sacrifice on its looks. Available as [programs.hyprland](#opt-programs.hyprland.enable). - -- [minipro](https://gitlab.com/DavidGriffith/minipro/), an open source program for controlling the MiniPRO TL866xx series of chip programmers. Available as [programs.minipro](options.html#opt-programs.minipro.enable). - -- [stevenblack-blocklist](https://github.com/StevenBlack/hosts), A unified hosts file with base extensions for blocking unwanted websites. Available as [networking.stevenblack](options.html#opt-networking.stevenblack.enable). - -- [Budgie Desktop](https://github.com/BuddiesOfBudgie/budgie-desktop), a familiar, modern desktop environment. Available as [services.xserver.desktopManager.budgie](options.html#opt-services.xserver.desktopManager.budgie). - -- [imaginary](https://github.com/h2non/imaginary), a microservice for high-level image processing that Nextcloud can use to generate previews. Available as [services.imaginary](#opt-services.imaginary.enable). - -- [opensearch](https://opensearch.org), a search server alternative to Elasticsearch. Available as [services.opensearch](options.html#opt-services.opensearch.enable). - -- [kavita](https://kavitareader.com), a self-hosted digital library. Available as [services.kavita](options.html#opt-services.kavita.enable). - -- [monica](https://www.monicahq.com), an open source personal CRM. Available as [services.monica](options.html#opt-services.monica.enable). - -- [authelia](https://www.authelia.com/), is an open-source authentication and authorization server. Available under [services.authelia](options.html#opt-services.authelia.enable). - -- [goeland](https://github.com/slurdge/goeland), an alternative to rss2email written in golang with many filters. Available as [services.goeland](#opt-services.goeland.enable). - -- [alertmanager-irc-relay](https://github.com/google/alertmanager-irc-relay), a Prometheus Alertmanager IRC Relay. Available as [services.prometheus.alertmanagerIrcRelay](options.html#opt-services.prometheus.alertmanagerIrcRelay.enable). - -- [tts](https://github.com/coqui-ai/TTS), a battle-tested deep learning toolkit for Text-to-Speech. Multiple servers may be configured below [services.tts.servers](#opt-services.tts.servers). - -- [atuin](https://github.com/ellie/atuin), a sync server for shell history. Available as [services.atuin](#opt-services.atuin.enable). - -- [esphome](https://esphome.io), a dashboard to configure ESP8266/ESP32 devices for use with Home Automation systems. Available as [services.esphome](#opt-services.esphome.enable). - -- [networkd-dispatcher](https://gitlab.com/craftyguy/networkd-dispatcher), a dispatcher service for systemd-networkd connection status changes. Available as [services.networkd-dispatcher](#opt-services.networkd-dispatcher.enable). +- [goeland](https://github.com/slurdge/goeland), an alternative to rss2email written in Golang with many filters. Available as [services.goeland](#opt-services.goeland.enable). - [gonic](https://github.com/sentriz/gonic), a Subsonic music streaming server. Available as [services.gonic](#opt-services.gonic.enable). -- [mmsd](https://gitlab.com/kop316/mmsd), a lower level daemon that transmits and receives MMSes. Available as [services.mmsd](#opt-services.mmsd.enable). +- [hardware.ipu6](#opt-hardware.ipu6.enable), drivers for IPU6 based webcams on Intel Tiger Lake and Alder Lake. -- [QDMR](https://dm3mat.darc.de/qdmr/), a GUI application and command line tool for programming DMR radios [programs.qdmr](#opt-programs.qdmr.enable) +- [harmonia](https://github.com/nix-community/harmonia/), a Nix binary cache implemented in Rust using [libnixstore](https://docs.rs/libnixstore/latest/libnixstore/). Available as [services.harmonia](options.html#opt-services.harmonia.enable). -- [keyd](https://github.com/rvaiya/keyd), a key remapping daemon for linux. Available as [services.keyd](#opt-services.keyd.enable). +- [hyprland](https://github.com/hyprwm/hyprland), a dynamic tiling Wayland compositor that doesn't sacrifice on its looks. Available as [programs.hyprland](#opt-programs.hyprland.enable). -- [consul-template](https://github.com/hashicorp/consul-template/), a template rendering, notifier, and supervisor for HashiCorp Consul and Vault data. Available as [services.consul-template](#opt-services.consul-template.instances). - -- [vault-agent](https://developer.hashicorp.com/vault/docs/agent), a template rendering and API auth proxy for HashiCorp Vault, similar to `consul-template`. Available as [services.vault-agent](#opt-services.vault-agent.instances). - -- [trippy](https://github.com/fujiapple852/trippy), a network diagnostic tool. Available as [programs.trippy](#opt-programs.trippy.enable). - -- [v2rayA](https://v2raya.org), a Linux web GUI client of Project V which supports V2Ray, Xray, SS, SSR, Trojan and Pingtunnel. Available as [services.v2raya](options.html#opt-services.v2raya.enable). - -- [rshim](https://github.com/Mellanox/rshim-user-space), the user-space rshim driver for the BlueField SoC. Available as [services.rshim](options.html#opt-services.rshim.enable). - -- [wstunnel](https://github.com/erebe/wstunnel), a proxy tunnelling arbitrary TCP or UDP traffic through a WebSocket connection. Instances may be configured via [services.wstunnel](options.html#opt-services.wstunnel.enable). - -- [ulogd](https://www.netfilter.org/projects/ulogd/index.html), a userspace logging daemon for netfilter/iptables related logging. Available as [services.ulogd](options.html#opt-services.ulogd.enable). - -- [PufferPanel](https://pufferpanel.com), game server management panel designed to be easy to use. Available as [services.pufferpanel](#opt-services.pufferpanel.enable). - -- [jellyseerr](https://github.com/Fallenbagel/jellyseerr), a web-based requests manager for Jellyfin, forked from Overseerr. Available as [services.jellyseerr](#opt-services.jellyseerr.enable). - -- [stargazer](https://sr.ht/~zethra/stargazer/), a fast and easy to use Gemini server. Available as [services.stargazer](#opt-services.stargazer.enable). - -- [sniffnet](https://github.com/GyulyVGC/sniffnet), an application to monitor your network traffic. Available as [programs.sniffnet](#opt-programs.sniffnet.enable). - -- [photoprism](https://photoprism.app/), a AI-Powered Photos App for the Decentralized Web. Available as [services.photoprism](options.html#opt-services.photoprism.enable). - -- [alice-lg](github.com/alice-lg/alice-lg), a looking-glass for BGP sessions. Available as [services.alice-lg](#opt-services.alice-lg.enable). - -- [birdwatcher](github.com/alice-lg/birdwatcher), a small HTTP server meant to provide an API defined by Barry O'Donovan's birds-eye to the BIRD internet routing daemon. Available as [services.birdwatcher](#opt-services.birdwatcher.enable). - -- [peroxide](https://github.com/ljanyst/peroxide), a fork of the official [ProtonMail bridge](https://github.com/ProtonMail/proton-bridge) that aims to be similar to [Hydroxide](https://github.com/emersion/hydroxide). Available as [services.peroxide](#opt-services.peroxide.enable). - -- [autosuspend](https://github.com/languitar/autosuspend), a python daemon that suspends a system if certain conditions are met, or not met. - -- [sharing](https://github.com/parvardegr/sharing), a command-line tool to share directories and files from the CLI to iOS and Android devices without the need of an extra client app. Available as [programs.sharing](#opt-programs.sharing.enable). - -- [nimdow](https://github.com/avahe-kellenberger/nimdow), a window manager written in Nim, inspired by dwm. - -- [trurl](https://github.com/curl/trurl), a command line tool for URL parsing and manipulation. - -- [wgautomesh](https://git.deuxfleurs.fr/Deuxfleurs/wgautomesh), a simple utility to help connect wireguard nodes together in a full mesh topology. Available as [services.wgautomesh](options.html#opt-services.wgautomesh.enable). - -- [woodpecker-agents](https://woodpecker-ci.org/), a simple CI engine with great extensibility. Available as [services.woodpecker-agents](#opt-services.woodpecker-agents.agents._name_.enable). - -- [woodpecker-server](https://woodpecker-ci.org/), a simple CI engine with great extensibility. Available as [services.woodpecker-server](#opt-services.woodpecker-server.enable). - -- [lldap](https://github.com/lldap/lldap), a lightweight authentication server that provides an opinionated, simplified LDAP interface for authentication. Available as [services.lldap](#opt-services.lldap.enable). - -- [ReGreet](https://github.com/rharish101/ReGreet), a clean and customizable greeter for greetd. Available as [programs.regreet](#opt-programs.regreet.enable). - -- [v4l2-relayd](https://git.launchpad.net/v4l2-relayd), a streaming relay for v4l2loopback using gstreamer. Available as [services.v4l2-relayd](#opt-services.v4l2-relayd.instances._name_.enable). - -- [hardware.ipu6](#opt-hardware.ipu6.enable) adds support for ipu6 based webcams on intel tiger lake and alder lake. +- [imaginary](https://github.com/h2non/imaginary), a microservice for high-level image processing that Nextcloud can use to generate previews. Available as [services.imaginary](#opt-services.imaginary.enable). - [ivpn](https://www.ivpn.net/), a secure, private VPN with fast WireGuard connections. Available as [services.ivpn](#opt-services.ivpn.enable). +- [vmalert](https://victoriametrics.com/), an alerting engine for VictoriaMetrics. Available as [services.vmalert](#opt-services.vmalert.enable). + +- [jellyseerr](https://github.com/Fallenbagel/jellyseerr), a web-based requests manager for Jellyfin, forked from Overseerr. Available as [services.jellyseerr](#opt-services.jellyseerr.enable). + +- [kavita](https://kavitareader.com), a self-hosted digital library. Available as [services.kavita](options.html#opt-services.kavita.enable). + +- [keyd](https://github.com/rvaiya/keyd), a key remapping daemon for Linux. Available as [services.keyd](#opt-services.keyd.enable). + +- [lldap](https://github.com/lldap/lldap), a lightweight authentication server that provides an opinionated, simplified LDAP interface for authentication. Available as [services.lldap](#opt-services.lldap.enable). + +- [minipro](https://gitlab.com/DavidGriffith/minipro/), an open source program for controlling the MiniPRO TL866xx series of chip programmers. Available as [programs.minipro](options.html#opt-programs.minipro.enable). + +- [mmsd](https://gitlab.com/kop316/mmsd), a lower level daemon that transmits and receives MMSes. Available as [services.mmsd](#opt-services.mmsd.enable). + +- [monica](https://www.monicahq.com), an open source personal CRM. Available as [services.monica](options.html#opt-services.monica.enable). + +- [networkd-dispatcher](https://gitlab.com/craftyguy/networkd-dispatcher), a dispatcher service for systemd-networkd connection status changes. Available as [services.networkd-dispatcher](#opt-services.networkd-dispatcher.enable). + +- [nimdow](https://github.com/avahe-kellenberger/nimdow), a window manager written in Nim, inspired by dwm. Available as [services.xserver.windowManager.nimdow.enable](options.html#opt-services.xserver.windowManager.nimdow.enable). + +- [opensearch](https://opensearch.org), a search server alternative to Elasticsearch. Available as [services.opensearch](options.html#opt-services.opensearch.enable). + - [openvscode-server](https://github.com/gitpod-io/openvscode-server), run VS Code on a remote machine with access through a modern web browser from any device, anywhere. Available as [services.openvscode-server](#opt-services.openvscode-server.enable). +- [peroxide](https://github.com/ljanyst/peroxide), a fork of the official [ProtonMail bridge](https://github.com/ProtonMail/proton-bridge) that aims to be similar to [Hydroxide](https://github.com/emersion/hydroxide). Available as [services.peroxide](#opt-services.peroxide.enable). + +- [photoprism](https://photoprism.app/), a AI-powered photos app for the decentralized web. Available as [services.photoprism](options.html#opt-services.photoprism.enable). + +- [Pixelfed](https://pixelfed.org/), an Instagram-like ActivityPub server. Available as [services.pixelfed](options.html#opt-services.pixelfed.enable). + +- [PufferPanel](https://pufferpanel.com), a game server management panel designed to be easy to use. Available as [services.pufferpanel](#opt-services.pufferpanel.enable). + +- [QDMR](https://dm3mat.darc.de/qdmr/), a GUI application and command line tool for programming DMR radios [programs.qdmr](#opt-programs.qdmr.enable). + +- [readarr](https://github.com/Readarr/Readarr), book manager and automation (Sonarr for ebooks). Available as [services.readarr](options.html#opt-services.readarr.enable). + +- [ReGreet](https://github.com/rharish101/ReGreet), a clean and customizable greeter for greetd. Available as [programs.regreet](#opt-programs.regreet.enable). + +- [rshim](https://github.com/Mellanox/rshim-user-space), the user-space rshim driver for the BlueField SoC. Available as [services.rshim](options.html#opt-services.rshim.enable). + +- [SFTPGo](https://github.com/drakkan/sftpgo), a fully featured and highly configurable SFTP server with optional HTTP/S, FTP/S and WebDAV support. Available as [services.sftpgo](options.html#opt-services.sftpgo.enable). + +- [sharing](https://github.com/parvardegr/sharing), a command-line tool to share directories and files from the CLI to iOS and Android devices without the need of an extra client app. Available as [programs.sharing](#opt-programs.sharing.enable). + +- [sniffnet](https://github.com/GyulyVGC/sniffnet), an application to monitor your network traffic. Available as [programs.sniffnet](#opt-programs.sniffnet.enable). + +- [stargazer](https://sr.ht/~zethra/stargazer/), a fast and easy to use Gemini server. Available as [services.stargazer](#opt-services.stargazer.enable). + +- [stevenblack-blocklist](https://github.com/StevenBlack/hosts), a unified hosts file with base extensions for blocking unwanted websites. Available as [networking.stevenblack](options.html#opt-networking.stevenblack.enable). + +- [systemd-repart](https://www.freedesktop.org/software/systemd/man/systemd-repart.service.html), grow and add partitions to a partition table. Available as [systemd.repart](options.html#opt-systemd.repart) and [boot.initrd.systemd.repart](options.html#opt-boot.initrd.systemd.repart) + +- [trippy](https://github.com/fujiapple852/trippy), a network diagnostic tool. Available as [programs.trippy](#opt-programs.trippy.enable). + +- [tts](https://github.com/coqui-ai/TTS), a battle-tested deep learning toolkit for Text-to-Speech. Multiple servers may be configured below [services.tts.servers](#opt-services.tts.servers). + +- [ulogd](https://www.netfilter.org/projects/ulogd/index.html), a userspace logging daemon for netfilter/iptables related logging. Available as [services.ulogd](options.html#opt-services.ulogd.enable). + +- [v2rayA](https://v2raya.org), a Linux web GUI client of Project V which supports V2Ray, Xray, SS, SSR, Trojan and Pingtunnel. Available as [services.v2raya](options.html#opt-services.v2raya.enable). + +- [v4l2-relayd](https://git.launchpad.net/v4l2-relayd), a streaming relay for v4l2loopback using gstreamer. Available as [services.v4l2-relayd](#opt-services.v4l2-relayd.instances._name_.enable). + +- [vault-agent](https://developer.hashicorp.com/vault/docs/agent), a template renderer and API auth proxy for HashiCorp Vault, similar to `consul-template`. Available as [services.vault-agent](#opt-services.vault-agent.instances). + +- [webhook](https://github.com/adnanh/webhook), a lightweight webhook server. Available as [services.webhook](#opt-services.webhook.enable). + +- [wgautomesh](https://git.deuxfleurs.fr/Deuxfleurs/wgautomesh), a simple utility to help connect wireguard nodes together in a full mesh topology. Available as [services.wgautomesh](options.html#opt-services.wgautomesh.enable). + +- [woodpecker](https://woodpecker-ci.org/), a simple CI engine with great extensibility. Available as [services.woodpecker-server](#opt-services.woodpecker-server.enable) and [services.woodpecker-agents](#opt-services.woodpecker-agents.agents._name_.enable). + +- [wstunnel](https://github.com/erebe/wstunnel), a proxy tunnelling arbitrary TCP or UDP traffic through a WebSocket connection. Available as [services.wstunnel](options.html#opt-services.wstunnel.enable). + ## Backward Incompatibilities {#sec-release-23.05-incompatibilities} - - -- `carnix` and `cratesIO` has been removed due to being unmaintained, use alternatives such as [naersk](https://github.com/nix-community/naersk) and [crate2nix](https://github.com/kolloch/crate2nix) instead. - - `services.asusd` configuration now uses strings instead of structured configuration, as upstream switched to the [RON](https://github.com/ron-rs/ron) configuration format. Support for structured configuration may return when [RON](https://github.com/ron-rs/ron) generation is implemented in nixpkgs. -- `checkInputs` have been renamed to `nativeCheckInputs`, because they behave the same as `nativeBuildInputs` when `doCheck` is set. `checkInputs` now denote a new type of dependencies, added to `buildInputs` when `doCheck` is set. As a rule of thumb, `nativeCheckInputs` are tools on `$PATH` used during the tests, and `checkInputs` are libraries which are linked to executables built as part of the tests. Similarly, `installCheckInputs` are renamed to `nativeInstallCheckInputs`, corresponding to `nativeBuildInputs`, and `installCheckInputs` are a new type of dependencies added to `buildInputs` when `doInstallCheck` is set. (Note that this change will not cause breakage to derivations with `strictDeps` unset, which are most packages except python, rust, ocaml and go packages). - -- `buildDunePackage` now defaults to `strictDeps = true` which means that any library should go into `buildInputs` or `checkInputs`. Any executable that is run on the building machine should go into `nativeBuildInputs` or `nativeCheckInputs` respectively. Example of executables are `ocaml`, `findlib` and `menhir`. PPXs are libraries which are built by dune and should therefore not go into `nativeBuildInputs`. - - `borgbackup` module now has an option for inhibiting system sleep while backups are running, defaulting to off (not inhibiting sleep), available as [`services.borgbackup.jobs..inhibitsSleep`](#opt-services.borgbackup.jobs._name_.inhibitsSleep). -- The `ssh` client tool now disables the `~C` escape sequence by default. This can be re-enabled by setting `EnableEscapeCommandline yes` +- The `openssh` client now comes with the `~C` escape sequence disabled by default. It can be re-enabled by setting `EnableEscapeCommandline yes` -- Many `services.syncthing` options have been moved to `services.syncthing.settings`, as part of [RFC 42](https://github.com/NixOS/rfcs/pull/42)'s implementation, see [#226088](https://github.com/NixOS/nixpkgs/pull/226088). +- The `programs.ssh` client module does not read `/etc/ssh/ssh_known_hosts2` anymore, since this location is [deprecated since 2001](https://marc.info/?l=openssh-unix-dev&m=100508718416162&w=2). -- The `ssh` module does not read `/etc/ssh/ssh_known_hosts2` anymore since this location is [deprecated since 2001](https://marc.info/?l=openssh-unix-dev&m=100508718416162&w=2). +- The `services.openssh` server module does not read `~/.ssh/authorized_keys2` anymore, since this location is [deprecated since 2001](https://marc.info/?l=openssh-unix-dev&m=100508718416162&w=2). -- The openssh module does not read `~/.ssh/authorized_keys2` anymore since this location is [deprecated since 2001](https://marc.info/?l=openssh-unix-dev&m=100508718416162&w=2). +- MAC-then-encrypt algorithms were removed from the default selection of `services.openssh.settings.Macs`. If you still require these [MACs](https://en.wikipedia.org/wiki/Message_authentication_code), for example when you are relying on libssh2 (e.g. VLC) or the SSH library shipped on the iPhone, you can re-add them like this: + + ```nix + services.openssh.settings.Macs = [ + "hmac-sha2-512" + "hmac-sha2-256" + "umac-128@openssh.com" + ]; + ``` - `podman` now uses the `netavark` network stack. Users will need to delete all of their local containers, images, volumes, etc, by running `podman system reset --force` once before upgrading their systems. - `git-bug` has been updated to at least version 0.8.0, which includes backwards incompatible changes. The `git-bug-migration` package can be used to upgrade existing repositories. -- `graylog` has been updated to version 5, which can not be upgraded directly from the previously packaged version 3.3. If you had installed the previously packaged version 3.3, please follow the [upgrade path](https://go2docs.graylog.org/5-0/upgrading_graylog/upgrade_path.htm) from 3.3 to 4.0 to 4.3 to 5.0. +- `graylog` has been updated to version 5, which can not be updated directly from the previously packaged version 3.3. If you had installed the previously packaged version 3.3, please follow the [upgrade path](https://go2docs.graylog.org/5-0/upgrading_graylog/upgrade_path.htm) from 3.3 to 4.0 to 4.3 to 5.0. + +- `buildFHSUserEnv` is now called `buildFHSEnv` and uses FlatPak's Bubblewrap sandboxing tool rather than Nixpkgs' own chrootenv. The old chrootenv-based implemenation is still available via `buildFHSEnvChroot` but is considered deprecated and will be removed when the remaining uses inside Nixpkgs have been migrated. If your FHSEnv-wrapped application misbehaves when using the new bubblewrap implementation, please create an issue in Nixpkgs. - `nushell` has been updated to at least version 0.77.0, which includes potential breaking changes in aliases. The old aliases are now available as `old-alias` but it is recommended you migrate to the new format. See [Reworked aliases](https://www.nushell.sh/blog/2023-03-14-nushell_0_77.html#reworked-aliases-breaking-changes-kubouch). @@ -198,16 +209,16 @@ In addition to numerous new and upgraded packages, this release has the followin - `keepassx` and `keepassx2` have been removed, due to upstream [stopping development](https://www.keepassx.org/index.html%3Fp=636.html). Consider [KeePassXC](https://keepassxc.org) as a maintained alternative. -- The [services.kubo.settings](#opt-services.kubo.settings) option is now no longer stateful. If you changed any of the options in [services.kubo.settings](#opt-services.kubo.settings) in the past and then removed them from your NixOS configuration again, those changes are still in your Kubo configuration file but will now be reset to the default. If you're unsure, you may want to make a backup of your configuration file (probably /var/lib/ipfs/config) and compare after the update. +- The [services.kubo.settings](#opt-services.kubo.settings) option is now no longer stateful. If you changed any of the options in [services.kubo.settings](#opt-services.kubo.settings) in the past and then removed them from your NixOS configuration again, those changes are still in your Kubo configuration file but will now be reset to the default. If you're unsure, you may want to make a backup of your configuration file (probably `/var/lib/ipfs/config`) and compare after the update. - The Kubo HTTP API will no longer listen on localhost and will instead only listen on a Unix domain socket by default. Read the [services.kubo.settings.Addresses.API](#opt-services.kubo.settings.Addresses.API) option description for more information. - The EC2 image module no longer fetches instance metadata in stage-1. This results in a significantly smaller initramfs, since network drivers no longer need to be included, and faster boots, since metadata fetching can happen in parallel with startup of other services. This breaks services which rely on metadata being present by the time stage-2 is entered. Anything which reads EC2 metadata from `/etc/ec2-metadata` should now have an `after` dependency on `fetch-ec2-metadata.service` -- The mailman service now defaults to using a randomly generated REST API password instead of a hardcoded one. +- The mailman service now defaults to using a randomly generated REST API password instead of a hard-coded one. -- `minio` removed support for its legacy filesystem backend in [RELEASE.2022-10-29T06-21-33Z](https://github.com/minio/minio/releases/tag/RELEASE.2022-10-29T06-21-33Z). This means if your storage was created with the old format, minio will no longer start. Unfortunately minio doesn't provide a an automatic migration, they only provide [instructions how to manually convert the node](https://min.io/docs/minio/windows/operations/install-deploy-manage/migrate-fs-gateway.html). To facilitate this migration we keep around the last version that still supports the old filesystem backend as `minio_legacy_fs`. Use it via `services.minio.package = minio_legacy_fs;` to export your data before switching to the new version. See the corresponding [issue](https://github.com/NixOS/nixpkgs/issues/199318) for more details. +- `minio` removed support for its legacy filesystem backend in [RELEASE.2022-10-29T06-21-33Z](https://github.com/minio/minio/releases/tag/RELEASE.2022-10-29T06-21-33Z). This means if your storage was created with the old format, minio will no longer start. Unfortunately, minio doesn't provide an automatic migration, they only provide [instructions how to manually convert the node](https://min.io/docs/minio/windows/operations/install-deploy-manage/migrate-fs-gateway.html). To facilitate this migration, we keep around the last version that still supports the old filesystem backend as `minio_legacy_fs`. Use it via `services.minio.package = minio_legacy_fs;` to export your data before switching to the new version. See the corresponding [issue](https://github.com/NixOS/nixpkgs/issues/199318) for more details. - `services.sourcehut.dispatch` and the corresponding package (`sourcehut.dispatchsrht`) have been removed due to [upstream deprecation](https://sourcehut.org/blog/2022-08-01-dispatch-deprecation-plans/). @@ -231,15 +242,20 @@ In addition to numerous new and upgraded packages, this release has the followin }; ``` -- The [services.snapserver.openFirewall](#opt-services.snapserver.openFirewall) module option default value has been changed from `true` to `false`. You will need to explicitly set this option to `true`, or configure your firewall. +- The default module options for [services.snapserver.openFirewall](#opt-services.snapserver.openFirewall), [services.tmate-ssh-server.openFirewall](#opt-services.tmate-ssh-server.openFirewall) and [services.unifi-video.openFirewall](#opt-services.unifi-video.openFirewall) have been changed from `true` to `false`. You will need to explicitly set this option to `true`, or configure your firewall. -- The [services.tmate-ssh-server.openFirewall](#opt-services.tmate-ssh-server.openFirewall) module option default value has been changed from `true` to `false`. You will need to explicitly set this option to `true`, or configure your firewall. +- The option `i18n.inputMethod.fcitx5.enableRimeData` has been removed. Default RIME data is now included in `fcitx5-rime` by default, and can be customized using -- The [services.unifi-video.openFirewall](#opt-services.unifi-video.openFirewall) module option default value has been changed from `true` to `false`. You will need to explicitly set this option to `true`, or configure your firewall. + ```nix + fcitx5-rime.override { + rimeDataPkgs = [ + pkgs.rime-data + # ... + ]; + } + ``` -- The option `i18n.inputMethod.fcitx5.enableRimeData` has been removed. Default RIME data is now included in `fcitx5-rime` by default, and can be customized using `fcitx5-rime.override { rimeDataPkgs = [ pkgs.rime-data, package2, ... ]; }` - -- The udev hwdb.bin file is now built with systemd-hwdb rather than the [deprecated "udevadm hwdb"](https://github.com/systemd/systemd/pull/25714). This may impact mappings where the same key is defined in multiple matching entries. The updated behavior will select the latest definition in case of conflict. In general, this should be a positive change, as the hwdb source files are designed with this ordering in mind. As an example, the mapping of the HP Dev One keyboard scan code for "mute mic" is corrected by this update. This change may impact users who have worked-around previously incorrect mappings. +- The `udev` hwdb.bin file is now built with systemd-hwdb rather than the [deprecated "udevadm hwdb"](https://github.com/systemd/systemd/pull/25714). This may impact mappings where the same key is defined in multiple matching entries. The updated behavior will select the latest definition in case of conflict. In general, this should be a positive change, as the hwdb source files are designed with this ordering in mind. As an example, the mapping of the HP Dev One keyboard scan code for "mute mic" is corrected by this update. This change may impact users who have worked-around previously incorrect mappings. - Kime has been updated from 2.5.6 to 3.0.2 and the `i18n.inputMethod.kime.config` option has been removed. Users should use `daemonModules`, `iconColor`, and `extraConfig` options under `i18n.inputMethod.kime` instead. @@ -247,28 +263,26 @@ In addition to numerous new and upgraded packages, this release has the followin - `i3status-rust` has been updated from 0.22.0 to 0.30.5, and this brings many changes to its configuration format. Additional information can be found [here](https://github.com/greshake/i3status-rust/blob/v0.30.0/NEWS.md). -- The `wordpress` derivation no longer contains any builtin plugins or themes. If you need them you have to add them back to prevent your site from breaking. You can find them in `wordpressPackages.{plugins,themes}`. +- The `wordpress` derivation no longer contains any built-in plugins or themes. If you need them, you have to add them back to prevent your site from breaking. You can find them in `wordpressPackages.{plugins,themes}`. - `llvmPackages_rocm.llvm` will not contain `clang` or `compiler-rt`. `llvmPackages_rocm.clang` will not contain `llvm`. `llvmPackages_rocm.clangNoCompilerRt` has been removed in favor of using `llvmPackages_rocm.clang-unwrapped`. -- `services.xserver.desktopManager.plasma5.excludePackages` has been moved to `environment.plasma5.excludePackages`, for consistency with other Desktop Environments +- `services.xserver.desktopManager.plasma5.excludePackages` has been moved to `environment.plasma5.excludePackages`, for consistency with other Desktop Environments. + +- `teleport` has been updated from major version 10 to major version 12. Please see upstream [upgrade instructions](https://goteleport.com/docs/setup/operations/upgrading/) and release notes for versions [11](https://goteleport.com/docs/changelog/#1100) and [12](https://goteleport.com/docs/changelog/#1201). Note that Teleport does not officially support upgrades across more than one major version at a time. If you're running Teleport server components, it is recommended to first upgrade to an intermediate 11.x version by setting `services.teleport.package = pkgs.teleport_11`. Afterwards, this option can be removed to upgrade to the default version (12). - The EC2 image module previously detected and automatically mounted ext3-formatted instance store devices and partitions in stage-1 (initramfs), storing `/tmp` on the first discovered device. This behaviour, which only catered to very specific use cases and could not be disabled, has been removed. Users relying on this should provide their own implementation, and probably use ext4 and perform the mount in stage-2. -- `teleport` has been upgraded from major version 10 to major version 12. Please see upstream [upgrade instructions](https://goteleport.com/docs/setup/operations/upgrading/) and release notes for versions [11](https://goteleport.com/docs/changelog/#1100) and [12](https://goteleport.com/docs/changelog/#1201). Note that Teleport does not officially support upgrades across more than one major version at a time. If you're running Teleport server components, it is recommended to first upgrade to an intermediate 11.x version by setting `services.teleport.package = pkgs.teleport_11`. Afterwards, this option can be removed to upgrade to the default version (12). - - The EC2 image module previously detected and activated swap-formatted instance store devices and partitions in stage-1 (initramfs). This behaviour has been removed. Users relying on this should provide their own implementation. +- `gitlab` has been upgraded from major version 15 to major version 16 and requires at least PostgreSQL 13.6. Check the [upgrade guide](#module-services-postgres-upgrading) in the NixOS manual on how to upgrade your PostgreSQL installation. + +- `gitlab` 16 deprecates the use of external container registries, in our case `pkgs.docker-distribution`. Module users who have [`services.gitlab.registry.enable`](#opt-services.gitlab.registry.enable) set to `true` are advised to back up their state and switch to gitlab's fork by setting [`services.gitlab.registry.package`](#opt-services.gitlab.registry.package) to `pkgs.gitlab-container-registry`. + - `fail2ban` has been updated to 1.0.2, which has a few breaking changes compared to 0.11.2 ([changelog for 1.0.1](https://github.com/fail2ban/fail2ban/blob/1.0.1/ChangeLog), [changelog for 1.0.2](https://github.com/fail2ban/fail2ban/blob/1.0.2/ChangeLog)) - `albert` has been updated from 0.17.6 to 0.20.13, and 0.18.0 changed the config format and many plugins ([changelog for 0.18.0](https://github.com/albertlauncher/albert/blob/v0.18.0/CHANGELOG.md)) -- Calling `makeSetupHook` without passing a `name` argument is deprecated. - -- Top-level buildPlatform,hostPlatform,targetPlatform have been deprecated, use stdenv.X instead. - -- `lib.systems.examples.ghcjs` and consequently `pkgsCross.ghcjs` now use the target triplet `javascript-unknown-ghcjs` instead of `js-unknown-ghcjs`. This has been done to match an [upstream decision](https://gitlab.haskell.org/ghc/ghc/-/commit/6636b670233522f01d002c9b97827d00289dbf5c) to follow Cabal's platform naming more closely. Nixpkgs will also reject `js` as an architecture name. - - `dokuwiki` has been updated from 2023-07-31a (Igor) to 2023-04-04 (Jack Jackrum), which has [completely removed](https://www.dokuwiki.org/changes#release_2023-04-04_jack_jackrum) the options to embed HTML and PHP for security reasons. The [htmlok plugin](https://www.dokuwiki.org/plugin:htmlok) can be used to regain this functionality. - The old unsupported version 6.x of the ELK-stack and Elastic beats have been removed. Use OpenSearch instead. @@ -279,10 +293,6 @@ In addition to numerous new and upgraded packages, this release has the followin - The [services.wordpress.sites.<name>.plugins](#opt-services.wordpress.sites._name_.plugins) and [services.wordpress.sites.<name>.themes](#opt-services.wordpress.sites._name_.themes) options have been converted from sets to attribute sets to allow for consumers to specify explicit install paths via attribute name. -- [`services.nextcloud.database.createLocally`](#opt-services.nextcloud.database.createLocally) now uses socket authentication and is no longer compatible with password authentication. - - If you want the module to manage the database for you, unset [`services.nextcloud.config.dbpassFile`](#opt-services.nextcloud.config.dbpassFile) (and [`services.nextcloud.config.dbhost`](#opt-services.nextcloud.config.dbhost), if it's set). - - If you want to use password authentication **and** create the database locally, you will have to use [`services.mysql`](#opt-services.mysql.enable) to set it up. - - `protonmail-bridge` package has been updated to major version 3. - Nebula now runs as a system user and group created for each nebula network, using the `CAP_NET_ADMIN` ambient capability on launch rather than starting as root. Ensure that any files each Nebula instance needs to access are owned by the correct user and group, by default `nebula-${networkName}`. @@ -291,28 +301,22 @@ In addition to numerous new and upgraded packages, this release has the followin - In `mastodon` it is now necessary to specify location of file with `PostgreSQL` database password. In `services.mastodon.database.passwordFile` parameter default value `/var/lib/mastodon/secrets/db-password` has been changed to `null`. -- The `--target-host` and `--build-host` options of `nixos-rebuild` no longer treat the `localhost` value specially – to build on/deploy to local machine, omit the relevant flag. - - The `nix.readOnlyStore` option has been renamed to `boot.readOnlyNixStore` to clarify that it configures the NixOS boot process, not the Nix daemon. -- Deprecated `xlibsWrapper` transitional package has been removed in favour of direct use of its constituents: `xorg.libX11`, `freetype` and others. - - The latest available version of Nextcloud is v26 (available as `pkgs.nextcloud26`) which uses PHP 8.2 as interpreter by default. The installation logic is as follows: - If `system.stateVersion` is >=23.05, `pkgs.nextcloud26` will be installed by default. - If `system.stateVersion` is >=22.11, `pkgs.nextcloud25` will be installed by default. - Please note that an upgrade from v24 (or older) to v26 directly is not possible. Please upgrade to `nextcloud25` (or earlier) first. Nextcloud prohibits skipping major versions while upgrading. You can upgrade by declaring [`services.nextcloud.package = pkgs.nextcloud25;`](options.html#opt-services.nextcloud.package). - It's recommended to use the latest version available (i.e. v26) and to specify that using `services.nextcloud.package`. -- .NET 5.0 and .NET 3.1 were removed due to being end-of-life, use a newer, supported .NET version - https://dotnet.microsoft.com/en-us/platform/support/policy/dotnet-core +- .NET 5.0 and .NET 3.1 were removed due to being end-of-life, use a newer, supported .NET version. Visit the [Support Policy](https://dotnet.microsoft.com/en-us/platform/support/policy/dotnet-core) for more information. - The iputils package, which is installed by default, no longer provides the - `ninfod`, `rarpd` and `rdisc` tools. See - [upstream's release notes](https://github.com/iputils/iputils/releases/tag/20221126) - for more details and available replacements. + `ninfod`, `rarpd` and `rdisc` tools. See [upstream's release notes](https://github.com/iputils/iputils/releases/tag/20221126) for more details and available replacements. -- The ppp plugin `rp-pppoe.so` has been renamed to `pppoe.so` in ppp 2.4.9. Starting from ppp 2.5.0, there is no longer a alias for backwards compatibility. Configurations that use this plugin must be updated accordingly from `plugin rp-pppoe.so` to `plugin pppoe.so`. See [upstream change](https://github.com/ppp-project/ppp/commit/610a7bd76eb1f99f22317541b35001b1e24877ed). +- The ppp plugin `rp-pppoe.so` has been renamed to `pppoe.so` in ppp 2.4.9. Starting from ppp 2.5.0, there is no longer an alias for backwards compatibility. Configurations that use this plugin must be updated accordingly from `plugin rp-pppoe.so` to `plugin pppoe.so`. See [upstream change](https://github.com/ppp-project/ppp/commit/610a7bd76eb1f99f22317541b35001b1e24877ed). -- [services.xserver.videoDrivers](options.html#opt-services.xserver.videoDrivers) now defaults to the `modesetting` driver over device-specific ones. The `radeon`, `amdgpu` and `nouveau` drivers are still available, but effectively unmaintained and not recommended for use. +- [services.xserver.videoDrivers](options.html#opt-services.xserver.videoDrivers) now defaults to the `modesetting` driver over device-specific ones. The `radeon`, `amdgpu` and `nouveau` drivers are still available, but effectively unmaintained and not recommended for use. Note that this __does not__ affect your regular graphics drivers; this only concerns the DDX component of the driver, which most people are not relying on. - [services.xserver.libinput.enable](options.html#opt-services.xserver.libinput.enable) is now set by default, enabling the more actively maintained and consistently behaved input device driver. @@ -320,7 +324,7 @@ In addition to numerous new and upgraded packages, this release has the followin - In `services.fail2ban`, `bantime-increment.` options now default to `null` (except `bantime-increment.enable`) and are used to set the corresponding option in `jail.local` only if not `null`. Also, enforce that `bantime-increment.formula` and `bantime-increment.multipliers` are not both specified. -- The default Asterisk package was changed to v20 from v19. Asterisk versions 16 and 19 have been dropped due to being EOL. You may need to update /var/lib/asterisk to match the template files in `${asterisk-20}/var/lib/asterisk`. +- The default `asterisk` package was changed to v20 from v19. Asterisk versions 16 and 19 have been dropped due to being EOL. You may need to update /var/lib/asterisk to match the template files in `${asterisk-20}/var/lib/asterisk`. - conntrack helper autodetection has been removed from kernels 6.0 and up upstream, and an assertion was added to ensure things don't silently stop working. Migrate your configuration to assign helpers explicitly or use an older LTS kernel branch as a temporary workaround. @@ -338,7 +342,7 @@ In addition to numerous new and upgraded packages, this release has the followin - The `qlandkartegt` and `garmindev` packages were removed due to being unmaintained and insecure. -- `go-ethereum` package has been updated to v1.11.5 and the `puppeth` command is no longer available as of v1.11.0. +- The `go-ethereum` package has been updated to v1.11.5 and the `puppeth` command is no longer available as of v1.11.0. - The `pnpm` package has be updated to from version 7.29.1 to version 8.1.1 and Node.js 14 support has been discontinued (though, there are workarounds if Node.js 14 is still required) - Migration instructions: ["Before updating pnpm to v8 in your CI, regenerate your pnpm-lock.yaml. To upgrade your lockfile, run pnpm install and commit the changes. Existing dependencies will not be updated; however, due to configuration changes in pnpm v8, some missing peer dependencies may be added to the lockfile and some packages may get deduplicated. You can commit the new lockfile even before upgrading Node.js in the CI, as pnpm v7 already supports the new lockfile format."](https://github.com/pnpm/pnpm/releases/tag/v8.0.0) @@ -347,21 +351,21 @@ In addition to numerous new and upgraded packages, this release has the followin - The `pict-rs` package was updated from an 0.3 alpha release to 0.3 stable, and related environment variables now require two underscores instead of one. +- The `shattered-pixel-dungeon` game was updated from 1.1.2 to 2.0.2. + - The location of game data has changed. To migrate it, run `mv ~/.shatteredpixel ~/.local/share/.shatteredpixel` + - The update will delete all your in-progress games. + - `espanso` has been updated to major version 2. Therefore, migration steps may need to be performed. See [the official migration instructions](https://espanso.org/docs/migration/overview/) for how to perform these migrations. Further, `espanso-wayland` can now be used for Wayland support. +- Only `k3s` version 1.26 is included. Users of the `k3s_1_24` or `k3s_1_25` packages should upgrade to use the `1.26` version of the package. + +- The `nerdfonts` package has been updated to major version 3, which includes potential [breaking changes](https://github.com/ryanoasis/nerd-fonts/releases/tag/v3.0.0). + ## Other Notable Changes {#sec-release-23.05-notable-changes} -- `vim_configurable` has been renamed to `vim-full` to avoid confusion: `vim-full`'s build-time features are configurable, but both `vim` and `vim-full` are _customizable_ (in the sense of user configuration, like vimrc). - -- Pantheon now defaults to Mutter 43 and GNOME settings daemon 43, all Pantheon packages are now tracking elementary OS 7 updates. - -- The module for the application firewall `opensnitch` got the ability to configure rules. Available as [services.opensnitch.rules](#opt-services.opensnitch.rules) - -- The module `usbmuxd` now has the ability to change the package used by the daemon. In case you're experiencing issues with `usbmuxd` you can try an alternative program like `usbmuxd2`. Available as [services.usbmuxd.package](#opt-services.usbmuxd.package) - -- A few openssh options have been moved from extraConfig to the new freeform option `settings` and renamed as follows: +- To follow [RFC 0042](https://github.com/NixOS/rfcs/blob/master/rfcs/0042-config-option.md) a few options of `openssh` have been moved from `extraConfig` to the new freeform option `settings` and renamed, e.g.: - `services.openssh.forwardX11` to `services.openssh.settings.X11Forwarding` - `services.openssh.kbdInteractiveAuthentication` -> `services.openssh.settings.KbdInteractiveAuthentication` - `services.openssh.passwordAuthentication` to `services.openssh.settings.PasswordAuthentication` @@ -373,18 +377,21 @@ In addition to numerous new and upgraded packages, this release has the followin - `services.openssh.ciphers` to `services.openssh.settings.Ciphers` - `services.openssh.gatewayPorts` to `services.openssh.settings.GatewayPorts` + +- `vim_configurable` has been renamed to `vim-full` to avoid confusion: `vim-full`'s build-time features are configurable, but both `vim` and `vim-full` are _customizable_ (in the sense of user configuration, like vimrc). + +- Pantheon now defaults to Mutter 43 and GNOME settings daemon 43, all Pantheon packages are now tracking elementary OS 7 updates. + +- The module for the application firewall `opensnitch` got the ability to configure rules. Available as [services.opensnitch.rules](#opt-services.opensnitch.rules) + +- The module `usbmuxd` now has the ability to change the package used by the daemon. In case you're experiencing issues with `usbmuxd` you can try an alternative program like `usbmuxd2`. Available as [services.usbmuxd.package](#opt-services.usbmuxd.package) + - `netbox` was updated to 3.5. NixOS' `services.netbox.package` still defaults to 3.3 if `stateVersion` is earlier than 23.05. Please review upstream's breaking changes [for 3.4.0](https://github.com/netbox-community/netbox/releases/tag/v3.4.0) and [for 3.5.0](https://github.com/netbox-community/netbox/releases/tag/v3.5.0), and upgrade NetBox by changing `services.netbox.package`. Database migrations will be run automatically. - `services.netbox` now support RFC42-style options, through `services.netbox.settings`. - `services.mastodon` gained a tootctl wrapped named `mastodon-tootctl` similar to `nextcloud-occ` which can be executed from any user and switches to the configured mastodon user with sudo and sources the environment variables. -- DocBook option documentation, which has been deprecated since 22.11, will now cause a warning when documentation is built. Out-of-tree modules should migrate to using CommonMark documentation as outlined in [](#sec-option-declarations) to silence this warning. - - DocBook option documentation support will be removed in the next release and CommonMark will become the default. DocBook option documentation that has not been migrated until then will no longer render properly or cause errors. - -- NixOS now defaults to using nsncd (a non-caching reimplementation in Rust) as NSS lookup dispatcher, instead of the buggy and deprecated glibc-provided nscd. If you need to switch back, set `services.nscd.enableNsncd = false`, but please open an issue in nixpkgs so your issue can be fixed. - - `services.borgmatic` now allows for multiple configurations, placed in `/etc/borgmatic.d/`, you can define them with `services.borgmatic.configurations`. - `service.openafsServer` features a new backup server `pkgs.fabs` as a @@ -402,8 +409,6 @@ In addition to numerous new and upgraded packages, this release has the followin `services.dnsmasq.extraConfig` will be deprecated when NixOS 22.11 reaches end of life. -- `kube3d` has now been renamed to `k3d` since the 3d editor that originally took that name has been dropped from nixpkgs. `kube3d` will continue to work as an alias for now. - - The `dokuwiki` service is now configured via `services.dokuwiki.sites..settings` attribute set; `extraConfig` has been removed. The `{aclUse,superUser,disableActions}` attributes have been renamed accordingly. `pluginsConfig` now only accepts an attribute set of booleans. Passing plain PHP is no longer possible. @@ -419,106 +424,88 @@ In addition to numerous new and upgraded packages, this release has the followin - The minimal ISO image now uses the `nixos/modules/profiles/minimal.nix` profile. +- NixOS installer ISOs can now be built for `powerpc64le-linux`; see `nixos/modules/installer/sd-card/sd-image-powerpc64le.nix` and [PR 192672](https://github.com/NixOS/nixpkgs/pull/192672). Hydra does not support this platform, so you must build the binaries yourself. + - The `ghcWithPackages` and `ghcWithHoogle` wrappers will now also symlink GHC's and all included libraries' documentation to `$out/share/doc` for convenience. If undesired, the old behavior can be restored by overriding the builders with `{ installDocumentation = false; }`. -- The new option `networking.nftables.checkRuleset` controls whether the ruleset is checked for syntax or not during build. It is `true` by default. The check might fail because it is in a sandbox environment. To circumvent this, the ruleset file can be edited using the `networking.nftables.preCheckRuleset` option. +- The nftables module now validates its ruleset at build time. The new `networking.nftables.checkRuleset` option allows disabling this check, which may fail when rules have very specific requirements, that the sandbox environment, by default, will not cover. The `networking.nftables.preCheckRuleset` option can be used to prepare the environment before the checks are run. -- `mastodon` now supports connection to a remote `PostgreSQL` database. +- The `services.mastodon` module now supports connection to a remote `PostgreSQL` database. -- `nextcloud` has an option to enable SSE-C in S3. +- [`services.nextcloud.database.createLocally`](#opt-services.nextcloud.database.createLocally) now uses socket authentication and is no longer compatible with password authentication. + - If you want the module to manage the database for you, unset [`services.nextcloud.config.dbpassFile`](#opt-services.nextcloud.config.dbpassFile) (and [`services.nextcloud.config.dbhost`](#opt-services.nextcloud.config.dbhost), if it's set). + - If you want to use password authentication **and** create the database locally, you will have to use [`services.mysql`](#opt-services.mysql.enable) to set it up. -- NixOS swap partitions with random encryption can now control the sector size, cipher, and key size used to setup the plain encryption device over the - underlying block device rather than allowing them to be determined by `cryptsetup(8)`. One can use these features like so: +- [`services.nextcloud.config.objectstore.s3.sseCKeyFile`](#opt-services.nextcloud.config.objectstore.s3.sseCKeyFile) is a new option to enable server-side encryption with customer provided keys (SSE-C) for your S3 in Nextcloud. + +- NixOS swap partitions with random encryption can now control the sector size, cipher, and key size used to set up the plain encryption device over the underlying block device rather than allowing them to be determined by `cryptsetup(8)`. One can use these features like so: ```nix - { - swapDevices = [ - { - device = "/dev/disk/by-partlabel/swapspace"; - - randomEncryption = { - enable = true; - cipher = "aes-xts-plain64"; - keySize = 512; - sectorSize = 4096; - }; - } - ]; - } + swapDevices = [ { + device = "/dev/disk/by-partlabel/swapspace"; + randomEncryption = { + enable = true; + cipher = "aes-xts-plain64"; + keySize = 512; + sectorSize = 4096; + }; + } ]; ``` - New option `security.pam.zfs` to enable unlocking and mounting of encrypted ZFS home dataset at login. -- `services.peertube` now requires you to specify the secret file `secrets.secretsFile`. It can be generated by running `openssl rand -hex 32`. - Before upgrading, read the release notes for PeerTube: - - [Release v5.0.0](https://github.com/Chocobozzz/PeerTube/releases/tag/v5.0.0) - - And backup your data. +- `services.peertube` now requires you to specify the secret file `secrets.secretsFile`. It can be generated by running `openssl rand -hex 32`. Before upgrading, check the release notes for [PeerTube v5.0.0](https://github.com/Chocobozzz/PeerTube/releases/tag/v5.0.0).And backup your data. - `services.chronyd` is now started with additional systemd sandbox/hardening options for better security. -- PostgreSQL has opt-in support for [JIT compilation](https://www.postgresql.org/docs/current/jit-reason.html). It can be enabled like this: +- PostgreSQL has added opt-in support for [JIT compilation](https://www.postgresql.org/docs/current/jit-reason.html). It can be enabled like this: ```nix - { - services.postgresql = { - enable = true; - enableJIT = true; - }; - } + services.postgresql.enableJIT = true; ``` -- `services.netdata` offers a `deadlineBeforeStopSec` option which enable users who have netdata instance that takes time to initialize to not have systemd kill them for no reason. +- `services.netdata` offers a [`services.netdata.deadlineBeforeStopSec`](#opt-services.netdata.deadlineBeforeStopSec) option which will control the deadline (in seconds) after which systemd will consider your netdata instance as dead if it didn't start in the elapsed time. It is helpful when your netdata instance takes longer to start because of a large amount of state or upgrades. -- `services.dhcpcd` service now don't solicit or accept IPv6 Router Advertisements on interfaces that use static IPv6 addresses. - If network uses both IPv6 Unique local addresses (ULA) and global IPv6 address auto-configuration with SLAAC, must add the parameter `networking.dhcpcd.IPv6rs = true;`. +- `services.dhcpcd` service stopped soliciting or accepting IPv6 Router Advertisements on interfaces that use static IPv6 addresses. + If your network provides both IPv6 unique local addresses (ULA) and globally unique addresses (GUA) through autoconfiguration with SLAAC, you must add the parameter `networking.dhcpcd.IPv6rs = true;`. - The module `services.headscale` was refactored to be compliant with [RFC 0042](https://github.com/NixOS/rfcs/blob/master/rfcs/0042-config-option.md). To be precise, this means that the following things have changed: - - Most settings has been migrated under [services.headscale.settings](#opt-services.headscale.settings) which is an attribute-set that - will be converted into headscale's YAML config format. This means that the configuration from - [headscale's example configuration](https://github.com/juanfont/headscale/blob/main/config-example.yaml) - can be directly written as attribute-set in Nix within this option. + - Most settings have been migrated below [services.headscale.settings](#opt-services.headscale.settings) which is a freeform attribute-set that will be converted into headscale's YAML config format. This means that the configuration from [headscale's example configuration](https://github.com/juanfont/headscale/blob/main/config-example.yaml) can be directly written as attribute-set in Nix within this option. - `services.kubo` now unmounts `ipfsMountDir` and `ipnsMountDir` even if it is killed unexpectedly when `autoMount` is enabled. -- `nixos/lib/make-disk-image.nix` can now mutate EFI variables, run user-provided EFI firmware or variable templates. This is now extensively documented in the NixOS manual. - -- `services.grafana` listens only on localhost by default again. This was changed to upstreams default of `0.0.0.0` by accident in the freeform setting conversion. +- `services.grafana` listens only on localhost by default again. This was changed to the upstream default of `0.0.0.0` by accident in the freeform setting conversion. - Grafana Tempo has been updated to version 2.0. See the [upstream upgrade guide](https://grafana.com/docs/tempo/latest/release-notes/v2-0/#upgrade-considerations) for migration instructions. -- A new `virtualisation.rosetta` module was added to allow running `x86_64` binaries through [Rosetta](https://developer.apple.com/documentation/apple-silicon/about-the-rosetta-translation-environment) inside virtualised NixOS guests on Apple silicon. This feature works by default with the [UTM](https://docs.getutm.app/) virtualisation [package](https://search.nixos.org/packages?channel=unstable&show=utm&from=0&size=1&sort=relevance&type=packages&query=utm). +- A new `virtualisation.rosetta` module was added to allow running `x86_64` binaries through [Rosetta](https://developer.apple.com/documentation/apple-silicon/about-the-rosetta-translation-environment) inside virtualised NixOS guests on Apple Silicon. This feature works by default with the [UTM](https://docs.getutm.app/) virtualisation [package](https://search.nixos.org/packages?channel=23.05&show=utm&from=0&size=1&sort=relevance&type=packages&query=utm). - The new option `users.motdFile` allows configuring a Message Of The Day that can be updated dynamically. - The `root` package is now built with the `"-Dgnuinstall=ON"` CMake flag, making the output conform the `bin` `lib` `share` layout. In this layout, `tutorials` is under `share/doc/ROOT/`; `cmake`, `font`, `icons`, `js` and `macro` under `share/root`; `Makefile.comp` and `Makefile.config` under `etc/root`. -- Enabling global redirect in `services.nginx.virtualHosts` now allows one to add exceptions with the `locations` option. +- There are various new options in the `services.nginx` module: + - Enabling global redirect in `services.nginx.virtualHosts` now allows one to add exceptions with the `locations` option. + - The `proxyCachePath` option has been added to `services.nginx`. It allows configuring the [`proxy_cache_path`](https://nginx.org/en/docs/http/ngx_http_proxy_module.html#proxy_cache_path), that configures the storage path and various other settings for the cache. + - A new option `recommendedBrotliSettings` has been added to `services.nginx`. Learn more about compression in Brotli format [here](https://github.com/google/ngx_brotli/blob/master/README.md). + - `services.nginx.recommendedProxySettings` now removes the `Connection` header preventing clients from closing backend connections. -- A new option `proxyCachePath` has been added to `services.nginx`. Learn more about proxy_cache_path: . - -- A new option `recommendedBrotliSettings` has been added to `services.nginx`. Learn more about compression in Brotli format [here](https://github.com/google/ngx_brotli/blob/master/README.md). - -- Updated recommended settings in `services.nginx.recommendedGzipSettings`: +- The nginx module also received an update to `services.nginx.recommendedGzipSettings`: - Enables gzip compression for only certain proxied requests. - Allow checking and loading of precompressed files. - Updated gzip mime-types. - Increased the minimum length of a response that will be gzipped. -- [Garage](https://garagehq.deuxfleurs.fr/) version is based on [system.stateVersion](options.html#opt-system.stateVersion), existing installations will keep using version 0.7. New installations will use version 0.8. In order to upgrade a Garage cluster, please follow [upstream instructions](https://garagehq.deuxfleurs.fr/documentation/cookbook/upgrading/) and force [services.garage.package](options.html#opt-services.garage.package) or upgrade accordingly [system.stateVersion](options.html#opt-system.stateVersion). +- [Garage](https://garagehq.deuxfleurs.fr/) version is based on [system.stateVersion](options.html#opt-system.stateVersion), existing installations will keep using version 0.7. New installations will use version 0.8. In order to upgrade a Garage cluster, please follow [upstream instructions](https://garagehq.deuxfleurs.fr/documentation/cookbook/upgrading/) and configure [services.garage.package](options.html#opt-services.garage.package). - Nebula now supports the `services.nebula.networks..isRelay` and `services.nebula.networks..relays` configuration options for setting up or allowing traffic relaying. See the [announcement](https://www.defined.net/blog/announcing-relay-support-in-nebula/) for more details about relays. -- `hip` has been separated into `hip`, `hip-common` and `hipcc`. - -- `services.nginx.recommendedProxySettings` now removes the `Connection` header preventing clients from closing backend connections. - - Resilio sync secret keys can now be provided using a secrets file at runtime, preventing these secrets from ending up in the Nix store. -- The `firewall` and `nat` module now has a nftables based implementation. Enable `networking.nftables` to use it. +- The `firewall` and `nat` modules can now optionally rely on an nftables based implementation. Enable `networking.nftables` to use it. - The `services.fwupd` module now allows arbitrary daemon settings to be configured in a structured manner ([`services.fwupd.daemonSettings`](#opt-services.fwupd.daemonSettings)). @@ -532,16 +519,10 @@ In addition to numerous new and upgraded packages, this release has the followin * `apptainer`: From `github.com/apptainer/apptainer`, which is the new repo after renaming. * `singularity`: From `github.com/sylabs/singularity`, which is the fork by Sylabs Inc.. - `programs.singularity` got a new `package` option to specify which package to use. - `singularity-tools.buildImage` got a new input argument `singularity` to specify which package to use. - The new option `programs.singularity.enableFakeroot`, if set to `true`, provides `--fakeroot` support for `apptainer` and `singularity`. -- The `unifi-poller` package and corresponding NixOS module have been renamed to `unpoller` to match upstream. - -- The `rtsp-simple-server` package and corresponding NixOS module have been renamed to `mediamtx` to match upstream. - - The new option `services.tailscale.useRoutingFeatures` controls various settings for using Tailscale features like exit nodes and subnet routers. If you wish to use your machine as an exit node, you can set this setting to `server`, otherwise if you wish to use an exit node you can set this setting to `client`. The strict RPF warning has been removed as the RPF will be loosened automatically based on the value of this setting. - `openjdk` from version 11 and above is not build with `openjfx` (i.e.: JavaFX) support by default anymore. You can re-enable it by overriding, e.g.: `openjdk11.override { enableJavaFX = true; };`. @@ -554,23 +535,50 @@ In addition to numerous new and upgraded packages, this release has the followin - The option `services.prometheus.exporters.pihole.interval` does not exist anymore and has been removed. -- The option `services.gpsd.device` has been replaced with - `services.gpsd.devices`, which supports multiple devices. +- The option `services.gpsd.device` has been replaced with `services.gpsd.devices`, which supports multiple devices. -- `k3s` can now be configured with an EnvironmentFile for its systemd service, allowing secrets to be provided without ending up in the Nix Store. +- `k3s` can now be configured with an `EnvironmentFile` for its systemd service, allowing secrets to be provided without ending up in the Nix Store. -- `gitea` module options have been changed to be RFC042 conforming (i.e. some options were moved to be located under `services.gitea.settings`) +- The `gitea` module options have been moved into a freeform attribute set below `services.gitea.settings`. -- `boot.initrd.luks.device.` has a new `tryEmptyPassphrase` option, this is useful for OEM's who need to install an encrypted disk with a future settable passphrase - -- Lisp gained a [manual section](https://nixos.org/manual/nixpkgs/stable/#lisp), documenting a new and backwards incompatible interface. The previous interface will be removed in a future release. +- `boot.initrd.luks.device.` has a new `tryEmptyPassphrase` option, this is useful for OEMs who need to install an encrypted disk with a future settable passphrase - The `bind` module now allows the per-zone `allow-query` setting to be configured (previously it was hard-coded to `any`; it still defaults to `any` to retain compatibility). -- `make-disk-image` handles `contents` arguments that are directories better, fixing a bug where it used to put them in a subdirectory of the intended `target`. - - The option `services.jitsi-videobridge.apis` has been renamed to `colibriRestApi` and turned into a boolean. Setting it to `true` will enable the private rest API, useful for monitoring using `services.prometheus.exporters.jitsi.enable`. Learn more about the API: "[The COLIBRI control interface (/colibri/)](https://github.com/jitsi/jitsi-videobridge/blob/v2.3/doc/rest.md)". +- Booting from a volume managed by the Stratis storage management daemon is now supported. Use `fileSystems..stratis.poolUuid` to configure the pool containing the fs. + +## Nixpkgs internals {#sec-release-23.05-nixpkgs-internals} + +- `buildDunePackage` now defaults to `strictDeps = true` which means that any library should go into `buildInputs` or `checkInputs`. Any executable that is run on the building machine should go into `nativeBuildInputs` or `nativeCheckInputs` respectively. Example of executables are `ocaml`, `findlib` and `menhir`. PPXs are libraries which are built by dune and should therefore not go into `nativeBuildInputs`. + +- `buildFHSUserEnv` is now called `buildFHSEnv` and uses FlatPak's Bubblewrap sandboxing tool rather than Nixpkgs' own chrootenv. The old chrootenv-based implemenation is still available via `buildFHSEnvChroot` but is considered deprecated and will be removed when the remaining uses inside Nixpkgs have been migrated. If your FHSEnv-wrapped application misbehaves when using the new bubblewrap implementation, please create an issue in Nixpkgs. + +- Top-level `buildPlatform`, `hostPlatform`, `targetPlatform` have been deprecated, use `stdenv.X` instead. + +- `carnix` and `cratesIO` has been removed due to being unmaintained, use alternatives such as [naersk](https://github.com/nix-community/naersk) and [crate2nix](https://github.com/kolloch/crate2nix) instead. + +- `checkInputs` have been renamed to `nativeCheckInputs`, because they behave the same as `nativeBuildInputs` when `doCheck` is set. `checkInputs` now denote a new type of dependencies, added to `buildInputs` when `doCheck` is set. As a rule of thumb, `nativeCheckInputs` are tools on `$PATH` used during the tests, and `checkInputs` are libraries which are linked to executables built as part of the tests. Similarly, `installCheckInputs` are renamed to `nativeInstallCheckInputs`, corresponding to `nativeBuildInputs`, and `installCheckInputs` are a new type of dependencies added to `buildInputs` when `doInstallCheck` is set. (Note that this change will not cause breakage to derivations with `strictDeps` unset, which are most packages except python, rust, ocaml and go packages). + +- DocBook option documentation, which has been deprecated since 22.11, will now cause a warning when documentation is built. Out-of-tree modules should migrate to using CommonMark documentation as outlined in [](#sec-option-declarations) to silence this warning. + + DocBook option documentation support will be removed in the next release and CommonMark will become the default. DocBook option documentation that has not been migrated until then will no longer render properly or cause errors. + +- `lib.systems.examples.ghcjs` and consequently `pkgsCross.ghcjs` now use the target triplet `javascript-unknown-ghcjs` instead of `js-unknown-ghcjs`. This has been done to match an [upstream decision](https://gitlab.haskell.org/ghc/ghc/-/commit/6636b670233522f01d002c9b97827d00289dbf5c) to follow Cabal's platform naming more closely. Nixpkgs will also reject `js` as an architecture name. + +- Lisp gained a [manual section](https://nixos.org/manual/nixpkgs/stable/#lisp), documenting a new and backwards incompatible interface. The previous interface will be removed in a future release. + +- Calling `makeSetupHook` without passing a `name` argument is deprecated. + +- `nixos/lib/make-disk-image.nix` handles `contents` arguments that are directories better, fixing a bug where it used to put them in a subdirectory of the intended `target`. + +- `nixos/lib/make-disk-image.nix` can now mutate EFI variables, run user-provided EFI firmware or variable templates. This is now extensively documented in the NixOS manual. + +- Nixpkgs now uses [IEEE-standard floating point arithmetic](https://github.com/NixOS/nixpkgs/pull/170215) on `powerpc64le-linux`. + +- Deprecated `xlibsWrapper` transitional package has been removed in favour of direct use of its constituents: `xorg.libX11`, `freetype` and others. + ## Detailed migration information {#sec-release-23.05-migration} ### Pipewire configuration overrides {#sec-release-23.05-migration-pipewire} diff --git a/third_party/nixpkgs/nixos/doc/manual/release-notes/rl-2311.section.md b/third_party/nixpkgs/nixos/doc/manual/release-notes/rl-2311.section.md index 7e260d2eca..5ccaa92914 100644 --- a/third_party/nixpkgs/nixos/doc/manual/release-notes/rl-2311.section.md +++ b/third_party/nixpkgs/nixos/doc/manual/release-notes/rl-2311.section.md @@ -2,18 +2,140 @@ ## Highlights {#sec-release-23.11-highlights} -- Create the first release note entry in this section! +- FoundationDB now defaults to major version 7. + +- Support for WiFi6 (IEEE 802.11ax) and WPA3-SAE-PK was enabled in the `hostapd` package, along with a significant rework of the hostapd module. ## New Services {#sec-release-23.11-new-services} -- Create the first release note entry in this section! +- [MCHPRS](https://github.com/MCHPR/MCHPRS), a multithreaded Minecraft server built for redstone. Available as [services.mchprs](#opt-services.mchprs.enable). + +- [acme-dns](https://github.com/joohoi/acme-dns), a limited DNS server to handle ACME DNS challenges easily and securely. Available as [services.acme-dns](#opt-services.acme-dns.enable). +- [river](https://github.com/riverwm/river), A dynamic tiling wayland compositor. Available as [programs.river](#opt-programs.river.enable). + +- [GoToSocial](https://gotosocial.org/), an ActivityPub social network server, written in Golang. Available as [services.gotosocial](#opt-services.gotosocial.enable). + +- [Anuko Time Tracker](https://github.com/anuko/timetracker), a simple, easy to use, open source time tracking system. Available as [services.anuko-time-tracker](#opt-services.anuko-time-tracker.enable). + +- [sitespeed-io](https://sitespeed.io), a tool that can generate metrics (timings, diagnostics) for websites. Available as [services.sitespeed-io](#opt-services.sitespeed-io.enable). + +- [Apache Guacamole](https://guacamole.apache.org/), a cross-platform, clientless remote desktop gateway. Available as [services.guacamole-server](#opt-services.guacamole-server.enable) and [services.guacamole-client](#opt-services.guacamole-client.enable) services. + +- [trust-dns](https://trust-dns.org/), a Rust based DNS server built to be safe and secure from the ground up. Available as [services.trust-dns](#opt-services.trust-dns.enable). + ## Backward Incompatibilities {#sec-release-23.11-incompatibilities} -- Create the first release note entry in this section! +- The `boot.loader.raspberryPi` options have been marked deprecated, with intent for removal for NixOS 24.11. They had a limited use-case, and do not work like people expect. They required either very old installs ([before mid-2019](https://github.com/NixOS/nixpkgs/pull/62462)) or customized builds out of scope of the standard and generic AArch64 support. That option set never supported the Raspberry Pi 4 family of devices. + +- `python3.pkgs.sequoia` was removed in favor of `python3.pkgs.pysequoia`. The latter package is based on upstream's dedicated repository for sequoia's Python bindings, where the Python bindings from [gitlab:sequoia-pgp/sequoia](https://gitlab.com/sequoia-pgp/sequoia) were removed long ago. + +- `writeTextFile` now requires `executable` to be boolean, values like `null` or `""` will now fail to evaluate. + +- The latest version of `clonehero` now stores custom content in `~/.clonehero`. See the [migration instructions](https://clonehero.net/2022/11/29/v23-to-v1-migration-instructions.html). Typically, these content files would exist along side the binary, but the previous build used a wrapper script that would store them in `~/.config/unity3d/srylain Inc_/Clone Hero`. + +- The `services.hostapd` module was rewritten to support `passwordFile` like options, WPA3-SAE, and management of multiple interfaces. This breaks compatibility with older configurations. + - `hostapd` is now started with additional systemd sandbox/hardening options for better security. + - `services.hostapd.interface` was replaced with a per-radio and per-bss configuration scheme using [services.hostapd.radios](#opt-services.hostapd.radios). + - `services.hostapd.wpa` has been replaced by [services.hostapd.radios.<name>.networks.<name>.authentication.wpaPassword](#opt-services.hostapd.radios._name_.networks._name_.authentication.wpaPassword) and [services.hostapd.radios.<name>.networks.<name>.authentication.saePasswords](#opt-services.hostapd.radios._name_.networks._name_.authentication.saePasswords) which configure WPA2-PSK and WP3-SAE respectively. + - The default authentication has been changed to WPA3-SAE. Options for other (legacy) schemes are still available. + +- `python3.pkgs.fetchPypi` (and `python3Packages.fetchPypi`) has been deprecated in favor of top-level `fetchPypi`. + +- `mariadb` now defaults to `mariadb_1011` instead of `mariadb_106`, meaning the default version was upgraded from 10.6.x to 10.11.x. See the [upgrade notes](https://mariadb.com/kb/en/upgrading-from-mariadb-10-6-to-mariadb-10-11/) for potential issues. + +- `getent` has been moved from `glibc`'s `bin` output to its own dedicated output, reducing closure size for many dependents. Dependents using the `getent` alias should not be affected; others should move from using `glibc.bin` or `getBin glibc` to `getent` (which also improves compatibility with non-glibc platforms). + +- The `services.ananicy.extraRules` option now has the type of `listOf attrs` instead of `string`. + +- `etcd` has been updated to 3.5, you will want to read the [3.3 to 3.4](https://etcd.io/docs/v3.5/upgrades/upgrade_3_4/) and [3.4 to 3.5](https://etcd.io/docs/v3.5/upgrades/upgrade_3_5/) upgrade guides + +- `consul` has been updated to `1.16.0`. See the [release note](https://github.com/hashicorp/consul/releases/tag/v1.16.0) for more details. Once a new Consul version has started and upgraded its data directory, it generally cannot be downgraded to the previous version. + +- `himalaya` has been updated to `0.8.0`, which drops the native TLS support (in favor of Rustls) and add OAuth 2.0 support. See the [release note](https://github.com/soywod/himalaya/releases/tag/v0.8.0) for more details. + +- The [services.caddy.acmeCA](#opt-services.caddy.acmeCA) option now defaults to `null` instead of `"https://acme-v02.api.letsencrypt.org/directory"`, to use all of Caddy's default ACME CAs and enable Caddy's automatic issuer fallback feature by default, as recommended by upstream. + +- `php80` is no longer supported due to upstream not supporting this version anymore. + +- PHP now defaults to PHP 8.2, updated from 8.1. + +- `util-linux` is now supported on Darwin and is no longer an alias to `unixtools`. Use the `unixtools.util-linux` package for access to the Apple variants of the utilities. + +- `services.keyd` changed API. Now you can create multiple configuration files. + +- `services.ddclient` has been removed on the request of the upstream maintainer because it is unmaintained and has bugs. Please switch to a different software like `inadyn` or `knsupdate`. + +- The `vlock` program from the `kbd` package has been moved into its own package output and should now be referenced explicitly as `kbd.vlock` or replaced with an alternative such as the standalone `vlock` package or `physlock`. + +- `fileSystems..autoFormat` now uses `systemd-makefs`, which does not accept formatting options. Therefore, `fileSystems..formatOptions` has been removed. + +- `fileSystems..autoResize` now uses `systemd-growfs` to resize the file system online in stage 2. This means that `f2fs` and `ext2` can no longer be auto resized, while `xfs` and `btrfs` now can be. + +- The `services.vaultwarden.config` option default value was changed to make Vaultwarden only listen on localhost, following the [secure defaults for most NixOS services](https://github.com/NixOS/nixpkgs/issues/100192). + +- `services.lemmy.settings.federation` was removed in 0.17.0 and no longer has any effect. To enable federation, the hostname must be set in the configuration file and then federation must be enabled in the admin web UI. See the [release notes](https://github.com/LemmyNet/lemmy/blob/c32585b03429f0f76d1e4ff738786321a0a9df98/RELEASES.md#upgrade-instructions) for more details. + +- `pict-rs` was upgraded from 0.3 to 0.4 and contains an incompatible database & configuration change. To upgrade on systems with `stateVersion = "23.05";` or older follow the migration steps from https://git.asonix.dog/asonix/pict-rs#user-content-0-3-to-0-4-migration-guide and set `services.pict-rs.package = pkgs.pict-rs;`. + +- The following packages in `haskellPackages` have now a separate bin output: `cabal-fmt`, `calligraphy`, `eventlog2html`, `ghc-debug-brick`, `hindent`, `nixfmt`, `releaser`. This means you need to replace e.g. `"${pkgs.haskellPackages.nixfmt}/bin/nixfmt"` with `"${lib.getBin pkgs.haskellPackages.nixfmt}/bin/nixfmt"` or `"${lib.getExe pkgs.haskellPackages.nixfmt}"`. The binaries also won’t be in scope if you rely on them being installed e.g. via `ghcWithPackages`. `environment.packages` picks the `bin` output automatically, so for normal installation no intervention is required. Also, toplevel attributes like `pkgs.nixfmt` are not impacted negatively by this change. + +- `spamassassin` no longer supports the `Hashcash` module. The module needs to be removed from the `loadplugin` list if it was copied over from the default `initPreConf` option. + +- `services.outline.sequelizeArguments` has been removed, as `outline` no longer executes database migrations via the `sequelize` cli. + +- The Caddy module gained a new option named `services.caddy.enableReload` which is enabled by default. It allows reloading the service instead of restarting it, if only a config file has changed. This option must be disabled if you have turned off the [Caddy admin API](https://caddyserver.com/docs/caddyfile/options#admin). If you keep this option enabled, you should consider setting [`grace_period`](https://caddyserver.com/docs/caddyfile/options#grace-period) to a non-infinite value to prevent Caddy from delaying the reload indefinitely. + +- mdraid support is now optional. This reduces initramfs size and prevents the potentially undesired automatic detection and activation of software RAID pools. It is disabled by default in new configurations (determined by `stateVersion`), but the appropriate settings will be generated by `nixos-generate-config` when installing to a software RAID device, so the standard installation procedure should be unaffected. If you have custom configs relying on mdraid, ensure that you use `stateVersion` correctly or set `boot.swraid.enable` manually. + +- The `go-ethereum` package has been updated to v1.12.0. This drops support for proof-of-work. Its GraphQL API now encodes all numeric values as hex strings and the GraphQL UI is updated to version 2.0. The default database has changed from `leveldb` to `pebble` but `leveldb` can be forced with the --db.engine=leveldb flag. The `checkpoint-admin` command was [removed along with trusted checkpoints](https://github.com/ethereum/go-ethereum/pull/27147). ## Other Notable Changes {#sec-release-23.11-notable-changes} -- Create the first release note entry in this section! +- The Cinnamon module now enables XDG desktop integration by default. If you are experiencing collisions related to xdg-desktop-portal-gtk you can safely remove `xdg.portal.extraPortals = [ pkgs.xdg-desktop-portal-gtk ];` from your NixOS configuration. + +- `fontconfig` now defaults to using greyscale antialiasing instead of subpixel antialiasing because of a [recommendation from one of the downstreams](https://gitlab.freedesktop.org/fontconfig/fontconfig/-/issues/337). You can change this value by configuring [](#opt-fonts.fontconfig.subpixel.rgba) accordingly. + +- The latest available version of Nextcloud is v27 (available as `pkgs.nextcloud27`). The installation logic is as follows: + - If [`services.nextcloud.package`](#opt-services.nextcloud.package) is specified explicitly, this package will be installed (**recommended**) + - If [`system.stateVersion`](#opt-system.stateVersion) is >=23.11, `pkgs.nextcloud27` will be installed by default. + - If [`system.stateVersion`](#opt-system.stateVersion) is >=23.05, `pkgs.nextcloud26` will be installed by default. + - Please note that an upgrade from v25 (or older) to v27 directly is not possible. Please upgrade to `nextcloud26` (or earlier) first. Nextcloud prohibits skipping major versions while upgrading. You can upgrade by declaring [`services.nextcloud.package = pkgs.nextcloud26;`](options.html#opt-services.nextcloud.package). + +- New options were added to `services.searx` for better SearXNG support, including options for the built-in rate limiter and bot protection and automatically configuring a local redis server. + +- A new option was added to the virtualisation module that enables specifying explicitly named network interfaces in QEMU VMs. The existing `virtualisation.vlans` is still supported for cases where the name of the network interface is irrelevant. + +- DocBook option documentation is no longer supported, all module documentation now uses markdown. + +- `services.fail2ban.jails` can now be configured with attribute sets defining settings and filters instead of lines. The stringed options `daemonConfig` and `extraSettings` have respectively been replaced by `daemonSettings` and `jails.DEFAULT.settings` which use attribute sets. + +- The module [services.ankisyncd](#opt-services.ankisyncd.package) has been switched to [anki-sync-server-rs](https://github.com/ankicommunity/anki-sync-server-rs) from the old python version, which was difficult to update, had not been updated in a while, and did not support recent versions of anki. +Unfortunately all servers supporting new clients (newer version of anki-sync-server, anki's built in sync server and this new rust package) do not support the older sync protocol that was used in the old server, so such old clients will also need updating and in particular the anki package in nixpkgs is also being updated in this release. +The module update takes care of the new config syntax and the data itself (user login and cards) are compatible, so users of the module will be able to just log in again after updating both client and server without any extra action. + +- `services.nginx` gained a `defaultListen` option at server-level with support for PROXY protocol listeners, also `proxyProtocol` is now exposed in `services.nginx.virtualHosts..listen` option. It is now possible to run PROXY listeners and non-PROXY listeners at a server-level, see [#213510](https://github.com/NixOS/nixpkgs/pull/213510/) for more details. + +- `services.prometheus.exporters` has a new exporter to monitor electrical power consumption based on PowercapRAPL sensor called [Scaphandre](https://github.com/hubblo-org/scaphandre), see [#239803](https://github.com/NixOS/nixpkgs/pull/239803) for more details. + +- The module `services.calibre-server` has new options to configure the `host`, `port`, `auth.enable`, `auth.mode` and `auth.userDb` path, see [#216497](https://github.com/NixOS/nixpkgs/pull/216497/) for more details. + +- `services.prometheus.exporters` has a new [exporter](https://github.com/hipages/php-fpm_exporter) to monitor PHP-FPM processes, see [#240394](https://github.com/NixOS/nixpkgs/pull/240394) for more details. + +- `programs.gnupg.agent.pinentryFlavor` is now set in `/etc/gnupg/gpg-agent.conf`, and will no longer take precedence over a `pinentry-program` set in `~/.gnupg/gpg-agent.conf`. + +## Nixpkgs internals {#sec-release-23.11-nixpkgs-internals} + +- The `qemu-vm.nix` module by default now identifies block devices via + persistent names available in `/dev/disk/by-*`. Because the rootDevice is + identfied by its filesystem label, it needs to be formatted before the VM is + started. The functionality of automatically formatting the rootDevice in the + initrd is removed from the QEMU module. However, for tests that depend on + this functionality, a test utility for the scripted initrd is added + (`nixos/tests/common/auto-format-root-device.nix`). To use this in a NixOS + test, import the module, e.g. `imports = [ + ./common/auto-format-root-device.nix ];` When you use the systemd initrd, you + can automatically format the root device by setting + `virtualisation.fileSystems."/".autoFormat = true;`. diff --git a/third_party/nixpkgs/nixos/lib/eval-config.nix b/third_party/nixpkgs/nixos/lib/eval-config.nix index 058ab7280c..e1242276a7 100644 --- a/third_party/nixpkgs/nixos/lib/eval-config.nix +++ b/third_party/nixpkgs/nixos/lib/eval-config.nix @@ -31,7 +31,7 @@ evalConfigArgs@ , prefix ? [] , lib ? import ../../lib , extraModules ? let e = builtins.getEnv "NIXOS_EXTRA_MODULE_PATH"; - in if e == "" then [] else [(import e)] + in lib.optional (e != "") (import e) }: let pkgs_ = pkgs; diff --git a/third_party/nixpkgs/nixos/lib/make-disk-image.nix b/third_party/nixpkgs/nixos/lib/make-disk-image.nix index 33d834e36b..fc121345d6 100644 --- a/third_party/nixpkgs/nixos/lib/make-disk-image.nix +++ b/third_party/nixpkgs/nixos/lib/make-disk-image.nix @@ -573,6 +573,7 @@ let format' = format; in let # In this throwaway resource, we only have /dev/vda, but the actual VM may refer to another disk for bootloader, e.g. /dev/vdb # Use this option to create a symlink from vda to any arbitrary device you want. ${optionalString (config.boot.loader.grub.device != "/dev/vda") '' + mkdir -p $(dirname ${config.boot.loader.grub.device}) ln -s /dev/vda ${config.boot.loader.grub.device} ''} diff --git a/third_party/nixpkgs/nixos/lib/make-options-doc/default.nix b/third_party/nixpkgs/nixos/lib/make-options-doc/default.nix index a2385582a0..99515b5b82 100644 --- a/third_party/nixpkgs/nixos/lib/make-options-doc/default.nix +++ b/third_party/nixpkgs/nixos/lib/make-options-doc/default.nix @@ -39,12 +39,17 @@ # allow docbook option docs if `true`. only markdown documentation is allowed when set to # `false`, and a different renderer may be used with different bugs and performance # characteristics but (hopefully) indistinguishable output. -, allowDocBook ? true +# deprecated since 23.11. +# TODO remove in a while. +, allowDocBook ? false # whether lib.mdDoc is required for descriptions to be read as markdown. -# !!! when this is eventually flipped to true, `lib.doRename` should also default to emitting Markdown -, markdownByDefault ? false +# deprecated since 23.11. +# TODO remove in a while. +, markdownByDefault ? true }: +assert markdownByDefault && ! allowDocBook; + let rawOpts = lib.optionAttrSetToDocList options; transformedOpts = map transformOptions rawOpts; @@ -134,10 +139,17 @@ in rec { TOUCH_IF_DB=$dst/.used-docbook \ python ${./mergeJSON.py} \ ${lib.optionalString warningsAreErrors "--warnings-are-errors"} \ - ${if allowDocBook then "--warn-on-docbook" else "--error-on-docbook"} \ $baseJSON $options \ > $dst/options.json + if grep /nixpkgs/nixos/modules $dst/options.json; then + echo "The manual appears to depend on the location of Nixpkgs, which is bad" + echo "since this prevents sharing via the NixOS channel. This is typically" + echo "caused by an option default that refers to a relative path (see above" + echo "for hints about the offending path)." + exit 1 + fi + brotli -9 < $dst/options.json > $dst/options.json.br mkdir -p $out/nix-support @@ -145,38 +157,19 @@ in rec { echo "file json-br $dst/options.json.br" >> $out/nix-support/hydra-build-products ''; - optionsUsedDocbook = pkgs.runCommand "options-used-docbook" {} '' - if [ -e ${optionsJSON}/share/doc/nixos/.used-docbook ]; then - echo 1 - else - echo 0 - fi >"$out" - ''; - - optionsDocBook = pkgs.runCommand "options-docbook.xml" { - nativeBuildInputs = [ - pkgs.nixos-render-docs - ]; - } '' - nixos-render-docs -j $NIX_BUILD_CORES options docbook \ - --manpage-urls ${pkgs.path + "/doc/manpage-urls.json"} \ - --revision ${lib.escapeShellArg revision} \ - --document-type ${lib.escapeShellArg documentType} \ - --varlist-id ${lib.escapeShellArg variablelistId} \ - --id-prefix ${lib.escapeShellArg optionIdPrefix} \ - ${lib.optionalString markdownByDefault "--markdown-by-default"} \ - ${optionsJSON}/share/doc/nixos/options.json \ - options.xml - - if grep /nixpkgs/nixos/modules options.xml; then - echo "The manual appears to depend on the location of Nixpkgs, which is bad" - echo "since this prevents sharing via the NixOS channel. This is typically" - echo "caused by an option default that refers to a relative path (see above" - echo "for hints about the offending path)." - exit 1 - fi - - ${pkgs.libxslt.bin}/bin/xsltproc \ - -o "$out" ${./postprocess-option-descriptions.xsl} options.xml - ''; + optionsDocBook = lib.warn "optionsDocBook is deprecated since 23.11 and will be removed in 24.05" + (pkgs.runCommand "options-docbook.xml" { + nativeBuildInputs = [ + pkgs.nixos-render-docs + ]; + } '' + nixos-render-docs -j $NIX_BUILD_CORES options docbook \ + --manpage-urls ${pkgs.path + "/doc/manpage-urls.json"} \ + --revision ${lib.escapeShellArg revision} \ + --document-type ${lib.escapeShellArg documentType} \ + --varlist-id ${lib.escapeShellArg variablelistId} \ + --id-prefix ${lib.escapeShellArg optionIdPrefix} \ + ${optionsJSON}/share/doc/nixos/options.json \ + "$out" + ''); } diff --git a/third_party/nixpkgs/nixos/lib/make-options-doc/mergeJSON.py b/third_party/nixpkgs/nixos/lib/make-options-doc/mergeJSON.py index b4f72b8a3f..4be83fcb82 100644 --- a/third_party/nixpkgs/nixos/lib/make-options-doc/mergeJSON.py +++ b/third_party/nixpkgs/nixos/lib/make-options-doc/mergeJSON.py @@ -43,19 +43,11 @@ def unpivot(options: Dict[Key, Option]) -> Dict[str, JSON]: return result warningsAreErrors = False -warnOnDocbook = False -errorOnDocbook = False optOffset = 0 for arg in sys.argv[1:]: if arg == "--warnings-are-errors": optOffset += 1 warningsAreErrors = True - if arg == "--warn-on-docbook": - optOffset += 1 - warnOnDocbook = True - elif arg == "--error-on-docbook": - optOffset += 1 - errorOnDocbook = True options = pivot(json.load(open(sys.argv[1 + optOffset], 'r'))) overrides = pivot(json.load(open(sys.argv[2 + optOffset], 'r'))) @@ -84,38 +76,10 @@ for (k, v) in overrides.items(): severity = "error" if warningsAreErrors else "warning" -def is_docbook(o, key): - val = o.get(key, {}) - if not isinstance(val, dict): - return False - return val.get('_type', '') == 'literalDocBook' - # check that every option has a description hasWarnings = False hasErrors = False -hasDocBook = False for (k, v) in options.items(): - if warnOnDocbook or errorOnDocbook: - kind = "error" if errorOnDocbook else "warning" - if isinstance(v.value.get('description', {}), str): - hasErrors |= errorOnDocbook - hasDocBook = True - print( - f"\x1b[1;31m{kind}: option {v.name} description uses DocBook\x1b[0m", - file=sys.stderr) - elif is_docbook(v.value, 'defaultText'): - hasErrors |= errorOnDocbook - hasDocBook = True - print( - f"\x1b[1;31m{kind}: option {v.name} default uses DocBook\x1b[0m", - file=sys.stderr) - elif is_docbook(v.value, 'example'): - hasErrors |= errorOnDocbook - hasDocBook = True - print( - f"\x1b[1;31m{kind}: option {v.name} example uses DocBook\x1b[0m", - file=sys.stderr) - if v.value.get('description', None) is None: hasWarnings = True print(f"\x1b[1;31m{severity}: option {v.name} has no description\x1b[0m", file=sys.stderr) @@ -126,30 +90,6 @@ for (k, v) in options.items(): f"\x1b[1;31m{severity}: option {v.name} has no type. Please specify a valid type, see " + "https://nixos.org/manual/nixos/stable/index.html#sec-option-types\x1b[0m", file=sys.stderr) -if hasDocBook: - (why, what) = ( - ("disallowed for in-tree modules", "contribution") if errorOnDocbook - else ("deprecated for option documentation", "module") - ) - print("Explanation: The documentation contains descriptions, examples, or defaults written in DocBook. " + - "NixOS is in the process of migrating from DocBook to Markdown, and " + - f"DocBook is {why}. To change your {what} to "+ - "use Markdown, apply mdDoc and literalMD and use the *MD variants of option creation " + - "functions where they are available. For example:\n" + - "\n" + - " example.foo = mkOption {\n" + - " description = lib.mdDoc ''your description'';\n" + - " defaultText = lib.literalMD ''your description of default'';\n" + - " };\n" + - "\n" + - " example.enable = mkEnableOption (lib.mdDoc ''your thing'');\n" + - " example.package = mkPackageOptionMD pkgs \"your-package\" {};\n" + - " imports = [ (mkAliasOptionModuleMD [ \"example\" \"args\" ] [ \"example\" \"settings\" ]) ];", - file = sys.stderr) - with open(os.getenv('TOUCH_IF_DB'), 'x'): - # just make sure it exists - pass - if hasErrors: sys.exit(1) if hasWarnings and warningsAreErrors: diff --git a/third_party/nixpkgs/nixos/lib/make-options-doc/postprocess-option-descriptions.xsl b/third_party/nixpkgs/nixos/lib/make-options-doc/postprocess-option-descriptions.xsl deleted file mode 100644 index 1201c7612c..0000000000 --- a/third_party/nixpkgs/nixos/lib/make-options-doc/postprocess-option-descriptions.xsl +++ /dev/null @@ -1,115 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/third_party/nixpkgs/nixos/lib/qemu-common.nix b/third_party/nixpkgs/nixos/lib/qemu-common.nix index a8ed27dd60..4fff2e0a6f 100644 --- a/third_party/nixpkgs/nixos/lib/qemu-common.nix +++ b/third_party/nixpkgs/nixos/lib/qemu-common.nix @@ -19,7 +19,7 @@ rec { ]; qemuSerialDevice = - if with pkgs.stdenv.hostPlatform; isx86 || isMips64 || isRiscV then "ttyS0" + if with pkgs.stdenv.hostPlatform; isx86 || isLoongArch64 || isMips64 || isRiscV then "ttyS0" else if (with pkgs.stdenv.hostPlatform; isAarch || isPower) then "ttyAMA0" else throw "Unknown QEMU serial device for system '${pkgs.stdenv.hostPlatform.system}'"; diff --git a/third_party/nixpkgs/nixos/lib/systemd-network-units.nix b/third_party/nixpkgs/nixos/lib/systemd-network-units.nix new file mode 100644 index 0000000000..14ff0b3742 --- /dev/null +++ b/third_party/nixpkgs/nixos/lib/systemd-network-units.nix @@ -0,0 +1,240 @@ +{ lib, systemdUtils }: + +with lib; + +let + attrsToSection = systemdUtils.lib.attrsToSection; + commonMatchText = def: + optionalString (def.matchConfig != { }) '' + [Match] + ${attrsToSection def.matchConfig} + ''; +in { + linkToUnit = def: + commonMatchText def + '' + [Link] + ${attrsToSection def.linkConfig} + '' + def.extraConfig; + + netdevToUnit = def: + commonMatchText def + '' + [NetDev] + ${attrsToSection def.netdevConfig} + '' + optionalString (def.vlanConfig != { }) '' + [VLAN] + ${attrsToSection def.vlanConfig} + '' + optionalString (def.macvlanConfig != { }) '' + [MACVLAN] + ${attrsToSection def.macvlanConfig} + '' + optionalString (def.vxlanConfig != { }) '' + [VXLAN] + ${attrsToSection def.vxlanConfig} + '' + optionalString (def.tunnelConfig != { }) '' + [Tunnel] + ${attrsToSection def.tunnelConfig} + '' + optionalString (def.fooOverUDPConfig != { }) '' + [FooOverUDP] + ${attrsToSection def.fooOverUDPConfig} + '' + optionalString (def.peerConfig != { }) '' + [Peer] + ${attrsToSection def.peerConfig} + '' + optionalString (def.tunConfig != { }) '' + [Tun] + ${attrsToSection def.tunConfig} + '' + optionalString (def.tapConfig != { }) '' + [Tap] + ${attrsToSection def.tapConfig} + '' + optionalString (def.l2tpConfig != { }) '' + [L2TP] + ${attrsToSection def.l2tpConfig} + '' + flip concatMapStrings def.l2tpSessions (x: '' + [L2TPSession] + ${attrsToSection x.l2tpSessionConfig} + '') + optionalString (def.wireguardConfig != { }) '' + [WireGuard] + ${attrsToSection def.wireguardConfig} + '' + flip concatMapStrings def.wireguardPeers (x: '' + [WireGuardPeer] + ${attrsToSection x.wireguardPeerConfig} + '') + optionalString (def.bondConfig != { }) '' + [Bond] + ${attrsToSection def.bondConfig} + '' + optionalString (def.xfrmConfig != { }) '' + [Xfrm] + ${attrsToSection def.xfrmConfig} + '' + optionalString (def.vrfConfig != { }) '' + [VRF] + ${attrsToSection def.vrfConfig} + '' + optionalString (def.batmanAdvancedConfig != { }) '' + [BatmanAdvanced] + ${attrsToSection def.batmanAdvancedConfig} + '' + def.extraConfig; + + networkToUnit = def: + commonMatchText def + optionalString (def.linkConfig != { }) '' + [Link] + ${attrsToSection def.linkConfig} + '' + '' + [Network] + '' + attrsToSection def.networkConfig + + optionalString (def.address != [ ]) '' + ${concatStringsSep "\n" (map (s: "Address=${s}") def.address)} + '' + optionalString (def.gateway != [ ]) '' + ${concatStringsSep "\n" (map (s: "Gateway=${s}") def.gateway)} + '' + optionalString (def.dns != [ ]) '' + ${concatStringsSep "\n" (map (s: "DNS=${s}") def.dns)} + '' + optionalString (def.ntp != [ ]) '' + ${concatStringsSep "\n" (map (s: "NTP=${s}") def.ntp)} + '' + optionalString (def.bridge != [ ]) '' + ${concatStringsSep "\n" (map (s: "Bridge=${s}") def.bridge)} + '' + optionalString (def.bond != [ ]) '' + ${concatStringsSep "\n" (map (s: "Bond=${s}") def.bond)} + '' + optionalString (def.vrf != [ ]) '' + ${concatStringsSep "\n" (map (s: "VRF=${s}") def.vrf)} + '' + optionalString (def.vlan != [ ]) '' + ${concatStringsSep "\n" (map (s: "VLAN=${s}") def.vlan)} + '' + optionalString (def.macvlan != [ ]) '' + ${concatStringsSep "\n" (map (s: "MACVLAN=${s}") def.macvlan)} + '' + optionalString (def.macvtap != [ ]) '' + ${concatStringsSep "\n" (map (s: "MACVTAP=${s}") def.macvtap)} + '' + optionalString (def.vxlan != [ ]) '' + ${concatStringsSep "\n" (map (s: "VXLAN=${s}") def.vxlan)} + '' + optionalString (def.tunnel != [ ]) '' + ${concatStringsSep "\n" (map (s: "Tunnel=${s}") def.tunnel)} + '' + optionalString (def.xfrm != [ ]) '' + ${concatStringsSep "\n" (map (s: "Xfrm=${s}") def.xfrm)} + '' + "\n" + flip concatMapStrings def.addresses (x: '' + [Address] + ${attrsToSection x.addressConfig} + '') + flip concatMapStrings def.routingPolicyRules (x: '' + [RoutingPolicyRule] + ${attrsToSection x.routingPolicyRuleConfig} + '') + flip concatMapStrings def.routes (x: '' + [Route] + ${attrsToSection x.routeConfig} + '') + optionalString (def.dhcpV4Config != { }) '' + [DHCPv4] + ${attrsToSection def.dhcpV4Config} + '' + optionalString (def.dhcpV6Config != { }) '' + [DHCPv6] + ${attrsToSection def.dhcpV6Config} + '' + optionalString (def.dhcpPrefixDelegationConfig != { }) '' + [DHCPPrefixDelegation] + ${attrsToSection def.dhcpPrefixDelegationConfig} + '' + optionalString (def.ipv6AcceptRAConfig != { }) '' + [IPv6AcceptRA] + ${attrsToSection def.ipv6AcceptRAConfig} + '' + optionalString (def.dhcpServerConfig != { }) '' + [DHCPServer] + ${attrsToSection def.dhcpServerConfig} + '' + optionalString (def.ipv6SendRAConfig != { }) '' + [IPv6SendRA] + ${attrsToSection def.ipv6SendRAConfig} + '' + flip concatMapStrings def.ipv6Prefixes (x: '' + [IPv6Prefix] + ${attrsToSection x.ipv6PrefixConfig} + '') + flip concatMapStrings def.ipv6RoutePrefixes (x: '' + [IPv6RoutePrefix] + ${attrsToSection x.ipv6RoutePrefixConfig} + '') + flip concatMapStrings def.dhcpServerStaticLeases (x: '' + [DHCPServerStaticLease] + ${attrsToSection x.dhcpServerStaticLeaseConfig} + '') + optionalString (def.bridgeConfig != { }) '' + [Bridge] + ${attrsToSection def.bridgeConfig} + '' + flip concatMapStrings def.bridgeFDBs (x: '' + [BridgeFDB] + ${attrsToSection x.bridgeFDBConfig} + '') + flip concatMapStrings def.bridgeMDBs (x: '' + [BridgeMDB] + ${attrsToSection x.bridgeMDBConfig} + '') + optionalString (def.lldpConfig != { }) '' + [LLDP] + ${attrsToSection def.lldpConfig} + '' + optionalString (def.canConfig != { }) '' + [CAN] + ${attrsToSection def.canConfig} + '' + optionalString (def.ipoIBConfig != { }) '' + [IPoIB] + ${attrsToSection def.ipoIBConfig} + '' + optionalString (def.qdiscConfig != { }) '' + [QDisc] + ${attrsToSection def.qdiscConfig} + '' + optionalString (def.networkEmulatorConfig != { }) '' + [NetworkEmulator] + ${attrsToSection def.networkEmulatorConfig} + '' + optionalString (def.tokenBucketFilterConfig != { }) '' + [TokenBucketFilter] + ${attrsToSection def.tokenBucketFilterConfig} + '' + optionalString (def.pieConfig != { }) '' + [PIE] + ${attrsToSection def.pieConfig} + '' + optionalString (def.flowQueuePIEConfig != { }) '' + [FlowQueuePIE] + ${attrsToSection def.flowQueuePIEConfig} + '' + optionalString (def.stochasticFairBlueConfig != { }) '' + [StochasticFairBlue] + ${attrsToSection def.stochasticFairBlueConfig} + '' + optionalString (def.stochasticFairnessQueueingConfig != { }) '' + [StochasticFairnessQueueing] + ${attrsToSection def.stochasticFairnessQueueingConfig} + '' + optionalString (def.bfifoConfig != { }) '' + [BFIFO] + ${attrsToSection def.bfifoConfig} + '' + optionalString (def.pfifoConfig != { }) '' + [PFIFO] + ${attrsToSection def.pfifoConfig} + '' + optionalString (def.pfifoHeadDropConfig != { }) '' + [PFIFOHeadDrop] + ${attrsToSection def.pfifoHeadDropConfig} + '' + optionalString (def.pfifoFastConfig != { }) '' + [PFIFOFast] + ${attrsToSection def.pfifoFastConfig} + '' + optionalString (def.cakeConfig != { }) '' + [CAKE] + ${attrsToSection def.cakeConfig} + '' + optionalString (def.controlledDelayConfig != { }) '' + [ControlledDelay] + ${attrsToSection def.controlledDelayConfig} + '' + optionalString (def.deficitRoundRobinSchedulerConfig != { }) '' + [DeficitRoundRobinScheduler] + ${attrsToSection def.deficitRoundRobinSchedulerConfig} + '' + optionalString (def.deficitRoundRobinSchedulerClassConfig != { }) '' + [DeficitRoundRobinSchedulerClass] + ${attrsToSection def.deficitRoundRobinSchedulerClassConfig} + '' + optionalString (def.enhancedTransmissionSelectionConfig != { }) '' + [EnhancedTransmissionSelection] + ${attrsToSection def.enhancedTransmissionSelectionConfig} + '' + optionalString (def.genericRandomEarlyDetectionConfig != { }) '' + [GenericRandomEarlyDetection] + ${attrsToSection def.genericRandomEarlyDetectionConfig} + '' + optionalString (def.fairQueueingControlledDelayConfig != { }) '' + [FairQueueingControlledDelay] + ${attrsToSection def.fairQueueingControlledDelayConfig} + '' + optionalString (def.fairQueueingConfig != { }) '' + [FairQueueing] + ${attrsToSection def.fairQueueingConfig} + '' + optionalString (def.trivialLinkEqualizerConfig != { }) '' + [TrivialLinkEqualizer] + ${attrsToSection def.trivialLinkEqualizerConfig} + '' + optionalString (def.hierarchyTokenBucketConfig != { }) '' + [HierarchyTokenBucket] + ${attrsToSection def.hierarchyTokenBucketConfig} + '' + optionalString (def.hierarchyTokenBucketClassConfig != { }) '' + [HierarchyTokenBucketClass] + ${attrsToSection def.hierarchyTokenBucketClassConfig} + '' + optionalString (def.heavyHitterFilterConfig != { }) '' + [HeavyHitterFilter] + ${attrsToSection def.heavyHitterFilterConfig} + '' + optionalString (def.quickFairQueueingConfig != { }) '' + [QuickFairQueueing] + ${attrsToSection def.quickFairQueueingConfig} + '' + optionalString (def.quickFairQueueingConfigClass != { }) '' + [QuickFairQueueingClass] + ${attrsToSection def.quickFairQueueingConfigClass} + '' + flip concatMapStrings def.bridgeVLANs (x: '' + [BridgeVLAN] + ${attrsToSection x.bridgeVLANConfig} + '') + def.extraConfig; + +} diff --git a/third_party/nixpkgs/nixos/lib/test-driver/test_driver/driver.py b/third_party/nixpkgs/nixos/lib/test-driver/test_driver/driver.py index ea6ba4b65b..835d60ec3b 100644 --- a/third_party/nixpkgs/nixos/lib/test-driver/test_driver/driver.py +++ b/third_party/nixpkgs/nixos/lib/test-driver/test_driver/driver.py @@ -163,11 +163,6 @@ class Driver: machine.wait_for_shutdown() def create_machine(self, args: Dict[str, Any]) -> Machine: - rootlog.warning( - "Using legacy create_machine(), please instantiate the" - "Machine class directly, instead" - ) - tmp_dir = get_tmp_dir() if args.get("startCommand"): diff --git a/third_party/nixpkgs/nixos/lib/test-driver/test_driver/machine.py b/third_party/nixpkgs/nixos/lib/test-driver/test_driver/machine.py index a362e99f98..c315f9b2f5 100644 --- a/third_party/nixpkgs/nixos/lib/test-driver/test_driver/machine.py +++ b/third_party/nixpkgs/nixos/lib/test-driver/test_driver/machine.py @@ -369,8 +369,8 @@ class Machine: @staticmethod def create_startcommand(args: Dict[str, str]) -> StartCommand: rootlog.warning( - "Using legacy create_startcommand()," - "please use proper nix test vm instrumentation, instead" + "Using legacy create_startcommand(), " + "please use proper nix test vm instrumentation, instead " "to generate the appropriate nixos test vm qemu startup script" ) hda = None @@ -514,7 +514,11 @@ class Machine: return "".join(output_buffer) def execute( - self, command: str, check_return: bool = True, timeout: Optional[int] = 900 + self, + command: str, + check_return: bool = True, + check_output: bool = True, + timeout: Optional[int] = 900, ) -> Tuple[int, str]: self.run_callbacks() self.connect() @@ -535,6 +539,9 @@ class Machine: assert self.shell self.shell.send(out_command.encode()) + if not check_output: + return (-2, "") + # Get the output output = base64.b64decode(self._next_newline_closed_block_from_shell()) @@ -641,7 +648,7 @@ class Machine: return status != 0 with self.nested(f"waiting for failure: {command}"): - retry(check_failure) + retry(check_failure, timeout) return output def wait_for_shutdown(self) -> None: @@ -745,7 +752,13 @@ class Machine: while not shell_ready(timeout_secs=30): self.log("Guest root shell did not produce any data yet...") - self.log(self.shell.recv(1024).decode()) + while True: + chunk = self.shell.recv(1024) + self.log(f"Guest shell says: {chunk!r}") + # NOTE: for this to work, nothing must be printed after this line! + if b"Spawning backdoor root shell..." in chunk: + break + toc = time.time() self.log("connected to guest root shell") @@ -855,21 +868,37 @@ class Machine: with self.nested(f"waiting for {regex} to appear on screen"): retry(screen_matches) - def wait_for_console_text(self, regex: str) -> None: + def wait_for_console_text(self, regex: str, timeout: int | None = None) -> None: + """ + Wait for the provided regex to appear on console. + For each reads, + + If timeout is None, timeout is infinite. + + `timeout` is in seconds. + """ + # Buffer the console output, this is needed + # to match multiline regexes. + console = io.StringIO() + + def console_matches(_: Any) -> bool: + nonlocal console + try: + # This will return as soon as possible and + # sleep 1 second. + console.write(self.last_lines.get(block=False)) + except queue.Empty: + pass + console.seek(0) + matches = re.search(regex, console.read()) + return matches is not None + with self.nested(f"waiting for {regex} to appear on console"): - # Buffer the console output, this is needed - # to match multiline regexes. - console = io.StringIO() - while True: - try: - console.write(self.last_lines.get()) - except queue.Empty: - self.sleep(1) - continue - console.seek(0) - matches = re.search(regex, console.read()) - if matches is not None: - return + if timeout is not None: + retry(console_matches, timeout) + else: + while not console_matches(False): + pass def send_key( self, key: str, delay: Optional[float] = 0.01, log: Optional[bool] = True diff --git a/third_party/nixpkgs/nixos/lib/testing/driver.nix b/third_party/nixpkgs/nixos/lib/testing/driver.nix index 25759a91dd..444236efb1 100644 --- a/third_party/nixpkgs/nixos/lib/testing/driver.nix +++ b/third_party/nixpkgs/nixos/lib/testing/driver.nix @@ -12,7 +12,9 @@ let }; - vlans = map (m: m.virtualisation.vlans) (lib.attrValues config.nodes); + vlans = map (m: ( + m.virtualisation.vlans ++ + (lib.mapAttrsToList (_: v: v.vlan) m.virtualisation.interfaces))) (lib.attrValues config.nodes); vms = map (m: m.system.build.vm) (lib.attrValues config.nodes); nodeHostNames = diff --git a/third_party/nixpkgs/nixos/lib/testing/network.nix b/third_party/nixpkgs/nixos/lib/testing/network.nix index 04ea9a2bc9..1edc9e2765 100644 --- a/third_party/nixpkgs/nixos/lib/testing/network.nix +++ b/third_party/nixpkgs/nixos/lib/testing/network.nix @@ -4,7 +4,7 @@ let inherit (lib) attrNames concatMap concatMapStrings flip forEach head listToAttrs mkDefault mkOption nameValuePair optionalString - range types zipListsWith zipLists + range toLower types zipListsWith zipLists mdDoc ; @@ -18,24 +18,41 @@ let networkModule = { config, nodes, pkgs, ... }: let - interfacesNumbered = zipLists config.virtualisation.vlans (range 1 255); - interfaces = forEach interfacesNumbered ({ fst, snd }: - nameValuePair "eth${toString snd}" { - ipv4.addresses = - [{ - address = "192.168.${toString fst}.${toString config.virtualisation.test.nodeNumber}"; + qemu-common = import ../qemu-common.nix { inherit lib pkgs; }; + + # Convert legacy VLANs to named interfaces and merge with explicit interfaces. + vlansNumbered = forEach (zipLists config.virtualisation.vlans (range 1 255)) (v: { + name = "eth${toString v.snd}"; + vlan = v.fst; + assignIP = true; + }); + explicitInterfaces = lib.mapAttrsToList (n: v: v // { name = n; }) config.virtualisation.interfaces; + interfaces = vlansNumbered ++ explicitInterfaces; + interfacesNumbered = zipLists interfaces (range 1 255); + + # Automatically assign IP addresses to requested interfaces. + assignIPs = lib.filter (i: i.assignIP) interfaces; + ipInterfaces = forEach assignIPs (i: + nameValuePair i.name { ipv4.addresses = + [ { address = "192.168.${toString i.vlan}.${toString config.virtualisation.test.nodeNumber}"; prefixLength = 24; }]; }); + qemuOptions = lib.flatten (forEach interfacesNumbered ({ fst, snd }: + qemu-common.qemuNICFlags snd fst.vlan config.virtualisation.test.nodeNumber)); + udevRules = forEach interfacesNumbered ({ fst, snd }: + # MAC Addresses for QEMU network devices are lowercase, and udev string comparison is case-sensitive. + ''SUBSYSTEM=="net",ACTION=="add",ATTR{address}=="${toLower(qemu-common.qemuNicMac fst.vlan config.virtualisation.test.nodeNumber)}",NAME="${fst.name}"''); + networkConfig = { networking.hostName = mkDefault config.virtualisation.test.nodeName; - networking.interfaces = listToAttrs interfaces; + networking.interfaces = listToAttrs ipInterfaces; networking.primaryIPAddress = - optionalString (interfaces != [ ]) (head (head interfaces).value.ipv4.addresses).address; + optionalString (ipInterfaces != [ ]) (head (head ipInterfaces).value.ipv4.addresses).address; # Put the IP addresses of all VMs in this machine's # /etc/hosts file. If a machine has multiple @@ -51,16 +68,13 @@ let "${config.networking.hostName}.${config.networking.domain} " + "${config.networking.hostName}\n")); - virtualisation.qemu.options = - let qemu-common = import ../qemu-common.nix { inherit lib pkgs; }; - in - flip concatMap interfacesNumbered - ({ fst, snd }: qemu-common.qemuNICFlags snd fst config.virtualisation.test.nodeNumber); + virtualisation.qemu.options = qemuOptions; + boot.initrd.services.udev.rules = concatMapStrings (x: x + "\n") udevRules; }; in { - key = "ip-address"; + key = "network-interfaces"; config = networkConfig // { # Expose the networkConfig items for tests like nixops # that need to recreate the network config. diff --git a/third_party/nixpkgs/nixos/lib/testing/nodes.nix b/third_party/nixpkgs/nixos/lib/testing/nodes.nix index 6e439fd814..f58759b4cd 100644 --- a/third_party/nixpkgs/nixos/lib/testing/nodes.nix +++ b/third_party/nixpkgs/nixos/lib/testing/nodes.nix @@ -16,6 +16,7 @@ let baseOS = import ../eval-config.nix { + inherit lib; system = null; # use modularly defined system inherit (config.node) specialArgs; modules = [ config.defaults ]; diff --git a/third_party/nixpkgs/nixos/lib/utils.nix b/third_party/nixpkgs/nixos/lib/utils.nix index def3aa13f3..7ea9d6a5c7 100644 --- a/third_party/nixpkgs/nixos/lib/utils.nix +++ b/third_party/nixpkgs/nixos/lib/utils.nix @@ -226,5 +226,8 @@ rec { lib = import ./systemd-lib.nix { inherit lib config pkgs; }; unitOptions = import ./systemd-unit-options.nix { inherit lib systemdUtils; }; types = import ./systemd-types.nix { inherit lib systemdUtils pkgs; }; + network = { + units = import ./systemd-network-units.nix { inherit lib systemdUtils; }; + }; }; } diff --git a/third_party/nixpkgs/nixos/maintainers/scripts/ec2/amazon-image.nix b/third_party/nixpkgs/nixos/maintainers/scripts/ec2/amazon-image.nix index 490a79e0b6..d12339bca1 100644 --- a/third_party/nixpkgs/nixos/maintainers/scripts/ec2/amazon-image.nix +++ b/third_party/nixpkgs/nixos/maintainers/scripts/ec2/amazon-image.nix @@ -43,7 +43,7 @@ in { sizeMB = mkOption { type = with types; either (enum [ "auto" ]) int; - default = 2048; + default = 3072; example = 8192; description = lib.mdDoc "The size in MB of the image"; }; diff --git a/third_party/nixpkgs/nixos/modules/config/fonts/fontconfig.nix b/third_party/nixpkgs/nixos/modules/config/fonts/fontconfig.nix index 5781679241..2eee5cd34d 100644 --- a/third_party/nixpkgs/nixos/modules/config/fonts/fontconfig.nix +++ b/third_party/nixpkgs/nixos/modules/config/fonts/fontconfig.nix @@ -77,18 +77,6 @@ let ${fcBool cfg.hinting.autohint} - - ${cfg.hinting.style} - - - ${fcBool cfg.antialias} - - - ${cfg.subpixel.rgba} - - - lcd${cfg.subpixel.lcdfilter} - @@ -177,6 +165,13 @@ let ''; + # Replace default linked config with a different variant + replaceDefaultConfig = defaultConfig: newConfig: '' + rm $dst/${defaultConfig} + ln -s ${pkg.out}/share/fontconfig/conf.avail/${newConfig} \ + $dst/ + ''; + # fontconfig configuration package confPkg = pkgs.runCommand "fontconfig-conf" { preferLocalBuild = true; @@ -196,6 +191,26 @@ let ln -s ${pkg.out}/etc/fonts/conf.d/*.conf \ $dst/ + ${optionalString (!cfg.antialias) + (replaceDefaultConfig "10-yes-antialias.conf" + "10-no-antialias.conf") + } + + ${optionalString (cfg.hinting.style != "slight") + (replaceDefaultConfig "10-hinting-slight.conf" + "10-hinting-${cfg.hinting.style}.conf") + } + + ${optionalString (cfg.subpixel.rgba != "none") + (replaceDefaultConfig "10-sub-pixel-none.conf" + "10-sub-pixel-${cfg.subpixel.rgba}.conf") + } + + ${optionalString (cfg.subpixel.lcdfilter != "default") + (replaceDefaultConfig "11-lcdfilter-default.conf" + "11-lcdfilter-${cfg.subpixel.lcdfilter}.conf") + } + # 00-nixos-cache.conf ln -s ${cacheConf} $dst/00-nixos-cache.conf @@ -367,17 +382,25 @@ in }; style = mkOption { - type = types.enum [ "hintnone" "hintslight" "hintmedium" "hintfull" ]; - default = "hintslight"; + type = types.enum ["none" "slight" "medium" "full"]; + default = "slight"; description = lib.mdDoc '' Hintstyle is the amount of font reshaping done to line up to the grid. - hintslight will make the font more fuzzy to line up to the grid - but will be better in retaining font shape, while hintfull will - be a crisp font that aligns well to the pixel grid but will lose - a greater amount of font shape. + slight will make the font more fuzzy to line up to the grid but + will be better in retaining font shape, while full will be a + crisp font that aligns well to the pixel grid but will lose a + greater amount of font shape. ''; + apply = + val: + let + from = "fonts.fontconfig.hinting.style"; + val' = lib.removePrefix "hint" val; + warning = "The option `${from}` contains a deprecated value `${val}`. Use `${val'}` instead."; + in + lib.warnIf (lib.hasPrefix "hint" val) warning val'; }; }; @@ -394,7 +417,7 @@ in subpixel = { rgba = mkOption { - default = "rgb"; + default = "none"; type = types.enum ["rgb" "bgr" "vrgb" "vbgr" "none"]; description = lib.mdDoc '' Subpixel order. The overwhelming majority of displays are diff --git a/third_party/nixpkgs/nixos/modules/config/fonts/fontdir.nix b/third_party/nixpkgs/nixos/modules/config/fonts/fontdir.nix index 30e0dfe256..9d41463c94 100644 --- a/third_party/nixpkgs/nixos/modules/config/fonts/fontdir.nix +++ b/third_party/nixpkgs/nixos/modules/config/fonts/fontdir.nix @@ -8,7 +8,7 @@ let x11Fonts = pkgs.runCommand "X11-fonts" { preferLocalBuild = true; } '' mkdir -p "$out/share/X11/fonts" - font_regexp='.*\.\(ttf\|ttc\|otf\|pcf\|pfa\|pfb\|bdf\)\(\.gz\)?' + font_regexp='.*\.\(ttf\|ttc\|otb\|otf\|pcf\|pfa\|pfb\|bdf\)\(\.gz\)?' find ${toString config.fonts.fonts} -regex "$font_regexp" \ -exec ln -sf -t "$out/share/X11/fonts" '{}' \; cd "$out/share/X11/fonts" diff --git a/third_party/nixpkgs/nixos/modules/config/i18n.nix b/third_party/nixpkgs/nixos/modules/config/i18n.nix index b1efc00773..b19d38091e 100644 --- a/third_party/nixpkgs/nixos/modules/config/i18n.nix +++ b/third_party/nixpkgs/nixos/modules/config/i18n.nix @@ -66,6 +66,7 @@ with lib; (builtins.map (l: (replaceStrings [ "utf8" "utf-8" "UTF8" ] [ "UTF-8" "UTF-8" "UTF-8" ] l) + "/UTF-8") ( [ "C.UTF-8" + "en_US.UTF-8" config.i18n.defaultLocale ] ++ (attrValues (filterAttrs (n: v: n != "LANGUAGE") config.i18n.extraLocaleSettings)) )) diff --git a/third_party/nixpkgs/nixos/modules/config/malloc.nix b/third_party/nixpkgs/nixos/modules/config/malloc.nix index ae0661f472..3d70e09198 100644 --- a/third_party/nixpkgs/nixos/modules/config/malloc.nix +++ b/third_party/nixpkgs/nixos/modules/config/malloc.nix @@ -97,7 +97,7 @@ in }; config = mkIf (cfg.provider != "libc") { - boot.kernel.sysctl."vm.max_map_count" = mkIf (cfg.provider == "graphene-hardened") (mkDefault 1048576); + boot.kernel.sysctl."vm.max_map_count" = mkIf (cfg.provider == "graphene-hardened") (mkDefault 1048576); # TODO: Default vm.max_map_count has been increased system-wide environment.etc."ld-nix.so.preload".text = '' ${providerLibPath} ''; diff --git a/third_party/nixpkgs/nixos/modules/config/nix-channel.nix b/third_party/nixpkgs/nixos/modules/config/nix-channel.nix new file mode 100644 index 0000000000..557f17d8b3 --- /dev/null +++ b/third_party/nixpkgs/nixos/modules/config/nix-channel.nix @@ -0,0 +1,70 @@ +/* + Manages the things that are needed for a traditional nix-channel based + configuration to work. + + See also + - ./nix.nix + - ./nix-flakes.nix + */ +{ config, lib, ... }: +let + inherit (lib) + mkIf + mkOption + stringAfter + types + ; + + cfg = config.nix; + +in +{ + options = { + nix = { + nixPath = mkOption { + type = types.listOf types.str; + default = [ + "nixpkgs=/nix/var/nix/profiles/per-user/root/channels/nixos" + "nixos-config=/etc/nixos/configuration.nix" + "/nix/var/nix/profiles/per-user/root/channels" + ]; + description = lib.mdDoc '' + The default Nix expression search path, used by the Nix + evaluator to look up paths enclosed in angle brackets + (e.g. ``). + ''; + }; + }; + + system = { + defaultChannel = mkOption { + internal = true; + type = types.str; + default = "https://nixos.org/channels/nixos-unstable"; + description = lib.mdDoc "Default NixOS channel to which the root user is subscribed."; + }; + }; + }; + + config = mkIf cfg.enable { + + environment.extraInit = + '' + if [ -e "$HOME/.nix-defexpr/channels" ]; then + export NIX_PATH="$HOME/.nix-defexpr/channels''${NIX_PATH:+:$NIX_PATH}" + fi + ''; + + environment.sessionVariables = { + NIX_PATH = cfg.nixPath; + }; + + system.activationScripts.nix-channel = stringAfter [ "etc" "users" ] + '' + # Subscribe the root user to the NixOS channel by default. + if [ ! -e "/root/.nix-channels" ]; then + echo "${config.system.defaultChannel} nixos" > "/root/.nix-channels" + fi + ''; + }; +} diff --git a/third_party/nixpkgs/nixos/modules/config/nix-flakes.nix b/third_party/nixpkgs/nixos/modules/config/nix-flakes.nix new file mode 100644 index 0000000000..242d8d3b82 --- /dev/null +++ b/third_party/nixpkgs/nixos/modules/config/nix-flakes.nix @@ -0,0 +1,95 @@ +/* + Manages the flake registry. + + See also + - ./nix.nix + - ./nix-channel.nix + */ +{ config, lib, ... }: +let + inherit (lib) + filterAttrs + literalExpression + mapAttrsToList + mkDefault + mkIf + mkOption + types + ; + + cfg = config.nix; + +in +{ + options = { + nix = { + registry = mkOption { + type = types.attrsOf (types.submodule ( + let + referenceAttrs = with types; attrsOf (oneOf [ + str + int + bool + path + package + ]); + in + { config, name, ... }: + { + options = { + from = mkOption { + type = referenceAttrs; + example = { type = "indirect"; id = "nixpkgs"; }; + description = lib.mdDoc "The flake reference to be rewritten."; + }; + to = mkOption { + type = referenceAttrs; + example = { type = "github"; owner = "my-org"; repo = "my-nixpkgs"; }; + description = lib.mdDoc "The flake reference {option}`from` is rewritten to."; + }; + flake = mkOption { + type = types.nullOr types.attrs; + default = null; + example = literalExpression "nixpkgs"; + description = lib.mdDoc '' + The flake input {option}`from` is rewritten to. + ''; + }; + exact = mkOption { + type = types.bool; + default = true; + description = lib.mdDoc '' + Whether the {option}`from` reference needs to match exactly. If set, + a {option}`from` reference like `nixpkgs` does not + match with a reference like `nixpkgs/nixos-20.03`. + ''; + }; + }; + config = { + from = mkDefault { type = "indirect"; id = name; }; + to = mkIf (config.flake != null) (mkDefault ( + { + type = "path"; + path = config.flake.outPath; + } // filterAttrs + (n: _: n == "lastModified" || n == "rev" || n == "revCount" || n == "narHash") + config.flake + )); + }; + } + )); + default = { }; + description = lib.mdDoc '' + A system-wide flake registry. + ''; + }; + }; + }; + + config = mkIf cfg.enable { + environment.etc."nix/registry.json".text = builtins.toJSON { + version = 2; + flakes = mapAttrsToList (n: v: { inherit (v) from to exact; }) cfg.registry; + }; + }; +} diff --git a/third_party/nixpkgs/nixos/modules/config/nix-remote-build.nix b/third_party/nixpkgs/nixos/modules/config/nix-remote-build.nix new file mode 100644 index 0000000000..98c8fc06d2 --- /dev/null +++ b/third_party/nixpkgs/nixos/modules/config/nix-remote-build.nix @@ -0,0 +1,226 @@ +/* + Manages the remote build configuration, /etc/nix/machines + + See also + - ./nix.nix + - nixos/modules/services/system/nix-daemon.nix + */ +{ config, lib, ... }: + +let + inherit (lib) + any + concatMapStrings + concatStringsSep + filter + getVersion + mkIf + mkMerge + mkOption + optional + optionalString + types + versionAtLeast + ; + + cfg = config.nix; + + nixPackage = cfg.package.out; + + isNixAtLeast = versionAtLeast (getVersion nixPackage); + + buildMachinesText = + concatMapStrings + (machine: + (concatStringsSep " " ([ + "${optionalString (machine.protocol != null) "${machine.protocol}://"}${optionalString (machine.sshUser != null) "${machine.sshUser}@"}${machine.hostName}" + (if machine.system != null then machine.system else if machine.systems != [ ] then concatStringsSep "," machine.systems else "-") + (if machine.sshKey != null then machine.sshKey else "-") + (toString machine.maxJobs) + (toString machine.speedFactor) + (let res = (machine.supportedFeatures ++ machine.mandatoryFeatures); + in if (res == []) then "-" else (concatStringsSep "," res)) + (let res = machine.mandatoryFeatures; + in if (res == []) then "-" else (concatStringsSep "," machine.mandatoryFeatures)) + ] + ++ optional (isNixAtLeast "2.4pre") (if machine.publicHostKey != null then machine.publicHostKey else "-"))) + + "\n" + ) + cfg.buildMachines; + +in +{ + options = { + nix = { + buildMachines = mkOption { + type = types.listOf (types.submodule { + options = { + hostName = mkOption { + type = types.str; + example = "nixbuilder.example.org"; + description = lib.mdDoc '' + The hostname of the build machine. + ''; + }; + protocol = mkOption { + type = types.enum [ null "ssh" "ssh-ng" ]; + default = "ssh"; + example = "ssh-ng"; + description = lib.mdDoc '' + The protocol used for communicating with the build machine. + Use `ssh-ng` if your remote builder and your + local Nix version support that improved protocol. + + Use `null` when trying to change the special localhost builder + without a protocol which is for example used by hydra. + ''; + }; + system = mkOption { + type = types.nullOr types.str; + default = null; + example = "x86_64-linux"; + description = lib.mdDoc '' + The system type the build machine can execute derivations on. + Either this attribute or {var}`systems` must be + present, where {var}`system` takes precedence if + both are set. + ''; + }; + systems = mkOption { + type = types.listOf types.str; + default = [ ]; + example = [ "x86_64-linux" "aarch64-linux" ]; + description = lib.mdDoc '' + The system types the build machine can execute derivations on. + Either this attribute or {var}`system` must be + present, where {var}`system` takes precedence if + both are set. + ''; + }; + sshUser = mkOption { + type = types.nullOr types.str; + default = null; + example = "builder"; + description = lib.mdDoc '' + The username to log in as on the remote host. This user must be + able to log in and run nix commands non-interactively. It must + also be privileged to build derivations, so must be included in + {option}`nix.settings.trusted-users`. + ''; + }; + sshKey = mkOption { + type = types.nullOr types.str; + default = null; + example = "/root/.ssh/id_buildhost_builduser"; + description = lib.mdDoc '' + The path to the SSH private key with which to authenticate on + the build machine. The private key must not have a passphrase. + If null, the building user (root on NixOS machines) must have an + appropriate ssh configuration to log in non-interactively. + + Note that for security reasons, this path must point to a file + in the local filesystem, *not* to the nix store. + ''; + }; + maxJobs = mkOption { + type = types.int; + default = 1; + description = lib.mdDoc '' + The number of concurrent jobs the build machine supports. The + build machine will enforce its own limits, but this allows hydra + to schedule better since there is no work-stealing between build + machines. + ''; + }; + speedFactor = mkOption { + type = types.int; + default = 1; + description = lib.mdDoc '' + The relative speed of this builder. This is an arbitrary integer + that indicates the speed of this builder, relative to other + builders. Higher is faster. + ''; + }; + mandatoryFeatures = mkOption { + type = types.listOf types.str; + default = [ ]; + example = [ "big-parallel" ]; + description = lib.mdDoc '' + A list of features mandatory for this builder. The builder will + be ignored for derivations that don't require all features in + this list. All mandatory features are automatically included in + {var}`supportedFeatures`. + ''; + }; + supportedFeatures = mkOption { + type = types.listOf types.str; + default = [ ]; + example = [ "kvm" "big-parallel" ]; + description = lib.mdDoc '' + A list of features supported by this builder. The builder will + be ignored for derivations that require features not in this + list. + ''; + }; + publicHostKey = mkOption { + type = types.nullOr types.str; + default = null; + description = lib.mdDoc '' + The (base64-encoded) public host key of this builder. The field + is calculated via {command}`base64 -w0 /etc/ssh/ssh_host_type_key.pub`. + If null, SSH will use its regular known-hosts file when connecting. + ''; + }; + }; + }); + default = [ ]; + description = lib.mdDoc '' + This option lists the machines to be used if distributed builds are + enabled (see {option}`nix.distributedBuilds`). + Nix will perform derivations on those machines via SSH by copying the + inputs to the Nix store on the remote machine, starting the build, + then copying the output back to the local Nix store. + ''; + }; + + distributedBuilds = mkOption { + type = types.bool; + default = false; + description = lib.mdDoc '' + Whether to distribute builds to the machines listed in + {option}`nix.buildMachines`. + ''; + }; + }; + }; + + # distributedBuilds does *not* inhibit /etc/machines generation; caller may + # override that nix option. + config = mkIf cfg.enable { + assertions = + let badMachine = m: m.system == null && m.systems == [ ]; + in + [ + { + assertion = !(any badMachine cfg.buildMachines); + message = '' + At least one system type (via system or + systems) must be set for every build machine. + Invalid machine specifications: + '' + " " + + (concatStringsSep "\n " + (map (m: m.hostName) + (filter (badMachine) cfg.buildMachines))); + } + ]; + + # List of machines for distributed Nix builds + environment.etc."nix/machines" = + mkIf (cfg.buildMachines != [ ]) { + text = buildMachinesText; + }; + + # Legacy configuration conversion. + nix.settings = mkIf (!cfg.distributedBuilds) { builders = null; }; + }; +} diff --git a/third_party/nixpkgs/nixos/modules/config/nix.nix b/third_party/nixpkgs/nixos/modules/config/nix.nix new file mode 100644 index 0000000000..cee4f54db0 --- /dev/null +++ b/third_party/nixpkgs/nixos/modules/config/nix.nix @@ -0,0 +1,379 @@ +/* + Manages /etc/nix.conf. + + See also + - ./nix-channel.nix + - ./nix-flakes.nix + - ./nix-remote-build.nix + - nixos/modules/services/system/nix-daemon.nix + */ +{ config, lib, pkgs, ... }: + +let + inherit (lib) + concatStringsSep + boolToString + escape + floatToString + getVersion + isBool + isDerivation + isFloat + isInt + isList + isString + literalExpression + mapAttrsToList + mkAfter + mkDefault + mkIf + mkOption + mkRenamedOptionModuleWith + optionalString + optionals + strings + systems + toPretty + types + versionAtLeast + ; + + cfg = config.nix; + + nixPackage = cfg.package.out; + + isNixAtLeast = versionAtLeast (getVersion nixPackage); + + legacyConfMappings = { + useSandbox = "sandbox"; + buildCores = "cores"; + maxJobs = "max-jobs"; + sandboxPaths = "extra-sandbox-paths"; + binaryCaches = "substituters"; + trustedBinaryCaches = "trusted-substituters"; + binaryCachePublicKeys = "trusted-public-keys"; + autoOptimiseStore = "auto-optimise-store"; + requireSignedBinaryCaches = "require-sigs"; + trustedUsers = "trusted-users"; + allowedUsers = "allowed-users"; + systemFeatures = "system-features"; + }; + + semanticConfType = with types; + let + confAtom = nullOr + (oneOf [ + bool + int + float + str + path + package + ]) // { + description = "Nix config atom (null, bool, int, float, str, path or package)"; + }; + in + attrsOf (either confAtom (listOf confAtom)); + + nixConf = + assert isNixAtLeast "2.2"; + let + + mkValueString = v: + if v == null then "" + else if isInt v then toString v + else if isBool v then boolToString v + else if isFloat v then floatToString v + else if isList v then toString v + else if isDerivation v then toString v + else if builtins.isPath v then toString v + else if isString v then v + else if strings.isConvertibleWithToString v then toString v + else abort "The nix conf value: ${toPretty {} v} can not be encoded"; + + mkKeyValue = k: v: "${escape [ "=" ] k} = ${mkValueString v}"; + + mkKeyValuePairs = attrs: concatStringsSep "\n" (mapAttrsToList mkKeyValue attrs); + + in + pkgs.writeTextFile { + name = "nix.conf"; + text = '' + # WARNING: this file is generated from the nix.* options in + # your NixOS configuration, typically + # /etc/nixos/configuration.nix. Do not edit it! + ${mkKeyValuePairs cfg.settings} + ${cfg.extraOptions} + ''; + checkPhase = lib.optionalString cfg.checkConfig ( + if pkgs.stdenv.hostPlatform != pkgs.stdenv.buildPlatform then '' + echo "Ignoring validation for cross-compilation" + '' + else '' + echo "Validating generated nix.conf" + ln -s $out ./nix.conf + set -e + set +o pipefail + NIX_CONF_DIR=$PWD \ + ${cfg.package}/bin/nix show-config ${optionalString (isNixAtLeast "2.3pre") "--no-net"} \ + ${optionalString (isNixAtLeast "2.4pre") "--option experimental-features nix-command"} \ + |& sed -e 's/^warning:/error:/' \ + | (! grep '${if cfg.checkAllErrors then "^error:" else "^error: unknown setting"}') + set -o pipefail + ''); + }; + +in +{ + imports = [ + (mkRenamedOptionModuleWith { sinceRelease = 2003; from = [ "nix" "useChroot" ]; to = [ "nix" "useSandbox" ]; }) + (mkRenamedOptionModuleWith { sinceRelease = 2003; from = [ "nix" "chrootDirs" ]; to = [ "nix" "sandboxPaths" ]; }) + ] ++ + mapAttrsToList + (oldConf: newConf: + mkRenamedOptionModuleWith { + sinceRelease = 2205; + from = [ "nix" oldConf ]; + to = [ "nix" "settings" newConf ]; + }) + legacyConfMappings; + + options = { + nix = { + checkConfig = mkOption { + type = types.bool; + default = true; + description = lib.mdDoc '' + If enabled, checks that Nix can parse the generated nix.conf. + ''; + }; + + checkAllErrors = mkOption { + type = types.bool; + default = true; + description = lib.mdDoc '' + If enabled, checks the nix.conf parsing for any kind of error. When disabled, checks only for unknown settings. + ''; + }; + + extraOptions = mkOption { + type = types.lines; + default = ""; + example = '' + keep-outputs = true + keep-derivations = true + ''; + description = lib.mdDoc "Additional text appended to {file}`nix.conf`."; + }; + + settings = mkOption { + type = types.submodule { + freeformType = semanticConfType; + + options = { + max-jobs = mkOption { + type = types.either types.int (types.enum [ "auto" ]); + default = "auto"; + example = 64; + description = lib.mdDoc '' + This option defines the maximum number of jobs that Nix will try to + build in parallel. The default is auto, which means it will use all + available logical cores. It is recommend to set it to the total + number of logical cores in your system (e.g., 16 for two CPUs with 4 + cores each and hyper-threading). + ''; + }; + + auto-optimise-store = mkOption { + type = types.bool; + default = false; + example = true; + description = lib.mdDoc '' + If set to true, Nix automatically detects files in the store that have + identical contents, and replaces them with hard links to a single copy. + This saves disk space. If set to false (the default), you can still run + nix-store --optimise to get rid of duplicate files. + ''; + }; + + cores = mkOption { + type = types.int; + default = 0; + example = 64; + description = lib.mdDoc '' + This option defines the maximum number of concurrent tasks during + one build. It affects, e.g., -j option for make. + The special value 0 means that the builder should use all + available CPU cores in the system. Some builds may become + non-deterministic with this option; use with care! Packages will + only be affected if enableParallelBuilding is set for them. + ''; + }; + + sandbox = mkOption { + type = types.either types.bool (types.enum [ "relaxed" ]); + default = true; + description = lib.mdDoc '' + If set, Nix will perform builds in a sandboxed environment that it + will set up automatically for each build. This prevents impurities + in builds by disallowing access to dependencies outside of the Nix + store by using network and mount namespaces in a chroot environment. + + This is enabled by default even though it has a possible performance + impact due to the initial setup time of a sandbox for each build. It + doesn't affect derivation hashes, so changing this option will not + trigger a rebuild of packages. + + When set to "relaxed", this option permits derivations that set + `__noChroot = true;` to run outside of the sandboxed environment. + Exercise caution when using this mode of operation! It is intended to + be a quick hack when building with packages that are not easily setup + to be built reproducibly. + ''; + }; + + extra-sandbox-paths = mkOption { + type = types.listOf types.str; + default = [ ]; + example = [ "/dev" "/proc" ]; + description = lib.mdDoc '' + Directories from the host filesystem to be included + in the sandbox. + ''; + }; + + substituters = mkOption { + type = types.listOf types.str; + description = lib.mdDoc '' + List of binary cache URLs used to obtain pre-built binaries + of Nix packages. + + By default https://cache.nixos.org/ is added. + ''; + }; + + trusted-substituters = mkOption { + type = types.listOf types.str; + default = [ ]; + example = [ "https://hydra.nixos.org/" ]; + description = lib.mdDoc '' + List of binary cache URLs that non-root users can use (in + addition to those specified using + {option}`nix.settings.substituters`) by passing + `--option binary-caches` to Nix commands. + ''; + }; + + require-sigs = mkOption { + type = types.bool; + default = true; + description = lib.mdDoc '' + If enabled (the default), Nix will only download binaries from binary caches if + they are cryptographically signed with any of the keys listed in + {option}`nix.settings.trusted-public-keys`. If disabled, signatures are neither + required nor checked, so it's strongly recommended that you use only + trustworthy caches and https to prevent man-in-the-middle attacks. + ''; + }; + + trusted-public-keys = mkOption { + type = types.listOf types.str; + example = [ "hydra.nixos.org-1:CNHJZBh9K4tP3EKF6FkkgeVYsS3ohTl+oS0Qa8bezVs=" ]; + description = lib.mdDoc '' + List of public keys used to sign binary caches. If + {option}`nix.settings.trusted-public-keys` is enabled, + then Nix will use a binary from a binary cache if and only + if it is signed by *any* of the keys + listed here. By default, only the key for + `cache.nixos.org` is included. + ''; + }; + + trusted-users = mkOption { + type = types.listOf types.str; + default = [ "root" ]; + example = [ "root" "alice" "@wheel" ]; + description = lib.mdDoc '' + A list of names of users that have additional rights when + connecting to the Nix daemon, such as the ability to specify + additional binary caches, or to import unsigned NARs. You + can also specify groups by prefixing them with + `@`; for instance, + `@wheel` means all users in the wheel + group. + ''; + }; + + system-features = mkOption { + type = types.listOf types.str; + example = [ "kvm" "big-parallel" "gccarch-skylake" ]; + description = lib.mdDoc '' + The set of features supported by the machine. Derivations + can express dependencies on system features through the + `requiredSystemFeatures` attribute. + + By default, pseudo-features `nixos-test`, `benchmark`, + and `big-parallel` used in Nixpkgs are set, `kvm` + is also included if it is available. + ''; + }; + + allowed-users = mkOption { + type = types.listOf types.str; + default = [ "*" ]; + example = [ "@wheel" "@builders" "alice" "bob" ]; + description = lib.mdDoc '' + A list of names of users (separated by whitespace) that are + allowed to connect to the Nix daemon. As with + {option}`nix.settings.trusted-users`, you can specify groups by + prefixing them with `@`. Also, you can + allow all users by specifying `*`. The + default is `*`. Note that trusted users are + always allowed to connect. + ''; + }; + }; + }; + default = { }; + example = literalExpression '' + { + use-sandbox = true; + show-trace = true; + + system-features = [ "big-parallel" "kvm" "recursive-nix" ]; + sandbox-paths = { "/bin/sh" = "''${pkgs.busybox-sandbox-shell.out}/bin/busybox"; }; + } + ''; + description = lib.mdDoc '' + Configuration for Nix, see + or + {manpage}`nix.conf(5)` for available options. + The value declared here will be translated directly to the key-value pairs Nix expects. + + You can use {command}`nix-instantiate --eval --strict '' -A config.nix.settings` + to view the current value. By default it is empty. + + Nix configurations defined under {option}`nix.*` will be translated and applied to this + option. In addition, configuration specified in {option}`nix.extraOptions` will be appended + verbatim to the resulting config file. + ''; + }; + }; + }; + + config = mkIf cfg.enable { + environment.etc."nix/nix.conf".source = nixConf; + nix.settings = { + trusted-public-keys = [ "cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY=" ]; + substituters = mkAfter [ "https://cache.nixos.org/" ]; + system-features = mkDefault ( + [ "nixos-test" "benchmark" "big-parallel" "kvm" ] ++ + optionals (pkgs.stdenv.hostPlatform ? gcc.arch) ( + # a builder can run code for `gcc.arch` and inferior architectures + [ "gccarch-${pkgs.stdenv.hostPlatform.gcc.arch}" ] ++ + map (x: "gccarch-${x}") (systems.architectures.inferiors.${pkgs.stdenv.hostPlatform.gcc.arch} or []) + ) + ); + }; + }; +} diff --git a/third_party/nixpkgs/nixos/modules/config/no-x-libs.nix b/third_party/nixpkgs/nixos/modules/config/no-x-libs.nix index dac09bdf46..f8622be59a 100644 --- a/third_party/nixpkgs/nixos/modules/config/no-x-libs.nix +++ b/third_party/nixpkgs/nixos/modules/config/no-x-libs.nix @@ -26,7 +26,12 @@ with lib; fonts.fontconfig.enable = false; - nixpkgs.overlays = singleton (const (super: { + nixpkgs.overlays = singleton (self: super: let + packageOverrides = const (python-prev: { + # tk feature requires wayland which fails to compile + matplotlib = python-prev.matplotlib.override { enableGtk3 = false; enableTk = false; enableQt = false; }; + }); + in { beam = super.beam_nox; cairo = super.cairo.override { x11Support = false; }; dbus = super.dbus.override { x11Support = false; }; @@ -38,7 +43,9 @@ with lib; gpsd = super.gpsd.override { guiSupport = false; }; graphviz = super.graphviz-nox; gst_all_1 = super.gst_all_1 // { - gst-plugins-base = super.gst_all_1.gst-plugins-base.override { enableX11 = false; }; + gst-plugins-bad = super.gst_all_1.gst-plugins-bad.override { guiSupport = false; }; + gst-plugins-base = super.gst_all_1.gst-plugins-base.override { enableWayland = false; enableX11 = false; }; + gst-plugins-good = super.gst_all_1.gst-plugins-good.override { enableX11 = false; }; }; imagemagick = super.imagemagick.override { libX11Support = false; libXtSupport = false; }; imagemagickBig = super.imagemagickBig.override { libX11Support = false; libXtSupport = false; }; @@ -60,6 +67,8 @@ with lib; pango = super.pango.override { x11Support = false; }; pinentry = super.pinentry.override { enabledFlavors = [ "curses" "tty" "emacs" ]; withLibsecret = false; }; pipewire = super.pipewire.override { x11Support = false; }; + python3 = super.python3.override { inherit packageOverrides; }; + python3Packages = self.python3.pkgs; # required otherwise overlays from above are not forwarded qemu = super.qemu.override { gtkSupport = false; spiceSupport = false; sdlSupport = false; }; qrencode = super.qrencode.overrideAttrs (_: { doCheck = false; }); qt5 = super.qt5.overrideScope (const (super': { @@ -70,6 +79,6 @@ with lib; util-linux = super.util-linux.override { translateManpages = false; }; vim-full = super.vim-full.override { guiSupport = false; }; zbar = super.zbar.override { enableVideo = false; withXorg = false; }; - })); + }); }; } diff --git a/third_party/nixpkgs/nixos/modules/config/qt.nix b/third_party/nixpkgs/nixos/modules/config/qt.nix index 6405166920..cf4e9621d7 100644 --- a/third_party/nixpkgs/nixos/modules/config/qt.nix +++ b/third_party/nixpkgs/nixos/modules/config/qt.nix @@ -20,7 +20,7 @@ let pkgs.adwaita-qt6 ] else if isQtStyle then [ pkgs.libsForQt5.qtstyleplugins ] - else if isQt5ct then [ pkgs.libsForQt5.qt5ct ] + else if isQt5ct then [ pkgs.libsForQt5.qt5ct pkgs.qt6Packages.qt6ct ] else if isLxqt then [ pkgs.lxqt.lxqt-qtplugin pkgs.lxqt.lxqt-config ] else if isKde then [ pkgs.libsForQt5.plasma-integration pkgs.libsForQt5.systemsettings ] else throw "`qt.platformTheme` ${cfg.platformTheme} and `qt.style` ${cfg.style} are not compatible."; diff --git a/third_party/nixpkgs/nixos/modules/config/swap.nix b/third_party/nixpkgs/nixos/modules/config/swap.nix index 0a7e45bffb..8989a64082 100644 --- a/third_party/nixpkgs/nixos/modules/config/swap.nix +++ b/third_party/nixpkgs/nixos/modules/config/swap.nix @@ -252,6 +252,11 @@ in let realDevice' = escapeSystemdPath sw.realDevice; in nameValuePair "mkswap-${sw.deviceName}" { description = "Initialisation of swap device ${sw.device}"; + # The mkswap service fails for file-backed swap devices if the + # loop module has not been loaded before the service runs. + # We add an ordering constraint to run after systemd-modules-load to + # avoid this race condition. + after = [ "systemd-modules-load.service" ]; wantedBy = [ "${realDevice'}.swap" ]; before = [ "${realDevice'}.swap" ]; path = [ pkgs.util-linux pkgs.e2fsprogs ] diff --git a/third_party/nixpkgs/nixos/modules/config/sysctl.nix b/third_party/nixpkgs/nixos/modules/config/sysctl.nix index 4346c88f76..0bc7ab9667 100644 --- a/third_party/nixpkgs/nixos/modules/config/sysctl.nix +++ b/third_party/nixpkgs/nixos/modules/config/sysctl.nix @@ -72,5 +72,8 @@ in # Disable YAMA by default to allow easy debugging. boot.kernel.sysctl."kernel.yama.ptrace_scope" = mkDefault 0; + # Improve compatibility with applications that allocate + # a lot of memory, like modern games + boot.kernel.sysctl."vm.max_map_count" = mkDefault 1048576; }; } diff --git a/third_party/nixpkgs/nixos/modules/config/update-users-groups.pl b/third_party/nixpkgs/nixos/modules/config/update-users-groups.pl index 54352a517a..75c343523e 100644 --- a/third_party/nixpkgs/nixos/modules/config/update-users-groups.pl +++ b/third_party/nixpkgs/nixos/modules/config/update-users-groups.pl @@ -147,7 +147,7 @@ foreach my $g (@{$spec->{groups}}) { if (defined $existing) { $g->{gid} = $existing->{gid} if !defined $g->{gid}; if ($g->{gid} != $existing->{gid}) { - dry_print("warning: not applying", "warning: would not apply", "GID change of group ‘$name’ ($existing->{gid} -> $g->{gid})"); + dry_print("warning: not applying", "warning: would not apply", "GID change of group ‘$name’ ($existing->{gid} -> $g->{gid}) in /etc/group"); $g->{gid} = $existing->{gid}; } $g->{password} = $existing->{password}; # do we want this? @@ -209,7 +209,7 @@ foreach my $u (@{$spec->{users}}) { if (defined $existing) { $u->{uid} = $existing->{uid} if !defined $u->{uid}; if ($u->{uid} != $existing->{uid}) { - dry_print("warning: not applying", "warning: would not apply", "UID change of user ‘$name’ ($existing->{uid} -> $u->{uid})"); + dry_print("warning: not applying", "warning: would not apply", "UID change of user ‘$name’ ($existing->{uid} -> $u->{uid}) in /etc/passwd"); $u->{uid} = $existing->{uid}; } } else { diff --git a/third_party/nixpkgs/nixos/modules/config/users-groups.nix b/third_party/nixpkgs/nixos/modules/config/users-groups.nix index d1e9c8072e..4c9e286ea5 100644 --- a/third_party/nixpkgs/nixos/modules/config/users-groups.nix +++ b/third_party/nixpkgs/nixos/modules/config/users-groups.nix @@ -539,14 +539,12 @@ in { # systemd initrd boot.initrd.systemd.users = mkOption { - visible = false; description = '' Users to include in initrd. ''; default = {}; type = types.attrsOf (types.submodule ({ name, ... }: { options.uid = mkOption { - visible = false; type = types.int; description = '' ID of the user in initrd. @@ -555,7 +553,6 @@ in { default = cfg.users.${name}.uid; }; options.group = mkOption { - visible = false; type = types.singleLineStr; description = '' Group the user belongs to in initrd. @@ -567,14 +564,12 @@ in { }; boot.initrd.systemd.groups = mkOption { - visible = false; description = '' Groups to include in initrd. ''; default = {}; type = types.attrsOf (types.submodule ({ name, ... }: { options.gid = mkOption { - visible = false; type = types.int; description = '' ID of the group in initrd. @@ -652,7 +647,7 @@ in { deps = [ "users" ]; text = '' users=() - while IFS=: read -r user hash tail; do + while IFS=: read -r user hash _; do if [[ "$hash" = "$"* && ! "$hash" =~ ^\''$${cryptSchemeIdPatternGroup}\$ ]]; then users+=("$user") fi diff --git a/third_party/nixpkgs/nixos/modules/hardware/all-firmware.nix b/third_party/nixpkgs/nixos/modules/hardware/all-firmware.nix index 7524728636..9e7a01c58a 100644 --- a/third_party/nixpkgs/nixos/modules/hardware/all-firmware.nix +++ b/third_party/nixpkgs/nixos/modules/hardware/all-firmware.nix @@ -55,7 +55,6 @@ in { intel2200BGFirmware rtl8192su-firmware rt5677-firmware - rtl8723bs-firmware rtl8761b-firmware rtw88-firmware zd1211fw diff --git a/third_party/nixpkgs/nixos/modules/hardware/i2c.nix b/third_party/nixpkgs/nixos/modules/hardware/i2c.nix index c0423cc5d9..9a5a2e4481 100644 --- a/third_party/nixpkgs/nixos/modules/hardware/i2c.nix +++ b/third_party/nixpkgs/nixos/modules/hardware/i2c.nix @@ -1,4 +1,4 @@ -{ config, lib, ... }: +{ config, lib, pkgs, ... }: with lib; @@ -31,10 +31,14 @@ in i2c = { }; }; - services.udev.extraRules = '' - # allow group ${cfg.group} and users with a seat use of i2c devices - ACTION=="add", KERNEL=="i2c-[0-9]*", TAG+="uaccess", GROUP="${cfg.group}", MODE="660" - ''; + services.udev.packages = lib.singleton (pkgs.writeTextFile + { name = "i2c-udev-rules"; + text = '' + # allow group ${cfg.group} and users with a seat use of i2c devices + ACTION=="add", KERNEL=="i2c-[0-9]*", TAG+="uaccess", GROUP="${cfg.group}", MODE="660" + ''; + destination = "/etc/udev/rules.d/70-i2c.rules"; + }); }; diff --git a/third_party/nixpkgs/nixos/modules/hardware/opengl.nix b/third_party/nixpkgs/nixos/modules/hardware/opengl.nix index 9108bcbd16..0ff018ddc4 100644 --- a/third_party/nixpkgs/nixos/modules/hardware/opengl.nix +++ b/third_party/nixpkgs/nixos/modules/hardware/opengl.nix @@ -87,13 +87,13 @@ in extraPackages = mkOption { type = types.listOf types.package; default = []; - example = literalExpression "with pkgs; [ intel-media-driver intel-ocl vaapiIntel ]"; + example = literalExpression "with pkgs; [ intel-media-driver intel-ocl intel-vaapi-driver ]"; description = lib.mdDoc '' Additional packages to add to OpenGL drivers. This can be used to add OpenCL drivers, VA-API/VDPAU drivers etc. ::: {.note} - intel-media-driver supports hardware Broadwell (2014) or newer. Older hardware should use the mostly unmaintained vaapiIntel driver. + intel-media-driver supports hardware Broadwell (2014) or newer. Older hardware should use the mostly unmaintained intel-vaapi-driver driver. ::: ''; }; @@ -101,13 +101,13 @@ in extraPackages32 = mkOption { type = types.listOf types.package; default = []; - example = literalExpression "with pkgs.pkgsi686Linux; [ intel-media-driver vaapiIntel ]"; + example = literalExpression "with pkgs.pkgsi686Linux; [ intel-media-driver intel-vaapi-driver ]"; description = lib.mdDoc '' Additional packages to add to 32-bit OpenGL drivers on 64-bit systems. Used when {option}`driSupport32Bit` is set. This can be used to add OpenCL drivers, VA-API/VDPAU drivers etc. ::: {.note} - intel-media-driver supports hardware Broadwell (2014) or newer. Older hardware should use the mostly unmaintained vaapiIntel driver. + intel-media-driver supports hardware Broadwell (2014) or newer. Older hardware should use the mostly unmaintained intel-vaapi-driver driver. ::: ''; }; diff --git a/third_party/nixpkgs/nixos/modules/hardware/video/displaylink.nix b/third_party/nixpkgs/nixos/modules/hardware/video/displaylink.nix index 912f53da83..ce5fbeeae5 100644 --- a/third_party/nixpkgs/nixos/modules/hardware/video/displaylink.nix +++ b/third_party/nixpkgs/nixos/modules/hardware/video/displaylink.nix @@ -26,6 +26,7 @@ in Identifier "DisplayLink" MatchDriver "evdi" Driver "modesetting" + Option "TearFree" "true" Option "AccelMethod" "none" EndSection ''; diff --git a/third_party/nixpkgs/nixos/modules/hardware/video/nvidia.nix b/third_party/nixpkgs/nixos/modules/hardware/video/nvidia.nix index 592d11d647..e72194653f 100644 --- a/third_party/nixpkgs/nixos/modules/hardware/video/nvidia.nix +++ b/third_party/nixpkgs/nixos/modules/hardware/video/nvidia.nix @@ -265,7 +265,7 @@ in { assertion = primeEnabled -> pCfg.nvidiaBusId != "" && (pCfg.intelBusId != "" || pCfg.amdgpuBusId != ""); message = '' - When NVIDIA PRIME is enabled, the GPU bus IDs must configured. + When NVIDIA PRIME is enabled, the GPU bus IDs must be configured. ''; } diff --git a/third_party/nixpkgs/nixos/modules/installer/cd-dvd/installation-cd-graphical-gnome.nix b/third_party/nixpkgs/nixos/modules/installer/cd-dvd/installation-cd-graphical-gnome.nix index 573b31b439..ea8056ff87 100644 --- a/third_party/nixpkgs/nixos/modules/installer/cd-dvd/installation-cd-graphical-gnome.nix +++ b/third_party/nixpkgs/nixos/modules/installer/cd-dvd/installation-cd-graphical-gnome.nix @@ -6,6 +6,7 @@ imports = [ ./installation-cd-graphical-base.nix ]; isoImage.edition = "gnome"; + isoImage.graphicalGrub = true; services.xserver.desktopManager.gnome = { # Add Firefox and other tools useful for installation to the launcher diff --git a/third_party/nixpkgs/nixos/modules/installer/cd-dvd/iso-image.nix b/third_party/nixpkgs/nixos/modules/installer/cd-dvd/iso-image.nix index f9cbafc286..c430048d65 100644 --- a/third_party/nixpkgs/nixos/modules/installer/cd-dvd/iso-image.nix +++ b/third_party/nixpkgs/nixos/modules/installer/cd-dvd/iso-image.nix @@ -283,7 +283,7 @@ let cat < $out/EFI/boot/grub.cfg set with_fonts=false - set textmode=false + set textmode=${boolToString (!config.isoImage.graphicalGrub)} # If you want to use serial for "terminal_*" commands, you need to set one up: # Example manual configuration: # → serial --unit=0 --speed=115200 --word=8 --parity=no --stop=1 @@ -658,6 +658,16 @@ in ''; }; + isoImage.graphicalGrub = mkOption { + default = false; + type = types.bool; + example = true; + description = lib.mdDoc '' + Whether to use textmode or graphical grub. + false means we use textmode grub. + ''; + }; + }; # store them in lib so we can mkImageMediaOverride the diff --git a/third_party/nixpkgs/nixos/modules/installer/netboot/netboot.nix b/third_party/nixpkgs/nixos/modules/installer/netboot/netboot.nix index a55c0ab2d6..a50f22cbe4 100644 --- a/third_party/nixpkgs/nixos/modules/installer/netboot/netboot.nix +++ b/third_party/nixpkgs/nixos/modules/installer/netboot/netboot.nix @@ -39,9 +39,7 @@ with lib; # !!! Hack - attributes expected by other modules. environment.systemPackages = [ pkgs.grub2_efi ] - ++ (if pkgs.stdenv.hostPlatform.system == "aarch64-linux" - then [] - else [ pkgs.grub2 pkgs.syslinux ]); + ++ (lib.optionals (pkgs.stdenv.hostPlatform.system != "aarch64-linux") [pkgs.grub2 pkgs.syslinux]); fileSystems."/" = mkImageMediaOverride { fsType = "tmpfs"; diff --git a/third_party/nixpkgs/nixos/modules/installer/tools/nix-fallback-paths.nix b/third_party/nixpkgs/nixos/modules/installer/tools/nix-fallback-paths.nix index 1058a34133..582334a5ae 100644 --- a/third_party/nixpkgs/nixos/modules/installer/tools/nix-fallback-paths.nix +++ b/third_party/nixpkgs/nixos/modules/installer/tools/nix-fallback-paths.nix @@ -1,7 +1,7 @@ { - x86_64-linux = "/nix/store/mc43d38fibi94pp5crfwacl5gbslccd0-nix-2.13.3"; - i686-linux = "/nix/store/09m966pj26cgd4ihlg8ihl1106j3vih8-nix-2.13.3"; - aarch64-linux = "/nix/store/7f191d125akld27gc6jl0r13l8pl7x0h-nix-2.13.3"; - x86_64-darwin = "/nix/store/1wn9jkvi2zqfjnjgg7lnp30r2q2y8whd-nix-2.13.3"; - aarch64-darwin = "/nix/store/8w0v2mffa10chrf1h66cbvbpw86qmh85-nix-2.13.3"; + x86_64-linux = "/nix/store/ny9r65799s7xhp605bc2753sjvzkxrrs-nix-2.15.1"; + i686-linux = "/nix/store/ck55dz5klc7szi8rx9ghhm8gi2b5q5bw-nix-2.15.1"; + aarch64-linux = "/nix/store/cl0a02vr28913dgw98hrm45a4baqr3z1-nix-2.15.1"; + x86_64-darwin = "/nix/store/wq228jdbz16pp2lnxf32n8dv27pw53p8-nix-2.15.1"; + aarch64-darwin = "/nix/store/x11cpsjg4q236msfz5scc325pfp9xy64-nix-2.15.1"; } diff --git a/third_party/nixpkgs/nixos/modules/installer/tools/nixos-generate-config.pl b/third_party/nixpkgs/nixos/modules/installer/tools/nixos-generate-config.pl index 5d3d0216d2..7d0c5898e2 100644 --- a/third_party/nixpkgs/nixos/modules/installer/tools/nixos-generate-config.pl +++ b/third_party/nixpkgs/nixos/modules/installer/tools/nixos-generate-config.pl @@ -85,7 +85,7 @@ sub debug { # nixpkgs.system -push @attrs, "nixpkgs.hostPlatform = lib.mkDefault \"@system@\";"; +push @attrs, "nixpkgs.hostPlatform = lib.mkDefault \"@hostPlatformSystem@\";"; my $cpuinfo = read_file "/proc/cpuinfo"; @@ -335,7 +335,7 @@ sub findStableDevPath { my $st = stat($dev) or return $dev; - foreach my $dev2 (glob("/dev/disk/by-uuid/*"), glob("/dev/mapper/*"), glob("/dev/disk/by-label/*")) { + foreach my $dev2 (glob("/dev/stratis/*/*"), glob("/dev/disk/by-uuid/*"), glob("/dev/mapper/*"), glob("/dev/disk/by-label/*")) { my $st2 = stat($dev2) or next; return $dev2 if $st->rdev == $st2->rdev; } @@ -381,6 +381,7 @@ sub in { my $fileSystems; my %fsByDev; +my $useSwraid = 0; foreach my $fs (read_file("/proc/self/mountinfo")) { chomp $fs; my @fields = split / /, $fs; @@ -467,6 +468,17 @@ EOF } } + # is this a stratis fs? + my $stableDevPath = findStableDevPath $device; + my $stratisPool; + if ($stableDevPath =~ qr#/dev/stratis/(.*)/.*#) { + my $poolName = $1; + my ($header, @lines) = split "\n", qx/stratis pool list/; + my $uuidIndex = index $header, 'UUID'; + my ($line) = grep /^$poolName /, @lines; + $stratisPool = substr $line, $uuidIndex - 32, 36; + } + # Don't emit tmpfs entry for /tmp, because it most likely comes from the # boot.tmp.useTmpfs option in configuration.nix (managed declaratively). next if ($mountPoint eq "/tmp" && $fsType eq "tmpfs"); @@ -474,7 +486,7 @@ EOF # Emit the filesystem. $fileSystems .= < 'quiet') =~ /^CRYPT-LUKS/) + my $dmUuid = read_file("/sys/class/block/$deviceName/dm/uuid", err_mode => 'quiet'); + if ($dmUuid =~ /^CRYPT-LUKS/) { my @slaves = glob("/sys/class/block/$deviceName/slaves/*"); if (scalar @slaves == 1) { @@ -510,8 +528,14 @@ EOF } } } + if (-e "/sys/class/block/$deviceName/md/uuid") { + $useSwraid = 1; + } } } +if ($useSwraid) { + push @attrs, "boot.swraid.enable = true;\n\n"; +} # Generate the hardware configuration file. diff --git a/third_party/nixpkgs/nixos/modules/installer/tools/tools.nix b/third_party/nixpkgs/nixos/modules/installer/tools/tools.nix index 5133ad18f4..54b0f81ee7 100644 --- a/third_party/nixpkgs/nixos/modules/installer/tools/tools.nix +++ b/third_party/nixpkgs/nixos/modules/installer/tools/tools.nix @@ -35,17 +35,14 @@ let name = "nixos-generate-config"; src = ./nixos-generate-config.pl; perl = "${pkgs.perl.withPackages (p: [ p.FileSlurp ])}/bin/perl"; - system = pkgs.stdenv.hostPlatform.system; + hostPlatformSystem = pkgs.stdenv.hostPlatform.system; detectvirt = "${config.systemd.package}/bin/systemd-detect-virt"; btrfs = "${pkgs.btrfs-progs}/bin/btrfs"; inherit (config.system.nixos-generate-config) configuration desktopConfiguration; xserverEnabled = config.services.xserver.enable; }; - nixos-option = - if lib.versionAtLeast (lib.getVersion config.nix.package) "2.4pre" - then null - else pkgs.nixos-option; + inherit (pkgs) nixos-option; nixos-version = makeProg { name = "nixos-version"; @@ -232,9 +229,10 @@ in nixos-install nixos-rebuild nixos-generate-config + nixos-option nixos-version nixos-enter - ] ++ lib.optional (nixos-option != null) nixos-option; + ]; documentation.man.man-db.skipPackages = [ nixos-version ]; diff --git a/third_party/nixpkgs/nixos/modules/misc/documentation.nix b/third_party/nixpkgs/nixos/modules/misc/documentation.nix index 31486a2216..820450e3ce 100644 --- a/third_party/nixpkgs/nixos/modules/misc/documentation.nix +++ b/third_party/nixpkgs/nixos/modules/misc/documentation.nix @@ -107,7 +107,7 @@ let } >&2 ''; - inherit (cfg.nixos.options) warningsAreErrors allowDocBook; + inherit (cfg.nixos.options) warningsAreErrors; }; @@ -160,6 +160,9 @@ in (mkRenamedOptionModule [ "programs" "info" "enable" ] [ "documentation" "info" "enable" ]) (mkRenamedOptionModule [ "programs" "man" "enable" ] [ "documentation" "man" "enable" ]) (mkRenamedOptionModule [ "services" "nixosManual" "enable" ] [ "documentation" "nixos" "enable" ]) + (mkRemovedOptionModule + [ "documentation" "nixos" "options" "allowDocBook" ] + "DocBook option documentation is no longer supported") ]; options = { @@ -264,23 +267,6 @@ in ''; }; - nixos.options.allowDocBook = mkOption { - type = types.bool; - default = true; - description = lib.mdDoc '' - Whether to allow DocBook option docs. When set to `false` all option using - DocBook documentation will cause a manual build error; additionally a new - renderer may be used. - - ::: {.note} - The `false` setting for this option is not yet fully supported. While it - should work fine and produce the same output as the previous toolchain - using DocBook it may not work in all circumstances. Whether markdown option - documentation is allowed is independent of this option. - ::: - ''; - }; - nixos.options.warningsAreErrors = mkOption { type = types.bool; default = true; @@ -359,14 +345,6 @@ in (mkIf cfg.nixos.enable { system.build.manual = manual; - system.activationScripts.check-manual-docbook = '' - if [[ $(cat ${manual.optionsUsedDocbook}) = 1 ]]; then - echo -e "\e[31;1mwarning\e[0m: This configuration contains option documentation in docbook." \ - "Support for docbook is deprecated and will be removed after NixOS 23.05." \ - "See nix-store --read-log ${builtins.unsafeDiscardStringContext manual.optionsJSON.drvPath}" - fi - ''; - environment.systemPackages = [] ++ optional cfg.man.enable manual.manpages ++ optionals cfg.doc.enable [ manual.manualHTML nixos-help ]; diff --git a/third_party/nixpkgs/nixos/modules/misc/ids.nix b/third_party/nixpkgs/nixos/modules/misc/ids.nix index 5b278b5e80..dc59ccb357 100644 --- a/third_party/nixpkgs/nixos/modules/misc/ids.nix +++ b/third_party/nixpkgs/nixos/modules/misc/ids.nix @@ -69,7 +69,7 @@ in #dialout = 27; # unused polkituser = 28; #utmp = 29; # unused - # ddclient = 30; # converted to DynamicUser = true + # ddclient = 30; # software removed davfs2 = 31; disnix = 33; osgi = 34; @@ -394,7 +394,7 @@ in dialout = 27; #polkituser = 28; # currently unused, polkitd doesn't need a group utmp = 29; - # ddclient = 30; # converted to DynamicUser = true + # ddclient = 30; # software removed davfs2 = 31; disnix = 33; osgi = 34; diff --git a/third_party/nixpkgs/nixos/modules/misc/nixpkgs.nix b/third_party/nixpkgs/nixos/modules/misc/nixpkgs.nix index 55ec08acf4..f9d8bccea2 100644 --- a/third_party/nixpkgs/nixos/modules/misc/nixpkgs.nix +++ b/third_party/nixpkgs/nixos/modules/misc/nixpkgs.nix @@ -55,11 +55,6 @@ let description = "An evaluation of Nixpkgs; the top level attribute set of packages"; }; - # Whether `pkgs` was constructed by this module - not if nixpkgs.pkgs or - # _module.args.pkgs is set. However, determining whether _module.args.pkgs - # is defined elsewhere does not seem feasible. - constructedByMe = !opt.pkgs.isDefined; - hasBuildPlatform = opt.buildPlatform.highestPrio < (mkOptionDefault {}).priority; hasHostPlatform = opt.hostPlatform.isDefined; hasPlatform = hasHostPlatform || hasBuildPlatform; @@ -337,10 +332,28 @@ in config = { _module.args = { - pkgs = finalPkgs.__splicedPackages; + pkgs = + # We explicitly set the default override priority, so that we do not need + # to evaluate finalPkgs in case an override is placed on `_module.args.pkgs`. + # After all, to determine a definition priority, we need to evaluate `._type`, + # which is somewhat costly for Nixpkgs. With an explicit priority, we only + # evaluate the wrapper to find out that the priority is lower, and then we + # don't need to evaluate `finalPkgs`. + lib.mkOverride lib.modules.defaultOverridePriority + finalPkgs.__splicedPackages; }; - assertions = [ + assertions = let + # Whether `pkgs` was constructed by this module. This is false when any of + # nixpkgs.pkgs or _module.args.pkgs is set. + constructedByMe = + # We set it with default priority and it can not be merged, so if the + # pkgs module argument has that priority, it's from us. + (lib.modules.mergeAttrDefinitionsWithPrio options._module.args).pkgs.highestPrio + == lib.modules.defaultOverridePriority + # Although, if nixpkgs.pkgs is set, we did forward it, but we did not construct it. + && !opt.pkgs.isDefined; + in [ ( let nixosExpectedSystem = diff --git a/third_party/nixpkgs/nixos/modules/misc/version.nix b/third_party/nixpkgs/nixos/modules/misc/version.nix index 780a6b2a83..0a66eafe93 100644 --- a/third_party/nixpkgs/nixos/modules/misc/version.nix +++ b/third_party/nixpkgs/nixos/modules/misc/version.nix @@ -32,7 +32,7 @@ let VARIANT_ID = cfg.variant_id; }; - initrdReleaseContents = osReleaseContents // { + initrdReleaseContents = (removeAttrs osReleaseContents [ "BUILD_ID" ]) // { PRETTY_NAME = "${osReleaseContents.PRETTY_NAME} (Initrd)"; }; initrdRelease = pkgs.writeText "initrd-release" (attrsToText initrdReleaseContents); @@ -140,13 +140,6 @@ in ''; }; - defaultChannel = mkOption { - internal = true; - type = types.str; - default = "https://nixos.org/channels/nixos-unstable"; - description = lib.mdDoc "Default NixOS channel to which the root user is subscribed."; - }; - configurationRevision = mkOption { type = types.nullOr types.str; default = null; diff --git a/third_party/nixpkgs/nixos/modules/module-list.nix b/third_party/nixpkgs/nixos/modules/module-list.nix index ff06a72ff9..97abbe2191 100644 --- a/third_party/nixpkgs/nixos/modules/module-list.nix +++ b/third_party/nixpkgs/nixos/modules/module-list.nix @@ -16,6 +16,10 @@ ./config/malloc.nix ./config/mysql.nix ./config/networking.nix + ./config/nix.nix + ./config/nix-channel.nix + ./config/nix-flakes.nix + ./config/nix-remote-build.nix ./config/no-x-libs.nix ./config/nsswitch.nix ./config/power-management.nix @@ -156,6 +160,7 @@ ./programs/darling.nix ./programs/dconf.nix ./programs/digitalbitbox/default.nix + ./programs/direnv.nix ./programs/dmrconfig.nix ./programs/droidcam.nix ./programs/environment.nix @@ -241,7 +246,6 @@ ./programs/starship.nix ./programs/steam.nix ./programs/streamdeck-ui.nix - ./programs/sway.nix ./programs/sysdig.nix ./programs/system-config-printer.nix ./programs/systemtap.nix @@ -256,7 +260,9 @@ ./programs/usbtop.nix ./programs/vim.nix ./programs/wavemon.nix - ./programs/waybar.nix + ./programs/wayland/river.nix + ./programs/wayland/sway.nix + ./programs/wayland/waybar.nix ./programs/weylus.nix ./programs/wireshark.nix ./programs/xastir.nix @@ -327,6 +333,8 @@ ./services/audio/spotifyd.nix ./services/audio/squeezelite.nix ./services/audio/tts.nix + ./services/audio/wyoming/faster-whisper.nix + ./services/audio/wyoming/piper.nix ./services/audio/ympd.nix ./services/backup/automysqlbackup.nix ./services/backup/bacula.nix @@ -473,6 +481,7 @@ ./services/games/deliantra-server.nix ./services/games/factorio.nix ./services/games/freeciv.nix + ./services/games/mchprs.nix ./services/games/minecraft-server.nix ./services/games/minetest-server.nix ./services/games/openarena.nix @@ -622,7 +631,6 @@ ./services/misc/etcd.nix ./services/misc/etebase-server.nix ./services/misc/etesync-dav.nix - ./services/misc/exhibitor.nix ./services/misc/felix.nix ./services/misc/freeswitch.nix ./services/misc/fstrim.nix @@ -638,6 +646,7 @@ ./services/misc/greenclip.nix ./services/misc/headphones.nix ./services/misc/heisenbridge.nix + ./services/misc/homepage-dashboard.nix ./services/misc/ihaskell.nix ./services/misc/input-remapper.nix ./services/misc/irkerd.nix @@ -658,7 +667,6 @@ ./services/misc/moonraker.nix ./services/misc/n8n.nix ./services/misc/nitter.nix - ./services/misc/nix-daemon.nix ./services/misc/nix-gc.nix ./services/misc/nix-optimise.nix ./services/misc/nix-ssh-serve.nix @@ -723,6 +731,7 @@ ./services/monitoring/alerta.nix ./services/monitoring/apcupsd.nix ./services/monitoring/arbtt.nix + ./services/monitoring/below.nix ./services/monitoring/bosun.nix ./services/monitoring/cadvisor.nix ./services/monitoring/cockpit.nix @@ -751,6 +760,7 @@ ./services/monitoring/munin.nix ./services/monitoring/nagios.nix ./services/monitoring/netdata.nix + ./services/monitoring/opentelemetry-collector.nix ./services/monitoring/parsedmarc.nix ./services/monitoring/prometheus/alertmanager-irc-relay.nix ./services/monitoring/prometheus/alertmanager.nix @@ -776,6 +786,7 @@ ./services/monitoring/uptime-kuma.nix ./services/monitoring/uptime.nix ./services/monitoring/vmagent.nix + ./services/monitoring/vmalert.nix ./services/monitoring/vnstat.nix ./services/monitoring/zabbix-agent.nix ./services/monitoring/zabbix-proxy.nix @@ -806,6 +817,7 @@ ./services/network-filesystems/xtreemfs.nix ./services/network-filesystems/yandex-disk.nix ./services/networking/3proxy.nix + ./services/networking/acme-dns.nix ./services/networking/adguardhome.nix ./services/networking/alice-lg.nix ./services/networking/amuled.nix @@ -842,7 +854,6 @@ ./services/networking/create_ap.nix ./services/networking/croc.nix ./services/networking/dante.nix - ./services/networking/ddclient.nix ./services/networking/dhcpcd.nix ./services/networking/dhcpd.nix ./services/networking/dnscache.nix @@ -911,6 +922,7 @@ ./services/networking/knot.nix ./services/networking/kresd.nix ./services/networking/lambdabot.nix + ./services/networking/legit.nix ./services/networking/libreswan.nix ./services/networking/lldpd.nix ./services/networking/logmein-hamachi.nix @@ -1006,6 +1018,8 @@ ./services/networking/shorewall.nix ./services/networking/shorewall6.nix ./services/networking/shout.nix + ./services/networking/sing-box.nix + ./services/networking/sitespeed-io.nix ./services/networking/skydns.nix ./services/networking/smartdns.nix ./services/networking/smokeping.nix @@ -1045,6 +1059,7 @@ ./services/networking/tox-node.nix ./services/networking/toxvpn.nix ./services/networking/trickster.nix + ./services/networking/trust-dns.nix ./services/networking/tvheadend.nix ./services/networking/twingate.nix ./services/networking/ucarp.nix @@ -1095,6 +1110,7 @@ ./services/security/clamav.nix ./services/security/endlessh-go.nix ./services/security/endlessh.nix + ./services/security/esdm.nix ./services/security/fail2ban.nix ./services/security/fprintd.nix ./services/security/haka.nix @@ -1133,6 +1149,7 @@ ./services/system/earlyoom.nix ./services/system/kerberos/default.nix ./services/system/localtimed.nix + ./services/system/nix-daemon.nix ./services/system/nscd.nix ./services/system/saslauthd.nix ./services/system/self-deploy.nix @@ -1160,6 +1177,7 @@ ./services/wayland/cage.nix ./services/web-apps/akkoma.nix ./services/web-apps/alps.nix + ./services/web-apps/anuko-time-tracker.nix ./services/web-apps/atlassian/confluence.nix ./services/web-apps/atlassian/crowd.nix ./services/web-apps/atlassian/jira.nix @@ -1183,8 +1201,11 @@ ./services/web-apps/galene.nix ./services/web-apps/gerrit.nix ./services/web-apps/gotify-server.nix + ./services/web-apps/gotosocial.nix ./services/web-apps/grocy.nix ./services/web-apps/pixelfed.nix + ./services/web-apps/guacamole-client.nix + ./services/web-apps/guacamole-server.nix ./services/web-apps/healthchecks.nix ./services/web-apps/hedgedoc.nix ./services/web-apps/hledger-web.nix @@ -1230,6 +1251,7 @@ ./services/web-apps/powerdns-admin.nix ./services/web-apps/prosody-filer.nix ./services/web-apps/restya-board.nix + ./services/web-apps/sftpgo.nix ./services/web-apps/rss-bridge.nix ./services/web-apps/selfoss.nix ./services/web-apps/shiori.nix @@ -1266,7 +1288,9 @@ ./services/web-servers/nginx/gitweb.nix ./services/web-servers/phpfpm/default.nix ./services/web-servers/pomerium.nix + ./services/web-servers/rustus.nix ./services/web-servers/stargazer.nix + ./services/web-servers/static-web-server.nix ./services/web-servers/tomcat.nix ./services/web-servers/traefik.nix ./services/web-servers/trafficserver/default.nix @@ -1308,7 +1332,6 @@ ./services/x11/window-managers/default.nix ./services/x11/window-managers/fluxbox.nix ./services/x11/window-managers/icewm.nix - ./services/x11/window-managers/bspwm.nix ./services/x11/window-managers/katriawm.nix ./services/x11/window-managers/metacity.nix ./services/x11/window-managers/nimdow.nix @@ -1321,6 +1344,7 @@ ./services/x11/xbanish.nix ./services/x11/xfs.nix ./services/x11/xserver.nix + ./system/activation/activatable-system.nix ./system/activation/activation-script.nix ./system/activation/specialisation.nix ./system/activation/bootspec.nix @@ -1345,6 +1369,7 @@ ./system/boot/loader/raspberrypi/raspberrypi.nix ./system/boot/loader/systemd-boot/systemd-boot.nix ./system/boot/luksroot.nix + ./system/boot/stratisroot.nix ./system/boot/modprobe.nix ./system/boot/networkd.nix ./system/boot/plymouth.nix @@ -1389,6 +1414,7 @@ ./tasks/filesystems/nfs.nix ./tasks/filesystems/ntfs.nix ./tasks/filesystems/reiserfs.nix + ./tasks/filesystems/squashfs.nix ./tasks/filesystems/unionfs-fuse.nix ./tasks/filesystems/vboxsf.nix ./tasks/filesystems/vfat.nix diff --git a/third_party/nixpkgs/nixos/modules/profiles/headless.nix b/third_party/nixpkgs/nixos/modules/profiles/headless.nix index c17cb287b7..eb29f3d651 100644 --- a/third_party/nixpkgs/nixos/modules/profiles/headless.nix +++ b/third_party/nixpkgs/nixos/modules/profiles/headless.nix @@ -6,8 +6,6 @@ with lib; { - boot.vesa = false; - # Don't start a tty on the serial consoles. systemd.services."serial-getty@ttyS0".enable = lib.mkDefault false; systemd.services."serial-getty@hvc0".enable = false; @@ -15,7 +13,7 @@ with lib; systemd.services."autovt@".enable = false; # Since we can't manually respond to a panic, just reboot. - boot.kernelParams = [ "panic=1" "boot.panic_on_fail" ]; + boot.kernelParams = [ "panic=1" "boot.panic_on_fail" "vga=0x317" "nomodeset" ]; # Don't allow emergency mode, because we don't have a console. systemd.enableEmergencyMode = false; diff --git a/third_party/nixpkgs/nixos/modules/profiles/installation-device.nix b/third_party/nixpkgs/nixos/modules/profiles/installation-device.nix index 32884f4b87..4120d5919d 100644 --- a/third_party/nixpkgs/nixos/modules/profiles/installation-device.nix +++ b/third_party/nixpkgs/nixos/modules/profiles/installation-device.nix @@ -106,6 +106,8 @@ with lib; systemdStage1Network ]; + boot.swraid.enable = true; + # Show all debug messages from the kernel but don't log refused packets # because we have the firewall enabled. This makes installs from the # console less cumbersome if the machine has a public IP. diff --git a/third_party/nixpkgs/nixos/modules/profiles/macos-builder.nix b/third_party/nixpkgs/nixos/modules/profiles/macos-builder.nix index 768c673e7f..83a8499561 100644 --- a/third_party/nixpkgs/nixos/modules/profiles/macos-builder.nix +++ b/third_party/nixpkgs/nixos/modules/profiles/macos-builder.nix @@ -1,4 +1,4 @@ -{ config, lib, pkgs, ... }: +{ config, lib, ... }: let keysDirectory = "/var/keys"; @@ -67,9 +67,9 @@ in ''; }; hostPort = mkOption { - default = 22; + default = 31022; type = types.int; - example = 31022; + example = 22; description = '' The localhost host port to forward TCP to the guest port. ''; @@ -139,13 +139,13 @@ in hostPkgs = config.virtualisation.host.pkgs; - script = hostPkgs.writeShellScriptBin "create-builder" ( + script = hostPkgs.writeShellScriptBin "create-builder" ( # When running as non-interactively as part of a DarwinConfiguration the working directory # must be set to a writeable directory. (if cfg.workingDirectory != "." then '' ${hostPkgs.coreutils}/bin/mkdir --parent "${cfg.workingDirectory}" cd "${cfg.workingDirectory}" - '' else "") + '' + '' else "") + '' KEYS="''${KEYS:-./keys}" ${hostPkgs.coreutils}/bin/mkdir --parent "''${KEYS}" PRIVATE_KEY="''${KEYS}/${user}_${keyType}" @@ -157,7 +157,7 @@ in if ! ${hostPkgs.diffutils}/bin/cmp "''${PUBLIC_KEY}" ${publicKey}; then (set -x; sudo --reset-timestamp ${installCredentials} "''${KEYS}") fi - KEYS="$(${hostPkgs.nix}/bin/nix-store --add "$KEYS")" ${config.system.build.vm}/bin/run-nixos-vm + KEYS="$(${hostPkgs.nix}/bin/nix-store --add "$KEYS")" ${lib.getExe config.system.build.vm} ''); in @@ -177,7 +177,7 @@ in Please inspect the trace of the following command to figure out which module has a dependency on stateVersion. - nix-instantiate --attr darwin.builder --show-trace + nix-instantiate --attr darwin.linux-builder --show-trace ''); }; @@ -234,6 +234,10 @@ in # This ensures that anything built on the guest isn't lost when the guest is # restarted. writableStoreUseTmpfs = false; + + # Pass certificates from host to the guest otherwise when custom CA certificates + # are required we can't use the cached builder. + useHostCerts = true; }; }; } diff --git a/third_party/nixpkgs/nixos/modules/programs/cfs-zen-tweaks.nix b/third_party/nixpkgs/nixos/modules/programs/cfs-zen-tweaks.nix index 97c2570475..fc05bcd11e 100644 --- a/third_party/nixpkgs/nixos/modules/programs/cfs-zen-tweaks.nix +++ b/third_party/nixpkgs/nixos/modules/programs/cfs-zen-tweaks.nix @@ -23,6 +23,12 @@ in config = mkIf cfg.enable { systemd.packages = [ pkgs.cfs-zen-tweaks ]; - systemd.services.set-cfs-tweak.wantedBy = [ "multi-user.target" "suspend.target" "hibernate.target" "hybrid-sleep.target" "suspend-then-hibernate.target" ]; + systemd.services.set-cfs-tweaks.wantedBy = [ + "multi-user.target" + "suspend.target" + "hibernate.target" + "hybrid-sleep.target" + "suspend-then-hibernate.target" + ]; }; } diff --git a/third_party/nixpkgs/nixos/modules/programs/direnv.nix b/third_party/nixpkgs/nixos/modules/programs/direnv.nix new file mode 100644 index 0000000000..53717fae11 --- /dev/null +++ b/third_party/nixpkgs/nixos/modules/programs/direnv.nix @@ -0,0 +1,147 @@ +{ + lib, + config, + pkgs, + ... +}: let + cfg = config.programs.direnv; +in { + options.programs.direnv = { + + enable = lib.mkEnableOption (lib.mdDoc '' + direnv integration. Takes care of both installation and + setting up the sourcing of the shell. Additionally enables nix-direnv + integration. Note that you need to logout and login for this change to apply. + ''); + + package = lib.mkPackageOptionMD pkgs "direnv" {}; + + direnvrcExtra = lib.mkOption { + type = lib.types.lines; + default = ""; + example = '' + export FOO="foo" + echo "loaded direnv!" + ''; + description = lib.mdDoc '' + Extra lines to append to the sourced direnvrc + ''; + }; + + silent = lib.mkEnableOption (lib.mdDoc '' + the hiding of direnv logging + ''); + + persistDerivations = + (lib.mkEnableOption (lib.mdDoc '' + setting keep-derivations and keep-outputs to true + to prevent shells from getting garbage collected + '')) + // { + default = true; + }; + + loadInNixShell = + lib.mkEnableOption (lib.mdDoc '' + loading direnv in `nix-shell` `nix shell` or `nix develop` + '') + // { + default = true; + }; + + nix-direnv = { + enable = + (lib.mkEnableOption (lib.mdDoc '' + a faster, persistent implementation of use_nix and use_flake, to replace the built-in one + '')) + // { + default = true; + }; + + package = lib.mkPackageOptionMD pkgs "nix-direnv" {}; + }; + }; + + config = lib.mkIf cfg.enable { + + programs = { + zsh.interactiveShellInit = '' + if ${lib.boolToString cfg.loadInNixShell} || printenv PATH | grep -vqc '/nix/store'; then + eval "$(${lib.getExe cfg.package} hook zsh)" + fi + ''; + + #$NIX_GCROOT for "nix develop" https://github.com/NixOS/nix/blob/6db66ebfc55769edd0c6bc70fcbd76246d4d26e0/src/nix/develop.cc#L530 + #$IN_NIX_SHELL for "nix-shell" + bash.interactiveShellInit = '' + if ${lib.boolToString cfg.loadInNixShell} || [ -z "$IN_NIX_SHELL$NIX_GCROOT$(printenv PATH | grep '/nix/store')" ] ; then + eval "$(${lib.getExe cfg.package} hook bash)" + fi + ''; + + fish.interactiveShellInit = '' + if ${lib.boolToString cfg.loadInNixShell}; + or printenv PATH | grep -vqc '/nix/store'; + ${lib.getExe cfg.package} hook fish | source + end + ''; + }; + + nix.settings = lib.mkIf cfg.persistDerivations { + keep-outputs = true; + keep-derivations = true; + }; + + environment = { + systemPackages = + if cfg.loadInNixShell then [cfg.package] + else [ + #direnv has a fish library which sources direnv for some reason + (cfg.package.overrideAttrs (old: { + installPhase = + (old.installPhase or "") + + '' + rm -rf $out/share/fish + ''; + })) + ]; + + variables = { + DIRENV_CONFIG = "/etc/direnv"; + DIRENV_LOG_FORMAT = lib.mkIf cfg.silent ""; + }; + + etc = { + "direnv/direnvrc".text = '' + ${lib.optionalString cfg.nix-direnv.enable '' + #Load nix-direnv + source ${cfg.nix-direnv.package}/share/nix-direnv/direnvrc + ''} + + #Load direnvrcExtra + ${cfg.direnvrcExtra} + + #Load user-configuration if present (~/.direnvrc or ~/.config/direnv/direnvrc) + direnv_config_dir_home="''${DIRENV_CONFIG_HOME:-''${XDG_CONFIG_HOME:-$HOME/.config}/direnv}" + if [[ -f $direnv_config_dir_home/direnvrc ]]; then + source "$direnv_config_dir_home/direnvrc" >&2 + elif [[ -f $HOME/.direnvrc ]]; then + source "$HOME/.direnvrc" >&2 + fi + + unset direnv_config_dir_home + ''; + + "direnv/lib/zz-user.sh".text = '' + direnv_config_dir_home="''${DIRENV_CONFIG_HOME:-''${XDG_CONFIG_HOME:-$HOME/.config}/direnv}" + + for lib in "$direnv_config_dir_home/lib/"*.sh; do + source "$lib" + done + + unset direnv_config_dir_home + ''; + }; + }; + }; +} diff --git a/third_party/nixpkgs/nixos/modules/programs/gnupg.nix b/third_party/nixpkgs/nixos/modules/programs/gnupg.nix index 764a67a160..697b6e9a0b 100644 --- a/third_party/nixpkgs/nixos/modules/programs/gnupg.nix +++ b/third_party/nixpkgs/nixos/modules/programs/gnupg.nix @@ -75,9 +75,7 @@ in defaultText = literalMD ''matching the configured desktop environment''; description = lib.mdDoc '' Which pinentry interface to use. If not null, the path to the - pinentry binary will be passed to gpg-agent via commandline and - thus overrides the pinentry option in gpg-agent.conf in the user's - home directory. + pinentry binary will be set in /etc/gnupg/gpg-agent.conf. If not set at all, it'll pick an appropriate flavor depending on the system configuration (qt flavor for lxqt and plasma5, gtk2 for xfce 4.12, gnome3 on all other systems with X enabled, ncurses otherwise). @@ -94,38 +92,111 @@ in }; config = mkIf cfg.agent.enable { + environment.etc."gnupg/gpg-agent.conf".text = + lib.optionalString (cfg.agent.pinentryFlavor != null) '' + pinentry-program ${pkgs.pinentry.${cfg.agent.pinentryFlavor}}/bin/pinentry + ''; + # This overrides the systemd user unit shipped with the gnupg package - systemd.user.services.gpg-agent = mkIf (cfg.agent.pinentryFlavor != null) { - serviceConfig.ExecStart = [ "" '' - ${cfg.package}/bin/gpg-agent --supervised \ - --pinentry-program ${pkgs.pinentry.${cfg.agent.pinentryFlavor}}/bin/pinentry - '' ]; + systemd.user.services.gpg-agent = { + unitConfig = { + Description = "GnuPG cryptographic agent and passphrase cache"; + Documentation = "man:gpg-agent(1)"; + Requires = [ "gpg-agent.socket" ]; + }; + serviceConfig = { + ExecStart = "${cfg.package}/bin/gpg-agent --supervised"; + ExecReload = "${cfg.package}/bin/gpgconf --reload gpg-agent"; + }; }; systemd.user.sockets.gpg-agent = { + unitConfig = { + Description = "GnuPG cryptographic agent and passphrase cache"; + Documentation = "man:gpg-agent(1)"; + }; + socketConfig = { + ListenStream = "%t/gnupg/S.gpg-agent"; + FileDescriptorName = "std"; + SocketMode = "0600"; + DirectoryMode = "0700"; + }; wantedBy = [ "sockets.target" ]; }; systemd.user.sockets.gpg-agent-ssh = mkIf cfg.agent.enableSSHSupport { + unitConfig = { + Description = "GnuPG cryptographic agent (ssh-agent emulation)"; + Documentation = "man:gpg-agent(1) man:ssh-add(1) man:ssh-agent(1) man:ssh(1)"; + }; + socketConfig = { + ListenStream = "%t/gnupg/S.gpg-agent.ssh"; + FileDescriptorName = "ssh"; + Service = "gpg-agent.service"; + SocketMode = "0600"; + DirectoryMode = "0700"; + }; wantedBy = [ "sockets.target" ]; }; systemd.user.sockets.gpg-agent-extra = mkIf cfg.agent.enableExtraSocket { + unitConfig = { + Description = "GnuPG cryptographic agent and passphrase cache (restricted)"; + Documentation = "man:gpg-agent(1)"; + }; + socketConfig = { + ListenStream = "%t/gnupg/S.gpg-agent.extra"; + FileDescriptorName = "extra"; + Service = "gpg-agent.service"; + SocketMode = "0600"; + DirectoryMode = "0700"; + }; wantedBy = [ "sockets.target" ]; }; systemd.user.sockets.gpg-agent-browser = mkIf cfg.agent.enableBrowserSocket { + unitConfig = { + Description = "GnuPG cryptographic agent and passphrase cache (access for web browsers)"; + Documentation = "man:gpg-agent(1)"; + }; + socketConfig = { + ListenStream = "%t/gnupg/S.gpg-agent.browser"; + FileDescriptorName = "browser"; + Service = "gpg-agent.service"; + SocketMode = "0600"; + DirectoryMode = "0700"; + }; wantedBy = [ "sockets.target" ]; }; + systemd.user.services.dirmngr = mkIf cfg.dirmngr.enable { + unitConfig = { + Description = "GnuPG network certificate management daemon"; + Documentation = "man:dirmngr(8)"; + Requires = "dirmngr.socket"; + }; + serviceConfig = { + ExecStart = "${cfg.package}/bin/dirmngr --supervised"; + ExecReload = "${cfg.package}/bin/gpgconf --reload dirmngr"; + }; + }; + systemd.user.sockets.dirmngr = mkIf cfg.dirmngr.enable { + unitConfig = { + Description = "GnuPG network certificate management daemon"; + Documentation = "man:dirmngr(8)"; + }; + socketConfig = { + ListenStream = "%t/gnupg/S.dirmngr"; + SocketMode = "0600"; + DirectoryMode = "0700"; + }; wantedBy = [ "sockets.target" ]; }; services.dbus.packages = mkIf (cfg.agent.pinentryFlavor == "gnome3") [ pkgs.gcr ]; environment.systemPackages = with pkgs; [ cfg.package ]; - systemd.packages = [ cfg.package ]; environment.interactiveShellInit = '' # Bind gpg-agent to this TTY if gpg commands are used. diff --git a/third_party/nixpkgs/nixos/modules/programs/nano.nix b/third_party/nixpkgs/nixos/modules/programs/nano.nix index 16bab620d6..7705bf0ddc 100644 --- a/third_party/nixpkgs/nixos/modules/programs/nano.nix +++ b/third_party/nixpkgs/nixos/modules/programs/nano.nix @@ -35,8 +35,17 @@ in ###### implementation config = lib.mkIf (cfg.nanorc != "" || cfg.syntaxHighlight) { - environment.etc.nanorc.text = lib.concatStrings [ cfg.nanorc - (lib.optionalString cfg.syntaxHighlight ''${LF}include "${pkgs.nano}/share/nano/*.nanorc"'') ]; + environment.etc.nanorc.text = lib.concatStringsSep LF ( + ( lib.optionals cfg.syntaxHighlight [ + "# The line below is added because value of programs.nano.syntaxHighlight is set to true" + ''include "${pkgs.nano}/share/nano/*.nanorc"'' + "" + ]) + ++ ( lib.optionals (cfg.nanorc != "") [ + "# The lines below have been set from value of programs.nano.nanorc" + cfg.nanorc + ]) + ); }; } diff --git a/third_party/nixpkgs/nixos/modules/programs/nix-ld.nix b/third_party/nixpkgs/nixos/modules/programs/nix-ld.nix index f0c265f0e5..d54b3917f8 100644 --- a/third_party/nixpkgs/nixos/modules/programs/nix-ld.nix +++ b/third_party/nixpkgs/nixos/modules/programs/nix-ld.nix @@ -2,15 +2,14 @@ let cfg = config.programs.nix-ld; - # TODO make glibc here configurable? - nix-ld-so = pkgs.runCommand "ld.so" {} '' - ln -s "$(cat '${pkgs.stdenv.cc}/nix-support/dynamic-linker')" $out - ''; - nix-ld-libraries = pkgs.buildEnv { name = "lb-library-path"; pathsToLink = [ "/lib" ]; paths = map lib.getLib cfg.libraries; + # TODO make glibc here configurable? + postBuild = '' + ln -s ${pkgs.stdenv.cc.bintools.dynamicLinker} $out/share/nix-ld/lib/ld.so + ''; extraPrefix = "/share/nix-ld"; ignoreCollisions = true; }; @@ -38,12 +37,7 @@ in meta.maintainers = [ lib.maintainers.mic92 ]; options.programs.nix-ld = { enable = lib.mkEnableOption (lib.mdDoc ''nix-ld, Documentation: ''); - package = lib.mkOption { - type = lib.types.package; - description = lib.mdDoc "Which package to use for the nix-ld."; - default = pkgs.nix-ld; - defaultText = lib.literalExpression "pkgs.nix-ld"; - }; + package = lib.mkPackageOptionMD pkgs "nix-ld" { }; libraries = lib.mkOption { type = lib.types.listOf lib.types.package; description = lib.mdDoc "Libraries that automatically become available to all programs. The default set includes common libraries."; @@ -60,7 +54,7 @@ in environment.pathsToLink = [ "/share/nix-ld" ]; environment.variables = { - NIX_LD = toString nix-ld-so; + NIX_LD = "/run/current-system/sw/share/nix-ld/lib/ld.so"; NIX_LD_LIBRARY_PATH = "/run/current-system/sw/share/nix-ld/lib"; }; }; diff --git a/third_party/nixpkgs/nixos/modules/programs/shadow.nix b/third_party/nixpkgs/nixos/modules/programs/shadow.nix index 35267acd6b..00895db03f 100644 --- a/third_party/nixpkgs/nixos/modules/programs/shadow.nix +++ b/third_party/nixpkgs/nixos/modules/programs/shadow.nix @@ -1,67 +1,131 @@ # Configuration for the pwdutils suite of tools: passwd, useradd, etc. - { config, lib, utils, pkgs, ... }: - with lib; - let + cfg = config.security.loginDefs; +in +{ + options = with types; { + security.loginDefs = { + package = mkPackageOptionMD pkgs "shadow" { }; - /* - There are three different sources for user/group id ranges, each of which gets - used by different programs: - - The login.defs file, used by the useradd, groupadd and newusers commands - - The update-users-groups.pl file, used by NixOS in the activation phase to - decide on which ids to use for declaratively defined users without a static - id - - Systemd compile time options -Dsystem-uid-max= and -Dsystem-gid-max=, used - by systemd for features like ConditionUser=@system and systemd-sysusers - */ - loginDefs = - '' - DEFAULT_HOME yes + chfnRestrict = mkOption { + description = mdDoc '' + Use chfn SUID to allow non-root users to change their account GECOS information. + ''; + type = nullOr str; + default = null; + }; - SYS_UID_MIN 400 - SYS_UID_MAX 999 - UID_MIN 1000 - UID_MAX 29999 + settings = mkOption { + description = mdDoc '' + Config options for the /etc/login.defs file, that defines + the site-specific configuration for the shadow password suite. + See login.defs(5) man page for available options. + ''; + type = submodule { + freeformType = (pkgs.formats.keyValue { }).type; + /* There are three different sources for user/group id ranges, each of which gets + used by different programs: + - The login.defs file, used by the useradd, groupadd and newusers commands + - The update-users-groups.pl file, used by NixOS in the activation phase to + decide on which ids to use for declaratively defined users without a static + id + - Systemd compile time options -Dsystem-uid-max= and -Dsystem-gid-max=, used + by systemd for features like ConditionUser=@system and systemd-sysusers + */ + options = { + DEFAULT_HOME = mkOption { + description = mdDoc "Indicate if login is allowed if we can't cd to the home directory."; + default = "yes"; + type = enum [ "yes" "no" ]; + }; - SYS_GID_MIN 400 - SYS_GID_MAX 999 - GID_MIN 1000 - GID_MAX 29999 + ENCRYPT_METHOD = mkOption { + description = mdDoc "This defines the system default encryption algorithm for encrypting passwords."; + # The default crypt() method, keep in sync with the PAM default + default = "YESCRYPT"; + type = enum [ "YESCRYPT" "SHA512" "SHA256" "MD5" "DES"]; + }; - TTYGROUP tty - TTYPERM 0620 + SYS_UID_MIN = mkOption { + description = mdDoc "Range of user IDs used for the creation of system users by useradd or newusers."; + default = 400; + type = int; + }; - # Ensure privacy for newly created home directories. - UMASK 077 + SYS_UID_MAX = mkOption { + description = mdDoc "Range of user IDs used for the creation of system users by useradd or newusers."; + default = 999; + type = int; + }; - # Uncomment this and install chfn SUID to allow non-root - # users to change their account GECOS information. - # This should be made configurable. - #CHFN_RESTRICT frwh + UID_MIN = mkOption { + description = mdDoc "Range of user IDs used for the creation of regular users by useradd or newusers."; + default = 1000; + type = int; + }; - # The default crypt() method, keep in sync with the PAM default - ENCRYPT_METHOD YESCRYPT - ''; + UID_MAX = mkOption { + description = mdDoc "Range of user IDs used for the creation of regular users by useradd or newusers."; + default = 29999; + type = int; + }; - mkSetuidRoot = source: - { setuid = true; - owner = "root"; - group = "root"; - inherit source; + SYS_GID_MIN = mkOption { + description = mdDoc "Range of group IDs used for the creation of system groups by useradd, groupadd, or newusers"; + default = 400; + type = int; + }; + + SYS_GID_MAX = mkOption { + description = mdDoc "Range of group IDs used for the creation of system groups by useradd, groupadd, or newusers"; + default = 999; + type = int; + }; + + GID_MIN = mkOption { + description = mdDoc "Range of group IDs used for the creation of regular groups by useradd, groupadd, or newusers."; + default = 1000; + type = int; + }; + + GID_MAX = mkOption { + description = mdDoc "Range of group IDs used for the creation of regular groups by useradd, groupadd, or newusers."; + default = 29999; + type = int; + }; + + TTYGROUP = mkOption { + description = mdDoc '' + The terminal permissions: the login tty will be owned by the TTYGROUP group, + and the permissions will be set to TTYPERM''; + default = "tty"; + type = str; + }; + + TTYPERM = mkOption { + description = mdDoc '' + The terminal permissions: the login tty will be owned by the TTYGROUP group, + and the permissions will be set to TTYPERM''; + default = "0620"; + type = str; + }; + + # Ensure privacy for newly created home directories. + UMASK = mkOption { + description = mdDoc "The file mode creation mask is initialized to this value."; + default = "077"; + type = str; + }; + }; + }; + default = { }; + }; }; -in - -{ - - ###### interface - - options = { - - users.defaultUserShell = lib.mkOption { - description = lib.mdDoc '' + users.defaultUserShell = mkOption { + description = mdDoc '' This option defines the default shell assigned to user accounts. This can be either a full system path or a shell package. @@ -69,63 +133,107 @@ in used outside the store (in particular in /etc/passwd). ''; example = literalExpression "pkgs.zsh"; - type = types.either types.path types.shellPackage; + type = either path shellPackage; }; - }; - ###### implementation config = { + assertions = [ + { + assertion = cfg.settings.SYS_UID_MIN <= cfg.settings.SYS_UID_MAX; + message = "SYS_UID_MIN must be less than or equal to SYS_UID_MAX"; + } + { + assertion = cfg.settings.UID_MIN <= cfg.settings.UID_MAX; + message = "UID_MIN must be less than or equal to UID_MAX"; + } + { + assertion = cfg.settings.SYS_GID_MIN <= cfg.settings.SYS_GID_MAX; + message = "SYS_GID_MIN must be less than or equal to SYS_GID_MAX"; + } + { + assertion = cfg.settings.GID_MIN <= cfg.settings.GID_MAX; + message = "GID_MIN must be less than or equal to GID_MAX"; + } + ]; - environment.systemPackages = - lib.optional config.users.mutableUsers pkgs.shadow ++ - lib.optional (types.shellPackage.check config.users.defaultUserShell) - config.users.defaultUserShell; + security.loginDefs.settings.CHFN_RESTRICT = + mkIf (cfg.chfnRestrict != null) cfg.chfnRestrict; + + environment.systemPackages = optional config.users.mutableUsers cfg.package + ++ optional (types.shellPackage.check config.users.defaultUserShell) config.users.defaultUserShell + ++ optional (cfg.chfnRestrict != null) pkgs.util-linux; environment.etc = - { # /etc/login.defs: global configuration for pwdutils. You - # cannot login without it! - "login.defs".source = pkgs.writeText "login.defs" loginDefs; + # Create custom toKeyValue generator + # see https://man7.org/linux/man-pages/man5/login.defs.5.html for config specification + let + toKeyValue = generators.toKeyValue { + mkKeyValue = generators.mkKeyValueDefault { } " "; + }; + in + { + # /etc/login.defs: global configuration for pwdutils. + # You cannot login without it! + "login.defs".source = pkgs.writeText "login.defs" (toKeyValue cfg.settings); # /etc/default/useradd: configuration for useradd. - "default/useradd".source = pkgs.writeText "useradd" - '' - GROUP=100 - HOME=/home - SHELL=${utils.toShellPath config.users.defaultUserShell} - ''; + "default/useradd".source = pkgs.writeText "useradd" '' + GROUP=100 + HOME=/home + SHELL=${utils.toShellPath config.users.defaultUserShell} + ''; }; - security.pam.services = - { chsh = { rootOK = true; }; - chfn = { rootOK = true; }; - su = { rootOK = true; forwardXAuth = true; logFailures = true; }; - passwd = {}; - # Note: useradd, groupadd etc. aren't setuid root, so it - # doesn't really matter what the PAM config says as long as it - # lets root in. - useradd = { rootOK = true; }; - usermod = { rootOK = true; }; - userdel = { rootOK = true; }; - groupadd = { rootOK = true; }; - groupmod = { rootOK = true; }; - groupmems = { rootOK = true; }; - groupdel = { rootOK = true; }; - login = { startSession = true; allowNullPassword = true; showMotd = true; updateWtmp = true; }; - chpasswd = { rootOK = true; }; + security.pam.services = { + chsh = { rootOK = true; }; + chfn = { rootOK = true; }; + su = { + rootOK = true; + forwardXAuth = true; + logFailures = true; }; - - security.wrappers = { - su = mkSetuidRoot "${pkgs.shadow.su}/bin/su"; - sg = mkSetuidRoot "${pkgs.shadow.out}/bin/sg"; - newgrp = mkSetuidRoot "${pkgs.shadow.out}/bin/newgrp"; - newuidmap = mkSetuidRoot "${pkgs.shadow.out}/bin/newuidmap"; - newgidmap = mkSetuidRoot "${pkgs.shadow.out}/bin/newgidmap"; - } // lib.optionalAttrs config.users.mutableUsers { - chsh = mkSetuidRoot "${pkgs.shadow.out}/bin/chsh"; - passwd = mkSetuidRoot "${pkgs.shadow.out}/bin/passwd"; + passwd = { }; + # Note: useradd, groupadd etc. aren't setuid root, so it + # doesn't really matter what the PAM config says as long as it + # lets root in. + useradd.rootOK = true; + usermod.rootOK = true; + userdel.rootOK = true; + groupadd.rootOK = true; + groupmod.rootOK = true; + groupmems.rootOK = true; + groupdel.rootOK = true; + login = { + startSession = true; + allowNullPassword = true; + showMotd = true; + updateWtmp = true; + }; + chpasswd = { rootOK = true; }; }; + + security.wrappers = + let + mkSetuidRoot = source: { + setuid = true; + owner = "root"; + group = "root"; + inherit source; + }; + in + { + su = mkSetuidRoot "${cfg.package.su}/bin/su"; + sg = mkSetuidRoot "${cfg.package.out}/bin/sg"; + newgrp = mkSetuidRoot "${cfg.package.out}/bin/newgrp"; + newuidmap = mkSetuidRoot "${cfg.package.out}/bin/newuidmap"; + newgidmap = mkSetuidRoot "${cfg.package.out}/bin/newgidmap"; + } + // optionalAttrs config.users.mutableUsers { + chsh = mkSetuidRoot "${cfg.package.out}/bin/chsh"; + passwd = mkSetuidRoot "${cfg.package.out}/bin/passwd"; + }; }; } diff --git a/third_party/nixpkgs/nixos/modules/programs/starship.nix b/third_party/nixpkgs/nixos/modules/programs/starship.nix index cacad8eafe..9dca39da5e 100644 --- a/third_party/nixpkgs/nixos/modules/programs/starship.nix +++ b/third_party/nixpkgs/nixos/modules/programs/starship.nix @@ -43,21 +43,21 @@ in config = mkIf cfg.enable { programs.bash.${initOption} = '' - if [[ $TERM != "dumb" && (-z $INSIDE_EMACS || $INSIDE_EMACS == "vterm") ]]; then + if [[ $TERM != "dumb" ]]; then export STARSHIP_CONFIG=${settingsFile} eval "$(${pkgs.starship}/bin/starship init bash)" fi ''; programs.fish.${initOption} = '' - if test "$TERM" != "dumb" -a \( -z "$INSIDE_EMACS" -o "$INSIDE_EMACS" = "vterm" \) + if test "$TERM" != "dumb" set -x STARSHIP_CONFIG ${settingsFile} eval (${pkgs.starship}/bin/starship init fish) end ''; programs.zsh.${initOption} = '' - if [[ $TERM != "dumb" && (-z $INSIDE_EMACS || $INSIDE_EMACS == "vterm") ]]; then + if [[ $TERM != "dumb" ]]; then export STARSHIP_CONFIG=${settingsFile} eval "$(${pkgs.starship}/bin/starship init zsh)" fi diff --git a/third_party/nixpkgs/nixos/modules/programs/wayland/river.nix b/third_party/nixpkgs/nixos/modules/programs/wayland/river.nix new file mode 100644 index 0000000000..71232a7d26 --- /dev/null +++ b/third_party/nixpkgs/nixos/modules/programs/wayland/river.nix @@ -0,0 +1,59 @@ +{ + config, + pkgs, + lib, + ... +}: +with lib; let + cfg = config.programs.river; +in { + options.programs.river = { + enable = mkEnableOption (lib.mdDoc "river, a dynamic tiling Wayland compositor"); + + package = mkOption { + type = with types; nullOr package; + default = pkgs.river; + defaultText = literalExpression "pkgs.river"; + description = lib.mdDoc '' + River package to use. + Set to `null` to not add any River package to your path. + This should be done if you want to use the Home Manager River module to install River. + ''; + }; + + extraPackages = mkOption { + type = with types; listOf package; + default = with pkgs; [ + swaylock + foot + dmenu + ]; + defaultText = literalExpression '' + with pkgs; [ swaylock foot dmenu ]; + ''; + example = literalExpression '' + with pkgs; [ + termite rofi light + ] + ''; + description = lib.mdDoc '' + Extra packages to be installed system wide. See + [Common X11 apps used on i3 with Wayland alternatives](https://github.com/swaywm/sway/wiki/i3-Migration-Guide#common-x11-apps-used-on-i3-with-wayland-alternatives) + for a list of useful software. + ''; + }; + }; + + config = + mkIf cfg.enable (mkMerge [ + { + environment.systemPackages = optional (cfg.package != null) cfg.package ++ cfg.extraPackages; + + # To make a river session available if a display manager like SDDM is enabled: + services.xserver.displayManager.sessionPackages = optionals (cfg.package != null) [ cfg.package ]; + } + (import ./wayland-session.nix { inherit lib pkgs; }) + ]); + + meta.maintainers = with lib.maintainers; [ GaetanLepage ]; +} diff --git a/third_party/nixpkgs/nixos/modules/programs/sway.nix b/third_party/nixpkgs/nixos/modules/programs/wayland/sway.nix similarity index 70% rename from third_party/nixpkgs/nixos/modules/programs/sway.nix rename to third_party/nixpkgs/nixos/modules/programs/wayland/sway.nix index 3b2e69bd37..698d9c2b46 100644 --- a/third_party/nixpkgs/nixos/modules/programs/sway.nix +++ b/third_party/nixpkgs/nixos/modules/programs/wayland/sway.nix @@ -49,7 +49,7 @@ in { description = lib.mdDoc '' Sway package to use. Will override the options 'wrapperFeatures', 'extraSessionCommands', and 'extraOptions'. - Set to null to not add any Sway package to your + Set to `null` to not add any Sway package to your path. This should be done if you want to use the Home Manager Sway module to install Sway. ''; @@ -123,41 +123,36 @@ in { }; - config = mkIf cfg.enable { - assertions = [ + config = mkIf cfg.enable + (mkMerge [ { - assertion = cfg.extraSessionCommands != "" -> cfg.wrapperFeatures.base; - message = '' - The extraSessionCommands for Sway will not be run if - wrapperFeatures.base is disabled. - ''; - } - ]; - environment = { - systemPackages = optional (cfg.package != null) cfg.package ++ cfg.extraPackages; - # Needed for the default wallpaper: - pathsToLink = optionals (cfg.package != null) [ "/share/backgrounds/sway" ]; - etc = { - "sway/config.d/nixos.conf".source = pkgs.writeText "nixos.conf" '' - # Import the most important environment variables into the D-Bus and systemd - # user environments (e.g. required for screen sharing and Pinentry prompts): - exec dbus-update-activation-environment --systemd DISPLAY WAYLAND_DISPLAY SWAYSOCK XDG_CURRENT_DESKTOP - ''; - } // optionalAttrs (cfg.package != null) { - "sway/config".source = mkOptionDefault "${cfg.package}/etc/sway/config"; - }; - }; - security.polkit.enable = true; - security.pam.services.swaylock = {}; - hardware.opengl.enable = mkDefault true; - fonts.enableDefaultFonts = mkDefault true; - programs.dconf.enable = mkDefault true; - # To make a Sway session available if a display manager like SDDM is enabled: - services.xserver.displayManager.sessionPackages = optionals (cfg.package != null) [ cfg.package ]; - programs.xwayland.enable = mkDefault true; - # For screen sharing (this option only has an effect with xdg.portal.enable): - xdg.portal.extraPortals = [ pkgs.xdg-desktop-portal-wlr ]; - }; + assertions = [ + { + assertion = cfg.extraSessionCommands != "" -> cfg.wrapperFeatures.base; + message = '' + The extraSessionCommands for Sway will not be run if + wrapperFeatures.base is disabled. + ''; + } + ]; + environment = { + systemPackages = optional (cfg.package != null) cfg.package ++ cfg.extraPackages; + # Needed for the default wallpaper: + pathsToLink = optionals (cfg.package != null) [ "/share/backgrounds/sway" ]; + etc = { + "sway/config.d/nixos.conf".source = pkgs.writeText "nixos.conf" '' + # Import the most important environment variables into the D-Bus and systemd + # user environments (e.g. required for screen sharing and Pinentry prompts): + exec dbus-update-activation-environment --systemd DISPLAY WAYLAND_DISPLAY SWAYSOCK XDG_CURRENT_DESKTOP + ''; + } // optionalAttrs (cfg.package != null) { + "sway/config".source = mkOptionDefault "${cfg.package}/etc/sway/config"; + }; + }; + # To make a Sway session available if a display manager like SDDM is enabled: + services.xserver.displayManager.sessionPackages = optionals (cfg.package != null) [ cfg.package ]; } + (import ./wayland-session.nix { inherit lib pkgs; }) + ]); meta.maintainers = with lib.maintainers; [ primeos colemickens ]; } diff --git a/third_party/nixpkgs/nixos/modules/programs/waybar.nix b/third_party/nixpkgs/nixos/modules/programs/wayland/waybar.nix similarity index 100% rename from third_party/nixpkgs/nixos/modules/programs/waybar.nix rename to third_party/nixpkgs/nixos/modules/programs/wayland/waybar.nix diff --git a/third_party/nixpkgs/nixos/modules/programs/wayland/wayland-session.nix b/third_party/nixpkgs/nixos/modules/programs/wayland/wayland-session.nix new file mode 100644 index 0000000000..3cbfef4d61 --- /dev/null +++ b/third_party/nixpkgs/nixos/modules/programs/wayland/wayland-session.nix @@ -0,0 +1,23 @@ +{ lib, pkgs, ... }: with lib; { + security = { + polkit.enable = true; + pam.services.swaylock = {}; + }; + + hardware.opengl.enable = mkDefault true; + fonts.enableDefaultFonts = mkDefault true; + + programs = { + dconf.enable = mkDefault true; + xwayland.enable = mkDefault true; + }; + + xdg.portal = { + enable = mkDefault true; + + extraPortals = [ + # For screen sharing + pkgs.xdg-desktop-portal-wlr + ]; + }; +} diff --git a/third_party/nixpkgs/nixos/modules/programs/xonsh.nix b/third_party/nixpkgs/nixos/modules/programs/xonsh.nix index 7202ed06c6..167c953f5f 100644 --- a/third_party/nixpkgs/nixos/modules/programs/xonsh.nix +++ b/third_party/nixpkgs/nixos/modules/programs/xonsh.nix @@ -28,7 +28,7 @@ in type = types.package; default = pkgs.xonsh; defaultText = literalExpression "pkgs.xonsh"; - example = literalExpression "pkgs.xonsh.override { configFile = \"/path/to/xonshrc\"; }"; + example = literalExpression "pkgs.xonsh.override { extraPackages = ps: [ ps.requests ]; }"; description = lib.mdDoc '' xonsh package to use. ''; @@ -83,4 +83,3 @@ in }; } - diff --git a/third_party/nixpkgs/nixos/modules/rename.nix b/third_party/nixpkgs/nixos/modules/rename.nix index c8e540932e..0e8b823c2b 100644 --- a/third_party/nixpkgs/nixos/modules/rename.nix +++ b/third_party/nixpkgs/nixos/modules/rename.nix @@ -54,7 +54,9 @@ in (mkRemovedOptionModule [ "services" "chronos" ] "The corresponding package was removed from nixpkgs.") (mkRemovedOptionModule [ "services" "couchpotato" ] "The corresponding package was removed from nixpkgs.") (mkRemovedOptionModule [ "services" "dd-agent" ] "dd-agent was removed from nixpkgs in favor of the newer datadog-agent.") + (mkRemovedOptionModule [ "services" "ddclient" ] "ddclient has been removed on the request of the upstream maintainer because it is unmaintained and has bugs. Please switch to a different software like `inadyn` or `knsupdate`.") # Added 2023-07-04 (mkRemovedOptionModule [ "services" "dnscrypt-proxy" ] "Use services.dnscrypt-proxy2 instead") + (mkRemovedOptionModule [ "services" "exhibitor" ] "The corresponding package was removed from nixpkgs.") (mkRemovedOptionModule [ "services" "firefox" "syncserver" ] "The corresponding package was removed from nixpkgs.") (mkRemovedOptionModule [ "services" "flashpolicyd" ] "The flashpolicyd module has been removed. Adobe Flash Player is deprecated.") (mkRemovedOptionModule [ "services" "fourStore" ] "The fourStore module has been removed") diff --git a/third_party/nixpkgs/nixos/modules/security/ca.nix b/third_party/nixpkgs/nixos/modules/security/ca.nix index c704e2c1f5..3cd56bff04 100644 --- a/third_party/nixpkgs/nixos/modules/security/ca.nix +++ b/third_party/nixpkgs/nixos/modules/security/ca.nix @@ -18,6 +18,10 @@ in { options = { + security.pki.installCACerts = mkEnableOption "Add CA certificates to system" // { + default = true; + internal = true; + }; security.pki.certificateFiles = mkOption { type = types.listOf types.path; @@ -70,7 +74,7 @@ in }; - config = { + config = mkIf cfg.installCACerts { # NixOS canonical location + Debian/Ubuntu/Arch/Gentoo compatibility. environment.etc."ssl/certs/ca-certificates.crt".source = caBundle; diff --git a/third_party/nixpkgs/nixos/modules/security/lock-kernel-modules.nix b/third_party/nixpkgs/nixos/modules/security/lock-kernel-modules.nix index 674ba85781..333b648014 100644 --- a/third_party/nixpkgs/nixos/modules/security/lock-kernel-modules.nix +++ b/third_party/nixpkgs/nixos/modules/security/lock-kernel-modules.nix @@ -22,12 +22,11 @@ with lib; config = mkIf config.security.lockKernelModules { boot.kernelModules = concatMap (x: - if x.device != null - then - if x.fsType == "vfat" - then [ "vfat" "nls-cp437" "nls-iso8859-1" ] - else [ x.fsType ] - else []) config.system.build.fileSystems; + optionals (x.device != null) ( + if x.fsType == "vfat" + then [ "vfat" "nls-cp437" "nls-iso8859-1" ] + else [ x.fsType ]) + ) config.system.build.fileSystems; systemd.services.disable-kernel-module-loading = { description = "Disable kernel module loading"; diff --git a/third_party/nixpkgs/nixos/modules/security/pam.nix b/third_party/nixpkgs/nixos/modules/security/pam.nix index eac67cfdec..ac9da4a823 100644 --- a/third_party/nixpkgs/nixos/modules/security/pam.nix +++ b/third_party/nixpkgs/nixos/modules/security/pam.nix @@ -484,6 +484,9 @@ let optionalString cfg.mysqlAuth '' account sufficient ${pkgs.pam_mysql}/lib/security/pam_mysql.so config_file=/etc/security/pam_mysql.conf '' + + optionalString (config.services.kanidm.enablePam) '' + account sufficient ${pkgs.kanidm}/lib/pam_kanidm.so ignore_unknown_user + '' + optionalString (config.services.sssd.enable && cfg.sssdStrictAccess==false) '' account sufficient ${pkgs.sssd}/lib/security/pam_sss.so '' + @@ -545,6 +548,9 @@ let (let yubi = config.security.pam.yubico; in optionalString cfg.yubicoAuth '' auth ${yubi.control} ${pkgs.yubico-pam}/lib/security/pam_yubico.so mode=${toString yubi.mode} ${optionalString (yubi.challengeResponsePath != null) "chalresp_path=${yubi.challengeResponsePath}"} ${optionalString (yubi.mode == "client") "id=${toString yubi.id}"} ${optionalString yubi.debug "debug"} '') + + (let dp9ik = config.security.pam.dp9ik; in optionalString dp9ik.enable '' + auth ${dp9ik.control} ${pkgs.pam_dp9ik}/lib/security/pam_p9.so ${dp9ik.authserver} + '') + optionalString cfg.fprintAuth '' auth sufficient ${pkgs.fprintd}/lib/security/pam_fprintd.so '' + @@ -617,6 +623,9 @@ let optionalString use_ldap '' auth sufficient ${pam_ldap}/lib/security/pam_ldap.so use_first_pass '' + + optionalString config.services.kanidm.enablePam '' + auth sufficient ${pkgs.kanidm}/lib/pam_kanidm.so ignore_unknown_user use_first_pass + '' + optionalString config.services.sssd.enable '' auth sufficient ${pkgs.sssd}/lib/security/pam_sss.so use_first_pass '' + @@ -653,6 +662,9 @@ let optionalString cfg.mysqlAuth '' password sufficient ${pkgs.pam_mysql}/lib/security/pam_mysql.so config_file=/etc/security/pam_mysql.conf '' + + optionalString config.services.kanidm.enablePam '' + password sufficient ${pkgs.kanidm}/lib/pam_kanidm.so + '' + optionalString config.services.sssd.enable '' password sufficient ${pkgs.sssd}/lib/security/pam_sss.so '' + @@ -714,6 +726,9 @@ let optionalString cfg.mysqlAuth '' session optional ${pkgs.pam_mysql}/lib/security/pam_mysql.so config_file=/etc/security/pam_mysql.conf '' + + optionalString config.services.kanidm.enablePam '' + session optional ${pkgs.kanidm}/lib/pam_kanidm.so + '' + optionalString config.services.sssd.enable '' session optional ${pkgs.sssd}/lib/security/pam_sss.so '' + @@ -901,6 +916,32 @@ in security.pam.enableOTPW = mkEnableOption (lib.mdDoc "the OTPW (one-time password) PAM module"); + security.pam.dp9ik = { + enable = mkEnableOption ( + lib.mdDoc '' + the dp9ik pam module provided by tlsclient. + + If set, users can be authenticated against the 9front + authentication server given in {option}`security.pam.dp9ik.authserver`. + '' + ); + control = mkOption { + default = "sufficient"; + type = types.str; + description = lib.mdDoc '' + This option sets the pam "control" used for this module. + ''; + }; + authserver = mkOption { + default = null; + type = with types; nullOr string; + description = lib.mdDoc '' + This controls the hostname for the 9front authentication server + that users will be authenticated against. + ''; + }; + }; + security.pam.krb5 = { enable = mkOption { default = config.krb5.enable; @@ -1298,6 +1339,7 @@ in # Include the PAM modules in the system path mostly for the manpages. [ pkgs.pam ] ++ optional config.users.ldap.enable pam_ldap + ++ optional config.services.kanidm.enablePam pkgs.kanidm ++ optional config.services.sssd.enable pkgs.sssd ++ optionals config.security.pam.krb5.enable [pam_krb5 pam_ccreds] ++ optionals config.security.pam.enableOTPW [ pkgs.otpw ] @@ -1364,6 +1406,9 @@ in optionalString use_ldap '' mr ${pam_ldap}/lib/security/pam_ldap.so, '' + + optionalString config.services.kanidm.enablePam '' + mr ${pkgs.kanidm}/lib/pam_kanidm.so, + '' + optionalString config.services.sssd.enable '' mr ${pkgs.sssd}/lib/security/pam_sss.so, '' + diff --git a/third_party/nixpkgs/nixos/modules/security/pam_mount.nix b/third_party/nixpkgs/nixos/modules/security/pam_mount.nix index a17f38f933..ad78f38b08 100644 --- a/third_party/nixpkgs/nixos/modules/security/pam_mount.nix +++ b/third_party/nixpkgs/nixos/modules/security/pam_mount.nix @@ -167,9 +167,11 @@ in - ${pkgs.fuse}/bin/mount.fuse %(VOLUME) %(MNTPT) -o ${concatStringsSep "," (cfg.fuseMountOptions ++ [ "%(OPTIONS)" ])} + + ${pkgs.fuse}/bin/mount.fuse %(VOLUME) %(MNTPT) -o ,${concatStringsSep "," (cfg.fuseMountOptions ++ [ "%(OPTIONS)" ])}' ${pkgs.fuse}/bin/fusermount -u %(MNTPT) - ${pkgs.pam_mount}/bin/mount.crypt -o ${concatStringsSep "," (cfg.cryptMountOptions ++ [ "%(OPTIONS)" ])} %(VOLUME) %(MNTPT) + + ${pkgs.pam_mount}/bin/mount.crypt -o ,${concatStringsSep "," (cfg.cryptMountOptions ++ [ "%(OPTIONS)" ])} %(VOLUME) %(MNTPT) ${pkgs.pam_mount}/bin/umount.crypt %(MNTPT) ${pkgs.pam_mount}/bin/pmvarrun -u %(USER) -o %(OPERATION) ${optionalString oflRequired "${fake_ofl}/bin/fake_ofl %(SIGNAL) %(MNTPT)"} diff --git a/third_party/nixpkgs/nixos/modules/security/sudo.nix b/third_party/nixpkgs/nixos/modules/security/sudo.nix index 296b61fd70..9ac91bd0d3 100644 --- a/third_party/nixpkgs/nixos/modules/security/sudo.nix +++ b/third_party/nixpkgs/nixos/modules/security/sudo.nix @@ -216,10 +216,10 @@ in ${concatStringsSep "\n" ( lists.flatten ( map ( - rule: if (length rule.commands != 0) then [ + rule: optionals (length rule.commands != 0) [ (map (user: "${toUserString user} ${rule.host}=(${rule.runAs}) ${toCommandsString rule.commands}") rule.users) (map (group: "${toGroupString group} ${rule.host}=(${rule.runAs}) ${toCommandsString rule.commands}") rule.groups) - ] else [] + ] ) cfg.extraRules ) )} diff --git a/third_party/nixpkgs/nixos/modules/services/audio/roon-bridge.nix b/third_party/nixpkgs/nixos/modules/services/audio/roon-bridge.nix index 70392b647c..027b0332fd 100644 --- a/third_party/nixpkgs/nixos/modules/services/audio/roon-bridge.nix +++ b/third_party/nixpkgs/nixos/modules/services/audio/roon-bridge.nix @@ -70,12 +70,11 @@ in { users.groups.${cfg.group} = {}; users.users.${cfg.user} = - if cfg.user == "roon-bridge" then { + optionalAttrs (cfg.user == "roon-bridge") { isSystemUser = true; description = "Roon Bridge user"; group = cfg.group; extraGroups = [ "audio" ]; - } - else {}; + }; }; } diff --git a/third_party/nixpkgs/nixos/modules/services/audio/roon-server.nix b/third_party/nixpkgs/nixos/modules/services/audio/roon-server.nix index fbe74f63b9..8691c08b0d 100644 --- a/third_party/nixpkgs/nixos/modules/services/audio/roon-server.nix +++ b/third_party/nixpkgs/nixos/modules/services/audio/roon-server.nix @@ -76,12 +76,11 @@ in { users.groups.${cfg.group} = {}; users.users.${cfg.user} = - if cfg.user == "roon-server" then { + optionalAttrs (cfg.user == "roon-server") { isSystemUser = true; description = "Roon Server user"; group = cfg.group; extraGroups = [ "audio" ]; - } - else {}; + }; }; } diff --git a/third_party/nixpkgs/nixos/modules/services/audio/wyoming/faster-whisper.nix b/third_party/nixpkgs/nixos/modules/services/audio/wyoming/faster-whisper.nix new file mode 100644 index 0000000000..6317709b24 --- /dev/null +++ b/third_party/nixpkgs/nixos/modules/services/audio/wyoming/faster-whisper.nix @@ -0,0 +1,186 @@ +{ config +, lib +, pkgs +, ... +}: + +let + cfg = config.services.wyoming.faster-whisper; + + inherit (lib) + escapeShellArgs + mkOption + mdDoc + mkEnableOption + mkPackageOptionMD + types + ; + + inherit (builtins) + toString + ; + +in + +{ + options.services.wyoming.faster-whisper = with types; { + package = mkPackageOptionMD pkgs "wyoming-faster-whisper" { }; + + servers = mkOption { + default = {}; + description = mdDoc '' + Attribute set of faster-whisper instances to spawn. + ''; + type = types.attrsOf (types.submodule ( + { ... }: { + options = { + enable = mkEnableOption (mdDoc "Wyoming faster-whisper server"); + + model = mkOption { + type = enum [ + "tiny" + "tiny-int8" + "base" + "base-int8" + "small" + "small-int8" + "medium" + "medium-int8" + ]; + default = "tiny-int8"; + example = "medium-int8"; + description = mdDoc '' + Name of the voice model to use. + ''; + }; + + uri = mkOption { + type = strMatching "^(tcp|unix)://.*$"; + example = "tcp://0.0.0.0:10300"; + description = mdDoc '' + URI to bind the wyoming server to. + ''; + }; + + device = mkOption { + # https://opennmt.net/CTranslate2/python/ctranslate2.models.Whisper.html# + type = types.enum [ + "cpu" + "cuda" + "auto" + ]; + default = "cpu"; + description = mdDoc '' + Id of a speaker in a multi-speaker model. + ''; + }; + + language = mkOption { + type = enum [ + # https://github.com/home-assistant/addons/blob/master/whisper/config.yaml#L20 + "auto" "af" "am" "ar" "as" "az" "ba" "be" "bg" "bn" "bo" "br" "bs" "ca" "cs" "cy" "da" "de" "el" "en" "es" "et" "eu" "fa" "fi" "fo" "fr" "gl" "gu" "ha" "haw" "he" "hi" "hr" "ht" "hu" "hy" "id" "is" "it" "ja" "jw" "ka" "kk" "km" "kn" "ko" "la" "lb" "ln" "lo" "lt" "lv" "mg" "mi" "mk" "ml" "mn" "mr" "ms" "mt" "my" "ne" "nl" "nn" "no" "oc" "pa" "pl" "ps" "pt" "ro" "ru" "sa" "sd" "si" "sk" "sl" "sn" "so" "sq" "sr" "su" "sv" "sw" "ta" "te" "tg" "th" "tk" "tl" "tr" "tt" "uk" "ur" "uz" "vi" "yi" "yo" "zh" + ]; + example = "en"; + description = mdDoc '' + The language used to to parse words and sentences. + ''; + }; + + beamSize = mkOption { + type = ints.unsigned; + default = 1; + example = 5; + description = mdDoc '' + The number of beams to use in beam search. + ''; + apply = toString; + }; + + extraArgs = mkOption { + type = listOf str; + default = [ ]; + description = mdDoc '' + Extra arguments to pass to the server commandline. + ''; + apply = escapeShellArgs; + }; + }; + } + )); + }; + }; + + config = let + inherit (lib) + mapAttrs' + mkIf + nameValuePair + ; + in mkIf (cfg.servers != {}) { + systemd.services = mapAttrs' (server: options: + nameValuePair "wyoming-faster-whisper-${server}" { + description = "Wyoming faster-whisper server instance ${server}"; + after = [ + "network-online.target" + ]; + wantedBy = [ + "multi-user.target" + ]; + serviceConfig = { + DynamicUser = true; + User = "wyoming-faster-whisper"; + StateDirectory = "wyoming/faster-whisper"; + # https://github.com/home-assistant/addons/blob/master/whisper/rootfs/etc/s6-overlay/s6-rc.d/whisper/run + ExecStart = '' + ${cfg.package}/bin/wyoming-faster-whisper \ + --data-dir $STATE_DIRECTORY \ + --download-dir $STATE_DIRECTORY \ + --uri ${options.uri} \ + --model ${options.model} \ + --language ${options.language} \ + --beam-size ${options.beamSize} ${options.extraArgs} + ''; + CapabilityBoundingSet = ""; + DeviceAllow = if builtins.elem options.device [ "cuda" "auto" ] then [ + # https://docs.nvidia.com/dgx/pdf/dgx-os-5-user-guide.pdf + "/dev/nvidia1" + "/dev/nvidia2" + "/dev/nvidia3" + "/dev/nvidia4" + "/dev/nvidia-caps/nvidia-cap1" + "/dev/nvidia-caps/nvidia-cap2" + "/dev/nvidiactl" + "/dev/nvidia-modeset" + "/dev/nvidia-uvm" + "/dev/nvidia-uvm-tools" + ] else ""; + DevicePolicy = "closed"; + LockPersonality = true; + MemoryDenyWriteExecute = true; + PrivateDevices = true; + PrivateUsers = true; + ProtectHome = true; + ProtectHostname = true; + ProtectKernelLogs = true; + ProtectKernelModules = true; + ProtectKernelTunables = true; + ProtectControlGroups = true; + ProtectProc = "invisible"; + ProcSubset = "pid"; + RestrictAddressFamilies = [ + "AF_INET" + "AF_INET6" + "AF_UNIX" + ]; + RestrictNamespaces = true; + RestrictRealtime = true; + SystemCallArchitectures = "native"; + SystemCallFilter = [ + "@system-service" + "~@privileged" + ]; + UMask = "0077"; + }; + }) cfg.servers; + }; +} diff --git a/third_party/nixpkgs/nixos/modules/services/audio/wyoming/piper.nix b/third_party/nixpkgs/nixos/modules/services/audio/wyoming/piper.nix new file mode 100644 index 0000000000..ed50bd9f48 --- /dev/null +++ b/third_party/nixpkgs/nixos/modules/services/audio/wyoming/piper.nix @@ -0,0 +1,174 @@ +{ config +, lib +, pkgs +, ... +}: + +let + cfg = config.services.wyoming.piper; + + inherit (lib) + escapeShellArgs + mkOption + mdDoc + mkEnableOption + mkPackageOptionMD + types + ; + + inherit (builtins) + toString + ; + +in + +{ + meta.buildDocsInSandbox = false; + + options.services.wyoming.piper = with types; { + package = mkPackageOptionMD pkgs "wyoming-piper" { }; + + servers = mkOption { + default = {}; + description = mdDoc '' + Attribute set of piper instances to spawn. + ''; + type = types.attrsOf (types.submodule ( + { ... }: { + options = { + enable = mkEnableOption (mdDoc "Wyoming Piper server"); + + piper = mkPackageOptionMD pkgs "piper-tts" { }; + + voice = mkOption { + type = str; + example = "en-us-ryan-medium"; + description = mdDoc '' + Name of the voice model to use. See the following website for samples: + https://rhasspy.github.io/piper-samples/ + ''; + }; + + uri = mkOption { + type = strMatching "^(tcp|unix)://.*$"; + example = "tcp://0.0.0.0:10200"; + description = mdDoc '' + URI to bind the wyoming server to. + ''; + }; + + speaker = mkOption { + type = ints.unsigned; + default = 0; + description = mdDoc '' + ID of a specific speaker in a multi-speaker model. + ''; + apply = toString; + }; + + noiseScale = mkOption { + type = float; + default = 0.667; + description = mdDoc '' + Generator noise value. + ''; + apply = toString; + }; + + noiseWidth = mkOption { + type = float; + default = 0.333; + description = mdDoc '' + Phoneme width noise value. + ''; + apply = toString; + }; + + lengthScale = mkOption { + type = float; + default = 1.0; + description = mdDoc '' + Phoneme length value. + ''; + apply = toString; + }; + + extraArgs = mkOption { + type = listOf str; + default = [ ]; + description = mdDoc '' + Extra arguments to pass to the server commandline. + ''; + apply = escapeShellArgs; + }; + }; + } + )); + }; + }; + + config = let + inherit (lib) + mapAttrs' + mkIf + nameValuePair + ; + in mkIf (cfg.servers != {}) { + systemd.services = mapAttrs' (server: options: + nameValuePair "wyoming-piper-${server}" { + description = "Wyoming Piper server instance ${server}"; + after = [ + "network-online.target" + ]; + wantedBy = [ + "multi-user.target" + ]; + serviceConfig = { + DynamicUser = true; + User = "wyoming-piper"; + StateDirectory = "wyoming/piper"; + # https://github.com/home-assistant/addons/blob/master/piper/rootfs/etc/s6-overlay/s6-rc.d/piper/run + ExecStart = '' + ${cfg.package}/bin/wyoming-piper \ + --data-dir $STATE_DIRECTORY \ + --download-dir $STATE_DIRECTORY \ + --uri ${options.uri} \ + --piper ${options.piper}/bin/piper \ + --voice ${options.voice} \ + --speaker ${options.speaker} \ + --length-scale ${options.lengthScale} \ + --noise-scale ${options.noiseScale} \ + --noise-w ${options.noiseWidth} ${options.extraArgs} + ''; + CapabilityBoundingSet = ""; + DeviceAllow = ""; + DevicePolicy = "closed"; + LockPersonality = true; + MemoryDenyWriteExecute = true; + PrivateDevices = true; + PrivateUsers = true; + ProtectHome = true; + ProtectHostname = true; + ProtectKernelLogs = true; + ProtectKernelModules = true; + ProtectKernelTunables = true; + ProtectControlGroups = true; + ProtectProc = "invisible"; + ProcSubset = "pid"; + RestrictAddressFamilies = [ + "AF_INET" + "AF_INET6" + "AF_UNIX" + ]; + RestrictNamespaces = true; + RestrictRealtime = true; + SystemCallArchitectures = "native"; + SystemCallFilter = [ + "@system-service" + "~@privileged" + ]; + UMask = "0077"; + }; + }) cfg.servers; + }; +} diff --git a/third_party/nixpkgs/nixos/modules/services/backup/restic.nix b/third_party/nixpkgs/nixos/modules/services/backup/restic.nix index 3a951f7cbc..1620770e5b 100644 --- a/third_party/nixpkgs/nixos/modules/services/backup/restic.nix +++ b/third_party/nixpkgs/nixos/modules/services/backup/restic.nix @@ -298,7 +298,7 @@ in let extraOptions = concatMapStrings (arg: " -o ${arg}") backup.extraOptions; resticCmd = "${backup.package}/bin/restic${extraOptions}"; - excludeFlags = if (backup.exclude != []) then ["--exclude-file=${pkgs.writeText "exclude-patterns" (concatStringsSep "\n" backup.exclude)}"] else []; + excludeFlags = optional (backup.exclude != []) "--exclude-file=${pkgs.writeText "exclude-patterns" (concatStringsSep "\n" backup.exclude)}"; filesFromTmpFile = "/run/restic-backups-${name}/includes"; backupPaths = if (backup.dynamicFilesFrom == null) diff --git a/third_party/nixpkgs/nixos/modules/services/continuous-integration/buildkite-agents.nix b/third_party/nixpkgs/nixos/modules/services/continuous-integration/buildkite-agents.nix index 7c8f77580f..a40b939a16 100644 --- a/third_party/nixpkgs/nixos/modules/services/continuous-integration/buildkite-agents.nix +++ b/third_party/nixpkgs/nixos/modules/services/continuous-integration/buildkite-agents.nix @@ -11,7 +11,7 @@ let default = null; description = lib.mdDoc description; type = types.nullOr types.lines; - } // (if example == null then {} else { inherit example; }); + } // (lib.optionalAttrs (example != null) { inherit example; }); }; mkHookOptions = hooks: listToAttrs (map mkHookOption hooks); diff --git a/third_party/nixpkgs/nixos/modules/services/continuous-integration/github-runner.nix b/third_party/nixpkgs/nixos/modules/services/continuous-integration/github-runner.nix index 67e71659d6..27cfee92c7 100644 --- a/third_party/nixpkgs/nixos/modules/services/continuous-integration/github-runner.nix +++ b/third_party/nixpkgs/nixos/modules/services/continuous-integration/github-runner.nix @@ -21,5 +21,5 @@ in services.github-runners.${cfg.name} = cfg; }; - meta.maintainers = with maintainers; [ veehaitch newam ]; + meta.maintainers = with maintainers; [ veehaitch newam thomasjm ]; } diff --git a/third_party/nixpkgs/nixos/modules/services/continuous-integration/gitlab-runner.nix b/third_party/nixpkgs/nixos/modules/services/continuous-integration/gitlab-runner.nix index 53f39f40da..10a2fe8a44 100644 --- a/third_party/nixpkgs/nixos/modules/services/continuous-integration/gitlab-runner.nix +++ b/third_party/nixpkgs/nixos/modules/services/continuous-integration/gitlab-runner.nix @@ -611,4 +611,6 @@ in { (mkRenamedOptionModule [ "services" "gitlab-runner" "sessionServer" "advertiseAddress" ] [ "services" "gitlab-runner" "settings" "session_server" "advertise_address" ] ) (mkRenamedOptionModule [ "services" "gitlab-runner" "sessionServer" "sessionTimeout" ] [ "services" "gitlab-runner" "settings" "session_server" "session_timeout" ] ) ]; + + meta.maintainers = teams.gitlab.members; } diff --git a/third_party/nixpkgs/nixos/modules/services/continuous-integration/jenkins/job-builder.nix b/third_party/nixpkgs/nixos/modules/services/continuous-integration/jenkins/job-builder.nix index d6a8c2a3f7..a8e3effd1f 100644 --- a/third_party/nixpkgs/nixos/modules/services/continuous-integration/jenkins/job-builder.nix +++ b/third_party/nixpkgs/nixos/modules/services/continuous-integration/jenkins/job-builder.nix @@ -9,25 +9,20 @@ let in { options = { services.jenkins.jobBuilder = { - enable = mkOption { - type = types.bool; - default = false; - description = lib.mdDoc '' - Whether or not to enable the Jenkins Job Builder (JJB) service. It - allows defining jobs for Jenkins in a declarative manner. + enable = mkEnableOption (mdDoc '' + the Jenkins Job Builder (JJB) service. It + allows defining jobs for Jenkins in a declarative manner. - Jobs managed through the Jenkins WebUI (or by other means) are left - unchanged. + Jobs managed through the Jenkins WebUI (or by other means) are left + unchanged. - Note that it really is declarative configuration; if you remove a - previously defined job, the corresponding job directory will be - deleted. + Note that it really is declarative configuration; if you remove a + previously defined job, the corresponding job directory will be + deleted. - Please see the Jenkins Job Builder documentation for more info: - [ - http://docs.openstack.org/infra/jenkins-job-builder/](http://docs.openstack.org/infra/jenkins-job-builder/) - ''; - }; + Please see the Jenkins Job Builder documentation for more info: + + ''); accessUser = mkOption { default = "admin"; diff --git a/third_party/nixpkgs/nixos/modules/services/databases/foundationdb.md b/third_party/nixpkgs/nixos/modules/services/databases/foundationdb.md index f852c6888d..0815c13915 100644 --- a/third_party/nixpkgs/nixos/modules/services/databases/foundationdb.md +++ b/third_party/nixpkgs/nixos/modules/services/databases/foundationdb.md @@ -6,7 +6,7 @@ *Maintainer:* Austin Seipp -*Available version(s):* 5.1.x, 5.2.x, 6.0.x +*Available version(s):* 7.1.x FoundationDB (or "FDB") is an open source, distributed, transactional key-value store. @@ -17,7 +17,7 @@ To enable FoundationDB, add the following to your {file}`configuration.nix`: ``` services.foundationdb.enable = true; -services.foundationdb.package = pkgs.foundationdb52; # FoundationDB 5.2.x +services.foundationdb.package = pkgs.foundationdb71; # FoundationDB 7.1.x ``` The {option}`services.foundationdb.package` option is required, and @@ -66,7 +66,7 @@ necessary Python modules). ```ShellSession a@link> cat fdb-status.py #! /usr/bin/env nix-shell -#! nix-shell -i python -p python pythonPackages.foundationdb52 +#! nix-shell -i python -p python pythonPackages.foundationdb71 import fdb import json diff --git a/third_party/nixpkgs/nixos/modules/services/games/factorio.nix b/third_party/nixpkgs/nixos/modules/services/games/factorio.nix index 9b15cac149..b349ffa237 100644 --- a/third_party/nixpkgs/nixos/modules/services/games/factorio.nix +++ b/third_party/nixpkgs/nixos/modules/services/games/factorio.nix @@ -294,6 +294,6 @@ in }; }; - networking.firewall.allowedUDPPorts = if cfg.openFirewall then [ cfg.port ] else []; + networking.firewall.allowedUDPPorts = optional cfg.openFirewall cfg.port; }; } diff --git a/third_party/nixpkgs/nixos/modules/services/games/freeciv.nix b/third_party/nixpkgs/nixos/modules/services/games/freeciv.nix index f33ea5c08a..bba27ae4cb 100644 --- a/third_party/nixpkgs/nixos/modules/services/games/freeciv.nix +++ b/third_party/nixpkgs/nixos/modules/services/games/freeciv.nix @@ -16,7 +16,7 @@ let generate = name: value: let mkParam = k: v: if v == null then [] - else if isBool v then if v then [("--"+k)] else [] + else if isBool v then optional v ("--"+k) else [("--"+k) v]; mkParams = k: v: map (mkParam k) (if isList v then v else [v]); in escapeShellArgs (concatLists (concatLists (mapAttrsToList mkParams value))); diff --git a/third_party/nixpkgs/nixos/modules/services/games/mchprs.nix b/third_party/nixpkgs/nixos/modules/services/games/mchprs.nix new file mode 100644 index 0000000000..a65001b0b3 --- /dev/null +++ b/third_party/nixpkgs/nixos/modules/services/games/mchprs.nix @@ -0,0 +1,341 @@ +{ config, lib, pkgs, ... }: + +with lib; + +let + cfg = config.services.mchprs; + settingsFormat = pkgs.formats.toml { }; + + whitelistFile = pkgs.writeText "whitelist.json" + (builtins.toJSON + (mapAttrsToList (n: v: { name = n; uuid = v; }) cfg.whitelist.list)); + + configToml = + (removeAttrs cfg.settings [ "address" "port" ]) // + { + bind_address = cfg.settings.address + ":" + toString cfg.settings.port; + whitelist = cfg.whitelist.enable; + }; + + configTomlFile = settingsFormat.generate "Config.toml" configToml; +in +{ + options = { + services.mchprs = { + enable = mkEnableOption "MCHPRS"; + + declarativeSettings = mkOption { + type = types.bool; + default = false; + description = mdDoc '' + Whether to use a declarative configuration for MCHPRS. + ''; + }; + + declarativeWhitelist = mkOption { + type = types.bool; + default = false; + description = mdDoc '' + Whether to use a declarative whitelist. + The options {option}`services.mchprs.whitelist.list` + will be applied if and only if set to `true`. + ''; + }; + + dataDir = mkOption { + type = types.path; + default = "/var/lib/mchprs"; + description = mdDoc '' + Directory to store MCHPRS database and other state/data files. + ''; + }; + + openFirewall = mkOption { + type = types.bool; + default = false; + description = mdDoc '' + Whether to open ports in the firewall for the server. + Only has effect when + {option}`services.mchprs.declarativeSettings` is `true`. + ''; + }; + + maxRuntime = mkOption { + type = types.str; + default = "infinity"; + example = "7d"; + description = mdDoc '' + Automatically restart the server after + {option}`services.mchprs.maxRuntime`. + The time span format is described here: + https://www.freedesktop.org/software/systemd/man/systemd.time.html#Parsing%20Time%20Spans. + If `null`, then the server is not restarted automatically. + ''; + }; + + package = mkOption { + type = types.package; + default = pkgs.mchprs; + defaultText = literalExpression "pkgs.mchprs"; + description = mdDoc "Version of MCHPRS to run."; + }; + + settings = mkOption { + type = types.submodule { + freeformType = settingsFormat.type; + + options = { + port = mkOption { + type = types.port; + default = 25565; + description = mdDoc '' + Port for the server. + Only has effect when + {option}`services.mchprs.declarativeSettings` is `true`. + ''; + }; + + address = mkOption { + type = types.str; + default = "0.0.0.0"; + description = mdDoc '' + Address for the server. + Please use enclosing square brackets when using ipv6. + Only has effect when + {option}`services.mchprs.declarativeSettings` is `true`. + ''; + }; + + motd = mkOption { + type = types.str; + default = "Minecraft High Performance Redstone Server"; + description = mdDoc '' + Message of the day. + Only has effect when + {option}`services.mchprs.declarativeSettings` is `true`. + ''; + }; + + chat_format = mkOption { + type = types.str; + default = "<{username}> {message}"; + description = mdDoc '' + How to format chat message interpolating `username` + and `message` with curly braces. + Only has effect when + {option}`services.mchprs.declarativeSettings` is `true`. + ''; + }; + + max_players = mkOption { + type = types.ints.positive; + default = 99999; + description = mdDoc '' + Maximum number of simultaneous players. + Only has effect when + {option}`services.mchprs.declarativeSettings` is `true`. + ''; + }; + + view_distance = mkOption { + type = types.ints.positive; + default = 8; + description = mdDoc '' + Maximal distance (in chunks) between players and loaded chunks. + Only has effect when + {option}`services.mchprs.declarativeSettings` is `true`. + ''; + }; + + bungeecord = mkOption { + type = types.bool; + default = false; + description = mdDoc '' + Enable compatibility with + [BungeeCord](https://github.com/SpigotMC/BungeeCord). + Only has effect when + {option}`services.mchprs.declarativeSettings` is `true`. + ''; + }; + + schemati = mkOption { + type = types.bool; + default = false; + description = mdDoc '' + Mimic the verification and directory layout used by the + Open Redstone Engineers + [Schemati plugin](https://github.com/OpenRedstoneEngineers/Schemati). + Only has effect when + {option}`services.mchprs.declarativeSettings` is `true`. + ''; + }; + + block_in_hitbox = mkOption { + type = types.bool; + default = true; + description = mdDoc '' + Allow placing blocks inside of players + (hitbox logic is simplified). + Only has effect when + {option}`services.mchprs.declarativeSettings` is `true`. + ''; + }; + + auto_redpiler = mkOption { + type = types.bool; + default = true; + description = mdDoc '' + Use redpiler automatically. + Only has effect when + {option}`services.mchprs.declarativeSettings` is `true`. + ''; + }; + }; + }; + default = { }; + + description = mdDoc '' + Configuration for MCHPRS via `Config.toml`. + See https://github.com/MCHPR/MCHPRS/blob/master/README.md for documentation. + ''; + }; + + whitelist = { + enable = mkOption { + type = types.bool; + default = false; + description = mdDoc '' + Whether or not the whitelist (in `whitelist.json`) shoud be enabled. + Only has effect when {option}`services.mchprs.declarativeSettings` is `true`. + ''; + }; + + list = mkOption { + type = + let + minecraftUUID = types.strMatching + "[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}" // { + description = "Minecraft UUID"; + }; + in + types.attrsOf minecraftUUID; + default = { }; + example = literalExpression '' + { + username1 = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"; + username2 = "yyyyyyyy-yyyy-yyyy-yyyy-yyyyyyyyyyyy"; + }; + ''; + description = mdDoc '' + Whitelisted players, only has an effect when + {option}`services.mchprs.declarativeWhitelist` is + `true` and the whitelist is enabled + via {option}`services.mchprs.whitelist.enable`. + This is a mapping from Minecraft usernames to UUIDs. + You can use to get a + Minecraft UUID for a username. + ''; + }; + }; + }; + }; + + config = mkIf cfg.enable { + users.users.mchprs = { + description = "MCHPRS service user"; + home = cfg.dataDir; + createHome = true; + isSystemUser = true; + group = "mchprs"; + }; + users.groups.mchprs = { }; + + systemd.services.mchprs = { + description = "MCHPRS Service"; + wantedBy = [ "multi-user.target" ]; + after = [ "network.target" ]; + + serviceConfig = { + ExecStart = "${lib.getExe cfg.package}"; + Restart = "always"; + RuntimeMaxSec = cfg.maxRuntime; + User = "mchprs"; + WorkingDirectory = cfg.dataDir; + + StandardOutput = "journal"; + StandardError = "journal"; + + # Hardening + CapabilityBoundingSet = [ "" ]; + DeviceAllow = [ "" ]; + LockPersonality = true; + MemoryDenyWriteExecute = true; + PrivateDevices = true; + PrivateTmp = true; + PrivateUsers = true; + ProtectClock = true; + ProtectControlGroups = true; + ProtectHome = true; + ProtectHostname = true; + ProtectKernelLogs = true; + ProtectKernelModules = true; + ProtectKernelTunables = true; + ProtectProc = "invisible"; + RestrictAddressFamilies = [ "AF_INET" "AF_INET6" ]; + RestrictNamespaces = true; + RestrictRealtime = true; + RestrictSUIDSGID = true; + SystemCallArchitectures = "native"; + UMask = "0077"; + }; + + preStart = + (if cfg.declarativeSettings then '' + if [ -e .declarativeSettings ]; then + + # Settings were declarative before, no need to back up anything + cp -f ${configTomlFile} Config.toml + + else + + # Declarative settings for the first time, backup stateful files + cp -b --suffix=.stateful ${configTomlFile} Config.toml + + echo "Autogenerated file that implies that this server configuration is managed declaratively by NixOS" \ + > .declarativeSettings + + fi + '' else '' + if [ -e .declarativeSettings ]; then + rm .declarativeSettings + fi + '') + (if cfg.declarativeWhitelist then '' + if [ -e .declarativeWhitelist ]; then + + # Whitelist was declarative before, no need to back up anything + ln -sf ${whitelistFile} whitelist.json + + else + + # Declarative whitelist for the first time, backup stateful files + ln -sb --suffix=.stateful ${whitelistFile} whitelist.json + + echo "Autogenerated file that implies that this server's whitelist is managed declaratively by NixOS" \ + > .declarativeWhitelist + + fi + '' else '' + if [ -e .declarativeWhitelist ]; then + rm .declarativeWhitelist + fi + ''); + }; + + networking.firewall = mkIf (cfg.declarativeSettings && cfg.openFirewall) { + allowedUDPPorts = [ cfg.settings.port ]; + allowedTCPPorts = [ cfg.settings.port ]; + }; + }; + + meta.maintainers = with maintainers; [ gdd ]; +} diff --git a/third_party/nixpkgs/nixos/modules/services/games/minetest-server.nix b/third_party/nixpkgs/nixos/modules/services/games/minetest-server.nix index 578364ec54..8dc3601534 100644 --- a/third_party/nixpkgs/nixos/modules/services/games/minetest-server.nix +++ b/third_party/nixpkgs/nixos/modules/services/games/minetest-server.nix @@ -3,15 +3,52 @@ with lib; let + CONTAINS_NEWLINE_RE = ".*\n.*"; + # The following values are reserved as complete option values: + # { - start of a group. + # """ - start of a multi-line string. + RESERVED_VALUE_RE = "[[:space:]]*(\"\"\"|\\{)[[:space:]]*"; + NEEDS_MULTILINE_RE = "${CONTAINS_NEWLINE_RE}|${RESERVED_VALUE_RE}"; + + # There is no way to encode """ on its own line in a Minetest config. + UNESCAPABLE_RE = ".*\n\"\"\"\n.*"; + + toConfMultiline = name: value: + assert lib.assertMsg + ((builtins.match UNESCAPABLE_RE value) == null) + ''""" can't be on its own line in a minetest config.''; + "${name} = \"\"\"\n${value}\n\"\"\"\n"; + + toConf = values: + lib.concatStrings + (lib.mapAttrsToList + (name: value: { + bool = "${name} = ${toString value}\n"; + int = "${name} = ${toString value}\n"; + null = ""; + set = "${name} = {\n${toConf value}}\n"; + string = + if (builtins.match NEEDS_MULTILINE_RE value) != null + then toConfMultiline name value + else "${name} = ${value}\n"; + }.${builtins.typeOf value}) + values); + cfg = config.services.minetest-server; - flag = val: name: optionalString (val != null) "--${name} ${toString val} "; + flag = val: name: lib.optionals (val != null) ["--${name}" "${toString val}"]; + flags = [ - (flag cfg.gameId "gameid") - (flag cfg.world "world") - (flag cfg.configPath "config") - (flag cfg.logPath "logfile") - (flag cfg.port "port") - ]; + "--server" + ] + ++ ( + if cfg.configPath != null + then ["--config" cfg.configPath] + else ["--config" (builtins.toFile "minetest.conf" (toConf cfg.config))]) + ++ (flag cfg.gameId "gameid") + ++ (flag cfg.world "world") + ++ (flag cfg.logPath "logfile") + ++ (flag cfg.port "port") + ++ cfg.extraArgs; in { options = { @@ -55,6 +92,16 @@ in ''; }; + config = mkOption { + type = types.attrsOf types.anything; + default = {}; + description = lib.mdDoc '' + Settings to add to the minetest config file. + + This option is ignored if `configPath` is set. + ''; + }; + logPath = mkOption { type = types.nullOr types.path; default = null; @@ -75,6 +122,14 @@ in If set to null, the default 30000 will be used. ''; }; + + extraArgs = mkOption { + type = types.listOf types.str; + default = []; + description = lib.mdDoc '' + Additional command line flags to pass to the minetest executable. + ''; + }; }; }; @@ -100,7 +155,7 @@ in script = '' cd /var/lib/minetest - exec ${pkgs.minetest}/bin/minetest --server ${concatStrings flags} + exec ${pkgs.minetest}/bin/minetest ${lib.escapeShellArgs flags} ''; }; }; diff --git a/third_party/nixpkgs/nixos/modules/services/hardware/fwupd.nix b/third_party/nixpkgs/nixos/modules/services/hardware/fwupd.nix index b8c2ac9484..4e5913fd27 100644 --- a/third_party/nixpkgs/nixos/modules/services/hardware/fwupd.nix +++ b/third_party/nixpkgs/nixos/modules/services/hardware/fwupd.nix @@ -13,16 +13,13 @@ let }; customEtc = { - "fwupd/daemon.conf" = { - source = format.generate "daemon.conf" { + "fwupd/fwupd.conf" = { + source = format.generate "fwupd.conf" { fwupd = cfg.daemonSettings; - }; - }; - - "fwupd/uefi_capsule.conf" = { - source = format.generate "uefi_capsule.conf" { uefi_capsule = cfg.uefiCapsuleSettings; }; + # fwupd tries to chmod the file if it doesn't have the right permissions + mode = "0640"; }; }; @@ -53,7 +50,7 @@ let # to install it because it would create a cyclic dependency between # the outputs. We also need to enable the remote, # which should not be done by default. - if cfg.enableTestRemote then (enableRemote cfg.package.installedTests "fwupd-tests") else {} + lib.optionalAttrs cfg.enableTestRemote (enableRemote cfg.package.installedTests "fwupd-tests") ); in { diff --git a/third_party/nixpkgs/nixos/modules/services/hardware/keyd.nix b/third_party/nixpkgs/nixos/modules/services/hardware/keyd.nix index d17b0e4303..969383fd4d 100644 --- a/third_party/nixpkgs/nixos/modules/services/hardware/keyd.nix +++ b/third_party/nixpkgs/nixos/modules/services/hardware/keyd.nix @@ -3,12 +3,9 @@ with lib; let cfg = config.services.keyd; settingsFormat = pkgs.formats.ini { }; -in -{ - options = { - services.keyd = { - enable = mkEnableOption (lib.mdDoc "keyd, a key remapping daemon"); + keyboardOptions = { ... }: { + options = { ids = mkOption { type = types.listOf types.string; default = [ "*" ]; @@ -35,24 +32,71 @@ in }; }; description = lib.mdDoc '' - Configuration, except `ids` section, that is written to {file}`/etc/keyd/default.conf`. + Configuration, except `ids` section, that is written to {file}`/etc/keyd/.conf`. + Appropriate names can be used to write non-alpha keys, for example "equal" instead of "=" sign (see ). See how to configure. ''; }; }; }; +in +{ + imports = [ + (mkRemovedOptionModule [ "services" "keyd" "ids" ] + ''Use keyboards..ids instead. If you don't need a multi-file configuration, just add keyboards.default before the ids. See https://github.com/NixOS/nixpkgs/pull/243271.'') + (mkRemovedOptionModule [ "services" "keyd" "settings" ] + ''Use keyboards..settings instead. If you don't need a multi-file configuration, just add keyboards.default before the settings. See https://github.com/NixOS/nixpkgs/pull/243271.'') + ]; + + options.services.keyd = { + enable = mkEnableOption (lib.mdDoc "keyd, a key remapping daemon"); + + keyboards = mkOption { + type = types.attrsOf (types.submodule keyboardOptions); + default = { }; + example = literalExpression '' + { + default = { + ids = [ "*" ]; + settings = { + main = { + capslock = "overload(control, esc)"; + }; + }; + }; + externalKeyboard = { + ids = [ "1ea7:0907" ]; + settings = { + main = { + esc = capslock; + }; + }; + }; + } + ''; + description = mdDoc '' + Configuration for one or more device IDs. Corresponding files in the /etc/keyd/ directory are created according to the name of the keys (like `default` or `externalKeyboard`). + ''; + }; + }; config = mkIf cfg.enable { - environment.etc."keyd/default.conf".source = pkgs.runCommand "default.conf" - { - ids = '' - [ids] - ${concatStringsSep "\n" cfg.ids} - ''; - passAsFile = [ "ids" ]; - } '' - cat $idsPath <(echo) ${settingsFormat.generate "keyd-main.conf" cfg.settings} >$out - ''; + # Creates separate files in the `/etc/keyd/` directory for each key in the dictionary + environment.etc = mapAttrs' + (name: options: + nameValuePair "keyd/${name}.conf" { + source = pkgs.runCommand "${name}.conf" + { + ids = '' + [ids] + ${concatStringsSep "\n" options.ids} + ''; + passAsFile = [ "ids" ]; + } '' + cat $idsPath <(echo) ${settingsFormat.generate "keyd-${name}.conf" options.settings} >$out + ''; + }) + cfg.keyboards; hardware.uinput.enable = lib.mkDefault true; @@ -62,9 +106,11 @@ in wantedBy = [ "multi-user.target" ]; - restartTriggers = [ - config.environment.etc."keyd/default.conf".source - ]; + restartTriggers = mapAttrsToList + (name: options: + config.environment.etc."keyd/${name}.conf".source + ) + cfg.keyboards; # this is configurable in 2.4.2, later versions seem to remove this option. # post-2.4.2 may need to set makeFlags in the derivation: diff --git a/third_party/nixpkgs/nixos/modules/services/hardware/pcscd.nix b/third_party/nixpkgs/nixos/modules/services/hardware/pcscd.nix index a09c64645c..a9e4998efe 100644 --- a/third_party/nixpkgs/nixos/modules/services/hardware/pcscd.nix +++ b/third_party/nixpkgs/nixos/modules/services/hardware/pcscd.nix @@ -24,7 +24,6 @@ in plugins = mkOption { type = types.listOf types.package; - default = [ pkgs.ccid ]; defaultText = literalExpression "[ pkgs.ccid ]"; example = literalExpression "[ pkgs.pcsc-cyberjack ]"; description = lib.mdDoc "Plugin packages to be used for PCSC-Lite."; @@ -56,6 +55,8 @@ in environment.systemPackages = [ package ]; systemd.packages = [ (getBin package) ]; + services.pcscd.plugins = [ pkgs.ccid ]; + systemd.sockets.pcscd.wantedBy = [ "sockets.target" ]; systemd.services.pcscd = { diff --git a/third_party/nixpkgs/nixos/modules/services/hardware/supergfxd.nix b/third_party/nixpkgs/nixos/modules/services/hardware/supergfxd.nix index 5ea05ac277..bd82775e82 100644 --- a/third_party/nixpkgs/nixos/modules/services/hardware/supergfxd.nix +++ b/third_party/nixpkgs/nixos/modules/services/hardware/supergfxd.nix @@ -32,7 +32,7 @@ in systemd.packages = [ pkgs.supergfxctl ]; systemd.services.supergfxd.wantedBy = [ "multi-user.target" ]; - systemd.services.supergfxd.path = [ pkgs.kmod ]; + systemd.services.supergfxd.path = [ pkgs.kmod pkgs.pciutils ]; services.dbus.packages = [ pkgs.supergfxctl ]; services.udev.packages = [ pkgs.supergfxctl ]; diff --git a/third_party/nixpkgs/nixos/modules/services/hardware/udev.nix b/third_party/nixpkgs/nixos/modules/services/hardware/udev.nix index 94406b60b2..5612009487 100644 --- a/third_party/nixpkgs/nixos/modules/services/hardware/udev.nix +++ b/third_party/nixpkgs/nixos/modules/services/hardware/udev.nix @@ -72,7 +72,7 @@ let --replace \"/sbin/blkid \"${pkgs.util-linux}/sbin/blkid \ --replace \"/bin/mount \"${pkgs.util-linux}/bin/mount \ --replace /usr/bin/readlink ${pkgs.coreutils}/bin/readlink \ - --replace /usr/bin/basename ${pkgs.coreutils}/bin/basename + --replace /usr/bin/basename ${pkgs.coreutils}/bin/basename 2>/dev/null ${optionalString (initrdBin != null) '' substituteInPlace $i --replace '/run/current-system/systemd' "${removeSuffix "/bin" initrdBin}" ''} @@ -296,7 +296,6 @@ in packages = mkOption { type = types.listOf types.path; default = []; - visible = false; description = lib.mdDoc '' *This will only be used when systemd is used in stage 1.* @@ -311,7 +310,6 @@ in binPackages = mkOption { type = types.listOf types.path; default = []; - visible = false; description = lib.mdDoc '' *This will only be used when systemd is used in stage 1.* diff --git a/third_party/nixpkgs/nixos/modules/services/home-automation/evcc.nix b/third_party/nixpkgs/nixos/modules/services/home-automation/evcc.nix index efa2cf2443..d0ce3fb4a1 100644 --- a/third_party/nixpkgs/nixos/modules/services/home-automation/evcc.nix +++ b/third_party/nixpkgs/nixos/modules/services/home-automation/evcc.nix @@ -50,7 +50,7 @@ in ]; environment.HOME = "/var/lib/evcc"; path = with pkgs; [ - glibc # requires getent + getent ]; serviceConfig = { ExecStart = "${package}/bin/evcc --config ${configFile} ${escapeShellArgs cfg.extraArgs}"; diff --git a/third_party/nixpkgs/nixos/modules/services/mail/davmail.nix b/third_party/nixpkgs/nixos/modules/services/mail/davmail.nix index 483f591a72..9cdb435af4 100644 --- a/third_party/nixpkgs/nixos/modules/services/mail/davmail.nix +++ b/third_party/nixpkgs/nixos/modules/services/mail/davmail.nix @@ -91,6 +91,33 @@ in Restart = "on-failure"; DynamicUser = "yes"; LogsDirectory = "davmail"; + + CapabilityBoundingSet = [ "" ]; + DeviceAllow = [ "" ]; + LockPersonality = true; + NoNewPrivileges = true; + PrivateDevices = true; + PrivateTmp = true; + PrivateUsers = true; + ProtectClock = true; + ProtectControlGroups = true; + ProtectHome = true; + ProtectSystem = "strict"; + ProtectHostname = true; + ProtectKernelLogs = true; + ProtectKernelModules = true; + ProtectKernelTunables = true; + ProtectProc = "invisible"; + RemoveIPC = true; + RestrictAddressFamilies = [ "AF_INET" "AF_INET6" ]; + RestrictNamespaces = true; + RestrictRealtime = true; + RestrictSUIDSGID = true; + SystemCallArchitectures = "native"; + SystemCallFilter = "@system-service"; + SystemCallErrorNumber = "EPERM"; + UMask = "0077"; + }; }; diff --git a/third_party/nixpkgs/nixos/modules/services/mail/exim.nix b/third_party/nixpkgs/nixos/modules/services/mail/exim.nix index a9504acee3..1d1258913b 100644 --- a/third_party/nixpkgs/nixos/modules/services/mail/exim.nix +++ b/third_party/nixpkgs/nixos/modules/services/mail/exim.nix @@ -116,8 +116,8 @@ in wantedBy = [ "multi-user.target" ]; restartTriggers = [ config.environment.etc."exim.conf".source ]; serviceConfig = { - ExecStart = "+${cfg.package}/bin/exim -bdf -q${cfg.queueRunnerInterval}"; - ExecReload = "+${coreutils}/bin/kill -HUP $MAINPID"; + ExecStart = "!${cfg.package}/bin/exim -bdf -q${cfg.queueRunnerInterval}"; + ExecReload = "!${coreutils}/bin/kill -HUP $MAINPID"; User = cfg.user; }; preStart = '' diff --git a/third_party/nixpkgs/nixos/modules/services/mail/maddy.nix b/third_party/nixpkgs/nixos/modules/services/mail/maddy.nix index 701d57f18e..3b4a517fb8 100644 --- a/third_party/nixpkgs/nixos/modules/services/mail/maddy.nix +++ b/third_party/nixpkgs/nixos/modules/services/mail/maddy.nix @@ -335,12 +335,13 @@ in { }; secrets = lib.mkOption { - type = lib.types.path; + type = with types; listOf path; description = lib.mdDoc '' - A file containing the various secrets. Should be in the format + A list of files containing the various secrets. Should be in the format expected by systemd's `EnvironmentFile` directory. Secrets can be referenced in the format `{env:VAR}`. ''; + default = [ ]; }; }; @@ -379,7 +380,7 @@ in { User = cfg.user; Group = cfg.group; StateDirectory = [ "maddy" ]; - EnvironmentFile = lib.mkIf (cfg.secrets != null) "${cfg.secrets}"; + EnvironmentFile = cfg.secrets; }; restartTriggers = [ config.environment.etc."maddy/maddy.conf".source ]; wantedBy = [ "multi-user.target" ]; diff --git a/third_party/nixpkgs/nixos/modules/services/mail/nullmailer.nix b/third_party/nixpkgs/nixos/modules/services/mail/nullmailer.nix index 7c72229efb..f6befe246b 100644 --- a/third_party/nixpkgs/nixos/modules/services/mail/nullmailer.nix +++ b/third_party/nixpkgs/nixos/modules/services/mail/nullmailer.nix @@ -203,7 +203,7 @@ with lib; users = { users.${cfg.user} = { description = "Nullmailer relay-only mta user"; - group = cfg.group; + inherit (cfg) group; isSystemUser = true; }; @@ -211,10 +211,10 @@ with lib; }; systemd.tmpfiles.rules = [ - "d /var/spool/nullmailer - ${cfg.user} - - -" - "d /var/spool/nullmailer/failed 750 ${cfg.user} - - -" - "d /var/spool/nullmailer/queue 750 ${cfg.user} - - -" - "d /var/spool/nullmailer/tmp 750 ${cfg.user} - - -" + "d /var/spool/nullmailer - ${cfg.user} ${cfg.group} - -" + "d /var/spool/nullmailer/failed 770 ${cfg.user} ${cfg.group} - -" + "d /var/spool/nullmailer/queue 770 ${cfg.user} ${cfg.group} - -" + "d /var/spool/nullmailer/tmp 770 ${cfg.user} ${cfg.group} - -" ]; systemd.services.nullmailer = { @@ -238,7 +238,7 @@ with lib; program = "sendmail"; source = "${pkgs.nullmailer}/bin/sendmail"; owner = cfg.user; - group = cfg.group; + inherit (cfg) group; setuid = true; setgid = true; }; diff --git a/third_party/nixpkgs/nixos/modules/services/mail/public-inbox.nix b/third_party/nixpkgs/nixos/modules/services/mail/public-inbox.nix index 9cd6726e6c..4944d46fbd 100644 --- a/third_party/nixpkgs/nixos/modules/services/mail/public-inbox.nix +++ b/third_party/nixpkgs/nixos/modules/services/mail/public-inbox.nix @@ -89,7 +89,7 @@ let PrivateNetwork = mkDefault (!needNetwork); ProcSubset = "pid"; ProtectClock = true; - ProtectHome = mkDefault true; + ProtectHome = "tmpfs"; ProtectHostname = true; ProtectKernelLogs = true; ProtectProc = "invisible"; @@ -177,8 +177,7 @@ in description = lib.mdDoc "The email addresses of the public-inbox."; }; options.url = mkOption { - type = with types; nullOr str; - default = null; + type = types.nonEmptyStr; example = "https://example.org/lists/example-discuss"; description = lib.mdDoc "URL where this inbox can be accessed over HTTP."; }; @@ -275,9 +274,8 @@ in default = {}; description = lib.mdDoc "public inboxes"; type = types.submodule { - # Keeping in line with the tradition of unnecessarily specific types, allow users to set - # freeform settings either globally under the `publicinbox` section, or for specific - # inboxes through additional nesting. + # Support both global options like `services.public-inbox.settings.publicinbox.imapserver` + # and inbox specific options like `services.public-inbox.settings.publicinbox.foo.address`. freeformType = with types; attrsOf (oneOf [ iniAtom (attrsOf iniAtom) ]); options.css = mkOption { @@ -285,12 +283,24 @@ in default = []; description = lib.mdDoc "The local path name of a CSS file for the PSGI web interface."; }; + options.imapserver = mkOption { + type = with types; listOf str; + default = []; + example = [ "imap.public-inbox.org" ]; + description = lib.mdDoc "IMAP URLs to this public-inbox instance"; + }; options.nntpserver = mkOption { type = with types; listOf str; default = []; example = [ "nntp://news.public-inbox.org" "nntps://news.public-inbox.org" ]; description = lib.mdDoc "NNTP URLs to this public-inbox instance"; }; + options.pop3server = mkOption { + type = with types; listOf str; + default = []; + example = [ "pop.public-inbox.org" ]; + description = lib.mdDoc "POP3 URLs to this public-inbox instance"; + }; options.wwwlisting = mkOption { type = with types; enum [ "all" "404" "match=domain" ]; default = "404"; @@ -450,6 +460,8 @@ in after = [ "public-inbox-init.service" "public-inbox-watch.service" ]; requires = [ "public-inbox-init.service" ]; serviceConfig = { + BindPathsReadOnly = + map (c: c.dir) (lib.attrValues cfg.settings.coderepo); ExecStart = escapeShellArgs ( [ "${cfg.package}/bin/public-inbox-httpd" ] ++ cfg.http.args ++ @@ -553,16 +565,7 @@ in ${pkgs.git}/bin/git config core.sharedRepository 0640 fi '') cfg.inboxes - ) + '' - shopt -s nullglob - for inbox in ${stateDir}/inboxes/*/; do - # This should be idempotent, but only do it for new - # inboxes anyway because it's only needed once, and could - # be slow for large pre-existing inboxes. - ls -1 "$inbox" | grep -q '^xap' || - ${cfg.package}/bin/public-inbox-index "$inbox" - done - ''; + ); serviceConfig = { Type = "oneshot"; RemainAfterExit = true; diff --git a/third_party/nixpkgs/nixos/modules/services/mail/rspamd.nix b/third_party/nixpkgs/nixos/modules/services/mail/rspamd.nix index f9be9024dd..ca88d81221 100644 --- a/third_party/nixpkgs/nixos/modules/services/mail/rspamd.nix +++ b/third_party/nixpkgs/nixos/modules/services/mail/rspamd.nix @@ -215,7 +215,7 @@ let text = v.extraConfig; }) (filterAttrs (n: v: v.extraConfig != "") cfg.workers)) - // (if cfg.extraConfig == "" then {} else { + // (lib.optionalAttrs (cfg.extraConfig != "") { "extra-config.inc".text = cfg.extraConfig; }); in diff --git a/third_party/nixpkgs/nixos/modules/services/mail/spamassassin.nix b/third_party/nixpkgs/nixos/modules/services/mail/spamassassin.nix index 49d1d93159..072172e314 100644 --- a/third_party/nixpkgs/nixos/modules/services/mail/spamassassin.nix +++ b/third_party/nixpkgs/nixos/modules/services/mail/spamassassin.nix @@ -77,9 +77,9 @@ in loadplugin Mail::SpamAssassin::Plugin::Check #loadplugin Mail::SpamAssassin::Plugin::DCC loadplugin Mail::SpamAssassin::Plugin::DKIM + loadplugin Mail::SpamAssassin::Plugin::DMARC loadplugin Mail::SpamAssassin::Plugin::DNSEval loadplugin Mail::SpamAssassin::Plugin::FreeMail - loadplugin Mail::SpamAssassin::Plugin::Hashcash loadplugin Mail::SpamAssassin::Plugin::HeaderEval loadplugin Mail::SpamAssassin::Plugin::HTMLEval loadplugin Mail::SpamAssassin::Plugin::HTTPSMismatch diff --git a/third_party/nixpkgs/nixos/modules/services/matrix/appservice-irc.nix b/third_party/nixpkgs/nixos/modules/services/matrix/appservice-irc.nix index 388553d418..5526df785c 100644 --- a/third_party/nixpkgs/nixos/modules/services/matrix/appservice-irc.nix +++ b/third_party/nixpkgs/nixos/modules/services/matrix/appservice-irc.nix @@ -187,7 +187,7 @@ in { sed -i "s/^as_token:.*$/$as_token/g" ${registrationFile} fi # Allow synapse access to the registration - if ${getBin pkgs.glibc}/bin/getent group matrix-synapse > /dev/null; then + if ${pkgs.getent}/bin/getent group matrix-synapse > /dev/null; then chgrp matrix-synapse ${registrationFile} chmod g+r ${registrationFile} fi diff --git a/third_party/nixpkgs/nixos/modules/services/matrix/mautrix-facebook.nix b/third_party/nixpkgs/nixos/modules/services/matrix/mautrix-facebook.nix index e995f1aecf..bab6865496 100644 --- a/third_party/nixpkgs/nixos/modules/services/matrix/mautrix-facebook.nix +++ b/third_party/nixpkgs/nixos/modules/services/matrix/mautrix-facebook.nix @@ -29,6 +29,7 @@ in { }; appservice = rec { + id = "facebook"; address = "http://${hostname}:${toString port}"; hostname = "localhost"; port = 29319; @@ -171,7 +172,7 @@ in { services.mautrix-facebook = { registrationData = { - id = "mautrix-facebook"; + id = cfg.settings.appservice.id; namespaces = { users = [ diff --git a/third_party/nixpkgs/nixos/modules/services/matrix/mautrix-telegram.nix b/third_party/nixpkgs/nixos/modules/services/matrix/mautrix-telegram.nix index b64cc71d98..17032ed808 100644 --- a/third_party/nixpkgs/nixos/modules/services/matrix/mautrix-telegram.nix +++ b/third_party/nixpkgs/nixos/modules/services/matrix/mautrix-telegram.nix @@ -80,6 +80,9 @@ in { "example.com" = "full"; "@admin:example.com" = "admin"; }; + telegram = { + connection.use_ipv6 = true; + }; } ''; description = lib.mdDoc '' diff --git a/third_party/nixpkgs/nixos/modules/services/matrix/synapse.nix b/third_party/nixpkgs/nixos/modules/services/matrix/synapse.nix index 2a4104a4ec..3dca3ff94f 100644 --- a/third_party/nixpkgs/nixos/modules/services/matrix/synapse.nix +++ b/third_party/nixpkgs/nixos/modules/services/matrix/synapse.nix @@ -636,6 +636,7 @@ in { trusted_key_servers = mkOption { type = types.listOf (types.submodule { + freeformType = format.type; options = { server_name = mkOption { type = types.str; @@ -644,22 +645,6 @@ in { Hostname of the trusted server. ''; }; - - verify_keys = mkOption { - type = types.nullOr (types.attrsOf types.str); - default = null; - example = literalExpression '' - { - "ed25519:auto" = "Noi6WqcDj0QmPxCNQqgezwTlBKrfqehY1u2FyWP9uYw"; - } - ''; - description = lib.mdDoc '' - Attribute set from key id to base64 encoded public key. - - If specified synapse will check that the response is signed - by at least one of the given keys. - ''; - }; }; }); default = [ { diff --git a/third_party/nixpkgs/nixos/modules/services/misc/ananicy.nix b/third_party/nixpkgs/nixos/modules/services/misc/ananicy.nix index d2287fba6a..bc1b28efc0 100644 --- a/third_party/nixpkgs/nixos/modules/services/misc/ananicy.nix +++ b/third_party/nixpkgs/nixos/modules/services/misc/ananicy.nix @@ -5,7 +5,9 @@ with lib; let cfg = config.services.ananicy; configFile = pkgs.writeText "ananicy.conf" (generators.toKeyValue { } cfg.settings); - extraRules = pkgs.writeText "extraRules" cfg.extraRules; + extraRules = pkgs.writeText "extraRules" (concatMapStringsSep "\n" (l: builtins.toJSON l) cfg.extraRules); + extraTypes = pkgs.writeText "extraTypes" (concatMapStringsSep "\n" (l: builtins.toJSON l) cfg.extraTypes); + extraCgroups = pkgs.writeText "extraCgroups" (concatMapStringsSep "\n" (l: builtins.toJSON l) cfg.extraCgroups); servicename = if ((lib.getName cfg.package) == (lib.getName pkgs.ananicy-cpp)) then "ananicy-cpp" else "ananicy"; in { @@ -23,6 +25,16 @@ in ''; }; + rulesProvider = mkOption { + type = types.package; + default = pkgs.ananicy; + defaultText = literalExpression "pkgs.ananicy"; + example = literalExpression "pkgs.ananicy-cpp"; + description = lib.mdDoc '' + Which package to copy default rules,types,cgroups from. + ''; + }; + settings = mkOption { type = with types; attrsOf (oneOf [ int bool str ]); default = { }; @@ -35,20 +47,40 @@ in }; extraRules = mkOption { - type = types.str; - default = ""; + type = with types; listOf attrs; + default = [ ]; description = lib.mdDoc '' - Extra rules in json format on separate lines. See: + Rules to write in 'nixRules.rules'. See: ''; - example = literalExpression '' - ''' - { "name": "eog", "type": "Image-View" } - { "name": "fdupes", "type": "BG_CPUIO" } - ''' + example = [ + { name = "eog"; type = "Image-Viewer"; } + { name = "fdupes"; type = "BG_CPUIO"; } + ]; + }; + extraTypes = mkOption { + type = with types; listOf attrs; + default = [ ]; + description = lib.mdDoc '' + Types to write in 'nixTypes.types'. See: + ''; - + example = [ + { type = "my_type"; nice = 19; other_parameter = "value"; } + { type = "compiler"; nice = 19; sched = "batch"; ioclass = "idle"; } + ]; + }; + extraCgroups = mkOption { + type = with types; listOf attrs; + default = [ ]; + description = lib.mdDoc '' + Cgroups to write in 'nixCgroups.cgroups'. See: + + ''; + example = [ + { cgroup = "cpu80"; CPUQuota = 80; } + ]; }; }; }; @@ -59,10 +91,18 @@ in etc."ananicy.d".source = pkgs.runCommandLocal "ananicyfiles" { } '' mkdir -p $out # ananicy-cpp does not include rules or settings on purpose - cp -r ${pkgs.ananicy}/etc/ananicy.d/* $out - rm $out/ananicy.conf + if [[ -d "${cfg.rulesProvider}/etc/ananicy.d/00-default" ]]; then + cp -r ${cfg.rulesProvider}/etc/ananicy.d/* $out + else + cp -r ${cfg.rulesProvider}/* $out + fi + + # configured through .setings + rm -f $out/ananicy.conf cp ${configFile} $out/ananicy.conf - ${optionalString (cfg.extraRules != "") "cp ${extraRules} $out/nixRules.rules"} + ${optionalString (cfg.extraRules != [ ]) "cp ${extraRules} $out/nixRules.rules"} + ${optionalString (cfg.extraTypes != [ ]) "cp ${extraTypes} $out/nixTypes.types"} + ${optionalString (cfg.extraCgroups != [ ]) "cp ${extraCgroups} $out/nixCgroups.cgroups"} ''; }; @@ -85,6 +125,7 @@ in # https://gitlab.com/ananicy-cpp/ananicy-cpp/-/blob/master/src/config.cpp#L12 loglevel = mkOD "warn"; # default is info but its spammy cgroup_realtime_workaround = mkOD config.systemd.enableUnifiedCgroupHierarchy; + log_applied_rule = mkOD false; } else { # https://github.com/Nefelim4ag/Ananicy/blob/master/ananicy.d/ananicy.conf check_disks_schedulers = mkOD true; diff --git a/third_party/nixpkgs/nixos/modules/services/misc/ankisyncd.nix b/third_party/nixpkgs/nixos/modules/services/misc/ankisyncd.nix index 5198b82420..7be8dc7dab 100644 --- a/third_party/nixpkgs/nixos/modules/services/misc/ankisyncd.nix +++ b/third_party/nixpkgs/nixos/modules/services/misc/ankisyncd.nix @@ -9,22 +9,16 @@ let stateDir = "/var/lib/${name}"; - authDbPath = "${stateDir}/auth.db"; + toml = pkgs.formats.toml {}; - sessionDbPath = "${stateDir}/session.db"; - - configFile = pkgs.writeText "ankisyncd.conf" (lib.generators.toINI {} { - sync_app = { + configFile = toml.generate "ankisyncd.conf" { + listen = { host = cfg.host; port = cfg.port; - data_root = stateDir; - auth_db_path = authDbPath; - session_db_path = sessionDbPath; - - base_url = "/sync/"; - base_media_url = "/msync/"; }; - }); + paths.root_dir = stateDir; + # encryption.ssl_enable / cert_file / key_file + }; in { options.services.ankisyncd = { @@ -59,8 +53,6 @@ in config = mkIf cfg.enable { networking.firewall.allowedTCPPorts = mkIf cfg.openFirewall [ cfg.port ]; - environment.etc."ankisyncd/ankisyncd.conf".source = configFile; - systemd.services.ankisyncd = { description = "ankisyncd - Anki sync server"; after = [ "network.target" ]; @@ -71,7 +63,7 @@ in Type = "simple"; DynamicUser = true; StateDirectory = name; - ExecStart = "${cfg.package}/bin/ankisyncd"; + ExecStart = "${cfg.package}/bin/ankisyncd --config ${configFile}"; Restart = "always"; }; }; diff --git a/third_party/nixpkgs/nixos/modules/services/misc/atuin.nix b/third_party/nixpkgs/nixos/modules/services/misc/atuin.nix index c603042fb3..202bd4dfca 100644 --- a/third_party/nixpkgs/nixos/modules/services/misc/atuin.nix +++ b/third_party/nixpkgs/nixos/modules/services/misc/atuin.nix @@ -46,6 +46,13 @@ in description = mdDoc "Open ports in the firewall for the atuin server."; }; + database = { + createLocally = mkOption { + type = types.bool; + default = true; + description = lib.mdDoc "Create the database and database user locally."; + }; + }; }; }; @@ -65,7 +72,8 @@ in systemd.services.atuin = { description = "atuin server"; - after = [ "network.target" "postgresql.service" ]; + requires = lib.optionals cfg.database.createLocally [ "postgresql.service" ]; + after = [ "network.target" ] ++ lib.optionals cfg.database.createLocally [ "postgresql.service" ] ; wantedBy = [ "multi-user.target" ]; serviceConfig = { @@ -80,7 +88,7 @@ in ATUIN_PORT = toString cfg.port; ATUIN_MAX_HISTORY_LENGTH = toString cfg.maxHistoryLength; ATUIN_OPEN_REGISTRATION = boolToString cfg.openRegistration; - ATUIN_DB_URI = "postgresql:///atuin"; + ATUIN_DB_URI = mkIf cfg.database.createLocally "postgresql:///atuin"; ATUIN_PATH = cfg.path; ATUIN_CONFIG_DIR = "/run/atuin"; # required to start, but not used as configuration is via environment variables }; diff --git a/third_party/nixpkgs/nixos/modules/services/misc/calibre-server.nix b/third_party/nixpkgs/nixos/modules/services/misc/calibre-server.nix index 77c60381a3..e1ddae1de1 100644 --- a/third_party/nixpkgs/nixos/modules/services/misc/calibre-server.nix +++ b/third_party/nixpkgs/nixos/modules/services/misc/calibre-server.nix @@ -6,6 +6,17 @@ let cfg = config.services.calibre-server; + documentationLink = "https://manual.calibre-ebook.com"; + generatedDocumentationLink = documentationLink + "/generated/en/calibre-server.html"; + + execFlags = (concatStringsSep " " + (mapAttrsToList (k: v: "${k} ${toString v}") (filterAttrs (name: value: value != null) { + "--listen-on" = cfg.host; + "--port" = cfg.port; + "--auth-mode" = cfg.auth.mode; + "--userdb" = cfg.auth.userDb; + }) ++ [(optionalString (cfg.auth.enable == true) "--enable-auth")]) + ); in { @@ -18,52 +29,100 @@ in ) ]; - ###### interface - options = { services.calibre-server = { enable = mkEnableOption (lib.mdDoc "calibre-server"); + package = lib.mkPackageOptionMD pkgs "calibre" { }; libraries = mkOption { - description = lib.mdDoc '' - The directories of the libraries to serve. They must be readable for the user under which the server runs. - ''; type = types.listOf types.path; + default = [ "/var/lib/calibre-server" ]; + description = lib.mdDoc '' + Make sure each library path is initialized before service startup. + The directories of the libraries to serve. They must be readable for the user under which the server runs. + See the [calibredb documentation](${documentationLink}/generated/en/calibredb.html#add) for details. + ''; }; user = mkOption { - description = lib.mdDoc "The user under which calibre-server runs."; type = types.str; default = "calibre-server"; + description = lib.mdDoc "The user under which calibre-server runs."; }; group = mkOption { - description = lib.mdDoc "The group under which calibre-server runs."; type = types.str; default = "calibre-server"; + description = lib.mdDoc "The group under which calibre-server runs."; }; + host = mkOption { + type = types.str; + default = "0.0.0.0"; + example = "::1"; + description = lib.mdDoc '' + The interface on which to listen for connections. + See the [calibre-server documentation](${generatedDocumentationLink}#cmdoption-calibre-server-listen-on) for details. + ''; + }; + + port = mkOption { + default = 8080; + type = types.port; + description = lib.mdDoc '' + The port on which to listen for connections. + See the [calibre-server documentation](${generatedDocumentationLink}#cmdoption-calibre-server-port) for details. + ''; + }; + + auth = { + enable = mkOption { + type = types.bool; + default = false; + description = lib.mdDoc '' + Password based authentication to access the server. + See the [calibre-server documentation](${generatedDocumentationLink}#cmdoption-calibre-server-enable-auth) for details. + ''; + }; + + mode = mkOption { + type = types.enum [ "auto" "basic" "digest" ]; + default = "auto"; + description = lib.mdDoc '' + Choose the type of authentication used. + Set the HTTP authentication mode used by the server. + See the [calibre-server documentation](${generatedDocumentationLink}#cmdoption-calibre-server-auth-mode) for details. + ''; + }; + + userDb = mkOption { + default = null; + type = types.nullOr types.path; + description = lib.mdDoc '' + Choose users database file to use for authentication. + Make sure users database file is initialized before service startup. + See the [calibre-server documentation](${documentationLink}/server.html#managing-user-accounts-from-the-command-line-only) for details. + ''; + }; + }; }; }; - - ###### implementation - config = mkIf cfg.enable { systemd.services.calibre-server = { - description = "Calibre Server"; - after = [ "network.target" ]; - wantedBy = [ "multi-user.target" ]; - serviceConfig = { - User = cfg.user; - Restart = "always"; - ExecStart = "${pkgs.calibre}/bin/calibre-server ${lib.concatStringsSep " " cfg.libraries}"; - }; - + description = "Calibre Server"; + after = [ "network.target" ]; + wantedBy = [ "multi-user.target" ]; + serviceConfig = { + User = cfg.user; + Restart = "always"; + ExecStart = "${cfg.package}/bin/calibre-server ${lib.concatStringsSep " " cfg.libraries} ${execFlags}"; }; + }; + environment.systemPackages = [ pkgs.calibre ]; users.users = optionalAttrs (cfg.user == "calibre-server") { @@ -83,4 +142,5 @@ in }; + meta.maintainers = with lib.maintainers; [ gaelreyrol ]; } diff --git a/third_party/nixpkgs/nixos/modules/services/misc/disnix.nix b/third_party/nixpkgs/nixos/modules/services/misc/disnix.nix index 1cdfeef57c..13c57ce6b8 100644 --- a/third_party/nixpkgs/nixos/modules/services/misc/disnix.nix +++ b/third_party/nixpkgs/nixos/modules/services/misc/disnix.nix @@ -87,8 +87,8 @@ in environment = { HOME = "/root"; } - // (if config.environment.variables ? DYSNOMIA_CONTAINERS_PATH then { inherit (config.environment.variables) DYSNOMIA_CONTAINERS_PATH; } else {}) - // (if config.environment.variables ? DYSNOMIA_MODULES_PATH then { inherit (config.environment.variables) DYSNOMIA_MODULES_PATH; } else {}); + // (optionalAttrs (config.environment.variables ? DYSNOMIA_CONTAINERS_PATH) { inherit (config.environment.variables) DYSNOMIA_CONTAINERS_PATH; }) + // (optionalAttrs (config.environment.variables ? DYSNOMIA_MODULES_PATH) { inherit (config.environment.variables) DYSNOMIA_MODULES_PATH; }); serviceConfig.ExecStart = "${cfg.package}/bin/disnix-service"; }; diff --git a/third_party/nixpkgs/nixos/modules/services/misc/docker-registry.nix b/third_party/nixpkgs/nixos/modules/services/misc/docker-registry.nix index 98edb413f3..b0e9106346 100644 --- a/third_party/nixpkgs/nixos/modules/services/misc/docker-registry.nix +++ b/third_party/nixpkgs/nixos/modules/services/misc/docker-registry.nix @@ -15,9 +15,7 @@ let storage = { cache.blobdescriptor = blobCache; delete.enabled = cfg.enableDelete; - } // (if cfg.storagePath != null - then { filesystem.rootdirectory = cfg.storagePath; } - else {}); + } // (optionalAttrs (cfg.storagePath != null) { filesystem.rootdirectory = cfg.storagePath; }); http = { addr = "${cfg.listenAddress}:${builtins.toString cfg.port}"; headers.X-Content-Type-Options = ["nosniff"]; @@ -49,6 +47,14 @@ in { options.services.dockerRegistry = { enable = mkEnableOption (lib.mdDoc "Docker Registry"); + package = mkOption { + type = types.package; + description = mdDoc "Which Docker registry package to use."; + default = pkgs.docker-distribution; + defaultText = literalExpression "pkgs.docker-distribution"; + example = literalExpression "pkgs.gitlab-container-registry"; + }; + listenAddress = mkOption { description = lib.mdDoc "Docker registry host or ip to bind to."; default = "127.0.0.1"; @@ -117,7 +123,7 @@ in { wantedBy = [ "multi-user.target" ]; after = [ "network.target" ]; script = '' - ${pkgs.docker-distribution}/bin/registry serve ${configFile} + ${cfg.package}/bin/registry serve ${configFile} ''; serviceConfig = { @@ -136,7 +142,7 @@ in { serviceConfig.Type = "oneshot"; script = '' - ${pkgs.docker-distribution}/bin/registry garbage-collect ${configFile} + ${cfg.package}/bin/registry garbage-collect ${configFile} /run/current-system/systemd/bin/systemctl restart docker-registry.service ''; @@ -144,12 +150,10 @@ in { }; users.users.docker-registry = - (if cfg.storagePath != null - then { + (optionalAttrs (cfg.storagePath != null) { createHome = true; home = cfg.storagePath; - } - else {}) // { + }) // { group = "docker-registry"; isSystemUser = true; }; diff --git a/third_party/nixpkgs/nixos/modules/services/misc/etcd.nix b/third_party/nixpkgs/nixos/modules/services/misc/etcd.nix index 17a7cca917..7bc7a94991 100644 --- a/third_party/nixpkgs/nixos/modules/services/misc/etcd.nix +++ b/third_party/nixpkgs/nixos/modules/services/misc/etcd.nix @@ -15,6 +15,8 @@ in { type = types.bool; }; + package = mkPackageOptionMD pkgs "etcd" { }; + name = mkOption { description = lib.mdDoc "Etcd unique node name."; default = config.networking.hostName; @@ -187,13 +189,13 @@ in { serviceConfig = { Type = "notify"; - ExecStart = "${pkgs.etcd}/bin/etcd"; + ExecStart = "${cfg.package}/bin/etcd"; User = "etcd"; LimitNOFILE = 40000; }; }; - environment.systemPackages = [ pkgs.etcd ]; + environment.systemPackages = [ cfg.package ]; users.users.etcd = { isSystemUser = true; diff --git a/third_party/nixpkgs/nixos/modules/services/misc/exhibitor.nix b/third_party/nixpkgs/nixos/modules/services/misc/exhibitor.nix deleted file mode 100644 index 91a87b55af..0000000000 --- a/third_party/nixpkgs/nixos/modules/services/misc/exhibitor.nix +++ /dev/null @@ -1,417 +0,0 @@ -{ config, lib, options, pkgs, ... }: - -with lib; - -let - cfg = config.services.exhibitor; - opt = options.services.exhibitor; - exhibitorConfig = '' - zookeeper-install-directory=${cfg.baseDir}/zookeeper - zookeeper-data-directory=${cfg.zkDataDir} - zookeeper-log-directory=${cfg.zkLogDir} - zoo-cfg-extra=${cfg.zkExtraCfg} - client-port=${toString cfg.zkClientPort} - connect-port=${toString cfg.zkConnectPort} - election-port=${toString cfg.zkElectionPort} - cleanup-period-ms=${toString cfg.zkCleanupPeriod} - servers-spec=${concatStringsSep "," cfg.zkServersSpec} - auto-manage-instances=${toString cfg.autoManageInstances} - ${cfg.extraConf} - ''; - # NB: toString rather than lib.boolToString on cfg.autoManageInstances is intended. - # Exhibitor tests if it's an integer not equal to 0, so the empty string (toString false) - # will operate in the same fashion as a 0. - configDir = pkgs.writeTextDir "exhibitor.properties" exhibitorConfig; - cliOptionsCommon = { - configtype = cfg.configType; - defaultconfig = "${configDir}/exhibitor.properties"; - port = toString cfg.port; - hostname = cfg.hostname; - headingtext = if (cfg.headingText != null) then (lib.escapeShellArg cfg.headingText) else null; - nodemodification = lib.boolToString cfg.nodeModification; - configcheckms = toString cfg.configCheckMs; - jquerystyle = cfg.jqueryStyle; - loglines = toString cfg.logLines; - servo = lib.boolToString cfg.servo; - timeout = toString cfg.timeout; - }; - s3CommonOptions = { s3region = cfg.s3Region; s3credentials = cfg.s3Credentials; }; - cliOptionsPerConfig = { - s3 = { - s3config = "${cfg.s3Config.bucketName}:${cfg.s3Config.objectKey}"; - s3configprefix = cfg.s3Config.configPrefix; - }; - zookeeper = { - zkconfigconnect = concatStringsSep "," cfg.zkConfigConnect; - zkconfigexhibitorpath = cfg.zkConfigExhibitorPath; - zkconfigpollms = toString cfg.zkConfigPollMs; - zkconfigretry = "${toString cfg.zkConfigRetry.sleepMs}:${toString cfg.zkConfigRetry.retryQuantity}"; - zkconfigzpath = cfg.zkConfigZPath; - zkconfigexhibitorport = toString cfg.zkConfigExhibitorPort; # NB: This might be null - }; - file = { - fsconfigdir = cfg.fsConfigDir; - fsconfiglockprefix = cfg.fsConfigLockPrefix; - fsConfigName = fsConfigName; - }; - none = { - noneconfigdir = configDir; - }; - }; - cliOptions = concatStringsSep " " (mapAttrsToList (k: v: "--${k} ${v}") (filterAttrs (k: v: v != null && v != "") (cliOptionsCommon // - cliOptionsPerConfig.${cfg.configType} // - s3CommonOptions // - optionalAttrs cfg.s3Backup { s3backup = "true"; } // - optionalAttrs cfg.fileSystemBackup { filesystembackup = "true"; } - ))); -in -{ - options = { - services.exhibitor = { - enable = mkEnableOption (lib.mdDoc "exhibitor server"); - - # See https://github.com/soabase/exhibitor/wiki/Running-Exhibitor for what these mean - # General options for any type of config - port = mkOption { - type = types.port; - default = 8080; - description = lib.mdDoc '' - The port for exhibitor to listen on and communicate with other exhibitors. - ''; - }; - baseDir = mkOption { - type = types.str; - default = "/var/exhibitor"; - description = lib.mdDoc '' - Baseline directory for exhibitor runtime config. - ''; - }; - configType = mkOption { - type = types.enum [ "file" "s3" "zookeeper" "none" ]; - description = lib.mdDoc '' - Which configuration type you want to use. Additional config will be - required depending on which type you are using. - ''; - }; - hostname = mkOption { - type = types.nullOr types.str; - description = lib.mdDoc '' - Hostname to use and advertise - ''; - default = null; - }; - nodeModification = mkOption { - type = types.bool; - description = lib.mdDoc '' - Whether the Explorer UI will allow nodes to be modified (use with caution). - ''; - default = true; - }; - configCheckMs = mkOption { - type = types.int; - description = lib.mdDoc '' - Period (ms) to check for shared config updates. - ''; - default = 30000; - }; - headingText = mkOption { - type = types.nullOr types.str; - description = lib.mdDoc '' - Extra text to display in UI header - ''; - default = null; - }; - jqueryStyle = mkOption { - type = types.enum [ "red" "black" "custom" ]; - description = lib.mdDoc '' - Styling used for the JQuery-based UI. - ''; - default = "red"; - }; - logLines = mkOption { - type = types.int; - description = lib.mdDoc '' - Max lines of logging to keep in memory for display. - ''; - default = 1000; - }; - servo = mkOption { - type = types.bool; - description = lib.mdDoc '' - ZooKeeper will be queried once a minute for its state via the 'mntr' four - letter word (this requires ZooKeeper 3.4.x+). Servo will be used to publish - this data via JMX. - ''; - default = false; - }; - timeout = mkOption { - type = types.int; - description = lib.mdDoc '' - Connection timeout (ms) for ZK connections. - ''; - default = 30000; - }; - autoManageInstances = mkOption { - type = types.bool; - description = lib.mdDoc '' - Automatically manage ZooKeeper instances in the ensemble - ''; - default = false; - }; - zkDataDir = mkOption { - type = types.str; - default = "${cfg.baseDir}/zkData"; - defaultText = literalExpression ''"''${config.${opt.baseDir}}/zkData"''; - description = lib.mdDoc '' - The Zookeeper data directory - ''; - }; - zkLogDir = mkOption { - type = types.path; - default = "${cfg.baseDir}/zkLogs"; - defaultText = literalExpression ''"''${config.${opt.baseDir}}/zkLogs"''; - description = lib.mdDoc '' - The Zookeeper logs directory - ''; - }; - extraConf = mkOption { - type = types.str; - default = ""; - description = lib.mdDoc '' - Extra Exhibitor configuration to put in the ZooKeeper config file. - ''; - }; - zkExtraCfg = mkOption { - type = types.str; - default = "initLimit=5&syncLimit=2&tickTime=2000"; - description = lib.mdDoc '' - Extra options to pass into Zookeeper - ''; - }; - zkClientPort = mkOption { - type = types.int; - default = 2181; - description = lib.mdDoc '' - Zookeeper client port - ''; - }; - zkConnectPort = mkOption { - type = types.int; - default = 2888; - description = lib.mdDoc '' - The port to use for followers to talk to each other. - ''; - }; - zkElectionPort = mkOption { - type = types.int; - default = 3888; - description = lib.mdDoc '' - The port for Zookeepers to use for leader election. - ''; - }; - zkCleanupPeriod = mkOption { - type = types.int; - default = 0; - description = lib.mdDoc '' - How often (in milliseconds) to run the Zookeeper log cleanup task. - ''; - }; - zkServersSpec = mkOption { - type = types.listOf types.str; - default = []; - description = lib.mdDoc '' - Zookeeper server spec for all servers in the ensemble. - ''; - example = [ "S:1:zk1.example.com" "S:2:zk2.example.com" "S:3:zk3.example.com" "O:4:zk-observer.example.com" ]; - }; - - # Backup options - s3Backup = mkOption { - type = types.bool; - default = false; - description = lib.mdDoc '' - Whether to enable backups to S3 - ''; - }; - fileSystemBackup = mkOption { - type = types.bool; - default = false; - description = lib.mdDoc '' - Enables file system backup of ZooKeeper log files - ''; - }; - - # Options for using zookeeper configType - zkConfigConnect = mkOption { - type = types.listOf types.str; - description = lib.mdDoc '' - The initial connection string for ZooKeeper shared config storage - ''; - example = ["host1:2181" "host2:2181"]; - }; - zkConfigExhibitorPath = mkOption { - type = types.str; - description = lib.mdDoc '' - If the ZooKeeper shared config is also running Exhibitor, the URI path for the REST call - ''; - default = "/"; - }; - zkConfigExhibitorPort = mkOption { - type = types.nullOr types.int; - description = lib.mdDoc '' - If the ZooKeeper shared config is also running Exhibitor, the port that - Exhibitor is listening on. IMPORTANT: if this value is not set it implies - that Exhibitor is not being used on the ZooKeeper shared config. - ''; - }; - zkConfigPollMs = mkOption { - type = types.int; - description = lib.mdDoc '' - The period in ms to check for changes in the config ensemble - ''; - default = 10000; - }; - zkConfigRetry = { - sleepMs = mkOption { - type = types.int; - default = 1000; - description = lib.mdDoc '' - Retry sleep time connecting to the ZooKeeper config - ''; - }; - retryQuantity = mkOption { - type = types.int; - default = 3; - description = lib.mdDoc '' - Retries connecting to the ZooKeeper config - ''; - }; - }; - zkConfigZPath = mkOption { - type = types.str; - description = lib.mdDoc '' - The base ZPath that Exhibitor should use - ''; - example = "/exhibitor/config"; - }; - - # Config options for s3 configType - s3Config = { - bucketName = mkOption { - type = types.str; - description = lib.mdDoc '' - Bucket name to store config - ''; - }; - objectKey = mkOption { - type = types.str; - description = lib.mdDoc '' - S3 key name to store the config - ''; - }; - configPrefix = mkOption { - type = types.str; - description = lib.mdDoc '' - When using AWS S3 shared config files, the prefix to use for values such as locks - ''; - default = "exhibitor-"; - }; - }; - - # The next two are used for either s3backup or s3 configType - s3Credentials = mkOption { - type = types.nullOr types.path; - description = lib.mdDoc '' - Optional credentials to use for s3backup or s3config. Argument is the path - to an AWS credential properties file with two properties: - com.netflix.exhibitor.s3.access-key-id and com.netflix.exhibitor.s3.access-secret-key - ''; - default = null; - }; - s3Region = mkOption { - type = types.nullOr types.str; - description = lib.mdDoc '' - Optional region for S3 calls - ''; - default = null; - }; - - # Config options for file config type - fsConfigDir = mkOption { - type = types.path; - description = lib.mdDoc '' - Directory to store Exhibitor properties (cannot be used with s3config). - Exhibitor uses file system locks so you can specify a shared location - so as to enable complete ensemble management. - ''; - }; - fsConfigLockPrefix = mkOption { - type = types.str; - description = lib.mdDoc '' - A prefix for a locking mechanism used in conjunction with fsconfigdir - ''; - default = "exhibitor-lock-"; - }; - fsConfigName = mkOption { - type = types.str; - description = lib.mdDoc '' - The name of the file to store config in - ''; - default = "exhibitor.properties"; - }; - }; - }; - - config = mkIf cfg.enable { - systemd.services.exhibitor = { - description = "Exhibitor Daemon"; - wantedBy = [ "multi-user.target" ]; - after = [ "network.target" ]; - environment = { - ZOO_LOG_DIR = cfg.baseDir; - }; - serviceConfig = { - /*** - Exhibitor is a bit un-nixy. It wants to present to you a user interface in order to - mutate the configuration of both itself and ZooKeeper, and to coordinate changes - among the members of the Zookeeper ensemble. I'm going for a different approach here, - which is to manage all the configuration via nix and have it write out the configuration - files that exhibitor will use, and to reduce the amount of inter-exhibitor orchestration. - ***/ - ExecStart = '' - ${pkgs.exhibitor}/bin/startExhibitor.sh ${cliOptions} - ''; - User = "zookeeper"; - PermissionsStartOnly = true; - }; - # This is a bit wonky, but the reason for this is that Exhibitor tries to write to - # ${cfg.baseDir}/zookeeper/bin/../conf/zoo.cfg - # I want everything but the conf directory to be in the immutable nix store, and I want defaults - # from the nix store - # If I symlink the bin directory in, then bin/../ will resolve to the parent of the symlink in the - # immutable nix store. Bind mounting a writable conf over the existing conf might work, but it gets very - # messy with trying to copy the existing out into a mutable store. - # Another option is to try to patch upstream exhibitor, but the current package just pulls down the - # prebuild JARs off of Maven, rather than building them ourselves, as Maven support in Nix isn't - # very mature. So, it seems like a reasonable compromise is to just copy out of the immutable store - # just before starting the service, so we're running binaries from the immutable store, but we work around - # Exhibitor's desire to mutate its current installation. - preStart = '' - mkdir -m 0700 -p ${cfg.baseDir}/zookeeper - # Not doing a chown -R to keep the base ZK files owned by root - chown zookeeper ${cfg.baseDir} ${cfg.baseDir}/zookeeper - cp -Rf ${pkgs.zookeeper}/* ${cfg.baseDir}/zookeeper - chown -R zookeeper ${cfg.baseDir}/zookeeper/conf - chmod -R u+w ${cfg.baseDir}/zookeeper/conf - replace_what=$(echo ${pkgs.zookeeper} | sed 's/[\/&]/\\&/g') - replace_with=$(echo ${cfg.baseDir}/zookeeper | sed 's/[\/&]/\\&/g') - sed -i 's/'"$replace_what"'/'"$replace_with"'/g' ${cfg.baseDir}/zookeeper/bin/zk*.sh - ''; - }; - users.users.zookeeper = { - uid = config.ids.uids.zookeeper; - description = "Zookeeper daemon user"; - home = cfg.baseDir; - }; - }; -} diff --git a/third_party/nixpkgs/nixos/modules/services/misc/gitea.nix b/third_party/nixpkgs/nixos/modules/services/misc/gitea.nix index 0c414c2466..945009f005 100644 --- a/third_party/nixpkgs/nixos/modules/services/misc/gitea.nix +++ b/third_party/nixpkgs/nixos/modules/services/misc/gitea.nix @@ -467,10 +467,8 @@ in systemd.tmpfiles.rules = [ "d '${cfg.dump.backupDir}' 0750 ${cfg.user} ${cfg.group} - -" "z '${cfg.dump.backupDir}' 0750 ${cfg.user} ${cfg.group} - -" - "Z '${cfg.dump.backupDir}' - ${cfg.user} ${cfg.group} - -" "d '${cfg.repositoryRoot}' 0750 ${cfg.user} ${cfg.group} - -" "z '${cfg.repositoryRoot}' 0750 ${cfg.user} ${cfg.group} - -" - "Z '${cfg.repositoryRoot}' - ${cfg.user} ${cfg.group} - -" "d '${cfg.stateDir}' 0750 ${cfg.user} ${cfg.group} - -" "d '${cfg.stateDir}/conf' 0750 ${cfg.user} ${cfg.group} - -" "d '${cfg.customDir}' 0750 ${cfg.user} ${cfg.group} - -" @@ -484,7 +482,6 @@ in "z '${cfg.customDir}/conf' 0750 ${cfg.user} ${cfg.group} - -" "z '${cfg.stateDir}/data' 0750 ${cfg.user} ${cfg.group} - -" "z '${cfg.stateDir}/log' 0750 ${cfg.user} ${cfg.group} - -" - "Z '${cfg.stateDir}' - ${cfg.user} ${cfg.group} - -" # If we have a folder or symlink with gitea locales, remove it # And symlink the current gitea locales in place @@ -493,12 +490,12 @@ in ] ++ lib.optionals cfg.lfs.enable [ "d '${cfg.lfs.contentDir}' 0750 ${cfg.user} ${cfg.group} - -" "z '${cfg.lfs.contentDir}' 0750 ${cfg.user} ${cfg.group} - -" - "Z '${cfg.lfs.contentDir}' - ${cfg.user} ${cfg.group} - -" ]; systemd.services.gitea = { description = "gitea"; - after = [ "network.target" ] ++ lib.optional usePostgresql "postgresql.service" ++ lib.optional useMysql "mysql.service"; + after = [ "network.target" ] ++ optional usePostgresql "postgresql.service" ++ optional useMysql "mysql.service"; + requires = optional (cfg.database.createDatabase && usePostgresql) "postgresql.service" ++ optional (cfg.database.createDatabase && useMysql) "mysql.service"; wantedBy = [ "multi-user.target" ]; path = [ cfg.package pkgs.git pkgs.gnupg ]; @@ -586,7 +583,10 @@ in Restart = "always"; # Runtime directory and mode RuntimeDirectory = "gitea"; - RuntimeDirectoryMode = "0755"; + RuntimeDirectoryMode = "0750"; + # Proc filesystem + ProcSubset = "pid"; + ProtectProc = "invisible"; # Access write directories ReadWritePaths = [ cfg.customDir cfg.dump.backupDir cfg.repositoryRoot cfg.stateDir cfg.lfs.contentDir ]; UMask = "0027"; @@ -606,15 +606,17 @@ in ProtectKernelModules = true; ProtectKernelLogs = true; ProtectControlGroups = true; - RestrictAddressFamilies = [ "AF_UNIX AF_INET AF_INET6" ]; + RestrictAddressFamilies = [ "AF_UNIX" "AF_INET" "AF_INET6" ]; + RestrictNamespaces = true; LockPersonality = true; MemoryDenyWriteExecute = true; RestrictRealtime = true; RestrictSUIDSGID = true; + RemoveIPC = true; PrivateMounts = true; # System Call Filtering SystemCallArchitectures = "native"; - SystemCallFilter = "~@clock @cpu-emulation @debug @keyring @module @mount @obsolete @raw-io @reboot @setuid @swap"; + SystemCallFilter = [ "~@cpu-emulation @debug @keyring @mount @obsolete @privileged @setuid" "setrlimit" ]; }; environment = { diff --git a/third_party/nixpkgs/nixos/modules/services/misc/gitlab.nix b/third_party/nixpkgs/nixos/modules/services/misc/gitlab.nix index 12c67c5f5a..a497fbb300 100644 --- a/third_party/nixpkgs/nixos/modules/services/misc/gitlab.nix +++ b/third_party/nixpkgs/nixos/modules/services/misc/gitlab.nix @@ -9,12 +9,10 @@ let toml = pkgs.formats.toml {}; yaml = pkgs.formats.yaml {}; - ruby = cfg.packages.gitlab.ruby; - postgresqlPackage = if config.services.postgresql.enable then config.services.postgresql.package else - pkgs.postgresql_12; + pkgs.postgresql_13; gitlabSocket = "${cfg.statePath}/tmp/sockets/gitlab.socket"; gitalySocket = "${cfg.statePath}/tmp/sockets/gitaly.socket"; @@ -47,9 +45,6 @@ let [git] bin_path = "${pkgs.git}/bin/git" - [gitaly-ruby] - dir = "${cfg.packages.gitaly.ruby}" - [gitlab-shell] dir = "${cfg.packages.gitlab-shell}" @@ -89,6 +84,9 @@ let }; }; + # Redis configuration file + resqueYml = pkgs.writeText "resque.yml" (builtins.toJSON redisConfig); + gitlabConfig = { # These are the default settings from config/gitlab.example.yml production = flip recursiveUpdate cfg.extraConfig { @@ -154,6 +152,7 @@ let api_url = "http://${config.services.dockerRegistry.listenAddress}:${toString config.services.dockerRegistry.port}/"; issuer = cfg.registry.issuer; }; + elasticsearch.indexer_path = "${pkgs.gitlab-elasticsearch-indexer}/bin/gitlab-elasticsearch-indexer"; extra = {}; uploads.storage_path = cfg.statePath; pages = optionalAttrs cfg.pages.enable { @@ -172,7 +171,6 @@ let SCHEMA = "${cfg.statePath}/db/structure.sql"; GITLAB_UPLOADS_PATH = "${cfg.statePath}/uploads"; GITLAB_LOG_PATH = "${cfg.statePath}/log"; - GITLAB_REDIS_CONFIG_FILE = pkgs.writeText "redis.yml" (builtins.toJSON redisConfig); prometheus_multiproc_dir = "/run/gitlab"; RAILS_ENV = "production"; MALLOC_ARENA_MAX = "2"; @@ -556,6 +554,20 @@ in { default = false; description = lib.mdDoc "Enable GitLab container registry."; }; + package = mkOption { + type = types.package; + default = + if versionAtLeast config.system.stateVersion "23.11" + then pkgs.gitlab-container-registry + else pkgs.docker-distribution; + defaultText = literalExpression "pkgs.docker-distribution"; + description = lib.mdDoc '' + Container registry package to use. + + External container registries such as `pkgs.docker-distribution` are not supported + anymore since GitLab 16.0.0. + ''; + }; host = mkOption { type = types.str; default = config.services.gitlab.host; @@ -1070,6 +1082,13 @@ in { }; config = mkIf cfg.enable { + warnings = [ + (mkIf + (cfg.registry.enable && versionAtLeast (getVersion cfg.packages.gitlab) "16.0.0" && cfg.registry.package == pkgs.docker-distribution) + ''Support for container registries other than gitlab-container-registry has ended since GitLab 16.0.0 and is scheduled for removal in a future release. + Please back up your data and migrate to the gitlab-container-registry package.'' + ) + ]; assertions = [ { @@ -1101,8 +1120,8 @@ in { message = "services.gitlab.secrets.jwsFile must be set!"; } { - assertion = versionAtLeast postgresqlPackage.version "12.0.0"; - message = "PostgreSQL >=12 is required to run GitLab 14. Follow the instructions in the manual section for upgrading PostgreSQL here: https://nixos.org/manual/nixos/stable/index.html#module-services-postgres-upgrading"; + assertion = versionAtLeast postgresqlPackage.version "13.6.0"; + message = "PostgreSQL >=13.6 is required to run GitLab 16. Follow the instructions in the manual section for upgrading PostgreSQL here: https://nixos.org/manual/nixos/stable/index.html#module-services-postgres-upgrading"; } ]; @@ -1213,6 +1232,7 @@ in { services.dockerRegistry = optionalAttrs cfg.registry.enable { enable = true; enableDelete = true; # This must be true, otherwise GitLab won't manage it correctly + package = cfg.registry.package; extraConfig = { auth.token = { realm = "http${optionalString (cfg.https == true) "s"}://${cfg.host}/jwt/auth"; @@ -1262,6 +1282,7 @@ in { "d ${gitlabConfig.production.shared.path}/pages 0750 ${cfg.user} ${cfg.group} -" "d ${gitlabConfig.production.shared.path}/registry 0750 ${cfg.user} ${cfg.group} -" "d ${gitlabConfig.production.shared.path}/terraform_state 0750 ${cfg.user} ${cfg.group} -" + "d ${gitlabConfig.production.shared.path}/ci_secure_files 0750 ${cfg.user} ${cfg.group} -" "L+ /run/gitlab/config - - - - ${cfg.statePath}/config" "L+ /run/gitlab/log - - - - ${cfg.statePath}/log" "L+ /run/gitlab/tmp - - - - ${cfg.statePath}/tmp" @@ -1315,6 +1336,7 @@ in { cp -rf --no-preserve=mode ${cfg.packages.gitlab}/share/gitlab/db/* ${cfg.statePath}/db ln -sf ${extraGitlabRb} ${cfg.statePath}/config/initializers/extra-gitlab.rb ln -sf ${cableYml} ${cfg.statePath}/config/cable.yml + ln -sf ${resqueYml} ${cfg.statePath}/config/resque.yml ${cfg.packages.gitlab-shell}/bin/install @@ -1462,10 +1484,7 @@ in { partOf = [ "gitlab.target" ]; path = with pkgs; [ openssh - procps # See https://gitlab.com/gitlab-org/gitaly/issues/1562 git - cfg.packages.gitaly.rubyEnv - cfg.packages.gitaly.rubyEnv.wrappedRuby gzip bzip2 ]; @@ -1626,6 +1645,7 @@ in { nodejs procps gnupg + gzip ]; serviceConfig = { Type = "notify"; @@ -1665,5 +1685,5 @@ in { }; meta.doc = ./gitlab.md; - + meta.maintainers = teams.gitlab.members; } diff --git a/third_party/nixpkgs/nixos/modules/services/misc/gollum.nix b/third_party/nixpkgs/nixos/modules/services/misc/gollum.nix index 4eec9610b5..d607e92e5e 100644 --- a/third_party/nixpkgs/nixos/modules/services/misc/gollum.nix +++ b/third_party/nixpkgs/nixos/modules/services/misc/gollum.nix @@ -91,18 +91,30 @@ in The package used in the service ''; }; + + user = mkOption { + type = types.str; + default = "gollum"; + description = lib.mdDoc "Specifies the owner of the wiki directory"; + }; + + group = mkOption { + type = types.str; + default = "gollum"; + description = lib.mdDoc "Specifies the owner group of the wiki directory"; + }; }; config = mkIf cfg.enable { - users.users.gollum = { - group = config.users.users.gollum.name; + users.users.gollum = mkIf (cfg.user == "gollum") { + group = cfg.group; description = "Gollum user"; createHome = false; isSystemUser = true; }; - users.groups.gollum = { }; + users.groups."${cfg.group}" = { }; systemd.tmpfiles.rules = [ "d '${cfg.stateDir}' - ${config.users.users.gollum.name} ${config.users.groups.gollum.name} - -" @@ -120,8 +132,8 @@ in ''; serviceConfig = { - User = config.users.users.gollum.name; - Group = config.users.groups.gollum.name; + User = cfg.user; + Group = cfg.group; WorkingDirectory = cfg.stateDir; ExecStart = '' ${cfg.package}/bin/gollum \ @@ -142,5 +154,5 @@ in }; }; - meta.maintainers = with lib.maintainers; [ erictapen bbenno ]; + meta.maintainers = with lib.maintainers; [ erictapen bbenno joscha ]; } diff --git a/third_party/nixpkgs/nixos/modules/services/misc/heisenbridge.nix b/third_party/nixpkgs/nixos/modules/services/misc/heisenbridge.nix index d07e0e4204..822a09d7cd 100644 --- a/third_party/nixpkgs/nixos/modules/services/misc/heisenbridge.nix +++ b/third_party/nixpkgs/nixos/modules/services/misc/heisenbridge.nix @@ -137,7 +137,7 @@ in mv -f ${registrationFile}.new ${registrationFile} # Grant Synapse access to the registration - if ${getBin pkgs.glibc}/bin/getent group matrix-synapse > /dev/null; then + if ${pkgs.getent}/bin/getent group matrix-synapse > /dev/null; then chgrp -v matrix-synapse ${registrationFile} chmod -v g+r ${registrationFile} fi diff --git a/third_party/nixpkgs/nixos/modules/services/misc/homepage-dashboard.nix b/third_party/nixpkgs/nixos/modules/services/misc/homepage-dashboard.nix new file mode 100644 index 0000000000..e685712534 --- /dev/null +++ b/third_party/nixpkgs/nixos/modules/services/misc/homepage-dashboard.nix @@ -0,0 +1,55 @@ +{ config +, pkgs +, lib +, ... +}: + +let + cfg = config.services.homepage-dashboard; +in +{ + options = { + services.homepage-dashboard = { + enable = lib.mkEnableOption (lib.mdDoc "Homepage Dashboard"); + + package = lib.mkPackageOptionMD pkgs "homepage-dashboard" { }; + + openFirewall = lib.mkOption { + type = lib.types.bool; + default = false; + description = lib.mdDoc "Open ports in the firewall for Homepage."; + }; + + listenPort = lib.mkOption { + type = lib.types.int; + default = 8082; + description = lib.mdDoc "Port for Homepage to bind to."; + }; + }; + }; + + config = lib.mkIf cfg.enable { + systemd.services.homepage-dashboard = { + description = "Homepage Dashboard"; + after = [ "network.target" ]; + wantedBy = [ "multi-user.target" ]; + + environment = { + HOMEPAGE_CONFIG_DIR = "/var/lib/homepage-dashboard"; + PORT = "${toString cfg.listenPort}"; + }; + + serviceConfig = { + Type = "simple"; + DynamicUser = true; + StateDirectory = "homepage-dashboard"; + ExecStart = "${lib.getExe cfg.package}"; + Restart = "on-failure"; + }; + }; + + networking.firewall = lib.mkIf cfg.openFirewall { + allowedTCPPorts = [ cfg.listenPort ]; + }; + }; +} diff --git a/third_party/nixpkgs/nixos/modules/services/misc/klipper.nix b/third_party/nixpkgs/nixos/modules/services/misc/klipper.nix index ad881d4462..67a217c994 100644 --- a/third_party/nixpkgs/nixos/modules/services/misc/klipper.nix +++ b/third_party/nixpkgs/nixos/modules/services/misc/klipper.nix @@ -111,8 +111,11 @@ in (submodule { options = { enable = mkEnableOption (lib.mdDoc '' - building of firmware and addition of klipper-flash tools for manual flashing. - This will add `klipper-flash-$mcu` scripts to your environment which can be called to flash the firmware. + building of firmware for manual flashing. + ''); + enableKlipperFlash = mkEnableOption (lib.mdDoc '' + flashings scripts for firmware. This will add `klipper-flash-$mcu` scripts to your environment which can be called to flash the firmware. + Please check the configs at [klipper](https://github.com/Klipper3d/klipper/tree/master/config) whether your board supports flashing via `make flash`. ''); serial = mkOption { type = types.nullOr path; @@ -213,11 +216,14 @@ in with pkgs; let default = a: b: if a != null then a else b; - firmwares = filterAttrs (n: v: v!= null) (mapAttrs - (mcu: { enable, configFile, serial }: if enable then pkgs.klipper-firmware.override { - mcu = lib.strings.sanitizeDerivationName mcu; - firmwareConfig = configFile; - } else null) + firmwares = filterAttrs (n: v: v != null) (mapAttrs + (mcu: { enable, enableKlipperFlash, configFile, serial }: + if enable then + pkgs.klipper-firmware.override + { + mcu = lib.strings.sanitizeDerivationName mcu; + firmwareConfig = configFile; + } else null) cfg.firmwares); firmwareFlasher = mapAttrsToList (mcu: firmware: pkgs.klipper-flash.override { @@ -226,7 +232,7 @@ in flashDevice = default cfg.firmwares."${mcu}".serial cfg.settings."${mcu}".serial; firmwareConfig = cfg.firmwares."${mcu}".configFile; }) - firmwares; + (filterAttrs (mcu: firmware: cfg.firmwares."${mcu}".enableKlipperFlash) firmwares); in [ klipper-genconf ] ++ firmwareFlasher ++ attrValues firmwares; }; diff --git a/third_party/nixpkgs/nixos/modules/services/misc/n8n.nix b/third_party/nixpkgs/nixos/modules/services/misc/n8n.nix index cdfe9dc848..2af37fba91 100644 --- a/third_party/nixpkgs/nixos/modules/services/misc/n8n.nix +++ b/third_party/nixpkgs/nixos/modules/services/misc/n8n.nix @@ -26,6 +26,15 @@ in ''; }; + webhookUrl = mkOption { + type = types.str; + default = ""; + description = lib.mdDoc '' + WEBHOOK_URL for n8n, in case we're running behind a reverse proxy. + This cannot be set through configuration and must reside in an environment variable. + ''; + }; + }; config = mkIf cfg.enable { @@ -44,6 +53,7 @@ in N8N_USER_FOLDER = "/var/lib/n8n"; HOME = "/var/lib/n8n"; N8N_CONFIG_FILES = "${configFile}"; + WEBHOOK_URL = "${cfg.webhookUrl}"; # Don't phone home N8N_DIAGNOSTICS_ENABLED = "false"; diff --git a/third_party/nixpkgs/nixos/modules/services/misc/nitter.nix b/third_party/nixpkgs/nixos/modules/services/misc/nitter.nix index d00efe3dd4..77f5459d11 100644 --- a/third_party/nixpkgs/nixos/modules/services/misc/nitter.nix +++ b/third_party/nixpkgs/nixos/modules/services/misc/nitter.nix @@ -165,14 +165,14 @@ in enableDebug = mkEnableOption (lib.mdDoc "request logs and debug endpoints"); proxy = mkOption { - type = types.nullOr types.str; - default = null; + type = types.str; + default = ""; description = lib.mdDoc "URL to a HTTP/HTTPS proxy."; }; proxyAuth = mkOption { - type = types.nullOr types.str; - default = null; + type = types.str; + default = ""; description = lib.mdDoc "Credentials for proxy."; }; @@ -334,7 +334,8 @@ in systemd.services.nitter = { description = "Nitter (An alternative Twitter front-end)"; wantedBy = [ "multi-user.target" ]; - after = [ "network.target" ]; + wants = [ "network-online.target" ]; + after = [ "network-online.target" ]; serviceConfig = { DynamicUser = true; StateDirectory = "nitter"; diff --git a/third_party/nixpkgs/nixos/modules/services/misc/nix-daemon.nix b/third_party/nixpkgs/nixos/modules/services/misc/nix-daemon.nix deleted file mode 100644 index f37d197f16..0000000000 --- a/third_party/nixpkgs/nixos/modules/services/misc/nix-daemon.nix +++ /dev/null @@ -1,837 +0,0 @@ -{ config, lib, pkgs, ... }: - -with lib; - -let - - cfg = config.nix; - - nixPackage = cfg.package.out; - - isNixAtLeast = versionAtLeast (getVersion nixPackage); - - makeNixBuildUser = nr: { - name = "nixbld${toString nr}"; - value = { - description = "Nix build user ${toString nr}"; - - /* - For consistency with the setgid(2), setuid(2), and setgroups(2) - calls in `libstore/build.cc', don't add any supplementary group - here except "nixbld". - */ - uid = builtins.add config.ids.uids.nixbld nr; - isSystemUser = true; - group = "nixbld"; - extraGroups = [ "nixbld" ]; - }; - }; - - nixbldUsers = listToAttrs (map makeNixBuildUser (range 1 cfg.nrBuildUsers)); - - nixConf = - assert isNixAtLeast "2.2"; - let - - mkValueString = v: - if v == null then "" - else if isInt v then toString v - else if isBool v then boolToString v - else if isFloat v then floatToString v - else if isList v then toString v - else if isDerivation v then toString v - else if builtins.isPath v then toString v - else if isString v then v - else if strings.isConvertibleWithToString v then toString v - else abort "The nix conf value: ${toPretty {} v} can not be encoded"; - - mkKeyValue = k: v: "${escape [ "=" ] k} = ${mkValueString v}"; - - mkKeyValuePairs = attrs: concatStringsSep "\n" (mapAttrsToList mkKeyValue attrs); - - in - pkgs.writeTextFile { - name = "nix.conf"; - text = '' - # WARNING: this file is generated from the nix.* options in - # your NixOS configuration, typically - # /etc/nixos/configuration.nix. Do not edit it! - ${mkKeyValuePairs cfg.settings} - ${cfg.extraOptions} - ''; - checkPhase = lib.optionalString cfg.checkConfig ( - if pkgs.stdenv.hostPlatform != pkgs.stdenv.buildPlatform then '' - echo "Ignoring validation for cross-compilation" - '' - else '' - echo "Validating generated nix.conf" - ln -s $out ./nix.conf - set -e - set +o pipefail - NIX_CONF_DIR=$PWD \ - ${cfg.package}/bin/nix show-config ${optionalString (isNixAtLeast "2.3pre") "--no-net"} \ - ${optionalString (isNixAtLeast "2.4pre") "--option experimental-features nix-command"} \ - |& sed -e 's/^warning:/error:/' \ - | (! grep '${if cfg.checkAllErrors then "^error:" else "^error: unknown setting"}') - set -o pipefail - ''); - }; - - legacyConfMappings = { - useSandbox = "sandbox"; - buildCores = "cores"; - maxJobs = "max-jobs"; - sandboxPaths = "extra-sandbox-paths"; - binaryCaches = "substituters"; - trustedBinaryCaches = "trusted-substituters"; - binaryCachePublicKeys = "trusted-public-keys"; - autoOptimiseStore = "auto-optimise-store"; - requireSignedBinaryCaches = "require-sigs"; - trustedUsers = "trusted-users"; - allowedUsers = "allowed-users"; - systemFeatures = "system-features"; - }; - - semanticConfType = with types; - let - confAtom = nullOr - (oneOf [ - bool - int - float - str - path - package - ]) // { - description = "Nix config atom (null, bool, int, float, str, path or package)"; - }; - in - attrsOf (either confAtom (listOf confAtom)); - -in - -{ - imports = [ - (mkRenamedOptionModuleWith { sinceRelease = 2003; from = [ "nix" "useChroot" ]; to = [ "nix" "useSandbox" ]; }) - (mkRenamedOptionModuleWith { sinceRelease = 2003; from = [ "nix" "chrootDirs" ]; to = [ "nix" "sandboxPaths" ]; }) - (mkRenamedOptionModuleWith { sinceRelease = 2205; from = [ "nix" "daemonIONiceLevel" ]; to = [ "nix" "daemonIOSchedPriority" ]; }) - (mkRenamedOptionModuleWith { sinceRelease = 2211; from = [ "nix" "readOnlyStore" ]; to = [ "boot" "readOnlyNixStore" ]; }) - (mkRemovedOptionModule [ "nix" "daemonNiceLevel" ] "Consider nix.daemonCPUSchedPolicy instead.") - ] ++ mapAttrsToList (oldConf: newConf: mkRenamedOptionModuleWith { sinceRelease = 2205; from = [ "nix" oldConf ]; to = [ "nix" "settings" newConf ]; }) legacyConfMappings; - - ###### interface - - options = { - - nix = { - - enable = mkOption { - type = types.bool; - default = true; - description = lib.mdDoc '' - Whether to enable Nix. - Disabling Nix makes the system hard to modify and the Nix programs and configuration will not be made available by NixOS itself. - ''; - }; - - package = mkOption { - type = types.package; - default = pkgs.nix; - defaultText = literalExpression "pkgs.nix"; - description = lib.mdDoc '' - This option specifies the Nix package instance to use throughout the system. - ''; - }; - - distributedBuilds = mkOption { - type = types.bool; - default = false; - description = lib.mdDoc '' - Whether to distribute builds to the machines listed in - {option}`nix.buildMachines`. - ''; - }; - - daemonCPUSchedPolicy = mkOption { - type = types.enum [ "other" "batch" "idle" ]; - default = "other"; - example = "batch"; - description = lib.mdDoc '' - Nix daemon process CPU scheduling policy. This policy propagates to - build processes. `other` is the default scheduling - policy for regular tasks. The `batch` policy is - similar to `other`, but optimised for - non-interactive tasks. `idle` is for extremely - low-priority tasks that should only be run when no other task - requires CPU time. - - Please note that while using the `idle` policy may - greatly improve responsiveness of a system performing expensive - builds, it may also slow down and potentially starve crucial - configuration updates during load. - - `idle` may therefore be a sensible policy for - systems that experience only intermittent phases of high CPU load, - such as desktop or portable computers used interactively. Other - systems should use the `other` or - `batch` policy instead. - - For more fine-grained resource control, please refer to - {manpage}`systemd.resource-control(5)` and adjust - {option}`systemd.services.nix-daemon` directly. - ''; - }; - - daemonIOSchedClass = mkOption { - type = types.enum [ "best-effort" "idle" ]; - default = "best-effort"; - example = "idle"; - description = lib.mdDoc '' - Nix daemon process I/O scheduling class. This class propagates to - build processes. `best-effort` is the default - class for regular tasks. The `idle` class is for - extremely low-priority tasks that should only perform I/O when no - other task does. - - Please note that while using the `idle` scheduling - class can improve responsiveness of a system performing expensive - builds, it might also slow down or starve crucial configuration - updates during load. - - `idle` may therefore be a sensible class for - systems that experience only intermittent phases of high I/O load, - such as desktop or portable computers used interactively. Other - systems should use the `best-effort` class. - ''; - }; - - daemonIOSchedPriority = mkOption { - type = types.int; - default = 4; - example = 1; - description = lib.mdDoc '' - Nix daemon process I/O scheduling priority. This priority propagates - to build processes. The supported priorities depend on the - scheduling policy: With idle, priorities are not used in scheduling - decisions. best-effort supports values in the range 0 (high) to 7 - (low). - ''; - }; - - buildMachines = mkOption { - type = types.listOf (types.submodule { - options = { - hostName = mkOption { - type = types.str; - example = "nixbuilder.example.org"; - description = lib.mdDoc '' - The hostname of the build machine. - ''; - }; - protocol = mkOption { - type = types.enum [ null "ssh" "ssh-ng" ]; - default = "ssh"; - example = "ssh-ng"; - description = lib.mdDoc '' - The protocol used for communicating with the build machine. - Use `ssh-ng` if your remote builder and your - local Nix version support that improved protocol. - - Use `null` when trying to change the special localhost builder - without a protocol which is for example used by hydra. - ''; - }; - system = mkOption { - type = types.nullOr types.str; - default = null; - example = "x86_64-linux"; - description = lib.mdDoc '' - The system type the build machine can execute derivations on. - Either this attribute or {var}`systems` must be - present, where {var}`system` takes precedence if - both are set. - ''; - }; - systems = mkOption { - type = types.listOf types.str; - default = [ ]; - example = [ "x86_64-linux" "aarch64-linux" ]; - description = lib.mdDoc '' - The system types the build machine can execute derivations on. - Either this attribute or {var}`system` must be - present, where {var}`system` takes precedence if - both are set. - ''; - }; - sshUser = mkOption { - type = types.nullOr types.str; - default = null; - example = "builder"; - description = lib.mdDoc '' - The username to log in as on the remote host. This user must be - able to log in and run nix commands non-interactively. It must - also be privileged to build derivations, so must be included in - {option}`nix.settings.trusted-users`. - ''; - }; - sshKey = mkOption { - type = types.nullOr types.str; - default = null; - example = "/root/.ssh/id_buildhost_builduser"; - description = lib.mdDoc '' - The path to the SSH private key with which to authenticate on - the build machine. The private key must not have a passphrase. - If null, the building user (root on NixOS machines) must have an - appropriate ssh configuration to log in non-interactively. - - Note that for security reasons, this path must point to a file - in the local filesystem, *not* to the nix store. - ''; - }; - maxJobs = mkOption { - type = types.int; - default = 1; - description = lib.mdDoc '' - The number of concurrent jobs the build machine supports. The - build machine will enforce its own limits, but this allows hydra - to schedule better since there is no work-stealing between build - machines. - ''; - }; - speedFactor = mkOption { - type = types.int; - default = 1; - description = lib.mdDoc '' - The relative speed of this builder. This is an arbitrary integer - that indicates the speed of this builder, relative to other - builders. Higher is faster. - ''; - }; - mandatoryFeatures = mkOption { - type = types.listOf types.str; - default = [ ]; - example = [ "big-parallel" ]; - description = lib.mdDoc '' - A list of features mandatory for this builder. The builder will - be ignored for derivations that don't require all features in - this list. All mandatory features are automatically included in - {var}`supportedFeatures`. - ''; - }; - supportedFeatures = mkOption { - type = types.listOf types.str; - default = [ ]; - example = [ "kvm" "big-parallel" ]; - description = lib.mdDoc '' - A list of features supported by this builder. The builder will - be ignored for derivations that require features not in this - list. - ''; - }; - publicHostKey = mkOption { - type = types.nullOr types.str; - default = null; - description = lib.mdDoc '' - The (base64-encoded) public host key of this builder. The field - is calculated via {command}`base64 -w0 /etc/ssh/ssh_host_type_key.pub`. - If null, SSH will use its regular known-hosts file when connecting. - ''; - }; - }; - }); - default = [ ]; - description = lib.mdDoc '' - This option lists the machines to be used if distributed builds are - enabled (see {option}`nix.distributedBuilds`). - Nix will perform derivations on those machines via SSH by copying the - inputs to the Nix store on the remote machine, starting the build, - then copying the output back to the local Nix store. - ''; - }; - - # Environment variables for running Nix. - envVars = mkOption { - type = types.attrs; - internal = true; - default = { }; - description = lib.mdDoc "Environment variables used by Nix."; - }; - - nrBuildUsers = mkOption { - type = types.int; - description = lib.mdDoc '' - Number of `nixbld` user accounts created to - perform secure concurrent builds. If you receive an error - message saying that “all build users are currently in useâ€, - you should increase this value. - ''; - }; - - nixPath = mkOption { - type = types.listOf types.str; - default = [ - "nixpkgs=/nix/var/nix/profiles/per-user/root/channels/nixos" - "nixos-config=/etc/nixos/configuration.nix" - "/nix/var/nix/profiles/per-user/root/channels" - ]; - description = lib.mdDoc '' - The default Nix expression search path, used by the Nix - evaluator to look up paths enclosed in angle brackets - (e.g. ``). - ''; - }; - - checkConfig = mkOption { - type = types.bool; - default = true; - description = lib.mdDoc '' - If enabled, checks that Nix can parse the generated nix.conf. - ''; - }; - - checkAllErrors = mkOption { - type = types.bool; - default = true; - description = lib.mdDoc '' - If enabled, checks the nix.conf parsing for any kind of error. When disabled, checks only for unknown settings. - ''; - }; - - registry = mkOption { - type = types.attrsOf (types.submodule ( - let - referenceAttrs = with types; attrsOf (oneOf [ - str - int - bool - path - package - ]); - in - { config, name, ... }: - { - options = { - from = mkOption { - type = referenceAttrs; - example = { type = "indirect"; id = "nixpkgs"; }; - description = lib.mdDoc "The flake reference to be rewritten."; - }; - to = mkOption { - type = referenceAttrs; - example = { type = "github"; owner = "my-org"; repo = "my-nixpkgs"; }; - description = lib.mdDoc "The flake reference {option}`from` is rewritten to."; - }; - flake = mkOption { - type = types.nullOr types.attrs; - default = null; - example = literalExpression "nixpkgs"; - description = lib.mdDoc '' - The flake input {option}`from` is rewritten to. - ''; - }; - exact = mkOption { - type = types.bool; - default = true; - description = lib.mdDoc '' - Whether the {option}`from` reference needs to match exactly. If set, - a {option}`from` reference like `nixpkgs` does not - match with a reference like `nixpkgs/nixos-20.03`. - ''; - }; - }; - config = { - from = mkDefault { type = "indirect"; id = name; }; - to = mkIf (config.flake != null) (mkDefault ( - { - type = "path"; - path = config.flake.outPath; - } // filterAttrs - (n: _: n == "lastModified" || n == "rev" || n == "revCount" || n == "narHash") - config.flake - )); - }; - } - )); - default = { }; - description = lib.mdDoc '' - A system-wide flake registry. - ''; - }; - - extraOptions = mkOption { - type = types.lines; - default = ""; - example = '' - keep-outputs = true - keep-derivations = true - ''; - description = lib.mdDoc "Additional text appended to {file}`nix.conf`."; - }; - - settings = mkOption { - type = types.submodule { - freeformType = semanticConfType; - - options = { - max-jobs = mkOption { - type = types.either types.int (types.enum [ "auto" ]); - default = "auto"; - example = 64; - description = lib.mdDoc '' - This option defines the maximum number of jobs that Nix will try to - build in parallel. The default is auto, which means it will use all - available logical cores. It is recommend to set it to the total - number of logical cores in your system (e.g., 16 for two CPUs with 4 - cores each and hyper-threading). - ''; - }; - - auto-optimise-store = mkOption { - type = types.bool; - default = false; - example = true; - description = lib.mdDoc '' - If set to true, Nix automatically detects files in the store that have - identical contents, and replaces them with hard links to a single copy. - This saves disk space. If set to false (the default), you can still run - nix-store --optimise to get rid of duplicate files. - ''; - }; - - cores = mkOption { - type = types.int; - default = 0; - example = 64; - description = lib.mdDoc '' - This option defines the maximum number of concurrent tasks during - one build. It affects, e.g., -j option for make. - The special value 0 means that the builder should use all - available CPU cores in the system. Some builds may become - non-deterministic with this option; use with care! Packages will - only be affected if enableParallelBuilding is set for them. - ''; - }; - - sandbox = mkOption { - type = types.either types.bool (types.enum [ "relaxed" ]); - default = true; - description = lib.mdDoc '' - If set, Nix will perform builds in a sandboxed environment that it - will set up automatically for each build. This prevents impurities - in builds by disallowing access to dependencies outside of the Nix - store by using network and mount namespaces in a chroot environment. - This is enabled by default even though it has a possible performance - impact due to the initial setup time of a sandbox for each build. It - doesn't affect derivation hashes, so changing this option will not - trigger a rebuild of packages. - ''; - }; - - extra-sandbox-paths = mkOption { - type = types.listOf types.str; - default = [ ]; - example = [ "/dev" "/proc" ]; - description = lib.mdDoc '' - Directories from the host filesystem to be included - in the sandbox. - ''; - }; - - substituters = mkOption { - type = types.listOf types.str; - description = lib.mdDoc '' - List of binary cache URLs used to obtain pre-built binaries - of Nix packages. - - By default https://cache.nixos.org/ is added. - ''; - }; - - trusted-substituters = mkOption { - type = types.listOf types.str; - default = [ ]; - example = [ "https://hydra.nixos.org/" ]; - description = lib.mdDoc '' - List of binary cache URLs that non-root users can use (in - addition to those specified using - {option}`nix.settings.substituters`) by passing - `--option binary-caches` to Nix commands. - ''; - }; - - require-sigs = mkOption { - type = types.bool; - default = true; - description = lib.mdDoc '' - If enabled (the default), Nix will only download binaries from binary caches if - they are cryptographically signed with any of the keys listed in - {option}`nix.settings.trusted-public-keys`. If disabled, signatures are neither - required nor checked, so it's strongly recommended that you use only - trustworthy caches and https to prevent man-in-the-middle attacks. - ''; - }; - - trusted-public-keys = mkOption { - type = types.listOf types.str; - example = [ "hydra.nixos.org-1:CNHJZBh9K4tP3EKF6FkkgeVYsS3ohTl+oS0Qa8bezVs=" ]; - description = lib.mdDoc '' - List of public keys used to sign binary caches. If - {option}`nix.settings.trusted-public-keys` is enabled, - then Nix will use a binary from a binary cache if and only - if it is signed by *any* of the keys - listed here. By default, only the key for - `cache.nixos.org` is included. - ''; - }; - - trusted-users = mkOption { - type = types.listOf types.str; - default = [ "root" ]; - example = [ "root" "alice" "@wheel" ]; - description = lib.mdDoc '' - A list of names of users that have additional rights when - connecting to the Nix daemon, such as the ability to specify - additional binary caches, or to import unsigned NARs. You - can also specify groups by prefixing them with - `@`; for instance, - `@wheel` means all users in the wheel - group. - ''; - }; - - system-features = mkOption { - type = types.listOf types.str; - example = [ "kvm" "big-parallel" "gccarch-skylake" ]; - description = lib.mdDoc '' - The set of features supported by the machine. Derivations - can express dependencies on system features through the - `requiredSystemFeatures` attribute. - - By default, pseudo-features `nixos-test`, `benchmark`, - and `big-parallel` used in Nixpkgs are set, `kvm` - is also included if it is available. - ''; - }; - - allowed-users = mkOption { - type = types.listOf types.str; - default = [ "*" ]; - example = [ "@wheel" "@builders" "alice" "bob" ]; - description = lib.mdDoc '' - A list of names of users (separated by whitespace) that are - allowed to connect to the Nix daemon. As with - {option}`nix.settings.trusted-users`, you can specify groups by - prefixing them with `@`. Also, you can - allow all users by specifying `*`. The - default is `*`. Note that trusted users are - always allowed to connect. - ''; - }; - }; - }; - default = { }; - example = literalExpression '' - { - use-sandbox = true; - show-trace = true; - - system-features = [ "big-parallel" "kvm" "recursive-nix" ]; - sandbox-paths = { "/bin/sh" = "''${pkgs.busybox-sandbox-shell.out}/bin/busybox"; }; - } - ''; - description = lib.mdDoc '' - Configuration for Nix, see - or - {manpage}`nix.conf(5)` for available options. - The value declared here will be translated directly to the key-value pairs Nix expects. - - You can use {command}`nix-instantiate --eval --strict '' -A config.nix.settings` - to view the current value. By default it is empty. - - Nix configurations defined under {option}`nix.*` will be translated and applied to this - option. In addition, configuration specified in {option}`nix.extraOptions` which will be appended - verbatim to the resulting config file. - ''; - }; - }; - }; - - - ###### implementation - - config = mkIf cfg.enable { - environment.systemPackages = - [ - nixPackage - pkgs.nix-info - ] - ++ optional (config.programs.bash.enableCompletion) pkgs.nix-bash-completions; - - environment.etc."nix/nix.conf".source = nixConf; - - environment.etc."nix/registry.json".text = builtins.toJSON { - version = 2; - flakes = mapAttrsToList (n: v: { inherit (v) from to exact; }) cfg.registry; - }; - - # List of machines for distributed Nix builds in the format - # expected by build-remote.pl. - environment.etc."nix/machines" = mkIf (cfg.buildMachines != [ ]) { - text = - concatMapStrings - (machine: - (concatStringsSep " " ([ - "${optionalString (machine.protocol != null) "${machine.protocol}://"}${optionalString (machine.sshUser != null) "${machine.sshUser}@"}${machine.hostName}" - (if machine.system != null then machine.system else if machine.systems != [ ] then concatStringsSep "," machine.systems else "-") - (if machine.sshKey != null then machine.sshKey else "-") - (toString machine.maxJobs) - (toString machine.speedFactor) - (let res = (machine.supportedFeatures ++ machine.mandatoryFeatures); - in if (res == []) then "-" else (concatStringsSep "," res)) - (let res = machine.mandatoryFeatures; - in if (res == []) then "-" else (concatStringsSep "," machine.mandatoryFeatures)) - ] - ++ optional (isNixAtLeast "2.4pre") (if machine.publicHostKey != null then machine.publicHostKey else "-"))) - + "\n" - ) - cfg.buildMachines; - }; - - assertions = - let badMachine = m: m.system == null && m.systems == [ ]; - in - [ - { - assertion = !(any badMachine cfg.buildMachines); - message = '' - At least one system type (via system or - systems) must be set for every build machine. - Invalid machine specifications: - '' + " " + - (concatStringsSep "\n " - (map (m: m.hostName) - (filter (badMachine) cfg.buildMachines))); - } - ]; - - systemd.packages = [ nixPackage ]; - - # Will only work once https://github.com/NixOS/nix/pull/6285 is merged - # systemd.tmpfiles.packages = [ nixPackage ]; - - # Can be dropped for Nix > https://github.com/NixOS/nix/pull/6285 - systemd.tmpfiles.rules = [ - "d /nix/var/nix/daemon-socket 0755 root root - -" - ]; - - systemd.sockets.nix-daemon.wantedBy = [ "sockets.target" ]; - - systemd.services.nix-daemon = - { - path = [ nixPackage pkgs.util-linux config.programs.ssh.package ] - ++ optionals cfg.distributedBuilds [ pkgs.gzip ]; - - environment = cfg.envVars - // { CURL_CA_BUNDLE = "/etc/ssl/certs/ca-certificates.crt"; } - // config.networking.proxy.envVars; - - unitConfig.RequiresMountsFor = "/nix/store"; - - serviceConfig = - { - CPUSchedulingPolicy = cfg.daemonCPUSchedPolicy; - IOSchedulingClass = cfg.daemonIOSchedClass; - IOSchedulingPriority = cfg.daemonIOSchedPriority; - LimitNOFILE = 1048576; - }; - - restartTriggers = [ nixConf ]; - - # `stopIfChanged = false` changes to switch behavior - # from stop -> update units -> start - # to update units -> restart - # - # The `stopIfChanged` setting therefore controls a trade-off between a - # more predictable lifecycle, which runs the correct "version" of - # the `ExecStop` line, and on the other hand the availability of - # sockets during the switch, as the effectiveness of the stop operation - # depends on the socket being stopped as well. - # - # As `nix-daemon.service` does not make use of `ExecStop`, we prefer - # to keep the socket up and available. This is important for machines - # that run Nix-based services, such as automated build, test, and deploy - # services, that expect the daemon socket to be available at all times. - # - # Notably, the Nix client does not retry on failure to connect to the - # daemon socket, and the in-process RemoteStore instance will disable - # itself. This makes retries infeasible even for services that are - # aware of the issue. Failure to connect can affect not only new client - # processes, but also new RemoteStore instances in existing processes, - # as well as existing RemoteStore instances that have not saturated - # their connection pool. - # - # Also note that `stopIfChanged = true` does not kill existing - # connection handling daemons, as one might wish to happen before a - # breaking Nix upgrade (which is rare). The daemon forks that handle - # the individual connections split off into their own sessions, causing - # them not to be stopped by systemd. - # If a Nix upgrade does require all existing daemon processes to stop, - # nix-daemon must do so on its own accord, and only when the new version - # starts and detects that Nix's persistent state needs an upgrade. - stopIfChanged = false; - - }; - - # Set up the environment variables for running Nix. - environment.sessionVariables = cfg.envVars // { NIX_PATH = cfg.nixPath; }; - - environment.extraInit = - '' - if [ -e "$HOME/.nix-defexpr/channels" ]; then - export NIX_PATH="$HOME/.nix-defexpr/channels''${NIX_PATH:+:$NIX_PATH}" - fi - ''; - - nix.nrBuildUsers = mkDefault ( - if cfg.settings.auto-allocate-uids or false then 0 - else max 32 (if cfg.settings.max-jobs == "auto" then 0 else cfg.settings.max-jobs) - ); - - users.users = nixbldUsers; - - services.xserver.displayManager.hiddenUsers = attrNames nixbldUsers; - - system.activationScripts.nix = stringAfter [ "etc" "users" ] - '' - install -m 0755 -d /nix/var/nix/{gcroots,profiles}/per-user - - # Subscribe the root user to the NixOS channel by default. - if [ ! -e "/root/.nix-channels" ]; then - echo "${config.system.defaultChannel} nixos" > "/root/.nix-channels" - fi - ''; - - # Legacy configuration conversion. - nix.settings = mkMerge [ - { - trusted-public-keys = [ "cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY=" ]; - substituters = mkAfter [ "https://cache.nixos.org/" ]; - - system-features = mkDefault ( - [ "nixos-test" "benchmark" "big-parallel" "kvm" ] ++ - optionals (pkgs.stdenv.hostPlatform ? gcc.arch) ( - # a builder can run code for `gcc.arch` and inferior architectures - [ "gccarch-${pkgs.stdenv.hostPlatform.gcc.arch}" ] ++ - map (x: "gccarch-${x}") (systems.architectures.inferiors.${pkgs.stdenv.hostPlatform.gcc.arch} or []) - ) - ); - } - - (mkIf (!cfg.distributedBuilds) { builders = null; }) - - (mkIf (isNixAtLeast "2.3pre") { sandbox-fallback = false; }) - ]; - - }; - -} diff --git a/third_party/nixpkgs/nixos/modules/services/misc/nix-optimise.nix b/third_party/nixpkgs/nixos/modules/services/misc/nix-optimise.nix index db8148c060..0398229a13 100644 --- a/third_party/nixpkgs/nixos/modules/services/misc/nix-optimise.nix +++ b/third_party/nixpkgs/nixos/modules/services/misc/nix-optimise.nix @@ -1,28 +1,21 @@ { config, lib, ... }: -with lib; - let cfg = config.nix.optimise; in { - - ###### interface - options = { - nix.optimise = { - - automatic = mkOption { + automatic = lib.mkOption { default = false; - type = types.bool; + type = lib.types.bool; description = lib.mdDoc "Automatically run the nix store optimiser at a specific time."; }; - dates = mkOption { + dates = lib.mkOption { default = ["03:45"]; - type = types.listOf types.str; + type = with lib.types; listOf str; description = lib.mdDoc '' Specification (in the format described by {manpage}`systemd.time(7)`) of the time at @@ -32,9 +25,6 @@ in }; }; - - ###### implementation - config = { assertions = [ { @@ -43,14 +33,19 @@ in } ]; - systemd.services.nix-optimise = lib.mkIf config.nix.enable - { description = "Nix Store Optimiser"; + systemd = lib.mkIf config.nix.enable { + services.nix-optimise = { + description = "Nix Store Optimiser"; # No point this if the nix daemon (and thus the nix store) is outside unitConfig.ConditionPathIsReadWrite = "/nix/var/nix/daemon-socket"; serviceConfig.ExecStart = "${config.nix.package}/bin/nix-store --optimise"; - startAt = optionals cfg.automatic cfg.dates; + startAt = lib.optionals cfg.automatic cfg.dates; }; + timers.nix-optimise.timerConfig = { + Persistent = true; + RandomizedDelaySec = 1800; + }; + }; }; - } diff --git a/third_party/nixpkgs/nixos/modules/services/misc/ntfy-sh.nix b/third_party/nixpkgs/nixos/modules/services/misc/ntfy-sh.nix index d66b47a2d6..8fc1df93af 100644 --- a/third_party/nixpkgs/nixos/modules/services/misc/ntfy-sh.nix +++ b/third_party/nixpkgs/nixos/modules/services/misc/ntfy-sh.nix @@ -32,7 +32,25 @@ in }; settings = mkOption { - type = types.submodule { freeformType = settingsFormat.type; }; + type = types.submodule { + freeformType = settingsFormat.type; + options = { + base-url = mkOption { + type = types.str; + example = "https://ntfy.example"; + description = lib.mdDoc '' + Public facing base URL of the service + + This setting is required for any of the following features: + - attachments (to return a download URL) + - e-mail sending (for the topic URL in the email footer) + - iOS push notifications for self-hosted servers + (to calculate the Firebase poll_request topic) + - Matrix Push Gateway (to validate that the pushkey is correct) + ''; + }; + }; + }; default = { }; @@ -61,8 +79,17 @@ in services.ntfy-sh.settings = { auth-file = mkDefault "/var/lib/ntfy-sh/user.db"; + listen-http = mkDefault "127.0.0.1:2586"; + attachment-cache-dir = mkDefault "/var/lib/ntfy-sh/attachments"; + cache-file = mkDefault "/var/lib/ntfy-sh/cache-file.db"; }; + systemd.tmpfiles.rules = [ + "f ${cfg.settings.auth-file} 0600 ${cfg.user} ${cfg.group} - -" + "d ${cfg.settings.attachment-cache-dir} 0700 ${cfg.user} ${cfg.group} - -" + "f ${cfg.settings.cache-file} 0600 ${cfg.user} ${cfg.group} - -" + ]; + systemd.services.ntfy-sh = { description = "Push notifications server"; @@ -74,6 +101,7 @@ in User = cfg.user; StateDirectory = "ntfy-sh"; + DynamicUser = true; AmbientCapabilities = "CAP_NET_BIND_SERVICE"; PrivateTmp = true; NoNewPrivileges = true; @@ -88,6 +116,8 @@ in RestrictNamespaces = true; RestrictRealtime = true; MemoryDenyWriteExecute = true; + # Upstream Recommandation + LimitNOFILE = 20500; }; }; diff --git a/third_party/nixpkgs/nixos/modules/services/misc/paperless.nix b/third_party/nixpkgs/nixos/modules/services/misc/paperless.nix index 4199e77133..8fe628a408 100644 --- a/third_party/nixpkgs/nixos/modules/services/misc/paperless.nix +++ b/third_party/nixpkgs/nixos/modules/services/misc/paperless.nix @@ -86,12 +86,11 @@ let SupplementaryGroups = optional enableRedis redisServer.user; SystemCallArchitectures = "native"; SystemCallFilter = [ "@system-service" "~@privileged @setuid @keyring" ]; - # Does not work well with the temporary root - #UMask = "0066"; + UMask = "0066"; }; in { - meta.maintainers = with maintainers; [ erikarvstedt Flakebi ]; + meta.maintainers = with maintainers; [ erikarvstedt Flakebi leona ]; imports = [ (mkRenamedOptionModule [ "services" "paperless-ng" ] [ "services" "paperless" ]) diff --git a/third_party/nixpkgs/nixos/modules/services/misc/prowlarr.nix b/third_party/nixpkgs/nixos/modules/services/misc/prowlarr.nix index 77b8ec9894..836280d3e5 100644 --- a/third_party/nixpkgs/nixos/modules/services/misc/prowlarr.nix +++ b/third_party/nixpkgs/nixos/modules/services/misc/prowlarr.nix @@ -11,6 +11,8 @@ in services.prowlarr = { enable = mkEnableOption (lib.mdDoc "Prowlarr"); + package = mkPackageOptionMD pkgs "prowlarr" { }; + openFirewall = mkOption { type = types.bool; default = false; @@ -29,7 +31,7 @@ in Type = "simple"; DynamicUser = true; StateDirectory = "prowlarr"; - ExecStart = "${pkgs.prowlarr}/bin/Prowlarr -nobrowser -data=/var/lib/prowlarr"; + ExecStart = "${lib.getExe cfg.package} -nobrowser -data=/var/lib/prowlarr"; Restart = "on-failure"; }; }; diff --git a/third_party/nixpkgs/nixos/modules/services/misc/pufferpanel.nix b/third_party/nixpkgs/nixos/modules/services/misc/pufferpanel.nix index 78ec356469..2022406c83 100644 --- a/third_party/nixpkgs/nixos/modules/services/misc/pufferpanel.nix +++ b/third_party/nixpkgs/nixos/modules/services/misc/pufferpanel.nix @@ -19,7 +19,7 @@ in services.pufferpanel = { enable = true; extraPackages = with pkgs; [ bash curl gawk gnutar gzip ]; - package = pkgs.buildFHSUserEnv { + package = pkgs.buildFHSEnv { name = "pufferpanel-fhs"; runScript = lib.getExe pkgs.pufferpanel; targetPkgs = pkgs': with pkgs'; [ icu openssl zlib ]; @@ -162,7 +162,7 @@ in PrivateUsers = true; PrivateDevices = true; RestrictRealtime = true; - RestrictNamespaces = [ "user" "mnt" ]; # allow buildFHSUserEnv + RestrictNamespaces = [ "user" "mnt" ]; # allow buildFHSEnv RestrictAddressFamilies = [ "AF_INET" "AF_INET6" "AF_UNIX" ]; LockPersonality = true; DeviceAllow = [ "" ]; diff --git a/third_party/nixpkgs/nixos/modules/services/misc/zoneminder.nix b/third_party/nixpkgs/nixos/modules/services/misc/zoneminder.nix index 1172297985..616a60a123 100644 --- a/third_party/nixpkgs/nixos/modules/services/misc/zoneminder.nix +++ b/third_party/nixpkgs/nixos/modules/services/misc/zoneminder.nix @@ -351,7 +351,7 @@ in { CacheDirectory = dirs cacheDirs; RuntimeDirectory = dirName; ReadWriteDirectories = lib.mkIf useCustomDir [ cfg.storageDir ]; - StateDirectory = dirs (if useCustomDir then [] else libDirs); + StateDirectory = dirs (lib.optional (!useCustomDir) libDirs); LogsDirectory = dirName; PrivateTmp = true; ProtectSystem = "strict"; diff --git a/third_party/nixpkgs/nixos/modules/services/monitoring/below.nix b/third_party/nixpkgs/nixos/modules/services/monitoring/below.nix new file mode 100644 index 0000000000..92ee3882ca --- /dev/null +++ b/third_party/nixpkgs/nixos/modules/services/monitoring/below.nix @@ -0,0 +1,106 @@ +{ config, lib, pkgs, ... }: +with lib; +let + cfg = config.services.below; + cfgContents = concatStringsSep "\n" ( + mapAttrsToList (n: v: ''${n} = "${v}"'') (filterAttrs (_k: v: v != null) { + log_dir = cfg.dirs.log; + store_dir = cfg.dirs.store; + cgroup_filter_out = cfg.cgroupFilterOut; + }) + ); + + mkDisableOption = n: mkOption { + type = types.bool; + default = true; + description = mdDoc "Whether to enable ${n}."; + }; + optionalType = ty: x: mkOption (x // { + description = mdDoc x.description; + type = (types.nullOr ty); + default = null; + }); + optionalPath = optionalType types.path; + optionalStr = optionalType types.str; + optionalInt = optionalType types.int; +in { + options = { + services.below = { + enable = mkEnableOption (mdDoc "'below' resource monitor"); + + cgroupFilterOut = optionalStr { + description = "A regexp matching the full paths of cgroups whose data shouldn't be collected"; + example = "user.slice.*"; + }; + collect = { + diskStats = mkDisableOption "dist_stat collection"; + ioStats = mkEnableOption (mdDoc "io.stat collection for cgroups"); + exitStats = mkDisableOption "eBPF-based exitstats"; + }; + compression.enable = mkEnableOption (mdDoc "data compression"); + retention = { + size = optionalInt { + description = '' + Size limit for below's data, in bytes. Data is deleted oldest-first, in 24h 'shards'. + + ::: {.note} + The size limit may be exceeded by at most the size of the active shard, as: + - the active shard cannot be deleted; + - the size limit is only enforced when a new shard is created. + ::: + ''; + }; + time = optionalInt { + description = '' + Retention time, in seconds. + + ::: {.note} + As data is stored in 24 hour shards which are discarded as a whole, + only data expired by 24h (or more) is guaranteed to be discarded. + ::: + + ::: {.note} + If `retention.size` is set, data may be discarded earlier than the specified time. + ::: + ''; + }; + }; + dirs = { + log = optionalPath { description = "Where to store below's logs"; }; + store = optionalPath { + description = "Where to store below's data"; + example = "/var/lib/below"; + }; + }; + }; + }; + + config = mkIf cfg.enable { + environment.systemPackages = [ pkgs.below ]; + # /etc/below.conf is also refered to by the `below` CLI tool, + # so this can't be a store-only file whose path is passed to the service + environment.etc."below/below.conf".text = cfgContents; + + systemd = { + packages = [ pkgs.below ]; + services.below = { + # Workaround for https://github.com/NixOS/nixpkgs/issues/81138 + wantedBy = [ "multi-user.target" ]; + restartTriggers = [ cfgContents ]; + + serviceConfig.ExecStart = [ + "" + ("${lib.getExe pkgs.below} record " + (concatStringsSep " " ( + optional (!cfg.collect.diskStats) "--disable-disk-stat" ++ + optional cfg.collect.ioStats "--collect-io-stat" ++ + optional (!cfg.collect.exitStats) "--disable-exitstats" ++ + optional cfg.compression.enable "--compress" ++ + + optional (cfg.retention.size != null) "--store-size-limit ${toString cfg.retention.size}" ++ + optional (cfg.retention.time != null) "--retain-for-s ${toString cfg.retention.time}" + ))) + ]; + }; + }; + }; +} diff --git a/third_party/nixpkgs/nixos/modules/services/monitoring/grafana.nix b/third_party/nixpkgs/nixos/modules/services/monitoring/grafana.nix index e74ee641db..571b9a3aee 100644 --- a/third_party/nixpkgs/nixos/modules/services/monitoring/grafana.nix +++ b/third_party/nixpkgs/nixos/modules/services/monitoring/grafana.nix @@ -5,25 +5,44 @@ with lib; let cfg = config.services.grafana; opt = options.services.grafana; - provisioningSettingsFormat = pkgs.formats.yaml {}; + provisioningSettingsFormat = pkgs.formats.yaml { }; declarativePlugins = pkgs.linkFarm "grafana-plugins" (builtins.map (pkg: { name = pkg.pname; path = pkg; }) cfg.declarativePlugins); useMysql = cfg.settings.database.type == "mysql"; usePostgresql = cfg.settings.database.type == "postgres"; - settingsFormatIni = pkgs.formats.ini {}; + # Prefer using the values from the default config file[0] directly. This way, + # people reading the NixOS manual can see them without cross-referencing the + # official documentation. + # + # However, if there is no default entry or if the setting is optional, use + # `null` as the default value. It will be turned into the empty string. + # + # If a setting is a list, always allow setting it as a plain string as well. + # + # [0]: https://github.com/grafana/grafana/blob/main/conf/defaults.ini + settingsFormatIni = pkgs.formats.ini { + listToValue = concatMapStringsSep " " (generators.mkValueStringDefault { }); + mkKeyValue = generators.mkKeyValueDefault + { + mkValueString = v: + if v == null then "" + else generators.mkValueStringDefault { } v; + } + "="; + }; configFile = settingsFormatIni.generate "config.ini" cfg.settings; mkProvisionCfg = name: attr: provisionCfg: if provisionCfg.path != null - then provisionCfg.path + then provisionCfg.path else provisioningSettingsFormat.generate "${name}.yaml" (if provisionCfg.settings != null - then provisionCfg.settings - else { - apiVersion = 1; - ${attr} = []; - }); + then provisionCfg.settings + else { + apiVersion = 1; + ${attr} = [ ]; + }); datasourceFileOrDir = mkProvisionCfg "datasource" "datasources" cfg.provision.datasources; dashboardFileOrDir = mkProvisionCfg "dashboard" "providers" cfg.provision.dashboards; @@ -35,9 +54,10 @@ let notifierFileOrDir = pkgs.writeText "notifier.yaml" (builtins.toJSON notifierConfiguration); - generateAlertingProvisioningYaml = x: if (cfg.provision.alerting."${x}".path == null) - then provisioningSettingsFormat.generate "${x}.yaml" cfg.provision.alerting."${x}".settings - else cfg.provision.alerting."${x}".path; + generateAlertingProvisioningYaml = x: + if (cfg.provision.alerting."${x}".path == null) + then provisioningSettingsFormat.generate "${x}.yaml" cfg.provision.alerting."${x}".settings + else cfg.provision.alerting."${x}".path; rulesFileOrDir = generateAlertingProvisioningYaml "rules"; contactPointsFileOrDir = generateAlertingProvisioningYaml "contactPoints"; policiesFileOrDir = generateAlertingProvisioningYaml "policies"; @@ -102,7 +122,7 @@ let description = lib.mdDoc "Datasource type. Required."; }; access = mkOption { - type = types.enum ["proxy" "direct"]; + type = types.enum [ "proxy" "direct" ]; default = "proxy"; description = lib.mdDoc "Access mode. proxy or direct (Server or Browser in the UI). Required."; }; @@ -121,6 +141,11 @@ let default = false; description = lib.mdDoc "Allow users to edit datasources from the UI."; }; + jsonData = mkOption { + type = types.nullOr types.attrs; + default = null; + description = lib.mdDoc "Extra data for datasource plugins."; + }; secureJsonData = mkOption { type = types.nullOr types.attrs; default = null; @@ -165,7 +190,7 @@ let description = lib.mdDoc "Notifier name."; }; type = mkOption { - type = types.enum ["dingding" "discord" "email" "googlechat" "hipchat" "kafka" "line" "teams" "opsgenie" "pagerduty" "prometheus-alertmanager" "pushover" "sensu" "sensugo" "slack" "telegram" "threema" "victorops" "webhook"]; + type = types.enum [ "dingding" "discord" "email" "googlechat" "hipchat" "kafka" "line" "teams" "opsgenie" "pagerduty" "prometheus-alertmanager" "pushover" "sensu" "sensugo" "slack" "telegram" "threema" "victorops" "webhook" ]; description = lib.mdDoc "Notifier type."; }; uid = mkOption { @@ -220,7 +245,8 @@ let }; }; }; -in { +in +{ imports = [ (mkRenamedOptionModule [ "services" "grafana" "protocol" ] [ "services" "grafana" "settings" "server" "protocol" ]) (mkRenamedOptionModule [ "services" "grafana" "addr" ] [ "services" "grafana" "settings" "server" "http_addr" ]) @@ -349,7 +375,7 @@ in { protocol = mkOption { description = lib.mdDoc "Which protocol to listen."; default = "http"; - type = types.enum ["http" "https" "h2" "socket"]; + type = types.enum [ "http" "https" "h2" "socket" ]; }; http_addr = mkOption { @@ -371,17 +397,60 @@ in { }; domain = mkOption { - description = lib.mdDoc "The public facing domain name used to access grafana from a browser."; + description = lib.mdDoc '' + The public facing domain name used to access grafana from a browser. + + This setting is only used in the default value of the `root_url` setting. + If you set the latter manually, this option does not have to be specified. + ''; default = "localhost"; type = types.str; }; + enforce_domain = mkOption { + description = lib.mdDoc '' + Redirect to correct domain if the host header does not match the domain. + Prevents DNS rebinding attacks. + ''; + default = false; + type = types.bool; + }; + root_url = mkOption { - description = lib.mdDoc "Full public facing url."; + description = lib.mdDoc '' + This is the full URL used to access Grafana from a web browser. + This is important if you use Google or GitHub OAuth authentication (for the callback URL to be correct). + + This setting is also important if you have a reverse proxy in front of Grafana that exposes it through a subpath. + In that case add the subpath to the end of this URL setting. + ''; default = "%(protocol)s://%(domain)s:%(http_port)s/"; type = types.str; }; + serve_from_sub_path = mkOption { + description = lib.mdDoc '' + Serve Grafana from subpath specified in the `root_url` setting. + By default it is set to `false` for compatibility reasons. + + By enabling this setting and using a subpath in `root_url` above, + e.g. `root_url = "http://localhost:3000/grafana"`, + Grafana is accessible on `http://localhost:3000/grafana`. + If accessed without subpath, Grafana will redirect to an URL with the subpath. + ''; + default = false; + type = types.bool; + }; + + router_logging = mkOption { + description = lib.mdDoc '' + Set to `true` for Grafana to log all HTTP requests (not just errors). + These are logged as Info level events to the Grafana log. + ''; + default = false; + type = types.bool; + }; + static_root_path = mkOption { description = lib.mdDoc "Root path for static assets."; default = "${cfg.package}/share/grafana/public"; @@ -391,60 +460,119 @@ in { enable_gzip = mkOption { description = lib.mdDoc '' - Set this option to true to enable HTTP compression, this can improve transfer speed and bandwidth utilization. - It is recommended that most users set it to true. By default it is set to false for compatibility reasons. + Set this option to `true` to enable HTTP compression, this can improve transfer speed and bandwidth utilization. + It is recommended that most users set it to `true`. By default it is set to `false` for compatibility reasons. ''; default = false; type = types.bool; }; cert_file = mkOption { - description = lib.mdDoc "Cert file for ssl."; - default = ""; - type = types.str; + description = lib.mdDoc '' + Path to the certificate file (if `protocol` is set to `https` or `h2`). + ''; + default = null; + type = types.nullOr types.str; }; cert_key = mkOption { - description = lib.mdDoc "Cert key for ssl."; - default = ""; + description = lib.mdDoc '' + Path to the certificate key file (if `protocol` is set to `https` or `h2`). + ''; + default = null; + type = types.nullOr types.str; + }; + + socket_gid = mkOption { + description = lib.mdDoc '' + GID where the socket should be set when `protocol=socket`. + Make sure that the target group is in the group of Grafana process and that Grafana process is the file owner before you change this setting. + It is recommended to set the gid as http server user gid. + Not set when the value is -1. + ''; + default = -1; + type = types.int; + }; + + socket_mode = mkOption { + description = lib.mdDoc '' + Mode where the socket should be set when `protocol=socket`. + Make sure that Grafana process is the file owner before you change this setting. + ''; + # I assume this value is interpreted as octal literal by grafana. + # If this was an int, people following tutorials or porting their + # old config could stumble across nix not having octal literals. + default = "0660"; type = types.str; }; socket = mkOption { - description = lib.mdDoc "Path where the socket should be created when protocol=socket. Make sure that Grafana has appropriate permissions before you change this setting."; + description = lib.mdDoc '' + Path where the socket should be created when `protocol=socket`. + Make sure that Grafana has appropriate permissions before you change this setting. + ''; default = "/run/grafana/grafana.sock"; type = types.str; }; + + cdn_url = mkOption { + description = lib.mdDoc '' + Specify a full HTTP URL address to the root of your Grafana CDN assets. + Grafana will add edition and version paths. + + For example, given a cdn url like `https://cdn.myserver.com` + grafana will try to load a javascript file from `http://cdn.myserver.com/grafana-oss/7.4.0/public/build/app..js`. + ''; + default = null; + type = types.nullOr types.str; + }; + + read_timeout = mkOption { + description = lib.mdDoc '' + Sets the maximum time using a duration format (5s/5m/5ms) + before timing out read of an incoming request and closing idle connections. + 0 means there is no timeout for reading the request. + ''; + default = "0"; + type = types.str; + }; }; database = { type = mkOption { description = lib.mdDoc "Database type."; default = "sqlite3"; - type = types.enum ["mysql" "sqlite3" "postgres"]; + type = types.enum [ "mysql" "sqlite3" "postgres" ]; }; host = mkOption { - description = lib.mdDoc "Database host."; + description = lib.mdDoc '' + Only applicable to MySQL or Postgres. + Includes IP or hostname and port or in case of Unix sockets the path to it. + For example, for MySQL running on the same host as Grafana: `host = "127.0.0.1:3306"` + or with Unix sockets: `host = "/var/run/mysqld/mysqld.sock"` + ''; default = "127.0.0.1:3306"; type = types.str; }; name = mkOption { - description = lib.mdDoc "Database name."; + description = lib.mdDoc "The name of the Grafana database."; default = "grafana"; type = types.str; }; user = mkOption { - description = lib.mdDoc "Database user."; + description = lib.mdDoc "The database user (not applicable for `sqlite3`)."; default = "root"; type = types.str; }; password = mkOption { description = lib.mdDoc '' - Database password. Please note that the contents of this option + The database user's password (not applicable for `sqlite3`). + + Please note that the contents of this option will end up in a world-readable Nix store. Use the file provider pointing at a reasonably secured file in the local filesystem to work around that. Look at the documentation for details: @@ -454,15 +582,144 @@ in { type = types.str; }; + max_idle_conn = mkOption { + description = lib.mdDoc "The maximum number of connections in the idle connection pool."; + default = 2; + type = types.int; + }; + + max_open_conn = mkOption { + description = lib.mdDoc "The maximum number of open connections to the database."; + default = 0; + type = types.int; + }; + + conn_max_lifetime = mkOption { + description = lib.mdDoc '' + Sets the maximum amount of time a connection may be reused. + The default is 14400 (which means 14400 seconds or 4 hours). + For MySQL, this setting should be shorter than the `wait_timeout` variable. + ''; + default = 14400; + type = types.int; + }; + + locking_attempt_timeout_sec = mkOption { + description = lib.mdDoc '' + For `mysql`, if the `migrationLocking` feature toggle is set, + specify the time (in seconds) to wait before failing to lock the database for the migrations. + ''; + default = 0; + type = types.int; + }; + + log_queries = mkOption { + description = lib.mdDoc "Set to `true` to log the sql calls and execution times"; + default = false; + type = types.bool; + }; + + ssl_mode = mkOption { + description = lib.mdDoc '' + For Postgres, use either `disable`, `require` or `verify-full`. + For MySQL, use either `true`, `false`, or `skip-verify`. + ''; + default = "disable"; + type = types.enum [ "disable" "require" "verify-full" "true" "false" "skip-verify" ]; + }; + + isolation_level = mkOption { + description = lib.mdDoc '' + Only the MySQL driver supports isolation levels in Grafana. + In case the value is empty, the driver's default isolation level is applied. + ''; + default = null; + type = types.nullOr (types.enum [ "READ-UNCOMMITTED" "READ-COMMITTED" "REPEATABLE-READ" "SERIALIZABLE" ]); + }; + + ca_cert_path = mkOption { + description = lib.mdDoc "The path to the CA certificate to use."; + default = null; + type = types.nullOr types.str; + }; + + client_key_path = mkOption { + description = lib.mdDoc "The path to the client key. Only if server requires client authentication."; + default = null; + type = types.nullOr types.str; + }; + + client_cert_path = mkOption { + description = lib.mdDoc "The path to the client cert. Only if server requires client authentication."; + default = null; + type = types.nullOr types.str; + }; + + server_cert_name = mkOption { + description = lib.mdDoc '' + The common name field of the certificate used by the `mysql` or `postgres` server. + Not necessary if `ssl_mode` is set to `skip-verify`. + ''; + default = null; + type = types.nullOr types.str; + }; + path = mkOption { - description = lib.mdDoc "Only applicable to sqlite3 database. The file path where the database will be stored."; + description = lib.mdDoc "Only applicable to `sqlite3` database. The file path where the database will be stored."; default = "${cfg.dataDir}/data/grafana.db"; defaultText = literalExpression ''"''${config.${opt.dataDir}}/data/grafana.db"''; type = types.path; }; + + cache_mode = mkOption { + description = lib.mdDoc '' + For `sqlite3` only. + [Shared cache](https://www.sqlite.org/sharedcache.html) setting used for connecting to the database. + ''; + default = "private"; + type = types.enum [ "private" "shared" ]; + }; + + wal = mkOption { + description = lib.mdDoc '' + For `sqlite3` only. + Setting to enable/disable [Write-Ahead Logging](https://sqlite.org/wal.html). + ''; + default = false; + type = types.bool; + }; + + query_retries = mkOption { + description = lib.mdDoc '' + This setting applies to `sqlite3` only and controls the number of times the system retries a query when the database is locked. + ''; + default = 0; + type = types.int; + }; + + transaction_retries = mkOption { + description = lib.mdDoc '' + This setting applies to `sqlite3` only and controls the number of times the system retries a transaction when the database is locked. + ''; + default = 5; + type = types.int; + }; + + # TODO Add "instrument_queries" option when upgrading to grafana 10.0 + # instrument_queries = mkOption { + # description = lib.mdDoc "Set to `true` to add metrics and tracing for database queries."; + # default = false; + # type = types.bool; + # }; }; security = { + disable_initial_admin_creation = mkOption { + description = lib.mdDoc "Disable creation of admin user on first start of Grafana."; + default = false; + type = types.bool; + }; + admin_user = mkOption { description = lib.mdDoc "Default admin username."; default = "admin"; @@ -481,6 +738,12 @@ in { type = types.str; }; + admin_email = mkOption { + description = lib.mdDoc "The email of the default Grafana Admin, created on startup."; + default = "admin@localhost"; + type = types.str; + }; + secret_key = mkOption { description = lib.mdDoc '' Secret key used for signing. Please note that the contents of this option @@ -492,6 +755,160 @@ in { default = "SW2YcwTIb9zpOOhoPsMm"; type = types.str; }; + + disable_gravatar = mkOption { + description = lib.mdDoc "Set to `true` to disable the use of Gravatar for user profile images."; + default = false; + type = types.bool; + }; + + data_source_proxy_whitelist = mkOption { + description = lib.mdDoc '' + Define a whitelist of allowed IP addresses or domains, with ports, + to be used in data source URLs with the Grafana data source proxy. + Format: `ip_or_domain:port` separated by spaces. + PostgreSQL, MySQL, and MSSQL data sources do not use the proxy and are therefore unaffected by this setting. + ''; + default = [ ]; + type = types.oneOf [ types.str (types.listOf types.str) ]; + }; + + disable_brute_force_login_protection = mkOption { + description = lib.mdDoc "Set to `true` to disable [brute force login protection](https://cheatsheetseries.owasp.org/cheatsheets/Authentication_Cheat_Sheet.html#account-lockout)."; + default = false; + type = types.bool; + }; + + cookie_secure = mkOption { + description = lib.mdDoc "Set to `true` if you host Grafana behind HTTPS."; + default = false; + type = types.bool; + }; + + cookie_samesite = mkOption { + description = lib.mdDoc '' + Sets the `SameSite` cookie attribute and prevents the browser from sending this cookie along with cross-site requests. + The main goal is to mitigate the risk of cross-origin information leakage. + This setting also provides some protection against cross-site request forgery attacks (CSRF), + [read more about SameSite here](https://owasp.org/www-community/SameSite). + Using value `disabled` does not add any `SameSite` attribute to cookies. + ''; + default = "lax"; + type = types.enum [ "lax" "strict" "none" "disabled" ]; + }; + + allow_embedding = mkOption { + description = lib.mdDoc '' + When `false`, the HTTP header `X-Frame-Options: deny` will be set in Grafana HTTP responses + which will instruct browsers to not allow rendering Grafana in a ``, `