mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-10-31 14:41:27 +00:00
Extreme Tux Racer
svn path=/nixpkgs/trunk/; revision=14152
This commit is contained in:
parent
f1546e64c4
commit
3157e4e829
31
pkgs/games/extremetuxracer/default.nix
Normal file
31
pkgs/games/extremetuxracer/default.nix
Normal file
@ -0,0 +1,31 @@
|
|||||||
|
a :
|
||||||
|
let
|
||||||
|
fetchurl = a.fetchurl;
|
||||||
|
|
||||||
|
version = a.lib.getAttr ["version"] "0.5beta" a;
|
||||||
|
buildInputs = with a; [
|
||||||
|
mesa libX11 xproto tcl freeglut
|
||||||
|
SDL SDL_mixer libXi inputproto
|
||||||
|
libXmu libXext xextproto libXt libSM libICE
|
||||||
|
libpng pkgconfig gettext intltool
|
||||||
|
];
|
||||||
|
in
|
||||||
|
rec {
|
||||||
|
src = fetchurl {
|
||||||
|
url = "http://downloads.sourceforge.net/extremetuxracer/extremetuxracer-${version}.tar.gz";
|
||||||
|
sha256 = "04d99fsfna5mc9apjxsiyw0zgnswy33kwmm1s9d03ihw6rba2zxs";
|
||||||
|
};
|
||||||
|
|
||||||
|
inherit buildInputs;
|
||||||
|
configureFlags = [
|
||||||
|
"--with-tcl=${a.tcl}/lib"
|
||||||
|
];
|
||||||
|
|
||||||
|
/* doConfigure should be removed if not needed */
|
||||||
|
phaseNames = ["doConfigure" "doMakeInstall"];
|
||||||
|
|
||||||
|
name = "extremetuxracer-" + version;
|
||||||
|
meta = {
|
||||||
|
description = "ExtremeTuxRacer - Tux lies on his belly and accelerates down ice slopes..";
|
||||||
|
};
|
||||||
|
}
|
31
pkgs/games/tuxracer/default.nix
Normal file
31
pkgs/games/tuxracer/default.nix
Normal file
@ -0,0 +1,31 @@
|
|||||||
|
a :
|
||||||
|
let
|
||||||
|
fetchurl = a.fetchurl;
|
||||||
|
|
||||||
|
version = a.lib.getAttr ["version"] "0.61" a;
|
||||||
|
buildInputs = with a; [
|
||||||
|
mesa libX11 xproto tcl freeglut
|
||||||
|
];
|
||||||
|
in
|
||||||
|
rec {
|
||||||
|
src = fetchurl {
|
||||||
|
url = "http://downloads.sourceforge.net/tuxracer/tuxracer-${version}.tar.gz";
|
||||||
|
sha256 = "1zqyz4ig0kax5q30vcgbavcjw36wsyp9yjsd2dbfb3srh28d04d3";
|
||||||
|
};
|
||||||
|
|
||||||
|
inherit buildInputs;
|
||||||
|
configureFlags = [];
|
||||||
|
|
||||||
|
/* doConfigure should be removed if not needed */
|
||||||
|
phaseNames = ["preConfigure" "doConfigure" "doMakeInstall"];
|
||||||
|
|
||||||
|
preConfigure = a.FullDepEntry (''
|
||||||
|
sed -e '/TCL_LIB_LIST=/atcl8.4' -i configure
|
||||||
|
export NIX_CFLAGS_COMPILE="$NIX_CFLAGS_COMPILE -DGLX_GLXEXT_LEGACY=1"
|
||||||
|
'') ["minInit" "doUnpack"];
|
||||||
|
|
||||||
|
name = "tuxracer-" + version;
|
||||||
|
meta = {
|
||||||
|
description = "TuxRacer - Tux lies on his belly and accelerates down ice slopes..";
|
||||||
|
};
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user