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";