Nix Hackers | 893 Members | |
| For people hacking on the Nix package manager itself | 188 Servers |
| Sender | Message | Time |
|---|---|---|
| 11 Mar 2025 | ||
| 18:46:53 | ||
| 12 Mar 2025 | ||
If i use a separate store; how can i make it easily so my nix commands use it without doing --store | 01:57:34 | |
In reply to @fzakaria:one.ems.hostcan be set at compile time, or in nix.conf | 02:15:21 | |
| i was thining like a bind mount or somethig with nix-shell | 02:15:40 | |
| so it's temporary | 02:15:43 | |
| bind mounts doesn't work actually because i lose out on all my current tools in the current process | 02:24:13 | |
| in NixOS | 02:24:15 | |
| Okay this works though
| 02:25:22 | |
(not sure why unshare -> mount --bind doesn't though ) | 02:25:31 | |
| didn't you say that you wanted to do it without using --store? | 03:44:11 | |
| i meant subsequent commands | 04:09:50 | |
| don't need the --store after that | 04:09:56 | |
| @roberthensing:matrix.org: FYI I noticed Linus Heckmann did some interesting recent commits to lix for GC fixes | 22:56:05 | |
| 13 Mar 2025 | ||
In reply to @fzakaria:one.ems.hostNIX_CONFIG | 01:01:34 | |
| 07:46:39 | ||
| Fixing very significant debugger performance regression introduced in 2.21: https://github.com/NixOS/nix/pull/12645 | 13:42:40 | |
What do we think of suffixing fields with _ to make them visually distinct from locals/params? I'm open to it (implicit this-> may have been a mistake, hurting understanding and refactoring) but esp John Ericson tomberek Eelco Mic92 will also have to look at such code | 14:59:57 | |
| Robert Hensing (roberth): my lsp does it locally for my editor, but we don't have in github, so might be worth it. There is clang-tidy also can do this automatically: https://clang.llvm.org/extra/clang-tidy/checks/readability/identifier-naming.html#cmdoption-arg-ClassMemberPrefix | 15:05:03 | |
| * Robert Hensing (roberth): my lsp does it locally for my editor with colors, but we don't have in github, so might be worth it. There is clang-tidy also can do this automatically: https://clang.llvm.org/extra/clang-tidy/checks/readability/identifier-naming.html#cmdoption-arg-ClassMemberPrefix | 15:06:44 | |
| Also suffix, nice! @Mic92 on GitHub we don't have that highlighting, for doing reviews | 15:19:39 | |
| I wouldn't love it, seems a bit ugly. Yeah seems better if the lsp can figure it out. | 15:30:18 | |
In reply to @roberthensing:matrix.orgWe do use a _ suffix for other things right now FYI | 15:40:41 | |
yeah, mostly for Sync state values | 16:00:58 | |
| I'm trying to re-implement the way content-addressed derivations do dependency resolution from unresolved to resolved (aka basic) derivation, but outside of Nix - because I'm trying to do stricter validation with different signatures. I've gotten fairly far with that, but I'm seeing some "placeholder paths" like So I'm wondering, how do those placeholder paths work? I saw that (I also see one such path in resolved derivations, but there it's always the same | 16:06:18 | |
In reply to @mschwaig:matrix.orgthey are values derived from either the current drv's output, or any input drv + its output. its representation is / then the nixbase32 repr of the full sha256 of either "nix-output: " or "nix-upstream-output: :<the name the output would have; so either drv's name or append a dash and the output name>" | 16:39:23 | |
| you'll have to pessimistically calculate every possible placeholder and its replacement value, then just search+replace the environment and builder args for said placeholders | 16:40:00 | |
| (note though, you may want to check the signature that gets signed for realisations if you haven't already; it might serve your needs if you just want a drv + its realised input paths signed) | 16:41:04 | |