about summary refs log tree commit diff
path: root/nixpkgs/pkgs/games/soi/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'nixpkgs/pkgs/games/soi/default.nix')
-rw-r--r--nixpkgs/pkgs/games/soi/default.nix28
1 files changed, 28 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/games/soi/default.nix b/nixpkgs/pkgs/games/soi/default.nix
new file mode 100644
index 000000000000..7f9f49f363a8
--- /dev/null
+++ b/nixpkgs/pkgs/games/soi/default.nix
@@ -0,0 +1,28 @@
+{ stdenv, fetchurl, cmake
+, boost, eigen2, lua, luabind, libGLU_combined, SDL }:
+
+stdenv.mkDerivation rec {
+  name = "soi-${version}";
+  version = "0.1.2";
+
+  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 libGLU_combined SDL ];
+
+  cmakeFlags = [
+    "-DEIGEN_INCLUDE_DIR=${eigen2}/include/eigen2"
+  ];
+
+  meta = with stdenv.lib; {
+    description = "A physics-based puzzle game";
+    maintainers = with maintainers; [ raskin ];
+    platforms = platforms.linux;
+    license = licenses.free;
+    downloadPage = https://sourceforge.net/projects/soi/files/;
+  };
+}