Commit Graph

1013208 Commits

Author SHA1 Message Date
Ilan Joselevich 8f68c76d48 nixos/lib/utils: fix escapeSystemdPath for paths with "." segments
escapeSystemdPath relied on lib.strings.normalizePath, which only
collapses duplicate slashes and does not drop "." path components the
way systemd's path_simplify() does. A path like /mnt/./foo was thus
escaped to mnt-.-foo instead of mnt-foo, and systemd refused the
generated unit ("Where= setting doesn't match unit name").

Reimplement the simplification to match `systemd-escape --path` exactly:
drop "." and empty components, collapse a leading ".." run in an
absolute path to the root, and throw on any input systemd-escape
rejects (a non-leading "..", or a relative path that reduces to
nothing). Parity is checked against the systemd-escape binary over a
battery of edge cases and fuzzed inputs. While here, hoist the constant
escape table and partial applications out of the per-call lambda so
they are built once rather than on every call, making the function
~2.5x faster.

Resolves: https://github.com/NixOS/nixpkgs/issues/515270
Assisted-by: Claude:claude-opus-4-8
2026-06-10 02:03:37 +03:00
Toma 4dd6071446 pragtical: use mbedtls_4 (#529673) 2026-06-08 21:44:50 +00:00
Michael Daniels aa499d7238 nixpkgs-vet: 0.3.0 -> 0.3.2 (#529318) 2026-06-08 21:44:07 +00:00
Yohann Boniface 496fcd7b73 python3Packages.cock: migrate to pyproject (#529519) 2026-06-08 21:39:42 +00:00
Yohann Boniface 0685f4868f python3Packages.colanderalchemy: migrate to pyproject (#529518) 2026-06-08 21:35:46 +00:00
Yohann Boniface 2746c07ad6 python3Packages.colorlover: migrate to pyproject (#529517) 2026-06-08 21:29:37 +00:00
Matthieu Coudron 02a236eb71 supercollider: 3.13.1 -> 3.14.1 (#527684) 2026-06-08 21:28:38 +00:00
Michael Daniels b2190cbd94 antigravity-cli: clean up derivation and updateScript (#527053) 2026-06-08 21:28:21 +00:00
nixpkgs-ci[bot] d69b365d3c tigerbeetle: 0.17.4 -> 0.17.5 (#528588) 2026-06-08 21:27:47 +00:00
Yt f8662d57de cargo-tauri: use pnpm 10 for test-app (#529642) 2026-06-08 21:27:22 +00:00
TomaSajt 8f26b06dc3 pragtical: use mbedtls_4 2026-06-08 23:25:49 +02:00
Martin Weinelt 7e1f0bfc58 home-assistant-custom-components.opendisplay: init at 2.0.2 (#529666) 2026-06-08 21:24:56 +00:00
Martin Weinelt 55fda86457 home-assistant-custom-components.opendisplay: init at 2.0.2 2026-06-08 23:19:50 +02:00
Florian Klink b8d2631686 nixos/cde: replace activation script with tmpfiles (#527625) 2026-06-08 21:17:51 +00:00
Marcin Serwin e359516e84 maintainers: remove hedning (#518768) 2026-06-08 21:11:31 +00:00
Martin Weinelt d8a6f4c862 python3Packages.python-resize-image: init at 1.1.20 2026-06-08 23:11:24 +02:00
Marcin Serwin 9c8bfc47e0 plasticity: 25.3.9 -> 26.1.3 (#487732) 2026-06-08 21:06:09 +00:00
Stefan Frijters 90581faec0 gimp: enable strictDeps and structuredAttrs (#526359) 2026-06-08 21:02:41 +00:00
Austin Horstman 6dddcfb1e2 neovim-require-check-hook: remove $out from rtp (#529637) 2026-06-08 21:01:49 +00:00
Matt Sturgeon d3f5c0e481 workflows/teams: fix execution day of comment (#529652) 2026-06-08 21:00:27 +00:00
Hythera 1120f1fcc2 maintainers: remove hedning 2026-06-08 22:57:54 +02:00
0x4A6F 2a288c2bef routinator: 0.15.1 -> 0.15.2 (#529633) 2026-06-08 20:53:20 +00:00
stefan bb1e73bf6f neovim-require-check-hook: remove $out from rtp
Previously, the tested plugin appeared in `rtp` under two paths:
- `/nix/store/<hash>-vimPlugins-my-plugin` from `$out`
- `/build/.local/share/nvim/site/pack/nvimRequireCheckHook/opt/testPlugin`
  from `packadd testPlugin`

This was causing problems for plugins that use
`vim.api.nvim_get_runtime_file()`. For example, plugins that use
`blink.lib` to load rust modules fail the require check because
`blink.lib` uses this function to locate rust shared libraries and
raises an error when duplicate libraries are found.

The plugin is already loaded via `packadd testPlugin`, so adding `$out`
to `rtp` is unnecessary. Remove `$out` from `rtp` to avoid duplicate
runtime entries, and add a regression test to ensure the plugin appears
in `rtp` only once.

Co-authored-by: Austin Horstman <khaneliman12@gmail.com>
2026-06-08 13:51:28 -07:00
Peder Bergebakken Sundt 1246dcd3fe python3Packages.hdf5plugin: build using system libraries; bzip2_1_1: drop (#526391) 2026-06-08 20:50:17 +00:00
Peder Bergebakken Sundt 5272a0d8ad yacreader: 9.16.3 -> 10.0.0 (#527314) 2026-06-08 20:44:21 +00:00
Hythera 8bbed87799 workflows/teams: fix execution day of comment 2026-06-08 22:41:22 +02:00
Hythera 399295a97b cargo-tauri: use pnpm 10 for test-app 2026-06-08 22:40:43 +02:00
Nick Cao 60766807b8 helmfile: 1.5.0 -> 1.5.2 (#521764) 2026-06-08 20:40:34 +00:00
Thomas Gerbet 148931d918 phpPackages.composer: 2.10.0 -> 2.10.1 (#528026) 2026-06-08 20:40:31 +00:00
Silvan Mosberger 30183481f4 maintainers/github-teams.json: Automated sync (#529650) 2026-06-08 20:39:42 +00:00
Nick Cao 9aeaa9c7c0 python3Packages.mmengine: skip failing test (#529561) 2026-06-08 20:39:34 +00:00
Nick Cao afb903f65f openmm: 8.5.1 -> 8.5.2 (#529595) 2026-06-08 20:39:09 +00:00
Nick Cao 56051aaf4f terraform-providers.tencentcloudstack_tencentcloud: 1.82.98 -> 1.82.101 (#529463) 2026-06-08 20:35:16 +00:00
Nick Cao c6ad59a34a elan: 4.2.2 -> 4.2.3 (#529464) 2026-06-08 20:35:12 +00:00
Nick Cao 42543568f2 agate: 3.3.22 -> 3.3.23 (#529477) 2026-06-08 20:34:16 +00:00
Nick Cao 3632cb587a python3Packages.aioaudiobookshelf: 0.1.20 -> 0.1.21 (#529534) 2026-06-08 20:33:32 +00:00
Nick Cao acc83e7cb8 python3Packages.pydo: 0.34.0 -> 0.35.0 (#529538) 2026-06-08 20:33:04 +00:00
Yohann Boniface 12c5ef53b4 python3Packages.colorspacious: migrate to pyproject (#529516) 2026-06-08 20:33:00 +00:00
Nick Cao 55d262fb4d terraform-ls: 0.38.6 -> 0.38.7 (#529631) 2026-06-08 20:32:18 +00:00
nixpkgs-ci[bot] fa5aaea66d maintainers/github-teams.json: Automated sync 2026-06-08 20:31:07 +00:00
Nick Cao 3a72620015 spruce: 1.35.5 -> 1.35.6 (#529348) 2026-06-08 20:31:05 +00:00
Nick Cao 282cf628ee rattler-build: 0.65.0 -> 0.65.1 (#529349) 2026-06-08 20:30:43 +00:00
Nick Cao 6b28f661f3 omnictl: 1.8.0 -> 1.8.2 (#529378) 2026-06-08 20:29:49 +00:00
Nick Cao 790598d9b5 python3Packages.deep-chainmap: 0.1.3 -> 0.2.0 (#529383) 2026-06-08 20:29:13 +00:00
Nick Cao 8618851048 python3Packages.google-cloud-securitycenter: 1.44.0 -> 1.45.0 (#529387) 2026-06-08 20:28:39 +00:00
Nick Cao c2a071bc6f codesnap: 0.13.1 -> 0.13.4 (#529395) 2026-06-08 20:28:02 +00:00
Nick Cao 90aa4bad09 python3Packages.torch-cluster: 1.6.3-unstable-2026-03-26 -> 1.6.3-unstable-2026-06-05 (#529397) 2026-06-08 20:27:12 +00:00
Nick Cao dd4397e8f0 apko: 1.2.15 -> 1.2.16 (#529399) 2026-06-08 20:25:39 +00:00
Nick Cao 536769522c gitlab-ci-ls: 1.3.2 -> 1.3.3 (#529419) 2026-06-08 20:24:46 +00:00
Nick Cao 4545ce0aaa vscode-extensions.oracle.oracle-java: 25.1.0 -> 26.0.0 (#529458) 2026-06-08 20:24:06 +00:00