python3.pkgs.pyelftools: fix aarch64 build

This commit is contained in:
Jörg Thalheim 2021-04-05 14:55:37 +02:00
parent 4350ede15e
commit 660f18512b
No known key found for this signature in database
GPG key ID: B3F5D81B0C6967C4

View file

@ -16,7 +16,7 @@ buildPythonPackage rec {
sha256 = "09igdym2qj2fvfcazbz25qybmgz7ccrn25xn3havfkdkka0z0i3p";
};
doCheck = stdenv.is64bit && !stdenv.isDarwin;
doCheck = stdenv.hostPlatform.system == "x86_64-linux";
checkPhase = ''
patchelf --set-interpreter "$(cat $NIX_CC/nix-support/dynamic-linker)" test/external_tools/readelf