Yorick van Pelt
|
5d82d6e733
|
nix_api: fix missing includes in headers
Forward declaration doesn't work here, since we define classes that
contain the objects
|
2024-03-28 10:47:55 +01:00 |
|
Yorick
|
40f5d48d3c
|
Apply documentation suggestions from code review
Co-authored-by: Valentin Gagarin <valentin.gagarin@tweag.io>
|
2024-03-28 10:47:55 +01:00 |
|
Yorick van Pelt
|
3b41830a96
|
docs/external-api: write main page
|
2024-03-28 10:47:54 +01:00 |
|
Yorick van Pelt
|
e642bbc2a7
|
C API: move to src/lib*/c/
|
2024-03-28 10:46:39 +01:00 |
|
Yorick van Pelt
|
df9401eb4e
|
nix_api_store: add nix_init_plugins
|
2024-03-28 10:39:07 +01:00 |
|
Yorick van Pelt
|
dc0f7d8f96
|
initPlugins: run nix_plugin_entry() on dlopen'd plugins
Only when it exists.
|
2024-03-28 10:39:07 +01:00 |
|
Yorick van Pelt
|
713f10aeaa
|
nix_api_value: Add nix_register_primop to add builtins
|
2024-03-28 10:39:07 +01:00 |
|
Yorick van Pelt
|
e891aac2e4
|
nix_api_value: add nix_get_attr_name_byidx get attr names without forcing
|
2024-03-28 10:39:07 +01:00 |
|
Yorick van Pelt
|
9cccb8bae0
|
nix_api_expr: always force values before giving them to the user
|
2024-03-28 10:39:07 +01:00 |
|
Yorick van Pelt
|
c48b9b8a83
|
nix_api_util: tests
|
2024-03-28 10:39:07 +01:00 |
|
Yorick van Pelt
|
f0afe7f9b9
|
nix_api_util: throw nix::error instead of new nix::Error for null ctx's
|
2024-03-28 10:39:06 +01:00 |
|
Yorick van Pelt
|
e74d6c1b3d
|
nix_api_expr: document nix_value_force
|
2024-03-28 10:39:06 +01:00 |
|
Yorick van Pelt
|
e58a9384c6
|
nix_api_expr, nix_api_util: slightly improve documentation
|
2024-03-28 10:39:06 +01:00 |
|
Yorick van Pelt
|
f41a7e326b
|
nix_err_code: do not fail
|
2024-03-28 10:39:06 +01:00 |
|
Yorick van Pelt
|
b0741f7128
|
external-api-doc: introduce and improve documentation
|
2024-03-28 10:39:06 +01:00 |
|
Yorick van Pelt
|
866558af34
|
nix_api_expr: add error handling to incref, decref
|
2024-03-28 10:39:06 +01:00 |
|
Yorick van Pelt
|
ada2af4f88
|
nix_api_expr: add nix_gc_now()
|
2024-03-28 10:39:06 +01:00 |
|
Yorick van Pelt
|
ded0ef6f6c
|
nix_api_expr: switch to refcounting
Remove GCRef, keep references in a map. Change to nix_gc_incref and
nix_gc_decref, where users will mostly use nix_gc_decref.
|
2024-03-28 10:39:05 +01:00 |
|
Yorick van Pelt
|
bebee700ea
|
nix_api_external: own return strings on the nix side
Change from nix_returned_string that passes ownership, into a
nix_string_return parameter that can be set using nix_set_string_return.
|
2024-03-28 10:39:05 +01:00 |
|
Yorick van Pelt
|
022b918db1
|
nix_api_expr: remove bindingsbuilder refcounting
|
2024-03-28 10:39:05 +01:00 |
|
Yorick van Pelt
|
aa85f7d917
|
nix_api_expr: merge nix_parse_expr and nix_expr_eval, remove Expr
|
2024-03-28 10:39:05 +01:00 |
|
Yorick van Pelt
|
1777e4a5bb
|
nix_api_store: add userdata param to nix_store_build
|
2024-03-28 10:39:05 +01:00 |
|
Yorick van Pelt
|
1e583c4ebd
|
nix_api_value: nix_{get,set}_double -> nix_{get,set}_float
|
2024-03-28 10:39:05 +01:00 |
|
Yorick van Pelt
|
efcddcdd2f
|
nix_api_external: fix missing void* self param
|
2024-03-28 10:39:05 +01:00 |
|
Yorick van Pelt
|
c3b5b8eb62
|
nix_api_expr, store: fix minor documentation issues
|
2024-03-28 10:39:05 +01:00 |
|
Yorick van Pelt
|
4a4936136b
|
nix_api_value: fix documentation for get_attr_byname
|
2024-03-28 10:39:04 +01:00 |
|
Puck Meerburg
|
748b322ddd
|
nix_api_value: fix primop arity
|
2024-03-28 10:39:04 +01:00 |
|
Yorick van Pelt
|
e76652a5d3
|
libexpr: add C bindings
|
2024-03-28 10:39:04 +01:00 |
|
Yorick van Pelt
|
1d41600498
|
libstore: add C bindings
|
2024-03-28 10:39:04 +01:00 |
|
Yorick van Pelt
|
4702317506
|
libutil: add C bindings
|
2024-03-28 10:39:04 +01:00 |
|
Yang, Bo
|
c39afb28db
|
Clarify stringLength is counting bytes
|
2024-03-27 16:46:50 -07:00 |
|
Robert Hensing
|
c0b6907ccd
|
doc/local.mk: Add manual-html-open phony target for auto-opening the browser (#10308)
|
2024-03-27 22:28:05 +01:00 |
|
vac (Brendan)
|
37f8edce99
|
docs: add cacert in macos multi-user upgrade (#10237)
|
2024-03-27 22:26:50 +01:00 |
|
Eelco Dolstra
|
1b71a4270a
|
Merge pull request #10329 from obsidiansystems/mingw-devops
Build system changes for MinGW support
|
2024-03-27 22:17:11 +01:00 |
|
Tharun T
|
52359ca00a
|
move test to correct file
|
2024-03-28 02:20:33 +05:30 |
|
Eelco Dolstra
|
c0dd111af1
|
Fix flake evaluation in chroot stores
This is a temporary fix until we can pass `SourcePath`s rather than
`StorePath`s to `call-flake.nix`.
Fixes #10331.
|
2024-03-27 20:49:56 +01:00 |
|
John Ericson
|
77205b2042
|
Allow for ergnomically putting Unix-only files in subdirs by creating INLCUDE_$(pkg) vars
Separate platform-specific files will allow avoiding a lot of CPP.
|
2024-03-27 12:01:59 -04:00 |
|
John Ericson
|
4a61827d2d
|
Hack to make sure the DLL linking job works with the check output
|
2024-03-27 12:01:59 -04:00 |
|
John Ericson
|
ae2b2849c9
|
Disable GC on windows
We can build the dep and the our GC code is totally portable, but for
some reason we get link errors saying `GC_throw_bad_alloc` is missing.
|
2024-03-27 12:01:59 -04:00 |
|
annalee
|
7205a6bbc9
|
enable persistent WAL mode for sqlite db
allow processes without write access to the directory containing the db
to read the db when all connections are closed. Without this setting and
with WAL enabled and no open db connections unprivileged processes will
fail to open the db due the WAL files not existing and not able to
create them. When the WAL files are persistent unprivileged processeses
can read the db when there are no open connections.
Additionally, journal_size_limit is set to 2^40, which results in the
WAL files being truncated to 0 on exit, as well as limiting the WAL
files to 2^40 bytes following a checkpoint.
https://www.sqlite.org/c3ref/c_fcntl_begin_atomic_write.html#sqlitefcntlpersistwal
https://www.sqlite.org/pragma.html#pragma_journal_size_limit
ed517a7082/src/wal.c (L2518)
Fixes https://github.com/NixOS/nix/issues/10300
|
2024-03-27 15:36:09 +00:00 |
|
Robert Hensing
|
d4fa0a84a5
|
refact: TraceKind -> TracePrint
Co-authored-by: Rebecca Turner <rbt@sent.as>
|
2024-03-27 16:32:49 +01:00 |
|
Robert Hensing
|
bed541b04e
|
error.cc: Make printTrace static
|
2024-03-27 16:28:04 +01:00 |
|
Robert Hensing
|
981c309057
|
Remove trace item: while calling the 'addErrorContext' builtin
|
2024-03-27 16:28:04 +01:00 |
|
Robert Hensing
|
bebacc475c
|
Always print addErrorContext traces
|
2024-03-27 16:28:04 +01:00 |
|
Robert Hensing
|
189e40214e
|
Merge pull request #10339 from edolstra/gha-vm-tests
Run some VM tests on GitHub
|
2024-03-27 16:13:41 +01:00 |
|
Cyclic4179
|
9f7b2b93ce
|
fixup! add flakes.sh test for shebang supported types of comments
|
2024-03-27 15:03:54 +01:00 |
|
Cyclic4179
|
6227cd06bd
|
add flakes.sh test for shebang supported types of comments
|
2024-03-27 14:55:02 +01:00 |
|
Eelco Dolstra
|
6f3972498b
|
Run some VM tests on GitHub
|
2024-03-27 14:11:06 +01:00 |
|
Cyclic4179
|
a2c3333b97
|
fix #10336
|
2024-03-27 07:47:36 +01:00 |
|
Théophane Hufschmitt
|
6c10cc0eda
|
Merge pull request #10312 from hercules-ci/add-build-dir
Add build-dir setting
|
2024-03-26 13:51:50 +01:00 |
|