Skip to content

Commit bb5edc4

Browse files
committed
rustpython: fix build on aarch64-linux
1 parent 2689297 commit bb5edc4

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

  • pkgs/development/interpreters/python/rustpython

pkgs/development/interpreters/python/rustpython/default.nix

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
, fetchFromGitHub
55
, SystemConfiguration
66
, python3
7+
, fetchpatch
78
}:
89

910
rustPlatform.buildRustPackage rec {
@@ -19,6 +20,14 @@ rustPlatform.buildRustPackage rec {
1920

2021
cargoHash = "sha256-PYSsv/dZ3dxferTDbRLF9T8GGj9kZ3ixWNglQKtA3pE=";
2122

23+
patches = [
24+
# Fix aarch64 compatibility for sqlite. Remove with the next release. https://github.com/RustPython/RustPython/pull/4499
25+
(fetchpatch {
26+
url = "https://github.com/RustPython/RustPython/commit/9cac89347e2276fcb309f108561e99f4be5baff2.patch";
27+
hash = "sha256-vUPQI/5ec6/36Vdtt7/B2unPDsVrGh5iEiSMBRatxWU=";
28+
})
29+
];
30+
2231
# freeze the stdlib into the rustpython binary
2332
cargoBuildFlags = [ "--features=freeze-stdlib" ];
2433

0 commit comments

Comments
 (0)