Flox Package Database 1
CRUD Operations on Nix Package Metadata
Loading...
Searching...
No Matches
primops.hh
Go to the documentation of this file.
1/* ========================================================================== *
2 *
3 * @file flox/pkgdb/primops.hh
4 *
5 * @brief Extensions to `nix` primitive operations.
6 *
7 *
8 * -------------------------------------------------------------------------- */
9
10#pragma once
11
13
14
15/* -------------------------------------------------------------------------- */
16
17namespace flox::pkgdb {
18
19/* -------------------------------------------------------------------------- */
20
34void
35prim_getFingerprint( nix::EvalState & state,
36 const nix::PosIdx pos,
37 nix::Value ** args,
38 nix::Value & value );
39
40
41/* -------------------------------------------------------------------------- */
42
43// TODO
44#if 0
45
82void
83prim_queryPackages( nix::EvalState & state,
84 const nix::PosIdx pos,
85 nix::Value ** args,
86 nix::Value & value );
87
88
89/* -------------------------------------------------------------------------- */
90
104void
105prim_getPackage( nix::EvalState & state,
106 const nix::PosIdx pos,
107 nix::Value ** args,
108 nix::Value & value );
109
110
111/* -------------------------------------------------------------------------- */
112
113#endif // 0 ( TODO )
114
115} // namespace flox::pkgdb
116
117
118/* -------------------------------------------------------------------------- *
119 *
120 *
121 *
122 * ========================================================================== */
Interfaces for caching package metadata in SQLite3 databases.
Definition: command.cc:44
void prim_getFingerprint(nix::EvalState &state, const nix::PosIdx pos, nix::Value **args, nix::Value &value)
Lookup a flake's fingerprint hash.
Definition: primops.cc:29
Manages a nix runtime state blob with associated helpers.