windows.mingw_w64_headers: Add libc assert, improve meta block

This commit is contained in:
Ross Smyth
2025-08-01 12:37:01 -04:00
parent 000b4557c1
commit 4212967d27
2 changed files with 15 additions and 4 deletions
@@ -35,7 +35,7 @@ stdenv.mkDerivation {
enableParallelBuilding = true;
nativeBuildInputs = [ autoreconfHook ];
buildInputs = [ windows.mingw_w64_headers ];
buildInputs = [ mingw_w64_headers ];
hardeningDisable = [
"stackprotector"
"fortify"
+14 -3
View File
@@ -4,7 +4,10 @@
fetchurl,
crt ? stdenvNoCC.hostPlatform.libc,
}:
assert lib.assertOneOf "crt" crt [
"msvcrt"
"ucrt"
];
stdenvNoCC.mkDerivation (finalAttrs: {
pname = "mingw_w64-headers";
version = "12.0.0";
@@ -23,9 +26,17 @@ stdenvNoCC.mkDerivation (finalAttrs: {
'';
meta = {
downloadPage = "https://sourceforge.net/projects/mingw/files/Other/UserContributed/regex/";
homepage = "https://www.mingw-w64.org/";
downloadPage = "https://sourceforge.net/projects/mingw-w64/files/mingw-w64/mingw-w64-release/";
description = "Collection of headers and libraries for building native Windows applications";
license = lib.licenses.publicDomain;
license = with lib.licenses; [
# Primarily under
zpl21
# A couple files
mit
# Certain headers imported from Wine
lgpl21Plus
];
platforms = lib.platforms.windows;
teams = [ lib.teams.windows ];
};