!lymvtcwDJ7ZA9Npq:lix.systems

Lix Development

415 Members
(Technical) development of Lix, the package manager, a Nix implementation. Please be mindful of ongoing technical conversations in this channel.139 Servers

Load older messages


SenderMessageTime
7 Jun 2024
@puck:puck.moepuckyup09:40:27
@jade_:matrix.orgjade_yup21:48:49
@jade_:matrix.orgjade_that's quite a bug21:48:57
@jade_:matrix.orgjade_we should probably minimize it and file it on the issue tracker, and then someone can possibly do something about it at a later date21:49:30
@puck:puck.moepucki started writing a fix and then got lighly distracted21:50:04
@jade_:matrix.orgjade_happens21:50:28
@puck:puck.moepuck
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:puck.moepuckat least, i think it's worth "breaking langver" to disallow derivations that will instantly error if built to be crafted21:52:01
@jade_:matrix.orgjade_i concur21:52:26
@jade_:matrix.orgjade_these should not be made meme, etc etc21:52:38
@puck:puck.moepuck 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_:matrix.orgjade_ is that how we store those? holy fucik 21:52:58
@jade_:matrix.orgjade_ * is that how we store those? holy fuck 21:53:02
@jade_:matrix.orgjade_just shove some json string in there? ???21:53:13
@puck:puck.moepuck yup. structuredAttrs is stored by just creating a big ass-__json environment variable 21:53:15
@jade_:matrix.orgjade_we should not expose such internals O_o21:53:21
@jade_:matrix.orgjade_you should not be allowed to dump __json in from nixlang21:53:46
@puck:puck.moepuck
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:puck.moepuck
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:puck.moepuckwhat do you mean "noone runs pre-2.0 nix"21:57:18
@puck:puck.moepuck * what do you mean "noone runs pre-2.0 nix" 21:57:20
@lily:lily.flowersLily 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:lily.flowersLily Foster (https://xkcd.com/37/) 22:23:59
@qyriad:katesiria.orgQyriadOh wow that's an old one23:06:25
8 Jun 2024
@jade_:matrix.orgjade_haunted06:42:22
@jade_:matrix.orgjade_image.png
Download image.png
06:42:24
@jade_:matrix.orgjade_i believe that should be "impossible"06:42:35
@jade_:matrix.orgjade_why do we realise an output that already exists and not fail some kind of check?06:42:45
@jade_:matrix.orgjade_oh wait06:43:41
@jade_:matrix.orgjade_nvm06:43:43

There are no newer messages yet.


Back to Room ListRoom Version: 10