| 25 Oct 2024 |
| @lholh:matrix.org left the room. | 22:40:58 |
| 30 Oct 2024 |
| xsova joined the room. | 15:20:28 |
xsova | I tried running darwin-rebuild switch --log-format internal-json &| nom --json and I guess the log format option isn't available for darwin-rebuild.. Is there another command I could try to pipe darwin-rebuild switch into nom? | 15:23:27 |
maralorn | I don’t even know what darwin-rebuild is.^^ | 16:03:45 |
maralorn | Possibly nh has support for darwin rebuild? | 16:04:02 |
xsova | it's the darwin nix version of 'nixos-rebuild' for mac users | 16:04:22 |
maralorn | Have you tried the non-json mode? | 16:04:23 |
maralorn | Same command with '--log-format and --json | 16:04:47 |
maralorn | * Same command without --log-format and --json | 16:04:54 |
xsova | yeah it kinda just prints what it ordinarily would | 16:05:31 |
xsova | I tried using pinix but formatting was super off, and this is the only other nix progress tool that I could find :/ | 16:06:31 |
maralorn | But how did it work for pinix? | 16:13:54 |
maralorn | In reply to @xsova:matrix.org yeah it kinda just prints what it ordinarily would Ah, does it default to the modern nix statusbar output? | 16:14:48 |
xsova | It seems like it does- it worked like normal I think, it just ended up having broken formatting iirc | 16:15:57 |
maralorn | In reply to @xsova:matrix.org I tried using pinix but formatting was super off, and this is the only other nix progress tool that I could find :/ Well, there is not really much nom can do about the integration. And I don’t see it as my job to write those integrations for every tool in the community. | 16:16:20 |
xsova | That’s fair- I just don’t super understand how it works/how different it is from nixos-rebuild. I can try to do it, though- I just wanted to make sure I wasn’t missing something | 16:17:24 |
maralorn | Normally tools like darwin-rebuild don’t have a lot of logic, so changing/replacing it to get it to give the correct output shouldn’t be that hard. | 16:17:23 |
maralorn | Still don’t understand how you got pinix and darwin-rebuild to work at all. | 16:22:56 |
maralorn | It does not look like pinix can parse anything other than the json output. So somehow you must have succeeded at making darwin-rebuild produce json? | 16:23:33 |
xsova | One of the options to run it is running pinix and then the normal command so pinix darwin-rebuild switch instead of using it as a drop in for nix/nixos-rebuild | 16:24:04 |
maralorn | Yeah, but then it won’t get any useful information and probably just pass through the given build logs. | 16:25:11 |
xsova | ¯\_(ツ)_/¯ I'm not sure, I'll try to implement it though, I liked nom's output better since formatting was better haha | 16:36:53 |
maralorn | I will have to inspect pinix more and steal their best ideas. | 16:49:13 |
maralorn | Can’t let my Haskell app become the victim of a rust rewrite. 😈 | 16:49:41 |
maralorn | But well, for that I need to allocate any time to working on nom. 😄 | 16:50:22 |
xsova | Oh it’s written in Haskell- time to learn a new language xd | 16:50:37 |
maralorn | Yeah, no one believed me that a Haskell program can have side effects so I wrote a program, which basically only does IO. 🤡 | 16:53:06 |
maralorn | * Yeah, no one believed me that a Haskell program can have side effects. So I wrote a program which basically only does IO. 🤡 | 16:53:23 |
| 2 Nov 2024 |
| isabel changed their profile picture. | 10:07:49 |
| Kamilla 'ova joined the room. | 15:54:05 |