diff --git a/pkgs/applications/science/logic/aspino/default.nix b/pkgs/applications/science/logic/aspino/default.nix index a9e39b3daf33..13ee15bc781d 100644 --- a/pkgs/applications/science/logic/aspino/default.nix +++ b/pkgs/applications/science/logic/aspino/default.nix @@ -23,7 +23,10 @@ stdenv.mkDerivation { postPatch = '' substituteInPlace Makefile \ --replace "GCC = g++" "GCC = c++" - + substituteInPlace src/main.cc \ + --replace "defined(__linux__)" "defined(__linux__) && defined(__x86_64__)" + substituteInPlace src/MaxSatSolver.cc \ + --replace "occ[i][sign(softLiterals[j])] > 0" "occ[i][sign(softLiterals[j])] != 0" patchShebangs . ''; @@ -45,9 +48,5 @@ stdenv.mkDerivation { platforms = platforms.unix; license = licenses.asl20; homepage = "https://alviano.net/software/maxino/"; - # See pkgs/applications/science/logic/glucose/default.nix - badPlatforms = [ "aarch64-linux" ]; - # src/MaxSatSolver.cc:280:62: error: ordered comparison between pointer and zero ('unsigned int *' and 'int') - broken = (stdenv.isDarwin && stdenv.isx86_64); # broken since 2019-05-07 on hydra }; }