this post was submitted on 23 Oct 2023
149 points (96.9% liked)

Open Source

31366 readers
124 users here now

All about open source! Feel free to ask questions, and share news, and interesting stuff!

Useful Links

Rules

Related Communities

Community icon from opensource.org, but we are not affiliated with them.

founded 5 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
[–] [email protected] 10 points 1 year ago (2 children)

Reproducible scripts are scripts using Nix so that we don’t have the problem of “It works in my machine”

Ok, no, thanks. This should work on all distributions with their package managers instead of needing a separate layer. The approach to first package it and then write addons is a bit weird.

[–] [email protected] 4 points 1 year ago (1 children)

That's the thing with Nix: It works on all the distros.

Distros could of course also package it themselves (nothing preventing them from doing that) but having a baseline in Nix that you can point to makes the distro's job easier here aswell. If it works via Nix but doesn't in xyz distro's package, you know where the problem lies.

[–] [email protected] 2 points 1 year ago* (last edited 1 year ago) (1 children)

That’s the thing with Nix: It works on all the distros.

… as long as you install Nix.

You could say the same about Docker, Flatpak, AppImage or even Snap. Nix is nothing special in that regard.

[–] [email protected] 3 points 1 year ago

Nix is nothing special in that regard.

Well, with the exception that all of those tools use userns to ship almost a full userspace tree while Nix uses no containerisation whatsoever to do its job.

[–] [email protected] 1 points 1 year ago

You can make Deb and rpm from nix packages supposedly.

https://nixos.wiki/wiki/Nixpkgs/Building_RPM_DEB_with_nixpkgs

Sticking to reproduceable builds also makes sense for development and troubleshooting, less variables to run down.