!lymvtcwDJ7ZA9Npq:lix.systems

Lix Development

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

Load older messages


SenderMessageTime
23 Oct 2024
@kfears:matrix.orgKFears (tragedy arc) I'm sorry, I don't understand
stdenv is still stdenv, right? What's the difference whether it's in /nix/store` or any other path?
15:15:07
@kfears:matrix.orgKFears (tragedy arc)Did I just forget to adjust some knob?15:15:21
@k900:0upti.meK900The files have hardcoded paths to the store15:15:39
@kfears:matrix.orgKFears (tragedy arc) They what 15:24:09
@k900:0upti.meK900Of course they do?15:26:11
@k900:0upti.meK900Everything has hardcoded paths15:26:16
@k900:0upti.meK900 It's a lot harder to make them relative to the store root 15:26:28
@kfears:matrix.orgKFears (tragedy arc)Surely that's sarcasm?15:27:15
@kfears:matrix.orgKFears (tragedy arc)Oh I'm completely out of the loop and insane15:27:27
@kfears:matrix.orgKFears (tragedy arc)* Or I'm completely out of the loop and insane15:27:57
@lily:lily.flowersLily Foster
In reply to @kfears:matrix.org
Oh I'm completely out of the loop and insane
me too, just in general
15:28:02
@kfears:matrix.orgKFears (tragedy arc) And what happens if you craft a derivation with malicious paths? ../some-thing? ../../root? /? /home/alice? 15:29:37
@kfears:matrix.orgKFears (tragedy arc)Will it happily substitute over your homedir?15:29:56
@k900:0upti.meK900No15:33:01
@k900:0upti.meK900That's verified15:33:07
@kfears:matrix.orgKFears (tragedy arc)But still, why does it hardcode the path?15:34:23
@kfears:matrix.orgKFears (tragedy arc)And is there anything I can do for now to, uhh, actually have substitution?15:34:50
@uep:matrix.orguepnot just hardcoded paths, but the paths are part of the dependency hash; that's the main / most direct reason that substitution fails15:36:37
@uep:matrix.orguepthey just miss cache15:36:47
@kfears:matrix.orgKFears (tragedy arc)
In reply to @uep:matrix.org
not just hardcoded paths, but the paths are part of the dependency hash; that's the main / most direct reason that substitution fails
Why is that a thing...
15:38:18
@k900:0upti.meK900
In reply to@kfears:matrix.org
But still, why does it hardcode the path?
Nix doesn't hardcode the path
15:42:19
@k900:0upti.meK900The actual build products do15:42:28
@kfears:matrix.orgKFears (tragedy arc) You mean, like, for example, if I build hello in /tmp, it will hardcode the absolute paths to /tmp, so launching from /nix/store doesn't make sense anymore? And there's legacy stuff that really wants to hardcode absolute paths, and there's no patching or wrapping that can fix this? 15:45:17
@k900:0upti.meK900Yes15:47:03
@k900:0upti.meK900And it's most things15:47:08
@k900:0upti.meK900Relocatable store is REALLY hard15:47:22
@kfears:matrix.orgKFears (tragedy arc)Huh15:49:22
@kfears:matrix.orgKFears (tragedy arc)I thought there are enough ways to make it work15:49:44
@kfears:matrix.orgKFears (tragedy arc)Like, maybe bind mounts idk15:49:57
@k900:0upti.meK900Bind mounts can work15:50:10

Show newer messages


Back to Room ListRoom Version: 10