summary refs log tree commit diff
path: root/pkgs/games/tuxtype
diff options
context:
space:
mode:
authorAaron Andersen <aaron@fosslib.net>2019-02-09 14:00:46 -0500
committerAaron Andersen <aaron@fosslib.net>2019-02-14 21:29:03 -0500
commitd01f931b9bd01068d26d38ea62025e8e48135961 (patch)
tree21c6d1410a659160549475bc239b76e462c90c4b /pkgs/games/tuxtype
parentb0db4571a4cb633bd4d392ddcb68db4021ed59da (diff)
downloadnixpkgs-d01f931b9bd01068d26d38ea62025e8e48135961.tar
nixpkgs-d01f931b9bd01068d26d38ea62025e8e48135961.tar.gz
nixpkgs-d01f931b9bd01068d26d38ea62025e8e48135961.tar.bz2
nixpkgs-d01f931b9bd01068d26d38ea62025e8e48135961.tar.lz
nixpkgs-d01f931b9bd01068d26d38ea62025e8e48135961.tar.xz
nixpkgs-d01f931b9bd01068d26d38ea62025e8e48135961.tar.zst
nixpkgs-d01f931b9bd01068d26d38ea62025e8e48135961.zip
tuxtyping: init at 1.8.3
Diffstat (limited to 'pkgs/games/tuxtype')
-rw-r--r--pkgs/games/tuxtype/default.nix39
1 files changed, 39 insertions, 0 deletions
diff --git a/pkgs/games/tuxtype/default.nix b/pkgs/games/tuxtype/default.nix
new file mode 100644
index 00000000000..752ba2f2d25
--- /dev/null
+++ b/pkgs/games/tuxtype/default.nix
@@ -0,0 +1,39 @@
+{ stdenv, fetchurl, pkgconfig, librsvg, SDL, SDL_image, SDL_mixer, SDL_ttf }:
+
+stdenv.mkDerivation rec {
+  version = "1.8.3";
+  name = "tuxtype-${version}";
+
+  src = fetchurl {
+    url = "https://github.com/tux4kids/tuxtype/archive/upstream/${version}.tar.gz";
+    sha256 = "0cv935ir14cd2c8bgsxxpi6id04f61170gslakmwhxn6r3pbw0lp";
+  };
+
+  patchPhase = ''
+    patchShebangs data/scripts/sed-linux.sh
+    patchShebangs data/themes/asturian/scripts/sed-linux.sh
+    patchShebangs data/themes/greek/scripts/sed-linux.sh
+    patchShebangs data/themes/hungarian/scripts/sed-linux.sh
+
+    substituteInPlace Makefile.am \
+      --replace "\$(MKDIR_P) -m 2755 " "\$(MKDIR_P) -m 755 " \
+      --replace "chown root:games \$(DESTDIR)\$(pkglocalstatedir)/words" " "
+
+    substituteInPlace Makefile.in \
+      --replace "\$(MKDIR_P) -m 2755 " "\$(MKDIR_P) -m 755 " \
+      --replace "chown root:games \$(DESTDIR)\$(pkglocalstatedir)/words" " "
+  '';
+
+  nativeBuildInputs = [ pkgconfig ];
+  buildInputs = [ librsvg SDL SDL_image SDL_mixer SDL_ttf ];
+
+  configureFlags = [ "--without-sdlpango" ];
+
+  meta = with stdenv.lib; {
+    description = "An Educational Typing Tutor Game Starring Tux, the Linux Penguin";
+    homepage = https://github.com/tux4kids/tuxtype;
+    license = licenses.gpl3Plus;
+    maintainers = [ maintainers.aanderse ];
+    platforms = platforms.linux;
+  };
+}