From a4122c898c287d6a32a67b0206a0f1f969121974 Mon Sep 17 00:00:00 2001 From: Weijia Wang <9713184+wegank@users.noreply.github.com> Date: Thu, 16 Mar 2023 21:40:09 +0200 Subject: [PATCH] cutemaze: unbreak on darwin --- pkgs/games/cutemaze/default.nix | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/pkgs/games/cutemaze/default.nix b/pkgs/games/cutemaze/default.nix index a141591211c0..a0f2d725d4bf 100644 --- a/pkgs/games/cutemaze/default.nix +++ b/pkgs/games/cutemaze/default.nix @@ -26,14 +26,20 @@ stdenv.mkDerivation rec { buildInputs = [ qtbase - qtwayland qtsvg + ] ++ lib.optionals stdenv.isLinux [ + qtwayland ]; - postInstall = lib.optionalString stdenv.isDarwin '' + installPhase = if stdenv.isDarwin then '' + runHook preInstall + mkdir -p $out/Applications mv CuteMaze.app $out/Applications - ''; + makeWrapper $out/Applications/CuteMaze.app/Contents/MacOS/CuteMaze $out/bin/cutemaze + + runHook postInstall + '' else null; meta = with lib; { changelog = "https://github.com/gottcode/cutemaze/blob/v${version}/ChangeLog";