tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
0
fork
atom
lol
0
fork
atom
overview
issues
pulls
pipelines
python3Packages.skia-pathops: fix build on aarch64-darwin
Weijia Wang
3 years ago
22d82d16
979a581e
+7
-1
1 changed file
expand all
collapse all
unified
split
pkgs
development
python-modules
skia-pathops
default.nix
+7
-1
pkgs/development/python-modules/skia-pathops/default.nix
reviewed
···
28
28
substituteInPlace setup.py \
29
29
--replace "build_cmd = [sys.executable, build_skia_py, build_dir]" \
30
30
'build_cmd = [sys.executable, build_skia_py, "--no-fetch-gn", "--no-virtualenv", "--gn-path", "${gn}/bin/gn", build_dir]'
31
31
+
'' + lib.optionalString (stdenv.isDarwin && stdenv.isAarch64) ''
32
32
+
substituteInPlace src/cpp/skia-builder/skia/gn/skia/BUILD.gn \
33
33
+
--replace "-march=armv7-a" "-march=armv8-a" \
34
34
+
--replace "-mfpu=neon" "" \
35
35
+
--replace "-mthumb" ""
36
36
+
substituteInPlace src/cpp/skia-builder/skia/src/core/SkOpts.cpp \
37
37
+
--replace "defined(SK_CPU_ARM64)" "0"
31
38
'';
32
39
33
40
nativeBuildInputs = [ cython ninja setuptools-scm ]
···
46
53
homepage = "https://skia.org/dev/present/pathops";
47
54
license = lib.licenses.bsd3;
48
55
maintainers = [ lib.maintainers.BarinovMaxim ];
49
49
-
broken = stdenv.isDarwin && stdenv.isAarch64; # clang-11: error: the clang compiler does not support '-march=armv7-a'
50
56
};
51
57
}