-
-
Notifications
You must be signed in to change notification settings - Fork 15.5k
python3Packages.capstone: aarch64 platform name #110548
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
python3Packages.capstone: aarch64 platform name #110548
Conversation
b8e3663
to
7de5f9d
Compare
Can't test but this looks sensible. |
7de5f9d
to
25a1b3b
Compare
@jonringer is this approach acceptable? |
|
||
src = capstone.src; | ||
sourceRoot = "${capstone.name}/bindings/python"; | ||
|
||
postPatch = '' | ||
ln -s ${capstone}/lib/libcapstone${stdenv.targetPlatform.extensions.sharedLibrary} prebuilt/ | ||
ln -s ${capstone}/lib/libcapstone.a prebuilt/ | ||
'' + lib.optionalString stdenv.targetPlatform.isAarch64 '' | ||
substituteInPlace setup.py --replace manylinux1 manylinux2014 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I thought about this a bit more and do you know if it would be save to apply on all platforms? Otherwise it might be forgotten with the next update.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@SuperSandro2000: Indeed, that makes sense. I removed the conditional entirely. PTAL
25a1b3b
to
b84835e
Compare
Result of 16 packages built:
|
Motivation for this change
This package currently doesn't build on aarch64 without this change.
This change fixes this build failure.
Things done
sandbox
innix.conf
on non-NixOS linux)nix-shell -p nixpkgs-review --run "nixpkgs-review wip"
./result/bin/
)nix path-info -S
before and after)