7 ms·
C/C++ is a PITA and I'm not a C/C++ developer, but I do find that I'm able to get around the issue 90% of the time using steam-run (although that feels kludgy a
by grep_name 1y ago
C/C++ is a PITA and I'm not a C/C++ developer, but I do find that I'm able to get around the issue 90% of the time using steam-run (although that feels kludgy as hell and I really wish there were a better option for getting linked libraries working normally). I think the real answer is to get good enough with nix to build a flake quickly for the project you're working with, but that seems like a lot to learn. Maybe easier if you're more familiar with C/C++ dependencies and build tools than me though.
Musnix looks really interesting. My whole audio setup looks like this in my nixconfig:
hardware.pulseaudio.enable = false;
services.pipewire = {
enable = true;
alsa.enable = true;
alsa.support32Bit = true;
pulse.enable = true;
jack.enable = true;
};
hardware.bluetooth.enable = true;
hardware.bluetooth.powerOnBoot = true;
services.blueman.enable = true;
This works great for my workflow of using headphones + BT 100% of the time, but weirdly it almost never works for the built-in speakers on my framework. I might try musnix if that ever bothers me, but it's actually kind of a feature for me since my laptop can never just start blaring whatever I was watching / listening to into public
- jjmarr 1y ago> I think the real answer is to get good enough with nix to build a flake quickly for the project you're working with I just have AI do it. Any of the coding assistants with terminal access can write and test flakes for you.
- grep_name 1y agoI tried doing it for awhile but wasn't able to ever get it to work for the main project I was trying to build, which was a VR project called LÖVR. I could have made and submitted a package using one of their appimage releases, but was doing it as an exercise to see how far I could push things. I also went through a phase where I had AI write a lot of simpler flakes, but they turned out surprisingly different from each other, enough so that I wasn't able to learn a pattern as a base to grok what was happening. At some point I'll try again from first principles, but for some reason the AI flakes hindered more than helping
- jjmarr 1y agoI don't bother with flakes I just create ephemeral nix shells and a `shell.nix` with the dependencies.
- Cloudef 1y agonix-ld is the better way
- grep_name 1y agoThis looks interesting, just speed-read the readme. Is there a way to use this from the commandline, similar to steam-run, if you're just trying to sloppily check out some repo without building a whole flake?
- Cloudef 1y agoIt only works with nixos, it replaces the system ld that normally says "nix cant run dynamic binaries blah blah". Not sure if you can run it as cli tool.
- zxexz 1y agohttps://github.com/thiagokokada/nix-alien https://github.com/thiagokokada/nix-alien https://github.com/Lassulus/nix-autobahn https://github.com/Lassulus/nix-autobahn
- nextos 1y agoFWIW, I think pipewire has been enabled by default for some time in Nix right now?