summary refs log tree commit diff
path: root/pkgs/games/soi/default.nix
blob: 2e8a085ef474148051a3c6ca256e2e38a0f3c59d (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
{ stdenv, fetchurl, cmake
, boost, eigen2, lua, luabind, mesa, SDL }:

let version = "0.1.2"; in
stdenv.mkDerivation rec {
  name = "soi-${version}";

  src = fetchurl {
    url = "mirror://sourceforge/project/soi/Spheres%20of%20Influence-${version}-Source.tar.bz2";
    name = "${name}.tar.bz2";
    sha256 = "03c3wnvhd42qh8mi68lybf8nv6wzlm1nx16d6pdcn2jzgx1j2lzd";
  };

  nativeBuildInputs = [ cmake ];
  buildInputs = [ boost lua luabind mesa SDL ];

  cmakeFlags = [
    "-DEIGEN_INCLUDE_DIR=${eigen2}/include/eigen2"
  ];

  meta = with stdenv.lib; {
    description = "A physics-based puzzle game";
    maintainers = with maintainers; [ raskin nckx ];
    platforms = platforms.linux;
    license = licenses.free;
    broken = true;
    downloadPage = http://sourceforge.net/projects/soi/files/;
  };
}