2021-01-15 22:18:51 +00:00
|
|
|
{ lib, stdenv, fetchurl, SDL, lua, libGLU, libGL }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2021-06-28 23:13:55 +00:00
|
|
|
pname = "bitsnbots";
|
|
|
|
version = "20111230";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
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 = ''
|
2021-06-28 23:13:55 +00:00
|
|
|
mkdir -p $out/share/${pname}-${version}
|
|
|
|
cp -R bitsnbots resource scripts README $out/share/${pname}-${version}
|
2020-04-24 23:36:52 +00:00
|
|
|
mkdir -p $out/bin
|
2021-06-28 23:13:55 +00:00
|
|
|
ln -s $out/share/${pname}-${version}/bitsnbots $out/bin
|
2020-04-24 23:36:52 +00:00
|
|
|
'';
|
|
|
|
|
|
|
|
buildInputs = [ SDL lua libGLU libGL ];
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "Simple puzzle game with moving robots";
|
|
|
|
homepage = "http://moikmellah.org/blog/?page_id=19";
|
2021-01-15 22:18:51 +00:00
|
|
|
license = lib.licenses.gpl3Plus;
|
|
|
|
platforms = with lib.platforms; linux;
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|