about summary refs log tree commit diff
path: root/pkgs/games
diff options
context:
space:
mode:
authorMatthew Bauer <mjbauer95@gmail.com>2018-06-10 19:21:36 -0400
committerMatthew Bauer <mjbauer95@gmail.com>2018-06-10 19:23:11 -0400
commit97e8bcc925c6c848bf22c75daaa66f7eff1e2101 (patch)
tree30d5ddf75b434330fd9c7df7d71a3602a6739a06 /pkgs/games
parent7170ab84339708b96bf12a912a36d6e0e1f712bb (diff)
dwarf-therapist: supports darwin
Diffstat (limited to 'pkgs/games')
-rw-r--r--pkgs/games/dwarf-fortress/dwarf-therapist/default.nix7
1 files changed, 6 insertions, 1 deletions
diff --git a/pkgs/games/dwarf-fortress/dwarf-therapist/default.nix b/pkgs/games/dwarf-fortress/dwarf-therapist/default.nix
index 2e54258c4be99..305f3cdb1fa38 100644
--- a/pkgs/games/dwarf-fortress/dwarf-therapist/default.nix
+++ b/pkgs/games/dwarf-fortress/dwarf-therapist/default.nix
@@ -14,11 +14,16 @@ stdenv.mkDerivation rec {
   buildInputs = [ qtbase qtdeclarative ];
   nativeBuildInputs = [ texlive cmake ninja ];
 
+  installPhase = if stdenv.isDarwin then ''
+    mkdir -p $out/Applications
+    cp -r DwarfTherapist.app $out/Applications
+  '' else null;
+
   meta = with stdenv.lib; {
     description = "Tool to manage dwarves in in a running game of Dwarf Fortress";
     maintainers = with maintainers; [ the-kenny abbradar bendlas ];
     license = licenses.mit;
-    platforms = [ "x86_64-linux" "i686-linux" ];
+    platforms = platforms.unix;
     homepage = https://github.com/Dwarf-Therapist/Dwarf-Therapist;
   };
 }