Cross-compilation has also been overhauled and basically native compilation is no longer special, it’s just a cross-compile with identical build and host. Ok, I lied, but they’re getting there. Only a few quirks left. .nativeDrv and .crossDrv are on their way out, as is the stdenv.cross attribute.
But it’s not completely abstracted away. A lot of NixOS' services have systemd specific configuration. We should go further so that people can replace systemd with whatever they like.
There are a few things to look out for. In particular, overridePackages doesn’t work anymore – it has been replaced by overlays:
https://nixos.org/nixpkgs/manual/#sec-overlays-install
Cross-compilation has also been overhauled and basically native compilation is no longer special, it’s just a cross-compile with identical build and host. Ok, I lied, but they’re getting there. Only a few quirks left.
.nativeDrvand.crossDrvare on their way out, as is thestdenv.crossattribute.https://nixos.org/nixpkgs/manual/#chap-cross
I used the new cross-compilation stuff a few months ago. It was useful!
Cool! What did you do?
Almost got Emacs cross-compiled to Windows - got all the dependencies going but had Emacs specific problems.
For Windows? That’s unexpected and cool.
[Comment removed by author]
You barely interact with systemd, why does it matter? The whole point of nixOS is to abstract that part away.
But it’s not completely abstracted away. A lot of NixOS' services have systemd specific configuration. We should go further so that people can replace systemd with whatever they like.
I’ve been using it on my work computer, it’s pretty nice, but just because you cant see systemds warts doesnt mean they arent there