-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add Nix #22459
Comments
Would nix (as in the tool) target the Windows APIs via C++, or is this a cygwin port? Just to be sure.. :) |
@lazka No Cygwin! 🎉 We're cross building from Linux with MinGW now, and a previous version of the port (nix-windows/nix@windows) in fact got things building with MSVC. The newish C++ |
I'll take this on, since I've got an automated build of Nix using mingw64. There are two dependencies missing:
|
there are many programs still depending on autotools.. it would've be certainly easier if it was cygwin based. (Would support more from source built software as it is right now) But maybe there is less dependency on it than before.. We will see. |
Pd: maybe with nix, I can finally get guix :) |
We've updated libgit2 now in #20396. In theory we could backport things if needed there. |
@lazka Yeah if you would be open to a patch, I think it is a pretty non-invasive change. https://github.com/libgit2/libgit2/compare/v1.8.4..main/#diff-069ad7b34be69df5ba08a066f481b6d5b5f473894137065f33eebfc2a7722442 shows it is not yet landed in that patch release. I'll see what I can do if @puffnfresh doesn't beat me to it :). |
Wonderful! Really appreciate that @lazka :) |
Package name
Nix
Brief description of package
Nix, the purely functional package manager.
Nix has a Windows port in progress, which I am involved with. It is not yet feature-complete, but it does build. We understand if packaging software that isn't yet useful is putting the cart before the horse, but we would love to better do native builds of Nix while we finish the port, and also learn a bit more about MSYS / toolchain setups in the process.
Once we're far enough to be attempting to build Nixpkgs on Windows natively with Cygwin/MSYS, we'll also need to learn a lot from you all in general. (See NixOS/nixpkgs#354137 for the first steps on that.) So consider this a hybrid packaging requestion / general knowledge sharing and collaboration request.
(And of course, if someday you all want to ditch
pacman
fornix
, we won't complain :))URL for package's homepage
Repo: https://github.com/nixos/nix
Chat for Port: https://matrix.to/#/#windows:nixos.org
Provide a basic test case to validate the package's functionality.
We have unit tests for the libraries that run, and some in-progress work to run the shell-script-based integration tests.
MINGW environments where you need the package
Are you willing to submit a PR?
I think one of us porting Nix to Windows could do it but we would need hand-holding. Ideally one of you could drive the PR, and we would be highly available to answer questions.
The text was updated successfully, but these errors were encountered: