blob: e5e718e3ca5b1626b783f2ecdc3b4db62d44727a (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
|
{ lib, stdenv, fetchurl, SDL, lua, libGLU, libGL }:
stdenv.mkDerivation rec {
pname = "bitsnbots";
version = "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/${pname}-${version}
cp -R bitsnbots resource scripts README $out/share/${pname}-${version}
mkdir -p $out/bin
ln -s $out/share/${pname}-${version}/bitsnbots $out/bin
'';
buildInputs = [ SDL lua libGLU libGL ];
meta = {
description = "Simple puzzle game with moving robots";
homepage = "http://moikmellah.org/blog/?page_id=19";
license = lib.licenses.gpl3Plus;
platforms = with lib.platforms; linux;
};
}
|