tuxtyping: init at 1.8.3
This commit is contained in:
parent
b0db4571a4
commit
d01f931b9b
39
pkgs/games/tuxtype/default.nix
Normal file
39
pkgs/games/tuxtype/default.nix
Normal file
@ -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;
|
||||
};
|
||||
}
|
@ -21133,6 +21133,8 @@ in
|
||||
|
||||
tuxpaint = callPackage ../games/tuxpaint { };
|
||||
|
||||
tuxtype = callPackage ../games/tuxtype { };
|
||||
|
||||
speed_dreams = callPackage ../games/speed-dreams {
|
||||
# Torcs wants to make shared libraries linked with plib libraries (it provides static).
|
||||
# i686 is the only platform I know than can do that linking without plib built with -fPIC
|
||||
|
Loading…
Reference in New Issue
Block a user