windows.mingw_w64_pthreads: put deprecation behind alias

This commit is contained in:
jopejoe1
2025-08-25 20:21:29 +02:00
parent dbfdaa1a1c
commit 5c20d4dc2f
+7 -3
View File
@@ -1,5 +1,6 @@
{
lib,
config,
stdenv,
buildPackages,
pkgs,
@@ -9,7 +10,9 @@
}:
lib.makeScope newScope (
self: with self; {
self:
with self;
{
dlfcn = callPackage ./dlfcn { };
mingw_w64 = callPackage ./mingw-w64 {
@@ -31,8 +34,6 @@ lib.makeScope newScope (
mingw_w64_headers = callPackage ./mingw-w64/headers.nix { };
mingw_w64_pthreads = lib.warn "windows.mingw_w64_pthreads is deprecated, windows.pthreads should be preferred" self.pthreads;
mcfgthreads = callPackage ./mcfgthreads { stdenv = crossThreadsStdenv; };
npiperelay = callPackage ./npiperelay { };
@@ -43,4 +44,7 @@ lib.makeScope newScope (
sdk = callPackage ./msvcSdk { };
}
// lib.optionalAttrs config.allowAliases {
mingw_w64_pthreads = lib.warn "windows.mingw_w64_pthreads is deprecated, windows.pthreads should be preferred" self.pthreads;
}
)