-
-
Notifications
You must be signed in to change notification settings - Fork 14.4k
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
7zz: cross-compile for mingw #217472
7zz: cross-compile for mingw #217472
Conversation
Successfully compiled I tried running the resulting |
@@ -109,7 +121,7 @@ stdenv.mkDerivation rec { | |||
# the unRAR compression code is disabled by default | |||
lib.optionals enableUnfree [ unfree ]; | |||
maintainers = with maintainers; [ anna328p peterhoeg jk ]; | |||
platforms = platforms.unix; | |||
platforms = platforms.unix ++ platforms.windows; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for working on this.
One question though. Is platforms.windows
correct here?
nix-repl> lib.platforms.windows
[ "i686-cygwin" "x86_64-cygwin" "x86_64-windows" "i686-windows" ]
I don't know much about windows builds but it seems like Cygwin is a bit different to MinGW
Is "x86_64-cygwin"
actually under isMinGW
?
isCygwin = { kernel = kernels.windows; abi = abis.cygnus; };
isMinGW = { kernel = kernels.windows; abi = abis.gnu; };
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Cygwin and MinGW are indeed very different. I don't think it matters here because platforms.unix
already includes Cygwin.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
so it should have stayed platforms.unix
and not added platforms.windows
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The two mingw doubles were needed, which platforms.windows
provides.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Your question makes sense. Perhaps there should be a platforms.mingw
, using that would have made the intention of the change clearer.
Description of changes
Fixes all build errors in
pkgsCross.mingwW64._7zz
on x86_64 Linux.Things done
sandbox = true
set innix.conf
? (See Nix manual)nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD"
. Note: all changes have to be committed, also see nixpkgs-review usage./result/bin/
)