!VRULIdgoKmKPzJZzjj:nixos.org

Nix Hackers

889 Members
For people hacking on the Nix package manager itself189 Servers

Load older messages


SenderMessageTime
8 Jun 2021
@niksnut:matrix.orgniksnutUnlike values, of which there can be arbitrarily many during an eval17:48:42
@theophane:hufschmitt.netRegnat
In reply to @niksnut:matrix.org
But the most important thing is that AST memory usage is bounded by the set of Nix expressions imported
Ahah, yes, that’s true
18:09:41
@theophane:hufschmitt.netRegnatI wonder though whether there’s something to gain from freeing them at the end of the eval… but given that there’s no clear point where we finish the eval, it probably doesn’t make much sense18:10:54
9 Jun 2021
@matto153:matrix.orgmatto153 joined the room.08:06:21
@matto153:matrix.orgmatto153Hello all08:17:41
@joerg:bethselamin.deMic92 (Old)I assume flakes cannot have git submodules?11:42:14
@manveru:matrix.orgmanveru Mic92: they can... but it's a major PITA 11:50:42
@manveru:matrix.orgmanveruyou basically have to import self with fetchGit and submodules11:51:11
@joerg:bethselamin.deMic92 (Old) manveru: do you have an example? 11:51:29
@manveru:matrix.orgmanveruand it only works if the dir isn't dirty :P11:51:33
@manveru:matrix.orgmanveru fullself = builtins.fetchGit { url = "https://whatever"; ref = "master"; rev = self.rev; submodules = true; }; 11:52:41
@manveru:matrix.orgmanverukinda like that11:52:48
@joerg:bethselamin.deMic92 (Old)Ok. I see the problem11:53:32
@manveru:matrix.orgmanveruof course that only works with master branch, because Nix can't get revs from undefined branches...11:53:41
@manveru:matrix.orgmanveru and self.rev is only set if the flake isn't dirty 11:53:54
@joerg:bethselamin.deMic92 (Old)the whole flake or just the submodule?11:54:08
@joerg:bethselamin.deMic92 (Old) If the whole flake needs to be clean than this is useless 11:54:52
@manveru:matrix.orgmanveruyeah... i know :|11:55:23
@manveru:matrix.orgmanverusubmodules cost me more weeks of my life than i'd dare to count11:55:48
@manveru:matrix.orgmanveru also in theory you can pass submodules = true for flake inputs, but i think that's still broken 11:56:53
@manveru:matrix.orgmanveruhttps://github.com/NixOS/nix/issues/4423 has more info11:59:39
@manveru:matrix.orgmanverualso related https://github.com/NixOS/nix/pull/4435 for that inputs issue12:02:00
@manveru:matrix.orgmanverui tried fixing that, but couldn't get it right :|12:02:14
@Las:matrix.orgLasSubmodules for flakes are still broken14:18:09
@Las:matrix.orgLas
In reply to @manveru:matrix.org
also in theory you can pass submodules = true for flake inputs, but i think that's still broken
I couldn't get this to work
14:18:39
@sophrosyne97:mozilla.orgSophrosyne joined the room.15:30:55
@sophrosyne97:mozilla.orgSophrosyne changed their display name from sophrosyne97 to Sophrosyne.17:10:28
@rycee:rycee.netrycee abathur: Generally speaking my use-case for user-installable suid programs would be something like Gnome Keyring or xscreensaver, which rely on being run as suid for some functionality. For example, starting xscreensaver prints "OOM: /proc/127568/oom_score_adj: Permission denied: To prevent the kernel from randomly unlocking your screen via the out-of-memory killer, "xscreensaver-auth" must be setuid root.". 21:11:57
@rycee:rycee.netrycee Mic92: Yeah, seems like a really tricky problem to solve. I was thinking about some kind of signature system that would allow signed packages to be installed with extra capabilities (such as suid) if the signer is trusted by the system. 21:21:17
10 Jun 2021
@abathur:matrix.orgabathur rycee: graham pointed me at a doc about a "pivots" concept recently when I was asking about these from resholve's perspective; it looks like maybe the canonical source is https://gist.github.com/Infinisil/3366e7dfc9a01f6eeb25b5cb475cc585 00:30:56

Show newer messages


Back to Room ListRoom Version: 6