glucose: fix build on aarch64-linux

This commit is contained in:
Weijia Wang 2022-11-01 16:22:30 +01:00
parent 017015a82b
commit ee09ecaca2

View file

@ -8,6 +8,11 @@ stdenv.mkDerivation rec {
sha256 = "0aahrkaq7n0z986fpqz66yz946nxardfi6dh8calzcfjpvqiraji"; sha256 = "0aahrkaq7n0z986fpqz66yz946nxardfi6dh8calzcfjpvqiraji";
}; };
postPatch = ''
substituteInPlace Main.cc \
--replace "defined(__linux__)" "defined(__linux__) && defined(__x86_64__)"
'';
buildInputs = [ zlib ]; buildInputs = [ zlib ];
sourceRoot = "glucose-syrup-${version}/simp"; sourceRoot = "glucose-syrup-${version}/simp";
@ -23,7 +28,5 @@ stdenv.mkDerivation rec {
license = licenses.mit; license = licenses.mit;
platforms = platforms.unix; platforms = platforms.unix;
maintainers = with maintainers; [ gebner ]; maintainers = with maintainers; [ gebner ];
# Build uses _FPU_EXTENDED macro
badPlatforms = [ "aarch64-linux" ];
}; };
} }