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