foxotron: unbreak on aarch64-darwin

This commit is contained in:
Weijia Wang 2022-12-22 19:25:58 +01:00 committed by Rick van Schijndel
parent 35cfca8a57
commit 2a6c2b682d

View File

@ -35,6 +35,11 @@ stdenv.mkDerivation rec {
sha256 = "sha256-WjsVvFhwVCzclHxA+Gu2YtR2yK0Opqhncwlg9FEhOLk=";
};
postPatch = ''
substituteInPlace CMakeLists.txt \
--replace "set(CMAKE_OSX_ARCHITECTURES x86_64)" ""
'';
nativeBuildInputs = [ cmake pkg-config makeWrapper ];
buildInputs = [ zlib ]
@ -70,7 +75,5 @@ stdenv.mkDerivation rec {
license = licenses.unlicense;
maintainers = with maintainers; [ OPNA2608 ];
platforms = platforms.all;
# never built on aarch64-darwin since first introduction in nixpkgs
broken = stdenv.isDarwin && stdenv.isAarch64;
};
}