Unverified Commit ee1fea38 authored by K900's avatar K900 Committed by GitHub
Browse files

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

parents 4dbfc06d 454c7a68
Loading
Loading
Loading
Loading
+14 −0
Original line number Diff line number Diff line
@@ -2,6 +2,7 @@
  lib,
  buildPythonPackage,
  fetchFromGitHub,
  fetchpatch,
  cython,
  poetry-core,
  setuptools,
@@ -20,6 +21,19 @@ buildPythonPackage rec {
    hash = "sha256-k2b6DoKwNeQBkmqSRXqaRTjK7CVX6IKuXCLG9lBdLLY=";
  };

  patches = [
    # backport fix for -msse being passed on aarch64-linux
    (fetchpatch {
      url = "https://github.com/aresch/rencode/commit/591b9f4d85d7e2d4f4e99441475ef15366389be2.patch";
      hash = "sha256-KhfawtYa4CnYiVzBYdtMn/JRkeqCLJetHvLEm1YVOe4=";
    })
    # do not pass -march=native etc. on x86_64
    (fetchpatch {
      url = "https://github.com/aresch/rencode/commit/e7ec8ea718e73a8fee7dbc007c262e1584f7f94b.patch";
      hash = "sha256-gNYjxBsMN1p4IAmutV73JF8yCj0iz3DIl7kg7WrBdbs=";
    })
  ];

  nativeBuildInputs = [
    poetry-core
    setuptools