2021-01-15 04:31:39 +00:00
|
|
|
{ lib, stdenv, fetchurl, SDL, lua, libGLU, libGL }:
|
2012-02-11 14:33:27 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "bitsnbots-20111230";
|
|
|
|
|
|
|
|
src = fetchurl {
|
2020-04-01 01:11:51 +00:00
|
|
|
url = "http://moikmellah.org/downloads/bitsnbots/bitsnbots.source.tgz";
|
2012-02-11 14:33:27 +00:00
|
|
|
sha256 = "1iiclm6bfpp2p6d692hpnw25xyr48ki1xkcxa7fvh5b7m1519gsp";
|
|
|
|
};
|
|
|
|
|
|
|
|
patchPhase = ''
|
|
|
|
sed -i '/^INCLUDE/d' Makefile.linux
|
|
|
|
'';
|
|
|
|
|
|
|
|
makefile = "Makefile.linux";
|
|
|
|
|
2015-10-11 14:21:43 +00:00
|
|
|
NIX_CFLAGS_COMPILE = "-I${SDL.dev}/include/SDL";
|
2012-02-11 14:33:27 +00:00
|
|
|
|
|
|
|
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
|
|
|
|
'';
|
|
|
|
|
2019-11-10 16:44:34 +00:00
|
|
|
buildInputs = [ SDL lua libGLU libGL ];
|
2012-02-11 14:33:27 +00:00
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "Simple puzzle game with moving robots";
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "http://moikmellah.org/blog/?page_id=19";
|
2021-01-15 04:31:39 +00:00
|
|
|
license = lib.licenses.gpl3Plus;
|
|
|
|
platforms = with lib.platforms; linux;
|
2012-02-11 14:33:27 +00:00
|
|
|
};
|
|
|
|
}
|