Skip to content

Commit fdf7dfd

Browse files
committed
WIP JSON impls without store dir
If we depend on the store dir, our JSON serializers/deserializers take extra arguements, and that interfaces with the likes of various frameworks for associating these with types (e.g. nlohmann in C++, Serde in Rust, and Aeson in Haskell).
1 parent 555797a commit fdf7dfd

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/libstore/include/nix/store/derived-path.hh

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -304,4 +304,11 @@ typedef std::vector<DerivedPath> DerivedPaths;
304304
*/
305305
void drvRequireExperiment(
306306
const SingleDerivedPath & drv, const ExperimentalFeatureSettings & xpSettings = experimentalFeatureSettings);
307+
307308
} // namespace nix
309+
310+
JSON_IMPL(nix::DerivedPathOpaque)
311+
JSON_IMPL(nix::SingleDerivedPathBuilt)
312+
JSON_IMPL(nix::SingleDerivedPath)
313+
JSON_IMPL(nix::DerivedPathBuilt)
314+
JSON_IMPL(nix::DerivedPath)

0 commit comments

Comments
 (0)