-
-
Notifications
You must be signed in to change notification settings - Fork 14.7k
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
cygwin: add as a cross-compilation target, and get bash.exe to compile #354137
base: master
Are you sure you want to change the base?
Changes from 1 commit
8c9c583
12c6e62
e670bc6
b6262e0
4ecdadf
85dd4c2
8692585
8b47da2
74bc044
3495b2e
c0b60f3
20d2d5b
573c420
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
{ | ||
lib, | ||
stdenvNoCC, | ||
fetchFromGitHub, | ||
fetchpatch, | ||
mingw_w64_headers, | ||
}: | ||
|
||
stdenvNoCC.mkDerivation (finalAttrs: { | ||
pname = "cygwin-headers"; | ||
version = "3.5.4"; | ||
|
||
src = fetchFromGitHub { | ||
owner = "mirror"; | ||
repo = "newlib-cygwin"; | ||
rev = "cygwin-${finalAttrs.version}"; | ||
hash = "sha256-ZfT6JhOXLCJOY0vSVz6aKShmtuTN9/0NZ1k1RMSZX4Q="; | ||
}; | ||
|
||
patches = [ | ||
(fetchpatch { | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This is a static file, so there's no need for patch normalization and fetchurl can be used. |
||
url = "https://raw.githubusercontent.com/Windows-on-ARM-Experiments/mingw-woarm64-build/371102dfa23b3e56b6759e1a44026d0640d55223/patches/cygwin/0001-before-autogen.patch"; | ||
sha256 = "sha256-1JsbfYAPpsQSjknZcKfJOHA0RcdmgzkzAI4RcHG1kpA="; | ||
}) | ||
]; | ||
|
||
dontConfigure = true; | ||
dontBuild = true; | ||
|
||
installPhase = '' | ||
mkdir -p $out/include/ | ||
ln -s ${mingw_w64_headers}/include/w32api $out/include/ | ||
cp -r newlib/libc/include/* $out/include/ | ||
cp -r winsup/cygwin/include/* $out/include/ | ||
''; | ||
|
||
meta = { | ||
platforms = lib.platforms.windows; | ||
}; | ||
Comment on lines
+37
to
+39
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Could be folded to just There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This had been marked as resolved but doesn't seem to have actually been? |
||
}) |
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.
Do you mean "for Cygwin" (when running under some other platform)? Otherwise the check is wrong.