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