Skip to content

Commit

Permalink
python3Packages.reportlab: ignore special casing for m1 macs
Browse files Browse the repository at this point in the history
  • Loading branch information
mweinelt committed Sep 16, 2022
1 parent 67d138a commit 05beb70
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 0 deletions.
13 changes: 13 additions & 0 deletions pkgs/development/python-modules/reportlab/darwin-m1-compat.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
diff --git a/setup.py b/setup.py
index 7625074..b3aa2fc 100644
--- a/setup.py
+++ b/setup.py
@@ -249,7 +249,7 @@ class inc_lib_dirs:
aDir(L, os.path.join("/usr/lib", "python%s" % sys.version[:3], "config"))
elif platform == "darwin":
machine = sysconfig_platform.split('-')[-1]
- if machine=='arm64' or os.environ.get('ARCHFLAGS','')=='-arch arm64':
+ if False and machine=='arm64' or os.environ.get('ARCHFLAGS','')=='-arch arm64':
#print('!!!!! detected darwin arm64 build')
#probably an M1
target = pjoin(
4 changes: 4 additions & 0 deletions pkgs/development/python-modules/reportlab/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,10 @@ in buildPythonPackage rec {
sha256 = "sha256-BPxEIPBUiBXQYj4DHIah9/PzAD5pnZr3FIdC4tcrAko=";
};

patches = [
./darwin-m1-compat.patch
];

checkInputs = [ glibcLocales ];

buildInputs = [ ft pillow ];
Expand Down

0 comments on commit 05beb70

Please sign in to comment.