summary refs log tree commit diff
path: root/pkgs/games/extremetuxracer/default.nix
blob: e35eb3266c2d07029ddabee3838674c9d0d9afdd (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
a :  
let 
  fetchurl = a.fetchurl;

  version = a.lib.attrByPath ["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 = "mirror://sourceforge/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 = "High speed arctic racing game based on Tux Racer";
    longDescription = ''
      ExtremeTuxRacer - Tux lies on his belly and accelerates down ice slopes.
    '';
  };
}