-
-
Notifications
You must be signed in to change notification settings - Fork 14.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
tuxtyping: init at 1.8.3
- Loading branch information
Showing
3 changed files
with
79 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
{ stdenv, fetchFromGitHub, fetchurl, cmake, pkgconfig, SDL, SDL_image, SDL_mixer, SDL_net, SDL_ttf, libpng, librsvg, libxml2 }: | ||
|
||
stdenv.mkDerivation rec { | ||
version = "0.1.1"; | ||
pname = "t4kcommon"; | ||
|
||
src = fetchFromGitHub { | ||
owner = "tux4kids"; | ||
repo = "t4kcommon"; | ||
rev = "upstream/${version}"; | ||
sha256 = "13q02xpmps9qg8zrzzy2gzv4a6afgi28lxk4z242j780v0gphchp"; | ||
}; | ||
|
||
patches = [ | ||
# patch from debian to support libpng16 instead of libpng12 | ||
(fetchurl { | ||
url = "https://salsa.debian.org/tux4kids-pkg-team/t4kcommon/raw/f7073fa384f5a725139f54844e59b57338b69dc7/debian/patches/libpng16.patch"; | ||
sha256 = "1lcpkdy5gvxgljg1vkrxych74amq0gramb1snj2831dam48is054"; | ||
}) | ||
]; | ||
|
||
nativeBuildInputs = [ cmake pkgconfig ]; | ||
buildInputs = [ SDL SDL_image SDL_mixer SDL_net SDL_ttf libpng librsvg libxml2 ]; | ||
|
||
meta = with stdenv.lib; { | ||
description = "A library of code shared between tuxmath and tuxtype."; | ||
homepage = https://github.com/tux4kids/t4kcommon; | ||
license = licenses.gpl3Plus; | ||
maintainers = [ maintainers.aanderse ]; | ||
platforms = platforms.linux; | ||
}; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
{ stdenv, fetchFromGitHub, autoreconfHook, pkgconfig, librsvg, libxml2, SDL, SDL_image, SDL_mixer, SDL_net, SDL_ttf, t4kcommon }: | ||
|
||
stdenv.mkDerivation rec { | ||
version = "1.8.3"; | ||
pname = "tuxtype"; | ||
|
||
src = fetchFromGitHub { | ||
owner = "tux4kids"; | ||
repo = "tuxtype"; | ||
rev = "upstream/${version}"; | ||
sha256 = "1i33rhi9gpzfml4hd73s18h6p2s8zcr26va2vwf2pqqd9fhdwpsg"; | ||
}; | ||
|
||
postPatch = '' | ||
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" " " | ||
# required until the following has been merged: | ||
# https://salsa.debian.org/tux4kids-pkg-team/tuxtype/merge_requests/1 | ||
substituteInPlace configure.ac \ | ||
--replace 'CFLAGS="$CFLAGS $SDL_IMAGE"' 'CFLAGS="$CFLAGS $SDL_IMAGE_CFLAGS"' \ | ||
--replace 'PKG_CHECK_MODULES([SDL_ttf],' 'PKG_CHECK_MODULES([SDL_TTF],' | ||
''; | ||
|
||
nativeBuildInputs = [ autoreconfHook pkgconfig ]; | ||
buildInputs = [ librsvg libxml2 SDL SDL_image SDL_mixer SDL_net SDL_ttf t4kcommon ]; | ||
|
||
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; | ||
}; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters