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