Robert Hensing
8a437b71a0
test: Fix flaky eval_state_value_attrs_names_example
...
(cherry picked from commit 4583b422038661de02c6fe672559d2519f38dfce)
2025-10-04 02:31:16 +02:00
Robert Hensing
76b92a577d
feat: Add EvalState.require_attrs_names (sorted)
...
(cherry picked from commit 0b1aca5a1ee7136e76a201477643cfc3acbf2676)
2025-10-04 02:31:16 +02:00
Robert Hensing
237a2281c1
refact: require_attrs_names -> require_attrs_names_unsorted
...
(cherry picked from commit 13a3adf4f17351bc6ba3d91567a642ec1ae704f6)
2025-10-04 02:31:16 +02:00
Hercules CI Effects
22d2b3e6f3
dev/flake.lock: Update
...
Flake lock file updates:
• Updated input 'hercules-ci-effects':
'github:hercules-ci/hercules-ci-effects/d70658494391994c7b32e8fe5610dae76737e4df?narHash=sha256-2W//PmgocN9lplDJ7WoiP9EcrfUxqvtxplCAqlwvquY%3D' (2024-10-29)
→ 'github:hercules-ci/hercules-ci-effects/b89ac4d66d618b915b1f0a408e2775fe3821d141?narHash=sha256-mnynlrPeiW0nUQ8KGZHb3WyxAxA3Ye/BH8gMjdoKP6E%3D' (2024-11-06)
• Updated input 'pre-commit-hooks-nix':
'github:cachix/pre-commit-hooks.nix/af8a16fe5c264f5e9e18bcee2859b40a656876cf?narHash=sha256-W1MIJpADXQCgosJZT8qBYLRuZls2KSiKdpnTVdKBuvU%3D' (2024-10-30)
→ 'github:cachix/pre-commit-hooks.nix/3308484d1a443fc5bc92012435d79e80458fe43c?narHash=sha256-mnTbjpdqF0luOkou8ZFi2asa1N3AA2CchR/RqCNmsGE%3D' (2024-11-19)
• Updated input 'pre-commit-hooks-nix/nixpkgs-stable':
'github:NixOS/nixpkgs/194846768975b7ad2c4988bdb82572c00222c0d7?narHash=sha256-NGKVY4PjzwAa4upkGtAMz1npHGoRzWotlSnVlqI40mo%3D' (2024-07-07)
→ 'github:NixOS/nixpkgs/d063c1dd113c91ab27959ba540c0d9753409edf3?narHash=sha256-edm8WG19kWozJ/GqyYx2VjW99EdhjKwbY3ZwdlPAAlo%3D' (2024-11-04)
(cherry picked from commit 7529f8878378da938fb79a42f8f61c2a4c9537c4)
2025-10-04 02:31:16 +02:00
Hercules CI Effects
9186def735
flake.lock: Update
...
Flake lock file updates:
• Updated input 'nix-cargo-integration':
'github:yusdacra/nix-cargo-integration/5230dddd1afff06cca6ae3780dec1bf709b528cc?narHash=sha256-KfanwS52gty87OZFWD84cLVJO6TV7lk0YtOZj5pgJWs%3D' (2025-09-29)
→ 'github:yusdacra/nix-cargo-integration/413617712f5189397cdf602485f89bf2b0a0e4af?narHash=sha256-g7TCUozMeW3q5Uc%2BwmZI64yzFucQ3SYlZQepo7prarA%3D' (2024-12-01)
• Updated input 'nix-cargo-integration/dream2nix':
'github:nix-community/dream2nix/fbec3263cb4895ac86ee9506cdc4e6919a1a2214?narHash=sha256-nrDovydywSKRbWim9Ynmgj8SBm8LK3DI2WuhIqzOHYI%3D' (2025-08-12)
→ 'github:nix-community/dream2nix/a8dac99db44307fdecead13a39c584b97812d0d4?narHash=sha256-ViyEMSYwaza6y55XTDrsRi2K4YKCLsefMTorjWSE27s%3D' (2024-11-21)
• Updated input 'nix-cargo-integration/dream2nix/pyproject-nix':
'github:pyproject-nix/pyproject.nix/16ee295c25107a94e59a7fc7f2e5322851781162?narHash=sha256-luVj97hIMpCbwhx3hWiRwjP2YvljWy8FM%2B4W9njDhLA%3D' (2025-07-14)
→ 'github:davhau/pyproject.nix/5a06a2697b228c04dd2f35659b4b659ca74f7aeb?narHash=sha256-hFg5s/hoJFv7tDpiGvEvXP0UfFvFEDgTdyHIjDVHu1I%3D' (2023-12-13)
• Removed input 'nix-cargo-integration/dream2nix/pyproject-nix/nixpkgs'
• Updated input 'nix-cargo-integration/parts':
'github:hercules-ci/flake-parts/4524271976b625a4a605beefd893f270620fd751?narHash=sha256-%2BuWLQZccFHwqpGqr2Yt5VsW/PbeJVTn9Dk6SHWhNRPw%3D' (2025-09-01)
→ 'github:hercules-ci/flake-parts/506278e768c2a08bec68eb62932193e341f55c90?narHash=sha256-hgmguH29K2fvs9szpq2r3pz2/8cJd2LPS%2Bb4tfNFCwE%3D' (2024-11-01)
• Updated input 'nix-cargo-integration/rust-overlay':
'github:oxalica/rust-overlay/be3b8843a2be2411500f6c052876119485e957a2?narHash=sha256-xm4kEUcV2jk6u15aHazFP4YsMwhq%2BPczA%2BUl/4FDKWI%3D' (2025-09-29)
→ 'github:oxalica/rust-overlay/8e18f10703112e6c33e1c0d8b93e8305f6f0a75c?narHash=sha256-Chv9%2B3zrf1DhdB9JyskjoV0vJbCQEgkVqrU3p4RPLv8%3D' (2024-12-01)
• Updated input 'nix-cargo-integration/treefmt':
'github:numtide/treefmt-nix/5eda4ee8121f97b218f7cc73f5172098d458f1d1?narHash=sha256-ySNJ008muQAds2JemiyrWYbwbG%2BV7S5wg3ZVKGHSFu8%3D' (2025-09-24)
→ 'github:numtide/treefmt-nix/6209c381904cab55796c5d7350e89681d3b2a8ef?narHash=sha256-2qbdorpq0TXHBWbVXaTqKoikN4bqAtAplTwGuII%2BoAc%3D' (2024-11-29)
After
• Updated input 'nix':
'github:NixOS/nix/4f50b1d178366e9892f8cd5d894365a51aa3387d?narHash=sha256-SYZXusCn2bdkpcmqZph%2BbsDtSQbByKtw/7wKOy/HD8I%3D' (2024-11-26)
→ 'github:NixOS/nix/64000481168d1da9d2519f055dd1fdee22275c21?narHash=sha256-Ka/uNdaqpTAiVL%2B%2B4MPHg8fG5o1tiJeY6G2t5UiKhd8%3D' (2024-11-29)
• Updated input 'nix-cargo-integration':
'github:yusdacra/nix-cargo-integration/2e51be6bafce8a2c0bd57fc9d10700331b86d027?narHash=sha256-jeCP6rJAhtDqayQtJaUtbVJ7aN0KoKNYfCLEecQc2vo%3D' (2024-11-26)
→ 'github:yusdacra/nix-cargo-integration/413617712f5189397cdf602485f89bf2b0a0e4af?narHash=sha256-g7TCUozMeW3q5Uc%2BwmZI64yzFucQ3SYlZQepo7prarA%3D' (2024-12-01)
• Updated input 'nix-cargo-integration/rust-overlay':
'github:oxalica/rust-overlay/414e748aae5c9e6ca63c5aafffda03e5dad57ceb?narHash=sha256-J2/hxOO1VtBA/u%2Ba%2B9E%2B3iJpWT3xsBdghgYAVfoGCJo%3D' (2024-11-26)
→ 'github:oxalica/rust-overlay/8e18f10703112e6c33e1c0d8b93e8305f6f0a75c?narHash=sha256-Chv9%2B3zrf1DhdB9JyskjoV0vJbCQEgkVqrU3p4RPLv8%3D' (2024-12-01)
• Updated input 'nix-cargo-integration/treefmt':
'github:numtide/treefmt-nix/705df92694af7093dfbb27109ce16d828a79155f?narHash=sha256-5WSng844vXt8uytT5djmqBCkopyle6ciFgteuA9bJpw%3D' (2024-11-22)
→ 'github:numtide/treefmt-nix/6209c381904cab55796c5d7350e89681d3b2a8ef?narHash=sha256-2qbdorpq0TXHBWbVXaTqKoikN4bqAtAplTwGuII%2BoAc%3D' (2024-11-29)
• Updated input 'nixpkgs':
'github:NixOS/nixpkgs/23e89b7da85c3640bbc2173fe04f4bd114342367?narHash=sha256-y/MEyuJ5oBWrWAic/14LaIr/u5E0wRVzyYsouYY3W6w%3D' (2024-11-19)
→ 'github:NixOS/nixpkgs/970e93b9f82e2a0f3675757eb0bfc73297cc6370?narHash=sha256-jNRNr49UiuIwaarqijgdTR2qLPifxsVhlJrKzQ8XUIE%3D' (2024-11-28)
• Updated input 'nixpkgs-old':
'github:NixOS/nixpkgs/e8c38b73aeb218e27163376a2d617e61a2ad9b59?narHash=sha256-df3dJApLPhd11AlueuoN0Q4fHo/hagP75LlM5K1sz9g%3D' (2024-11-16)
→ 'github:NixOS/nixpkgs/7e1ca67996afd8233d9033edd26e442836cc2ad6?narHash=sha256-8qwPSE2g1othR1u4uP86NXxm6i7E9nHPyJX3m3lx7Q4%3D' (2024-12-01)
(loosely cherry picked from commit 03140e5b6d8bbdecd94821ced2baf6d86781b3b1)
2025-10-04 02:31:16 +02:00
Robert Hensing
1e3cce7742
refact: Resolve some clippy warnings
...
(cherry picked from commit dc4bfaa993eb2d712d53f70551db9ac34b0cda08)
2025-10-04 02:31:16 +02:00
Robert Hensing
12d3d62108
fix: Deduplicate stores to work around nix#11979
...
Fixes tests hanging. Before this commit:
nix build .#packages.x86_64-linux.nixops4-eval-release
See https://github.com/NixOS/nix/issues/11979
(cherry picked from commit 03af71f92488f2ee683565318f24afd3e3c001df)
2025-10-04 02:31:16 +02:00
Robert Hensing
1c0e2cd72f
maint: Unset substituters in nix-expr tests
...
Runs offline, and would only slow things down.
(cherry picked from commit ea3ef1c59a1fe8e380302acc1885877a1ac8e0b6)
2025-10-04 02:31:16 +02:00
Robert Hensing
77c9be2cbf
maint: Fix nix-expr tests by unsetting build hook
...
(cherry picked from commit 52b6cd6b7867dafe0906184e540c5195ba776ae9)
2025-10-04 02:31:16 +02:00
Robert Hensing
d40bbbed88
maint: Update Nix
...
(cherry picked from commit 203f5d519369235097fef2bdaefa6b3d0f5e963b)
2025-10-04 02:31:16 +02:00
Robert Hensing
676120cd6a
doc: Set flake description
...
(cherry picked from commit 6d5f5e5b4cd0f5b5118d619adbeae7bc335c02f3)
2025-10-04 02:31:16 +02:00
Robert Hensing
c5692d0588
flake.lock: Update
...
Flake lock file updates:
• Updated input 'nix-cargo-integration':
'github:yusdacra/nix-cargo-integration/3a8e3bb661db28522aa2d4a55f1fccf9f95ec33e?narHash=sha256-fjwO6Pv3d35F6UErY42hc7zXJr6ek0LhSZlgEu%2BeI04%3D' (2024-08-23)
→ 'github:yusdacra/nix-cargo-integration/d4f92d8c201479762727991bb290da18129b858c?narHash=sha256-87MJq1yxwAcAK/aKSaJ0i4HpaorweyiwRY6kNzsc7v8%3D' (2024-10-24)
• Updated input 'nix-cargo-integration/crane':
'github:ipetkov/crane/d535642bbe6f377077f7c23f0febb78b1463f449?narHash=sha256-xpW3VFUG7yE6UE6Wl0dhqencuENSkV7qpnpe9I8VbPw%3D' (2023-11-05)
→ 'github:ipetkov/crane/5b03654ce046b5167e7b0bccbd8244cb56c16f0e?narHash=sha256-/mumx8AQ5xFuCJqxCIOFCHTVlxHkMT21idpbgbm/TIE%3D' (2024-09-26)
• Updated input 'nix-cargo-integration/dream2nix':
'github:nix-community/dream2nix/3fd4c14d3683baac8d1f94286ae14fe160888b51?narHash=sha256-fFS8aDnfK9Qfm2FLnQ8pqWk8FzvFEv5LvTuZTZLREnc%3D' (2024-08-01)
→ 'github:nix-community/dream2nix/c6935471f7e1a9e190aaa9ac9823dca34e00d92a?narHash=sha256-rhx5SYpIkPu7d%2BrjF9FGGBVxS0BwAEkmYIsJg2a3E20%3D' (2024-10-10)
• Updated input 'nix-cargo-integration/dream2nix/purescript-overlay':
'github:thomashoneyman/purescript-overlay/047c7933abd6da8aa239904422e22d190ce55ead?narHash=sha256-eMjFmsj2G1E0Q5XiibUNgFjTiSz0GxIeSSzzVdoN730%3D' (2023-09-29)
→ 'github:thomashoneyman/purescript-overlay/988b09676c2a0e6a46dfa3589aa6763c90476b8a?narHash=sha256-TIw%2Bsac0NX0FeAneud%2BsQZT%2Bql1G/WEb7/Vb436rUXM%3D' (2024-08-24)
• Added input 'nix-cargo-integration/dream2nix/purescript-overlay/flake-compat':
'github:edolstra/flake-compat/0f9255e01c2351cc7d116c072cb317785dd33b33?narHash=sha256-kvjfFW7WAETZlt09AgDn1MrtKzP7t90Vf7vypd3OL1U%3D' (2023-10-04)
• Updated input 'nix-cargo-integration/dream2nix/purescript-overlay/slimlock':
'github:thomashoneyman/slimlock/b5c6cdcaf636ebbebd0a1f32520929394493f1a6?narHash=sha256-Wg0ViDotFWGWqKIQzyYCgayeH8s4U1OZcTiWTQYdAp4%3D' (2023-07-06)
→ 'github:thomashoneyman/slimlock/cf72723f59e2340d24881fd7bf61cb113b4c407c?narHash=sha256-xzkkMv3neJJJ89zo3o2ojp7nFeaZc2G0fYwNXNJRFlo%3D' (2023-07-07)
• Updated input 'nix-cargo-integration/parts':
'github:hercules-ci/flake-parts/8471fe90ad337a8074e957b69ca4d0089218391d?narHash=sha256-XOQkdLafnb/p9ij77byFQjDf5m5QYl9b2REiVClC%2Bx4%3D' (2024-08-01)
→ 'github:hercules-ci/flake-parts/3d04084d54bedc3d6b8b736c70ef449225c361b1?narHash=sha256-K5ZLCyfO/Zj9mPFldf3iwS6oZStJcU4tSpiXTMYaaL0%3D' (2024-10-01)
• Updated input 'nix-cargo-integration/rust-overlay':
'github:oxalica/rust-overlay/a18034322c7703fcfe5d7352a77981ba4a936a61?narHash=sha256-%2BCFDh1FUgyY7q0FiWhKJpHS7LlD3KbiqN5Z4Z%2B4bGmc%3D' (2024-08-23)
→ 'github:oxalica/rust-overlay/29b1275740d9283467b8117499ec8cbb35250584?narHash=sha256-Rb6JUop7NRklg0uzcre%2BA%2BEbrn/ZiQPkm4QdKg6/3pw%3D' (2024-10-24)
• Updated input 'nix-cargo-integration/treefmt':
'github:numtide/treefmt-nix/070f834771efa715f3e74cd8ab93ecc96fabc951?narHash=sha256-kKJtaiU5Ou%2Be/0Qs7SICXF22DLx4V/WhG1P6%2Bk4yeOE%3D' (2024-08-22)
→ 'github:numtide/treefmt-nix/aac86347fb5063960eccb19493e0cadcdb4205ca?narHash=sha256-XGOvuIPW1XRfPgHtGYXd5MAmJzZtOuwlfKDgxX5KT3s%3D' (2024-10-22)
(cherry picked from commit 3389f8f935c29ee7aed0f6c3d0015293bac614b8)
2025-10-04 02:31:16 +02:00
Robert Hensing
4eade817b6
refact: Remove gc_registering_current_thread
...
Closes #31
A guard object is more capable, as it can be used in various
control flow and ownership schemes, including async code, but not
that it is not Send.
(cherry picked from commit f9aa5eab2561834c64ef9fe01979a91aee35848f)
2025-10-04 02:31:16 +02:00
Robert Hensing
ad0f5d0240
fix: Remove impl Send for Value for now
...
They're somewhat safe to use on a different thread, but we don't need
to for now. By removing this, we'll be made aware as needed.
(cherry picked from commit 2e953d0a1268e2f19671fdbc9e721fc630ac346b)
2025-10-04 02:31:16 +02:00
Robert Hensing
f177507f88
feat: Add ThreadRegistrationGuard in nix-expr
...
(cherry picked from commit f287122e354535c2ee2f16c930038b19142f522a)
2025-10-04 02:31:16 +02:00
Robert Hensing
b714f46e07
feat: Make nixops4-eval async
...
A step toward handling the arrival of new data (stdin) with priority
over commands, avoiding roundtrips and re-evaluations.
(cherry picked from commit 8a2a5197886025caf35653001f76a4b209d8c9e4)
2025-10-04 02:31:16 +02:00
Robert Hensing
6f358cc1fb
flake.lock: Update
...
Flake lock file updates:
• Updated input 'flake-parts':
'github:hercules-ci/flake-parts/af510d4a62d071ea13925ce41c95e3dec816c01d?narHash=sha256-ODYRm8zHfLTH3soTFWE452ydPYz2iTvr9T8ftDMUQ3E%3D' (2024-08-30)
→ 'github:hercules-ci/flake-parts/bcef6817a8b2aa20a5a6dbb19b43e63c5bf8619a?narHash=sha256-HO4zgY0ekfwO5bX0QH/3kJ/h4KvUDFZg8YpkNwIbg1U%3D' (2024-09-12)
• Updated input 'flake-parts/nixpkgs-lib':
'https://github.com/NixOS/nixpkgs/archive/a5d394176e64ab29c852d03346c1fc9b0b7d33eb.tar.gz?narHash=sha256-uFf2QeW7eAHlYXuDktm9c25OxOyCoUOQmh5SZ9amE5Q%3D ' (2024-08-01)
→ 'https://github.com/NixOS/nixpkgs/archive/356624c12086a18f2ea2825fed34523d60ccc4e3.tar.gz?narHash=sha256-Ss8QWLXdr2JCBPcYChJhz4xJm%2Bh/xjl4G0c0XlP6a74%3D ' (2024-09-01)
(cherry picked from commit 448b7152c4d44a3d9814fc09252b769006ebd7d6)
2025-10-04 02:31:16 +02:00
Robert Hensing
69d4ccc422
fix: Temporarily revert Nix to recover getFlake
...
https://github.com/NixOS/nix/issues/11399
(cherry picked from commit 0f2ae7d080dda34938517f781b4eb436522e9d65)
2025-10-04 02:31:16 +02:00
Robert Hensing
9213c9a5a0
feat: Make Cargo.toml source locations explicit
...
This allows cargo metadata to operate on it without adding the
source files to the build. (A choice which will save a few rebuilds
of the manual)
(cherry picked from commit 1779295f3e13cc15f8422d52a3753bb927ac8fa7)
2025-10-04 02:31:16 +02:00
Robert Hensing
5355b663c0
refact: Inline new_value_function(), a test helper
...
(cherry picked from commit a354accb952558d30a780eb57fd3161be139db7d)
2025-10-04 02:31:16 +02:00
Robert Hensing
b5f9764c4c
refact: Remove some lazy_static test globals
...
(cherry picked from commit 4f0ce4960ec468679993cc9fd70820f6d0532c09)
2025-10-04 02:31:16 +02:00
Robert Hensing
ee6c04a941
feat: Reintroduce EvalState::new_value_thunk
...
(cherry picked from commit a2c49a524cf76ca2c9a6759d271d58076756ac09)
2025-10-04 02:31:16 +02:00
Robert Hensing
da9bb4c885
cleanup: Remove EvalState::new_value_function
...
It provides not so great values for some of the parameters, and we
don't really need its convenience.
(cherry picked from commit 52b7b58eb7fa96a265883cbf92e3a635735fe360)
2025-10-04 02:31:16 +02:00
Robert Hensing
312c86b811
feat: PrimOp type
...
(cherry picked from commit 67616c4a55b9d98d716384ffc07d3b3880dd76e4)
2025-10-04 02:31:16 +02:00
Robert Hensing
5c43a28cf0
Basic primops support
...
(cherry picked from commit e1be238ad440ad6f73a4f15cb752439b240a0333)
2025-10-04 02:31:16 +02:00
Robert Hensing
eb0595226d
doc: Context
...
(cherry picked from commit 976ecda38530d57b872c20eaeab5d3631076140b)
2025-10-04 02:31:16 +02:00
Robert Hensing
01c9d0b2d3
feat: EvalState.weak_ref()
...
(cherry picked from commit d7a72c82ebfbfbb1b58fa15044b63648b2109260)
2025-10-04 02:31:16 +02:00
Robert Hensing
e0dead151e
feat: Store.weak_ref()
...
(cherry picked from commit 2fdcc5df62a6cea790bea9b867e1b6d044d4a28f)
2025-10-04 02:31:16 +02:00
Robert Hensing
3d5c64c4a6
feat: impl Clone for EvalState
...
(cherry picked from commit f22d9ba23564107480f627a5901a52f044034c98)
2025-10-04 02:31:16 +02:00
Robert Hensing
03f6c63373
feat: impl Clone for Store
...
(cherry picked from commit 90750c3c82ab0a5973de634661c5284c74fc89a8)
2025-10-04 02:31:16 +02:00
Robert Hensing
9cebf1d131
feat: Value::new_borrowed
...
(cherry picked from commit 86e3828250d4de15f9cf49d19222eb382c77f7e2)
2025-10-04 02:31:16 +02:00
Robert Hensing
590a748e82
maint: Update nixpkgs
...
was:
feat: Empty manual
(cherry picked from commit a7de1171105d4609b500e69d42fa1ade5cd6f1f1)
2025-10-04 02:31:16 +02:00
Robert Hensing
bd8ebcbb01
dev: Add hercules-ci-effects dev input
...
(cherry picked from commit 85f10d0410a061f151722042924afc8523869aa7)
2025-10-04 02:31:16 +02:00
Robert Hensing
7918175c24
refact: Move dev-only dependencies into separate lock file
...
(cherry picked from commit ddf306bb9564a43fb42ab4321b390e766254f1c4)
2025-10-04 02:31:16 +02:00
Robert Hensing
271cf09450
flake.lock: Update
...
Flake lock file updates:
• Updated input 'flake-parts':
'github:hercules-ci/flake-parts/8471fe90ad337a8074e957b69ca4d0089218391d?narHash=sha256-XOQkdLafnb/p9ij77byFQjDf5m5QYl9b2REiVClC%2Bx4%3D' (2024-08-01)
→ 'github:hercules-ci/flake-parts/af510d4a62d071ea13925ce41c95e3dec816c01d?narHash=sha256-ODYRm8zHfLTH3soTFWE452ydPYz2iTvr9T8ftDMUQ3E%3D' (2024-08-30)
• Updated input 'flake-parts/nixpkgs-lib':
'https://github.com/NixOS/nixpkgs/archive/a5d394176e64ab29c852d03346c1fc9b0b7d33eb.tar.gz?narHash=sha256-uFf2QeW7eAHlYXuDktm9c25OxOyCoUOQmh5SZ9amE5Q%3D ' (2024-08-23)
→ 'https://github.com/NixOS/nixpkgs/archive/a5d394176e64ab29c852d03346c1fc9b0b7d33eb.tar.gz?narHash=sha256-uFf2QeW7eAHlYXuDktm9c25OxOyCoUOQmh5SZ9amE5Q%3D ' (2024-08-01)
(cherry picked from commit 07998ef498cabbfd3c18b223da0f38f3d82a7e9a)
2025-10-04 02:31:16 +02:00
Robert Hensing
ee1d591e1a
fix: Update for more recent Nix API
...
(cherry picked from commit 55355f03ab86dfa15972681d9a51d333739f6d10)
2025-10-04 02:31:16 +02:00
Robert Hensing
cf6bedde14
flake.nix: Unfollow nixpkgs in flake-parts
...
This may speed up autocompletion since the default lib is a small
path.
(It shouldn't matter, but Nix isn't as lazy as it will be yet, so
here we go.)
(cherry picked from commit 90709ff3c690275dfb6b8fce50cb0282a52e1971)
2025-10-04 02:31:16 +02:00
Robert Hensing
1ed50f009a
flake.lock: Update
...
Flake lock file updates:
• Updated input 'flake-parts':
'github:hercules-ci/flake-parts/b253292d9c0a5ead9bc98c4e9a26c6312e27d69f?narHash=sha256-a0NYyp%2Bh9hlb7ddVz4LUn1vT/PLwqfrWYcHMvFB1xYg%3D' (2024-02-01)
→ 'github:hercules-ci/flake-parts/8471fe90ad337a8074e957b69ca4d0089218391d?narHash=sha256-XOQkdLafnb/p9ij77byFQjDf5m5QYl9b2REiVClC%2Bx4%3D' (2024-08-01)
• Updated input 'nix-cargo-integration':
'github:yusdacra/nix-cargo-integration/eddee765f67966646c487f554fc843e8513aad28?narHash=sha256-VixqzHPc4VGd3TVcdTSufrpZ6wequ0a8BGSQOuxaFps%3D' (2024-02-08)
→ 'github:yusdacra/nix-cargo-integration/3a8e3bb661db28522aa2d4a55f1fccf9f95ec33e?narHash=sha256-fjwO6Pv3d35F6UErY42hc7zXJr6ek0LhSZlgEu%2BeI04%3D' (2024-08-23)
• Updated input 'nix-cargo-integration/dream2nix':
'github:nix-community/dream2nix/936208ae7d88a178a0bcf7e6ac21bb6b87f6c8ea?narHash=sha256-tDmoPA3gukJPfjR/pKl6hNcRP7cuEGw6ruoguHS4szo%3D' (2024-02-06)
→ 'github:nix-community/dream2nix/3fd4c14d3683baac8d1f94286ae14fe160888b51?narHash=sha256-fFS8aDnfK9Qfm2FLnQ8pqWk8FzvFEv5LvTuZTZLREnc%3D' (2024-08-01)
• Updated input 'nix-cargo-integration/parts':
'github:hercules-ci/flake-parts/b253292d9c0a5ead9bc98c4e9a26c6312e27d69f?narHash=sha256-a0NYyp%2Bh9hlb7ddVz4LUn1vT/PLwqfrWYcHMvFB1xYg%3D' (2024-02-01)
→ 'github:hercules-ci/flake-parts/8471fe90ad337a8074e957b69ca4d0089218391d?narHash=sha256-XOQkdLafnb/p9ij77byFQjDf5m5QYl9b2REiVClC%2Bx4%3D' (2024-08-01)
• Updated input 'nix-cargo-integration/rust-overlay':
'github:oxalica/rust-overlay/dd917bb1b67fc049fd56fe6de70266a9ab74a4aa?narHash=sha256-Nuhi8KEJ2e%2B2nTimSyEIPqN5eh7ECVWd%2BAnPXG6L%2BSY%3D' (2024-02-08)
→ 'github:oxalica/rust-overlay/a18034322c7703fcfe5d7352a77981ba4a936a61?narHash=sha256-%2BCFDh1FUgyY7q0FiWhKJpHS7LlD3KbiqN5Z4Z%2B4bGmc%3D' (2024-08-23)
• Updated input 'nix-cargo-integration/treefmt':
'github:numtide/treefmt-nix/ac599dab59a66304eb511af07b3883114f061b9d?narHash=sha256-qQF0fEkHlnxHcrKIMRzOETnRBksUK048MXkX0SOmxvA%3D' (2024-02-07)
→ 'github:numtide/treefmt-nix/070f834771efa715f3e74cd8ab93ecc96fabc951?narHash=sha256-kKJtaiU5Ou%2Be/0Qs7SICXF22DLx4V/WhG1P6%2Bk4yeOE%3D' (2024-08-22)
• Updated input 'pre-commit-hooks-nix':
'github:cachix/pre-commit-hooks.nix/e611897ddfdde3ed3eaac4758635d7177ff78673?narHash=sha256-6hOpUiuxuwpXXc/xfJsBUJeqqgGI%2BJMJuLo45aG3cKc%3D' (2024-03-20)
→ 'github:cachix/pre-commit-hooks.nix/6cedaa7c1b4f82a266e5d30f212273e60d62cb0d?narHash=sha256-TuSaYdhOxeaaE9885mFO1lZHHax33GD5A9dczJrGUjw%3D' (2024-08-21)
• Removed input 'pre-commit-hooks-nix/flake-utils'
• Removed input 'pre-commit-hooks-nix/flake-utils/systems'
• Updated input 'pre-commit-hooks-nix/gitignore':
'github:hercules-ci/gitignore.nix/43e1aa1308018f37118e34d3a9cb4f5e75dc11d5?narHash=sha256-gGPa9qWNc6eCXT/%2BZ5/zMkyYOuRZqeFZBDbopNZQkuY%3D' (2023-12-29)
→ 'github:hercules-ci/gitignore.nix/637db329424fd7e46cf4185293b9cc8c88c95394?narHash=sha256-HG2cCnktfHsKV0s4XW83gU3F57gaTljL9KNSuG6bnQs%3D' (2024-02-28)
• Updated input 'pre-commit-hooks-nix/nixpkgs-stable':
'github:NixOS/nixpkgs/3dc440faeee9e889fe2d1b4d25ad0f430d449356?narHash=sha256-YWuCrtsty5vVZvu%2B7BchAxmcYzTMfolSPP5io8%2BWYCg%3D' (2024-01-10)
→ 'github:NixOS/nixpkgs/194846768975b7ad2c4988bdb82572c00222c0d7?narHash=sha256-NGKVY4PjzwAa4upkGtAMz1npHGoRzWotlSnVlqI40mo%3D' (2024-07-07)
(cherry picked from commit 9621053e6c5af58af8ba5cc9ead42fe987f298b0)
2025-10-04 02:31:16 +02:00
Robert Hensing
6b98acb382
flake.lock: Update
...
Flake lock file updates:
• Updated input 'nix':
'github:NixOS/nix/c90a763273f94ec5e82f21bfb2b359d04af86383?narHash=sha256-Lsd3e8xDtAfo/RgpzYgi1P2Wkp1DqTP3n8TI1BK1JPY%3D' (2024-05-24)
→ 'github:NixOS/nix/85f1aa6b3df5c5fcc924a74e2a9cc8acea9ba0e1?narHash=sha256-3%2BUgAktTtkGUNpxMxr%2Bq%2BR%2Bz3r026L3PwJzG6RD2IXM%3D' (2024-08-23)
• Updated input 'nix/flake-compat':
'github:edolstra/flake-compat/35bb57c0c8d8b62bbfd284272c928ceb64ddbde9?narHash=sha256-4gtG9iQuiKITOjNQQeQIpoIB6b16fm%2B504Ch3sNKLd8%3D' (2023-01-17)
→ 'github:edolstra/flake-compat/0f9255e01c2351cc7d116c072cb317785dd33b33?narHash=sha256-kvjfFW7WAETZlt09AgDn1MrtKzP7t90Vf7vypd3OL1U%3D' (2023-10-04)
• Updated input 'nix/flake-parts':
'github:hercules-ci/flake-parts/9126214d0a59633752a136528f5f3b9aa8565b7d?narHash=sha256-sB4SWl2lX95bExY2gMFG5HIzvva5AVMJd4Igm%2BGpZNw%3D' (2024-04-01)
→ 'github:hercules-ci/flake-parts/9227223f6d922fee3c7b190b2cc238a99527bbb7?narHash=sha256-pQMhCCHyQGRzdfAkdJ4cIWiw%2BJNuWsTX7f0ZYSyz0VY%3D' (2024-07-03)
• Added input 'nix/git-hooks-nix':
'github:cachix/git-hooks.nix/f451c19376071a90d8c58ab1a953c6e9840527fd?narHash=sha256-6FPUl7HVtvRHCCBQne7Ylp4p%2BdpP3P/OYuzjztZ4s70%3D' (2024-07-15)
• Added input 'nix/git-hooks-nix/flake-compat':
follows 'nix'
• Added input 'nix/git-hooks-nix/gitignore':
follows 'nix'
• Added input 'nix/git-hooks-nix/nixpkgs':
follows 'nix/nixpkgs'
• Added input 'nix/git-hooks-nix/nixpkgs-stable':
follows 'nix/nixpkgs'
• Updated input 'nix/libgit2':
'github:libgit2/libgit2/45fd9ed7ae1a9b74b957ef4f337bc3c8b3df01b5?narHash=sha256-oX4Z3S9WtJlwvj0uH9HlYcWv%2Bx1hqp8mhXl7HsLu2f0%3D' (2023-10-18)
→ 'github:libgit2/libgit2/36f7e21ad757a3dacc58cf7944329da6bc1d6e96?narHash=sha256-J2rCxTecyLbbDdsyBWn9w7r3pbKRMkI9E7RvRgAqBdY%3D' (2024-05-16)
• Added input 'nix/nixpkgs-23-11':
'github:NixOS/nixpkgs/a62e6edd6d5e1fa0329b8653c801147986f8d446?narHash=sha256-oamiKNfr2MS6yH64rUn99mIZjc45nGJlj9eGth/3Xuw%3D' (2024-05-31)
• Removed input 'nix/pre-commit-hooks'
• Removed input 'nix/pre-commit-hooks/flake-compat'
• Removed input 'nix/pre-commit-hooks/flake-utils'
• Removed input 'nix/pre-commit-hooks/flake-utils/systems'
• Removed input 'nix/pre-commit-hooks/gitignore'
• Removed input 'nix/pre-commit-hooks/nixpkgs'
• Removed input 'nix/pre-commit-hooks/nixpkgs-stable'
• Updated input 'nixpkgs':
'github:NixOS/nixpkgs/faf912b086576fd1a15fca610166c98d47bc667e?narHash=sha256-ZbHsm%2BmGk/izkWtT4xwwqz38fdlwu7nUUKXTOmm4SyE%3D' (2024-02-05)
→ 'github:NixOS/nixpkgs/c374d94f1536013ca8e92341b540eba4c22f9c62?narHash=sha256-Z/ELQhrSd7bMzTO8r7NZgi9g5emh%2BaRKoCdaAv5fiO0%3D' (2024-08-21)
(cherry picked from commit 76b1b22ca32d1540ee300836e632d5e4fa1f82ad)
2025-10-04 02:31:16 +02:00
Taeer Bar-Yam
c235b32868
check_call_opt_key: [] -> ()
...
(cherry picked from commit 76966c24dcf6413a4ebdfe0ddba00e3d1d7e5fff)
2025-10-04 02:31:16 +02:00
Taeer Bar-Yam
cc2e640e7f
check_call!() macro to use () not []
...
(cherry picked from commit 66d255af0a5d331782dc24c89bb45d3434f3c109)
2025-10-04 02:31:16 +02:00
Robert Hensing
da26721bea
fix: Do not duplicate ctx expr in check_call_opt_key!
...
(cherry picked from commit 86ddc63a573cd08ec19008448ec2fca33a84159e)
2025-10-04 02:31:16 +02:00
Robert Hensing
35803f4a30
refactor: Remove check_one_call
...
(cherry picked from commit 065f880e52c6d6cb44e4b857272176ebe2464eea)
2025-10-04 02:31:16 +02:00
Robert Hensing
bf6dbd3f1e
fix: Do not duplicate ctx expr in check_call!
...
(cherry picked from commit 9b6f0c1e66d80ec2e92ce079152edb22c05e9b1e)
2025-10-04 02:31:16 +02:00
Robert Hensing
870c03ee4d
fix: Revert hiding of Context::ptr, add check_call_opt_key
...
(cherry picked from commit 5fba79143c85177d1649aa97d70ece067bade0fd)
2025-10-04 02:31:16 +02:00
Robert Hensing
a6dbf17778
fix: Require mutable Context, as it should be
...
This spreads out transitively to many places and requires that
we use `check_call!` instead of `check_one_call` in a number of
places.
(cherry picked from commit 6bc31dcf206518a7be7f0ac6e773d5dfe25531ea)
2025-10-04 02:31:16 +02:00
Taeer Bar-Yam
226639939f
feat: nix_util::context::check_call!(func[...])
...
> I couldn't figure out a way to use () for the function call, but I didn't try that hard.
I (Robert) have also given it a shot, briefly, unsuccessfully.
While I was critical of over-engineering this, it turns out that
when we start to use `mut`, a macro is much more practical, because
it doesn't create a new scope where we need a copy of a mutable
reference, which of course is not allowed.
(cherry picked from commit a2acc93d13991da4b14a99065acd589477334d07)
2025-10-04 02:31:16 +02:00
Robert Hensing
2f3a5fb039
refact: Clean up Context interface to be safer
...
The mutation-based methods had some pitfalls, and we don't really
need them.
We could re-add them if we need to.
(cherry picked from commit ca92b8491d87cebf54dd2468599168fc7a16c07f)
2025-10-04 02:31:16 +02:00
Robert Hensing
93a2db836a
doc: Clarify why we test call and apply and how they relate
...
(cherry picked from commit 17c7a8d30d1c4d99eeb84a6203ae33d2ba781edb)
2025-10-04 02:31:16 +02:00
Robert Hensing
b04d429f19
test: Make sure require_* functions force thunks
...
(cherry picked from commit 69b661db22e4b16fb08d322f5fede480438e2b71)
2025-10-04 02:31:16 +02:00