mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-08-25 17:55:21 +00:00
python3Packages.skia-pathops: drop x86_64-darwin patches
This commit is contained in:
@@ -47,18 +47,7 @@ buildPythonPackage rec {
|
||||
--replace "-mthumb" ""
|
||||
substituteInPlace src/cpp/skia-builder/skia/src/core/SkOpts.cpp \
|
||||
--replace "defined(SK_CPU_ARM64)" "0"
|
||||
''
|
||||
+
|
||||
lib.optionalString (stdenv.hostPlatform.isDarwin && stdenv.hostPlatform.isx86_64) # old compiler?
|
||||
''
|
||||
patch -p1 <<EOF
|
||||
--- a/src/cpp/skia-builder/skia/include/private/base/SkTArray.h
|
||||
+++ b/src/cpp/skia-builder/skia/include/private/base/SkTArray.h
|
||||
@@ -492 +492 @@:
|
||||
- static constexpr int kMaxCapacity = SkToInt(std::min(SIZE_MAX / sizeof(T), (size_t)INT_MAX));
|
||||
+ static constexpr int kMaxCapacity = SkToInt(std::min<size_t>(SIZE_MAX / sizeof(T), (size_t)INT_MAX));
|
||||
EOF
|
||||
'';
|
||||
'';
|
||||
|
||||
build-system = [
|
||||
cython
|
||||
|
||||
Reference in New Issue
Block a user