logoalt Hacker News

dark-star • today at 8:59 PM • 4 replies • view on HN

Isn't this possible on any Linux distro? Fetch the source package, patch it, rebuild, install?


Replies

kam • today at 9:15 PM

Possible, yes. Easy, no.

For example on most distros an updated package will supersede your rebuilt one and you'd need to build it again manually. On NixOS, it will rebuild your with your patch automatically.

orbital-decay • today at 9:19 PM

Of course, though maintaining a bunch of these is hell unless it's automated. Nix does exactly that, it automates what should be automated.

drdexebtjl • today at 9:08 PM

Yeah, but you don’t have to do anything when upstream updates, provided your patch still applies. You continue getting updates normally.

bigstrat2003 • today at 9:17 PM

In particular, Gentoo makes it really easy to patch packages you install. It's one of the ways in which the source-based nature really gives you a lot of power.