News for hackers. Stuff that matters.
Re:20 Years of Nix by amelius on Saturday March 18, 2023 @08:37AM (#35208586)
20 years, is that the compile time now? ;)
Re:20 Years of Nix by Reventlov on Saturday March 18, 2023 @09:05AM (#35208772)
Hold up we're talking about Nix not Rust !

(yeah sorry couldn't resist, I know this is probably misleading)

Re:20 Years of Nix by speed_spread on Saturday March 18, 2023 @09:32AM (#35209009)
And here I was thinking about Gentoo...
Re:20 Years of Nix by mtlmtlmtlmtl on Saturday March 18, 2023 @09:48AM (#35209104)
Oh that takes me back to trying to explain to some Gentoo users back in the day that that yea you can optimise stuff better for your slow ass computer. But you now have to spend most of your time compiling code on your slow ass computer.

I always found Arch to be a much more reasonable system for this use case because compiling everything from scratch was just pointless, at least back then. But it still maoes it easy to rebuild packages with custom patches etc.

Re:20 Years of Nix by jacoblambda on Saturday March 18, 2023 @12:51PM (#35210716)
> Oh that takes me back to trying to explain to some Gentoo users back in the day that that yea you can optimise stuff better for your slow ass computer. But you now have to spend most of your time compiling code on your slow ass computer.

Honestly it depends what your goal is with gentoo. My whole sell with gentoo is that custom packages are just so easy. I can take some garbage toolchain from an embedded manufacturer and wire up an ebuild for it that "just works". Nix is similar once you get it working but the nixpkg and nixos DSLs just kinda suck in their own ways. So it may take me 10-15 min to write and install an ebuild while the nix package may take me an hour or two.

Same goes for situations where you need weird kernel configs. It's so easy to just recompile the kernel on gentoo once you have stuff set up. The OS is built expecting a majority of users will want to tweak their kernels so the OS's tooling doesn't fight you when you do. I find this often less well handled in other distros.

As for arch, it is pretty close IMHO but (while it may have changed since I used it last) I found that the "bleeding-edge" focus makes dealing with old janky dependencies to be pretty painful.

Gentoo certainly isn't the first choice for the majority of people but it IMHO is a really good choice if you are going to be working with funky proprietary toolchains (o/ hi embedded engs).

Re:20 Years of Nix by mananaysiempre on Saturday March 18, 2023 @09:23AM (#35208924)
Sarcasm aside, here’s a Nix manual from 2004: https://releases.nixos.org/nix/nix-0.5/manual/manual.html.

(The compile time of Nix itself is unpleasant, but not exactly exceptional among programs written in the modern C++ style. The eval time even for Nixpkgs even on a ten-year-old i5 is annoying but not a terrible problem the way it’s used now, though even on a recent Android tablet it’s admittedly measured in minutes.)

Re:20 Years of Nix by bpye on Saturday March 18, 2023 @11:28AM (#35209852)
With the Hydra binary cache I can quite comfortably update my Avoton C2550 based router or Raspberry Pi 4 AirPlay receiver within a few minutes. It’s only if I need to build a non trivial package that I have to make sure I build on my desktop or in a VM on my MacBook.
Re:20 Years of Nix by mananaysiempre on Saturday March 18, 2023 @12:31PM (#35210472)
I doubt your setup needed recompiling the Nix binary itself at any point. Even I did that more out of love of adventure than for any practical reasons, it’s just that the scars are still there. (Still less than those from the time when the LibreOffice build was broken on Hydra and a routine system update jumped right into trying to perform it locally, even if that indeed was what I technically asked for...)

And you know what, the long evaluation thing might just be a bug. Or at least I don’t see any other reason why (e.g.) `nix-shell -p yt-dlp` works reasonably fast on my Nix-on-Droid[1] installation but `nix shell nixpkgs#yt-dlp` takes minutes.

[1] https://github.com/t184256/nix-on-droid