python3.pkgs.rencode: fix build on aarch64-linux (#436243)

authored by K900 and committed by GitHub ee1fea38 4dbfc06d

+14
+14
pkgs/development/python-modules/rencode/default.nix
··· 2 2 lib, 3 3 buildPythonPackage, 4 4 fetchFromGitHub, 5 + fetchpatch, 5 6 cython, 6 7 poetry-core, 7 8 setuptools, ··· 19 20 tag = "v${version}"; 20 21 hash = "sha256-k2b6DoKwNeQBkmqSRXqaRTjK7CVX6IKuXCLG9lBdLLY="; 21 22 }; 23 + 24 + patches = [ 25 + # backport fix for -msse being passed on aarch64-linux 26 + (fetchpatch { 27 + url = "https://github.com/aresch/rencode/commit/591b9f4d85d7e2d4f4e99441475ef15366389be2.patch"; 28 + hash = "sha256-KhfawtYa4CnYiVzBYdtMn/JRkeqCLJetHvLEm1YVOe4="; 29 + }) 30 + # do not pass -march=native etc. on x86_64 31 + (fetchpatch { 32 + url = "https://github.com/aresch/rencode/commit/e7ec8ea718e73a8fee7dbc007c262e1584f7f94b.patch"; 33 + hash = "sha256-gNYjxBsMN1p4IAmutV73JF8yCj0iz3DIl7kg7WrBdbs="; 34 + }) 35 + ]; 22 36 23 37 nativeBuildInputs = [ 24 38 poetry-core