push sheeet
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s

This commit is contained in:
Dark Steveneq
2025-10-09 14:15:47 +02:00
commit 646b892680
49168 changed files with 5897842 additions and 0 deletions

View File

@@ -0,0 +1,49 @@
{
lib,
stdenv,
buildPythonPackage,
fetchFromGitiles,
setuptools,
six,
python,
}:
buildPythonPackage {
pname = "gyp";
version = "unstable-2024-02-07";
pyproject = true;
src = fetchFromGitiles {
url = "https://chromium.googlesource.com/external/gyp";
rev = "1615ec326858f8c2bd8f30b3a86ea71830409ce4";
hash = "sha256-E+JF4uJBRka6vtjxyoMGE4IT5kSrl7Vs6WNkMQ+vNgs=";
};
patches = lib.optionals stdenv.hostPlatform.isDarwin [
./no-darwin-cflags.patch
./no-xcode.patch
];
build-system = [ setuptools ];
dependencies = [ six ];
pythonImportsCheck = [
"gyp"
"gyp.generator"
];
# Make mac_tool.py executable so that patchShebangs hook processes it. This
# file is copied and run by builds using gyp on macOS
preFixup = ''
chmod +x "$out/${python.sitePackages}/gyp/mac_tool.py"
'';
meta = with lib; {
description = "Tool to generate native build files";
mainProgram = "gyp";
homepage = "https://gyp.gsrc.io";
license = licenses.bsd3;
maintainers = [ ];
};
}

View File

@@ -0,0 +1,40 @@
Index: gyp/pylib/gyp/xcode_emulation.py
===================================================================
--- gyp/pylib/gyp/xcode_emulation.py
+++ gyp/pylib/gyp/xcode_emulation.py
@@ -483,9 +483,6 @@
if self._Test('GCC_CHAR_IS_UNSIGNED_CHAR', 'YES', default='NO'):
cflags.append('-funsigned-char')
- if self._Test('GCC_CW_ASM_SYNTAX', 'YES', default='YES'):
- cflags.append('-fasm-blocks')
-
if 'GCC_DYNAMIC_NO_PIC' in self._Settings():
if self._Settings()['GCC_DYNAMIC_NO_PIC'] == 'YES':
cflags.append('-mdynamic-no-pic')
@@ -495,9 +492,6 @@
# mdynamic-no-pic by default for executable and possibly static lib
# according to mento
- if self._Test('GCC_ENABLE_PASCAL_STRINGS', 'YES', default='YES'):
- cflags.append('-mpascal-strings')
-
self._Appendf(cflags, 'GCC_OPTIMIZATION_LEVEL', '-O%s', default='s')
if self._Test('GCC_GENERATE_DEBUGGING_SYMBOLS', 'YES', default='YES'):
@@ -553,7 +541,6 @@
# TODO: Supporting fat binaries will be annoying.
self._WarnUnimplemented('ARCHS')
archs = ['i386']
- cflags.append('-arch ' + archs[0])
if archs[0] in ('i386', 'x86_64'):
if self._Test('GCC_ENABLE_SSE3_EXTENSIONS', 'YES', default='NO'):
@@ -811,7 +798,6 @@
# TODO: Supporting fat binaries will be annoying.
self._WarnUnimplemented('ARCHS')
archs = ['i386']
- ldflags.append('-arch ' + archs[0])
# Xcode adds the product directory by default.
ldflags.append('-L' + product_dir)

View File

@@ -0,0 +1,25 @@
--- gyp-old/pylib/gyp/xcode_emulation.py 1980-01-02 00:00:00.000000000 -0600
+++ gyp/pylib/gyp/xcode_emulation.py 2020-08-02 20:24:24.871322520 -0500
@@ -1407,10 +1407,10 @@
raise GypError("xcodebuild returned unexpected results")
except:
version = CLTVersion()
- if version:
+ if version and re.match(r'(\d\.\d\.?\d*)', version):
version = re.match(r'(\d\.\d\.?\d*)', version).groups()[0]
else:
- raise GypError("No Xcode or CLT version detected!")
+ version = '7.0.0'
# The CLT has no build information, so we return an empty string.
version_list = [version, '']
version = version_list[0]
@@ -1667,7 +1667,8 @@
sdk_root = xcode_settings._SdkRoot(configuration)
if not sdk_root:
sdk_root = xcode_settings._XcodeSdkPath('')
- env['SDKROOT'] = sdk_root
+ if not sdk_root:
+ env['SDKROOT'] = ''
if not additional_settings:
additional_settings = {}