about summary refs log tree commit diff
path: root/pkgs/games/bitsnbots
diff options
context:
space:
mode:
authorLluís Batlle i Rossell <viric@vicerveza.homeunix.net>2012-02-11 14:33:27 +0000
committerLluís Batlle i Rossell <viric@vicerveza.homeunix.net>2012-02-11 14:33:27 +0000
commitc2e5c08d7208513414719e52121176f379354131 (patch)
tree14c819c6ceb85dd985647223f08ef5a644418657 /pkgs/games/bitsnbots
parentaf2f845060ebca1865829bfdd1c1a1e422d499ba (diff)
downloadnixlib-c2e5c08d7208513414719e52121176f379354131.tar
nixlib-c2e5c08d7208513414719e52121176f379354131.tar.gz
nixlib-c2e5c08d7208513414719e52121176f379354131.tar.bz2
nixlib-c2e5c08d7208513414719e52121176f379354131.tar.lz
nixlib-c2e5c08d7208513414719e52121176f379354131.tar.xz
nixlib-c2e5c08d7208513414719e52121176f379354131.tar.zst
nixlib-c2e5c08d7208513414719e52121176f379354131.zip
Adding the game Bits&Bots
svn path=/nixpkgs/trunk/; revision=32227
Diffstat (limited to 'pkgs/games/bitsnbots')
-rw-r--r--pkgs/games/bitsnbots/default.nix36
1 files changed, 36 insertions, 0 deletions
diff --git a/pkgs/games/bitsnbots/default.nix b/pkgs/games/bitsnbots/default.nix
new file mode 100644
index 000000000000..252f881c3752
--- /dev/null
+++ b/pkgs/games/bitsnbots/default.nix
@@ -0,0 +1,36 @@
+{ stdenv, fetchurl, SDL, lua, mesa }:
+
+stdenv.mkDerivation rec {
+  name = "bitsnbots-20111230";
+
+  src = fetchurl {
+    url = http://moikmellah.org/downloads/bitsnbots/bitsnbots.source.tgz;
+    sha256 = "1iiclm6bfpp2p6d692hpnw25xyr48ki1xkcxa7fvh5b7m1519gsp";
+  };
+
+  patchPhase = ''
+    sed -i '/^INCLUDE/d' Makefile.linux
+  '';
+
+  makefile = "Makefile.linux";
+
+  NIX_CFLAGS_COMPILE = "-I${SDL}/include/SDL";
+
+  NIX_LDFLAGS = "-lGL";
+
+  installPhase = ''
+    mkdir -p $out/share/${name}
+    cp -R bitsnbots resource scripts README $out/share/${name}
+    mkdir -p $out/bin
+    ln -s $out/share/${name}/bitsnbots $out/bin
+  '';
+
+  buildInputs = [ SDL lua mesa ];
+
+  meta = {
+    description = "Simple puzzle game with moving robots";
+    homepage = "http://moikmellah.org/blog/?page_id=19";
+    license = "GPLv3+";
+    platforms = with stdenv.lib.platforms; linux;
+  };
+}