upvote
Does it support pre-compiled binary packages?
reply
Yes, this is supported and actively used in nixpkgs for proprietary programs and for things where maintaining source-builds would be unfeasible.

`patchelf` is the keyword that makes them fit into the nix store system.

reply
I believe so. Ideally they should be prebuilt with nix in mind though.
reply
Does adopting nix also require subscribing to nixpkgs?
reply
Theoretically no, but if you don't you will have to package and build the entire world (ie your full toolchain) yourself. So ... actually now that we have AI I guess no, it isn't required. You could realistically turn a model loose to package everything for you and throw it all at CI.

Or you could just use nixpkgs. Is there any particular reason you don't like it?

reply
dunno why you were downvoted, I agree with you and really wish this happened.

but to he fair, the Windows story would really need to improve for this to be realistic---one would need to be able to build Windows native packages, not just WSL. even the OpenGL story is unsatisfactory when developing graphical apps to be distributed as binaries on Linux. these are sadly not easy to fix and it would require a company to really believe in the vision and drive these investments.

reply
You could cross compile I guess. I haven't actually tried that though, so I can't speak for how smooth the experience would be.
reply
Small data point. One time needing a dll for windows. Faced with a build system for that dll that used auto tools. I punted and compiled gcc as a cross compiler to build the windows dll under linux and it worked.

My impression cross compiling C/C++ works fairly well.

reply
The core we've always fought with is that most *nix tools (both package managers and build tools) cares about "building for home on my machine" (nix does seem to have some separation at least) whilst many developers target crossplatform or multi-targets.

C/C++ has many Windows (where Release / Debug are different build profiles for better or worse), Embedded and Console developers. All of the latter require not only platform support (Nix on Windows is recommended via WSL) and more or less support for programs/libraries to multi-target.

An local developer here in Stockholm did a deep dive with package managers a few years back and it was a depressing watch since only VcPkg seemed to particularly care about the multi-targeting (No idea if Nix handles this well? but it was eliminated due to not even supporting Windows) and a package manager looking to be even unofficial will have a hard time "winning" without filling both parts.

And I do recognize that while vc-pkg was best on paper in many ways, the GNU community would never adopt it.... and here we are still years later.

Personally at this point I think we should maybe just put a thin shim to make compilers/tools recognize git submodules officially and let those become packages because people won't agree on anything anyhow.

(Package managers video) https://www.youtube.com/watch?v=C1m-Uy4nuQA

reply