3
0
Fork 0
forked from mirrors/nixpkgs

cutemaze: unbreak on darwin

This commit is contained in:
Weijia Wang 2023-03-16 21:40:09 +02:00
parent a8fa8c2e90
commit a4122c898c

View file

@ -26,14 +26,20 @@ stdenv.mkDerivation rec {
buildInputs = [ buildInputs = [
qtbase qtbase
qtwayland
qtsvg qtsvg
] ++ lib.optionals stdenv.isLinux [
qtwayland
]; ];
postInstall = lib.optionalString stdenv.isDarwin '' installPhase = if stdenv.isDarwin then ''
runHook preInstall
mkdir -p $out/Applications mkdir -p $out/Applications
mv CuteMaze.app $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; { meta = with lib; {
changelog = "https://github.com/gottcode/cutemaze/blob/v${version}/ChangeLog"; changelog = "https://github.com/gottcode/cutemaze/blob/v${version}/ChangeLog";