!VRULIdgoKmKPzJZzjj:nixos.org

Nix Hackers

962 Members
For people hacking on the Nix package manager itself204 Servers

Load older messages


SenderMessageTime
23 Jul 2021
@tomberek:matrix.orgtomberekI updated the nix-tests-terraform (https://github.com/tomberek/nix-tests-terraform) and have a failure on Alpine, but seems to be due to a groupadd/addgroup mixup in the setup.17:03:08
@tomberek:matrix.orgtomberek I’ll look at Graham’s test matrix next. 17:36:48
@danielle:fairydust.spacedanielle changed their profile picture.22:50:23
@mjolnir:nixos.orgmjolnir banned @kreyren:tchncs.dekreyren (Inappropriate and destructive behavior.).22:54:50
@pamplemouss_:matrix.orgpamplemousse I am confused by some code in the evaluator:
https://github.com/NixOS/nix/blob/master/src/libexpr/eval.cc#L1152
What's e here? Where does it come from (where does it receives a value)?
23:18:40
@pamplemouss_:matrix.orgpamplemousseCould anyone enlighten me please?23:18:58
Room Avatar Renderer.23:23:04
@tomberek:matrix.orgtomberek pamplemousse: maybe https://github.com/NixOS/nix/blob/master/src/libexpr/eval.hh#L177 23:24:38
@tomberek:matrix.orgtomberekor actually: https://github.com/NixOS/nix/blob/293220bed5a75efc963e33c183787e87e55e28d9/src/libexpr/nixexpr.hh#L16523:30:13
@tomberek:matrix.orgtomberek * pamplemousse: maybe ~~https://github.com/NixOS/nix/blob/master/src/libexpr/eval.hh#L177~~ 23:32:17
24 Jul 2021
@sumner:sumnerevans.comsumner left the room.01:01:11
@jaen:matrix.orgjaen joined the room.11:44:11
@jaen:matrix.orgjaenHello, is this the right place for "nix is behaving very weirdly when trying to build a package flake output and I don't know why"?11:44:42
@abathur:matrix.orgabathur
In reply to @jaen:matrix.org
Hello, is this the right place for "nix is behaving very weirdly when trying to build a package flake output and I don't know why"?
#nix:nixos.org
14:41:41
@balsoft:balsoft.rubalsoft Or #flakes:nixos.org 15:20:32
@abathur:matrix.orgabathur
In reply to @abathur:matrix.org
I'll at least aspire to find some time to read over the changeset and take some notes, as well
~publicly acknowledging that I've been through this at least once and have notes that I'm happy to discuss in private/ephemeral forms. I'm leery of posting them in the open since I'd rather not risk playing any role in exacerbating/prolonging the tension/frustration around this changeset.
18:48:10
@abathur:matrix.orgabathur But I don't think that changes the next-step: getting the conditions people are hoping it would fix under test 18:55:44
26 Jul 2021
@babbaj:nerdsin.spacebabbaj joined the room.00:13:56
@pamplemouss_:matrix.orgpamplemousse Is there any library linked statically in nix? 22:49:35
27 Jul 2021
@balsoft:balsoft.rubalsoftNot in the default distribution, but there is static-nix09:10:03
@qyliss:fairydust.spaceAlyssa RossRedacted or Malformed Event09:16:49
@pamplemouss_:matrix.orgpamplemousse

What's the consensus on languages to be used for scripts?

So far, I have a couple of bash scripts to easily build / run the fuzzers I have so far.
But as I am making diverse harnesses (one exercising only the parsing, other parsing and evaluation, and later maybe other components - daemon...), with different sanitizers, those scripts are growing, and I want them to take options.

Now, I feel like using python with https://docs.python.org/3/library/argparse.html is a really neat way of providing a nice interface for my script (and also more maintainable than bash).

17:32:59
@theophane:hufschmitt.netRegnat
In reply to @pamplemouss_:matrix.org

What's the consensus on languages to be used for scripts?

So far, I have a couple of bash scripts to easily build / run the fuzzers I have so far.
But as I am making diverse harnesses (one exercising only the parsing, other parsing and evaluation, and later maybe other components - daemon...), with different sanitizers, those scripts are growing, and I want them to take options.

Now, I feel like using python with https://docs.python.org/3/library/argparse.html is a really neat way of providing a nice interface for my script (and also more maintainable than bash).

As long as it’s not required for building Nix itself, I think python is totally fine
18:17:26
@andi:kack.itandi-Does Nix assume that paths are valid utf-8 or could they be utf-16 or whatever weird jap character set there might be?18:20:41
@tomberek:matrix.orgtomberek andi-: these checks (https://github.com/NixOS/nix/blob/master/src/libstore/path.cc#L5-L29) seem to indicate a limited character set 18:29:24
@andi:kack.itandi-but that only applies to names of derivations not files within a folder, right18:30:29
@andi:kack.itandi- * but that only applies to names of derivations not files within a folder, right?18:30:31
@tomberek:matrix.orgtomberekcorrect, i'd presume file names inside a store-path are not so restricted.... time to test it!18:31:12
@tomberek:matrix.orgtomberek
[tom@tsurf:~/temp]$ ls /nix/store/mv1iw4cg27fnavhshiwk642s0dwr047a-unicode/
☺
18:32:42
@andi:kack.itandi-
nix-repl> builtins.readDir ./.
{ "👍" = "regular"; }
18:33:08

Show newer messages


Back to Room ListRoom Version: 6