From 2a6c2b682da61e2cfa78858b747bde3bfdaf268c Mon Sep 17 00:00:00 2001 From: Weijia Wang <9713184+wegank@users.noreply.github.com> Date: Thu, 22 Dec 2022 19:25:58 +0100 Subject: [PATCH] foxotron: unbreak on aarch64-darwin --- pkgs/applications/graphics/foxotron/default.nix | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/pkgs/applications/graphics/foxotron/default.nix b/pkgs/applications/graphics/foxotron/default.nix index c06e707b348f..2bcc43751128 100644 --- a/pkgs/applications/graphics/foxotron/default.nix +++ b/pkgs/applications/graphics/foxotron/default.nix @@ -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; }; }