Merge pull request #268619 from tweag/lib-descriptions
[NixPkgs.git] / pkgs / games / soi / default.nix
blobeb214752df84144d69828ffd3973f23cb815745e
1 { lib, stdenv, fetchurl, cmake
2 , boost, eigen2, lua, luabind, libGLU, libGL, SDL }:
4 stdenv.mkDerivation rec {
5   pname = "soi";
6   version = "0.1.2";
8   src = fetchurl {
9     url = "mirror://sourceforge/project/soi/Spheres%20of%20Influence-${version}-Source.tar.bz2";
10     name = "${pname}-${version}.tar.bz2";
11     sha256 = "03c3wnvhd42qh8mi68lybf8nv6wzlm1nx16d6pdcn2jzgx1j2lzd";
12   };
14   nativeBuildInputs = [ cmake ];
15   buildInputs = [ boost lua luabind libGLU libGL SDL ];
17   cmakeFlags = [
18     "-DEIGEN_INCLUDE_DIR=${eigen2}/include/eigen2"
19     "-DLUABIND_LIBRARY=${luabind}/lib/libluabind09.a"
20   ];
22   meta = with lib; {
23     description = "A physics-based puzzle game";
24     maintainers = with maintainers; [ raskin ];
25     platforms = platforms.linux;
26     license = licenses.free;
27     downloadPage = "https://sourceforge.net/projects/soi/files/";
28   };