| 7 Jun 2024 |
puck | yup | 09:40:27 |
jade_ | yup | 21:48:49 |
jade_ | that's quite a bug | 21:48:57 |
jade_ | we should probably minimize it and file it on the issue tracker, and then someone can possibly do something about it at a later date | 21:49:30 |
puck | i started writing a fix and then got lighly distracted | 21:50:04 |
jade_ | happens | 21:50:28 |
puck | In reply to @jade_:matrix.org
error: (daemon error)[json.exception.type_error.302] type must be string, but is array issue is the patch needs validation both where ^ is generated, and inside derivationStrict | 21:51:39 |
puck | at least, i think it's worth "breaking langver" to disallow derivations that will instantly error if built to be crafted | 21:52:01 |
jade_ | i concur | 21:52:26 |
jade_ | these should not be made meme, etc etc | 21:52:38 |
puck | i mean, if you want to, you can just add __json as an attribute to a drv and do the same | 21:52:41 |
jade_ | is that how we store those? holy fucik | 21:52:58 |
jade_ | * is that how we store those? holy fuck | 21:53:02 |
jade_ | just shove some json string in there? ??? | 21:53:13 |
puck | yup. structuredAttrs is stored by just creating a big ass-__json environment variable | 21:53:15 |
jade_ | we should not expose such internals O_o | 21:53:21 |
jade_ | you should not be allowed to dump __json in from nixlang | 21:53:46 |
puck | nix-repl> runCommandNoCC "meow" { __structuredAttrs = true; } "meow"
«derivation /nix/store/3isnlphfrgws22950l9i2hciq1a2j8vb-meow.drv»
puckipedia@marisa ~> nix --extra-experimental-features nix-command derivation show /nix/store/3isnlphfrgws22950l9i2hciq1a2j8vb-meow.drv | jq '."/nix/store/3isnlphfrgws22950l9i2hciq1a2j8vb-meow.drv".env.__json'
"{\"buildCommand\":\"meow\",\"buildInputs\":[],\"builder\":\"/nix/store/h3bhzvz9ipglcybbcvkxvm4vg9lwvqg4-bash-5.2p26/bin/bash\",\"cmakeFlags\":[],[..],\"propagatedBuildInputs\":[],\"propagatedNativeBuildInputs\":[],\"stdenv\":\"/nix/store/lgam1kdqv5fbkwwcs7msjj9a2a5s5i4h-stdenv-linux\",\"strictDeps\":false,\"system\":\"x86_64-linux\"}"
| 21:54:23 |
puck | In reply to @jade_:matrix.org you should not be allowed to dump __json in from nixlang consider, though: you can create a .drv that compiles differently in post-structuredAttrs and pre-structuredAttrs nix | 21:56:41 |
puck | what do you mean "noone runs pre-2.0 nix" | 21:57:18 |
puck | * what do you mean "noone runs pre-2.0 nix" | 21:57:20 |
Lily Foster | In reply to @puck:puck.moe yup. structuredAttrs is stored by just creating a big ass-__json environment variable (i see what you did with the hyphen there) | 22:23:11 |
Lily Foster | (https://xkcd.com/37/) | 22:23:59 |
Qyriad | Oh wow that's an old one | 23:06:25 |
| 8 Jun 2024 |
jade_ | haunted | 06:42:22 |
jade_ |  Download image.png | 06:42:24 |
jade_ | i believe that should be "impossible" | 06:42:35 |
jade_ | why do we realise an output that already exists and not fail some kind of check? | 06:42:45 |
jade_ | oh wait | 06:43:41 |
jade_ | nvm | 06:43:43 |