1
1
Fork 0
mirror of https://github.com/NixOS/nix.git synced 2025-11-20 01:09:37 +01:00
nix/src/libstore-c
John Ericson 099af7578f Relegate toRealPath to LocalFSStore
Fix #14480

This method is not well-defined for arbitrary stores, which do not have
a notion of a "real path" -- it is only well-defined for local file
systems stores, which do have exactly that notion, and so it is moved to
that sub-interface instead.

Some call-sites had to be fixed up for this, but in all cases the
changes are positive. Using `getFSSourceAccessor` allows for more other
stores to work properly. `nix-channel` was straight-up wrong in the case
of redirected local stores. And the building logic with remote building
and a non-local store is also fixed, properly gating some deletions on
store type.

Co-authored-by: Robert Hensing <robert@roberthensing.nl>
2025-11-05 10:44:25 -05:00
..
.version Mesonify other external API 2024-07-02 09:23:24 -04:00
meson.build meson: Move asan-options to common 2025-10-11 16:08:35 +03:00
nix-meson-build-support rename: build-utils-meson -> nix-meson-build-support 2024-12-09 16:54:42 +01:00
nix_api_store.cc Relegate toRealPath to LocalFSStore 2025-11-05 10:44:25 -05:00
nix_api_store.h C API: Propagate nix_store_realise build errors 2025-10-15 15:20:24 +02:00
nix_api_store_internal.h Add new C API for working with derivations 2025-09-16 13:25:36 -04:00
package.nix Write just ./.version on all components 2025-02-18 11:41:35 +01:00