Merge pull request #221530 from wegank/cutemaze-darwin

cutemaze: unbreak on darwin

authored by

Weijia Wang and committed by
GitHub
c2536cfb 7574e25e

+9 -3
+9 -3
pkgs/games/cutemaze/default.nix
··· 26 26 27 27 buildInputs = [ 28 28 qtbase 29 + qtsvg 30 + ] ++ lib.optionals stdenv.isLinux [ 29 31 qtwayland 30 - qtsvg 31 32 ]; 32 33 33 - postInstall = lib.optionalString stdenv.isDarwin '' 34 + installPhase = if stdenv.isDarwin then '' 35 + runHook preInstall 36 + 34 37 mkdir -p $out/Applications 35 38 mv CuteMaze.app $out/Applications 36 - ''; 39 + makeWrapper $out/Applications/CuteMaze.app/Contents/MacOS/CuteMaze $out/bin/cutemaze 40 + 41 + runHook postInstall 42 + '' else null; 37 43 38 44 meta = with lib; { 39 45 changelog = "https://github.com/gottcode/cutemaze/blob/v${version}/ChangeLog";