From 1cfad78781dbf7dd3e67a9c1fbbe8f5bfa16bab4 Mon Sep 17 00:00:00 2001 From: Orivej Desh Date: Thu, 14 Dec 2017 12:05:09 +0000 Subject: [PATCH] cutemaze: support darwin --- pkgs/games/cutemaze/default.nix | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/pkgs/games/cutemaze/default.nix b/pkgs/games/cutemaze/default.nix index f63cbef83d2..19fcbb2443d 100644 --- a/pkgs/games/cutemaze/default.nix +++ b/pkgs/games/cutemaze/default.nix @@ -13,12 +13,16 @@ stdenv.mkDerivation rec { buildInputs = [ qtsvg ]; + postInstall = stdenv.lib.optionalString stdenv.isDarwin '' + mkdir -p $out/Applications + mv CuteMaze.app $out/Applications + ''; + meta = with stdenv.lib; { homepage = https://gottcode.org/cutemaze/; description = "Simple, top-down game in which mazes are randomly generated"; license = licenses.gpl3Plus; maintainers = with maintainers; [ dotlambda ]; - # TODO: add darwin once tested - platforms = with platforms; linux; + platforms = platforms.unix; }; }