lol

python3Packages.skia-pathops: fix build on aarch64-darwin

+7 -1
+7 -1
pkgs/development/python-modules/skia-pathops/default.nix
··· 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 + '' + lib.optionalString (stdenv.isDarwin && stdenv.isAarch64) '' 32 + substituteInPlace src/cpp/skia-builder/skia/gn/skia/BUILD.gn \ 33 + --replace "-march=armv7-a" "-march=armv8-a" \ 34 + --replace "-mfpu=neon" "" \ 35 + --replace "-mthumb" "" 36 + substituteInPlace src/cpp/skia-builder/skia/src/core/SkOpts.cpp \ 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 - broken = stdenv.isDarwin && stdenv.isAarch64; # clang-11: error: the clang compiler does not support '-march=armv7-a' 50 56 }; 51 57 }