2016-01-05 02:38:20 +00:00
|
|
|
{ stdenv, fetchurl, cmake
|
2018-02-24 13:12:44 +00:00
|
|
|
, boost, eigen2, lua, luabind, libGLU_combined, SDL }:
|
2011-01-28 08:13:52 +00:00
|
|
|
|
2015-07-14 09:19:56 +00:00
|
|
|
stdenv.mkDerivation rec {
|
2016-01-05 02:38:20 +00:00
|
|
|
name = "soi-${version}";
|
2016-01-24 19:31:44 +00:00
|
|
|
version = "0.1.2";
|
2016-01-05 02:38:20 +00:00
|
|
|
|
2015-07-14 09:19:56 +00:00
|
|
|
src = fetchurl {
|
2016-01-05 02:38:20 +00:00
|
|
|
url = "mirror://sourceforge/project/soi/Spheres%20of%20Influence-${version}-Source.tar.bz2";
|
|
|
|
name = "${name}.tar.bz2";
|
|
|
|
sha256 = "03c3wnvhd42qh8mi68lybf8nv6wzlm1nx16d6pdcn2jzgx1j2lzd";
|
2015-07-14 09:19:56 +00:00
|
|
|
};
|
2011-01-28 08:13:52 +00:00
|
|
|
|
2016-01-05 02:38:20 +00:00
|
|
|
nativeBuildInputs = [ cmake ];
|
2018-02-24 13:12:44 +00:00
|
|
|
buildInputs = [ boost lua luabind libGLU_combined SDL ];
|
2011-01-28 08:13:52 +00:00
|
|
|
|
2016-01-05 02:38:20 +00:00
|
|
|
cmakeFlags = [
|
|
|
|
"-DEIGEN_INCLUDE_DIR=${eigen2}/include/eigen2"
|
|
|
|
];
|
2014-11-06 00:44:33 +00:00
|
|
|
|
2015-07-14 09:19:56 +00:00
|
|
|
meta = with stdenv.lib; {
|
2011-01-28 08:13:52 +00:00
|
|
|
description = "A physics-based puzzle game";
|
2018-01-16 21:59:13 +00:00
|
|
|
maintainers = with maintainers; [ raskin ];
|
2015-07-14 09:19:56 +00:00
|
|
|
platforms = platforms.linux;
|
|
|
|
license = licenses.free;
|
2018-12-01 18:49:28 +00:00
|
|
|
downloadPage = https://sourceforge.net/projects/soi/files/;
|
2011-01-28 08:13:52 +00:00
|
|
|
};
|
2015-07-14 09:19:56 +00:00
|
|
|
}
|