29 Nov 2024 |
| @trigomm:matrix.org left the room. | 05:20:04 |
5 Dec 2024 |
Leonardo Santiago | is there any way to set verbosity through settings ? | 18:50:27 |
6 Dec 2024 |
Leonardo Santiago | or better yet, any way to plug custom loggers instead of the builtins ones? | 13:17:35 |
Robert 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 that | 13:56:24 |
7 Dec 2024 |
| @blocboyy:matrix.org joined the room. | 13:29:57 |
| NixOS Moderation Bot banned @blocboyy:matrix.org (spam). | 13:29:57 |
11 Dec 2024 |
| @sharonne:matrix.org joined the room. | 07:44:16 |
| NixOS Moderation Bot banned @sharonne:matrix.org (spam). | 07:44:17 |
13 Dec 2024 |
| raboof joined the room. | 14:58:31 |
17 Dec 2024 |
| @btyby:matrix.org joined the room. | 18:34:16 |
| @btyby:matrix.org left the room. | 18:38:45 |
21 Dec 2024 |
| Dimitar joined the room. | 19:47:35 |
26 Dec 2024 |
Leonardo Santiago | hello guys | 22:04:18 |
Leonardo Santiago | let'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 |
Leonardo 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 |
Leonardo Santiago | I'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 |
Leonardo Santiago | I'm specifically talking about $nix/src/nix/develop.cc#L285 : | 22:10:10 |
Leonardo 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 |
Leonardo 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 |
Leonardo Santiago | * I've already managed to get some basic derivation parsing going on, and I can make the same changes that are done in the C++ side just fine, but there doesn't seem to be any way to write them back to the store? | 22:13:53 |
Leonardo 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:14:09 |
Leonardo Santiago | * I'm specifically talking about $nix/src/nix/develop.cc#L285-293 :
auto shellDrvPath = writeDerivation(*evalStore, drv);
/* Build the derivation. */
store->buildPaths(
{ DerivedPath::Built {
.drvPath = makeConstantStorePathRef(shellDrvPath),
.outputs = OutputsSpec::All { },
}},
bmNormal, evalStore);
| 22:14:27 |
27 Dec 2024 |
| Dimitar set a profile picture. | 11:41:14 |
| Dimitar changed their display name from dimitarnestorov to Dimitar. | 11:42:12 |
28 Dec 2024 |
| @jay.hay:matrix.org joined the room. | 15:02:03 |
| NixOS Moderation Bot banned @jay.hay:matrix.org (spam). | 15:02:04 |
30 Dec 2024 |
| mariaeduarda0c joined the room. | 00:55:19 |
Robert Hensing (roberth) | Leonardo Santiago: we don't have much of a C API for the Store yet, but more importantly nix develop is architecturally unsound and we should move most of that logic to Nixpkgs anyway because of the bad coupling. See https://github.com/NixOS/nix/issues/7501 | 13:19:13 |
Robert Hensing (roberth) | So if you were to reimplement parts of develop with the C API, you'd end up duplicating those problems, and you won't support user-defined shell runners | 13:20:18 |
Robert Hensing (roberth) | (We would welcome additions to the libstore C API; that's not a problem) | 13:21:40 |