summary refs log tree commit diff
diff options
context:
space:
mode:
authorNick Novitski <github@nicknovitski.com>2016-06-04 15:14:47 +0000
committervbgl <vbgl@users.noreply.github.com>2016-06-04 17:14:47 +0200
commit3204c2753de75fa4fd6a66d5cbe909bac96cc681 (patch)
tree063d66a1b9a676bdcad0db6a8a6c24258cc0b048
parent53bf7e1907830a3d6c6043a272cd4553b2ce3466 (diff)
downloadnixpkgs-3204c2753de75fa4fd6a66d5cbe909bac96cc681.tar
nixpkgs-3204c2753de75fa4fd6a66d5cbe909bac96cc681.tar.gz
nixpkgs-3204c2753de75fa4fd6a66d5cbe909bac96cc681.tar.bz2
nixpkgs-3204c2753de75fa4fd6a66d5cbe909bac96cc681.tar.lz
nixpkgs-3204c2753de75fa4fd6a66d5cbe909bac96cc681.tar.xz
nixpkgs-3204c2753de75fa4fd6a66d5cbe909bac96cc681.tar.zst
nixpkgs-3204c2753de75fa4fd6a66d5cbe909bac96cc681.zip
gtypist: darwin compatibility (#15975)
-rw-r--r--pkgs/games/gtypist/default.nix7
1 files changed, 4 insertions, 3 deletions
diff --git a/pkgs/games/gtypist/default.nix b/pkgs/games/gtypist/default.nix
index c47a2317b0e..0f19537c62f 100644
--- a/pkgs/games/gtypist/default.nix
+++ b/pkgs/games/gtypist/default.nix
@@ -1,4 +1,4 @@
-{stdenv, fetchurl, makeWrapper, ncurses, perl, fortune}:
+{stdenv, fetchurl, makeWrapper, libiconv, ncurses, perl, fortune}:
 
 stdenv.mkDerivation rec {
   name = "gtypist-${version}";
@@ -9,7 +9,8 @@ stdenv.mkDerivation rec {
     sha256 = "0xzrkkmj0b1dw3yr0m9hml2y634cc4h61im6zwcq57s7285z8fn1";
   };
 
-  buildInputs = [ makeWrapper ncurses perl fortune ];
+  buildInputs = [ makeWrapper ncurses perl fortune ]
+   ++ stdenv.lib.optional stdenv.isDarwin libiconv;
 
   preFixup = ''
      wrapProgram "$out/bin/typefortune" \
@@ -20,7 +21,7 @@ stdenv.mkDerivation rec {
     homepage = http://www.gnu.org/software/gtypist;
     description = "Universal typing tutor";
     license = licenses.gpl3Plus;
-    platforms = platforms.linux;
+    platforms = platforms.linux ++ platforms.darwin;
     maintainers = with maintainers; [ pSub ];
   };
 }