diff options
Diffstat (limited to 'nixpkgs/pkgs/games/bitsnbots/default.nix')
-rw-r--r-- | nixpkgs/pkgs/games/bitsnbots/default.nix | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/games/bitsnbots/default.nix b/nixpkgs/pkgs/games/bitsnbots/default.nix new file mode 100644 index 000000000000..94a1e6ee91ab --- /dev/null +++ b/nixpkgs/pkgs/games/bitsnbots/default.nix @@ -0,0 +1,36 @@ +{ stdenv, fetchurl, SDL, lua, libGLU_combined }: + +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.dev}/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 libGLU_combined ]; + + meta = { + description = "Simple puzzle game with moving robots"; + homepage = http://moikmellah.org/blog/?page_id=19; + license = stdenv.lib.licenses.gpl3Plus; + platforms = with stdenv.lib.platforms; linux; + }; +} |