!lTqhfnNvIkcEackxxk:matrix.org

Nix Bindings

70 Members
Nix C API https://github.com/NixOS/nix/blob/master/doc/manual/src/c-api.md, language-specific bindings, and their use cases (currently broken link: https://nixos.org/manual/nix/unstable/c-api)19 Servers

You have reached the beginning of time (for this room).


SenderMessageTime
13 Nov 2024
@kayden45:matrix.org@kayden45:matrix.org joined the room.06:03:29
@mjolnir:nixos.orgNixOS Moderation Bot banned @kayden45:matrix.org@kayden45:matrix.org (spam).06:03:29
15 Nov 2024
@zoechi:matrix.orgzoechi joined the room.10:17:34
16 Nov 2024
@xokdvium:matrix.orgSergei Zimmerman (xokdvium) set a profile picture.10:47:56
21 Nov 2024
@warrenr:matrix.org@warrenr:matrix.org joined the room.10:32:37
@mjolnir:nixos.orgNixOS Moderation Bot banned @warrenr:matrix.org@warrenr:matrix.org (spam).10:32:38
25 Nov 2024
@tom_show:matrix.org@tom_show:matrix.org joined the room.23:43:02
@mjolnir:nixos.orgNixOS Moderation Bot banned @tom_show:matrix.org@tom_show:matrix.org (spam).23:43:03
26 Nov 2024
@roberthensing:matrix.orgRobert Hensing (roberth) I've added libflake to bring back getFlake. Call these three functions before creating an eval state: https://github.com/NixOS/nix/pull/11940/files#diff-5bf91a38f0c7fb288abe818751d512cdb01277aced08211b0b888fc73d67f103 16:54:13
27 Nov 2024
@o-santi:matrix.orgLeonardo Santiagogreat!14:06:33
29 Nov 2024
@trigomm:matrix.org@trigomm:matrix.org joined the room.03:20:10
@trigomm:matrix.org@trigomm:matrix.org left the room.05:20:04
5 Dec 2024
@o-santi:matrix.orgLeonardo Santiago is there any way to set verbosity through settings? 18:50:27
6 Dec 2024
@o-santi:matrix.orgLeonardo Santiagoor better yet, any way to plug custom loggers instead of the builtins ones?13:17:35
@roberthensing:matrix.orgRobert Hensing (roberth)I'd also be interested in that, but I'm slightly concerned that wrapping the current logging interface would be the wrong thing. We have an issue about OpenTelemetry support, and I expect that we'll want to apply lessons from implementing that13:56:24
7 Dec 2024
@blocboyy:matrix.org@blocboyy:matrix.org joined the room.13:29:57
@mjolnir:nixos.orgNixOS Moderation Bot banned @blocboyy:matrix.org@blocboyy:matrix.org (spam).13:29:57
11 Dec 2024
@sharonne:matrix.org@sharonne:matrix.org joined the room.07:44:16
@mjolnir:nixos.orgNixOS Moderation Bot banned @sharonne:matrix.org@sharonne:matrix.org (spam).07:44:17
13 Dec 2024
@raboof:matrix.orgraboof joined the room.14:58:31
17 Dec 2024
@btyby:matrix.org@btyby:matrix.org joined the room.18:34:16
@btyby:matrix.org@btyby:matrix.org left the room.18:38:45
21 Dec 2024
@dimitarnestorov:matrix.orgDimitar joined the room.19:47:35
26 Dec 2024
@o-santi:matrix.orgLeonardo Santiagohello guys22:04:18
@o-santi:matrix.orgLeonardo Santiagolet's say that I'm trying to describe a derivation from the C side, and would like to get it built on the store, how would I achieve it?22:05:28
@o-santi:matrix.orgLeonardo Santiago I'm interested in replicating the internals of nix develop with added quirks using the FFI, but it seems to fiddle too much with derivations, much more than it seems to be available in the C API 22:07:46
@o-santi:matrix.orgLeonardo SantiagoI've already managed to get some basic derivation parsing going on, and I can make the same changes that are done in the nix side just fine, but there doesn't seem to be any way to write them back to the store?22:09:11
@o-santi:matrix.orgLeonardo Santiago I'm specifically talking about $nix/src/nix/develop.cc#L285: 22:10:10
@o-santi:matrix.orgLeonardo Santiago *

I'm specifically talking about $nix/src/nix/develop.cc#L285:

    auto shellDrvPath = writeDerivation(*evalStore, drv);

    /* Build the derivation. */
    store->buildPaths(
        { DerivedPath::Built {
            .drvPath = makeConstantStorePathRef(shellDrvPath),
            .outputs = OutputsSpec::All { },
        }},
        bmNormal, evalStore);


22:10:24
@o-santi:matrix.orgLeonardo Santiago the closest function that is there is nix_store_realise, but even then it expects a store path and there isn't any way to create files in the store, other than writing a custom derivation as a string and evaluating it. how should I proceed? 22:12:20

Show newer messages


Back to Room ListRoom Version: 10