summary refs log tree commit diff
path: root/pkgs/games/xmoto/default.nix
blob: 971d29584c18513d55abf42d114b9c6e3baac049 (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
a :  
let 
  s = import ./src-for-default.nix;
  buildInputs = with a; [
    chipmunk sqlite curl zlib bzip2 libjpeg libpng
    freeglut mesa SDL SDL_mixer SDL_image SDL_net SDL_ttf 
    lua5 ode
  ];
in
rec {
  src = a.fetchUrlFromSrcInfo s;

  inherit (s) name;
  inherit buildInputs;
  configureFlags = [];

  /* doConfigure should be removed if not needed */
  phaseNames = [ "doPatch" "doConfigure" "doMakeInstall"];

  patches = [ ./64bit-ftbs.patch ];
      
  meta = {
    description = "X-Moto - obstacled race game";
    maintainers = [
      a.lib.maintainers.raskin
      a.lib.maintainers.viric
    ];
    platforms = with a.lib.platforms; 
      linux ++ freebsd;
  };
}