blob: fd2a2f18f39d37e95b9c3ddd09a70d895759c1df (
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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
|
a :
let
fetchurl = a.fetchurl;
version = a.lib.attrByPath ["version"] "0.57beta8" a;
buildInputs = with a; [
libX11 xproto gd SDL SDL_image SDL_mixer zlib libxml2
pkgconfig
];
in
rec {
src = fetchurl {
url = "http://downloads.sourceforge.net/project/openlierox/openlierox/OpenLieroX%200.57%20Beta8/OpenLieroX_0.57_beta8.src.tar.bz2";
sha256 = "1a3p03bi5v2mca7323mrckab9wsj83fjfcr6akrh9a6nlljcdn8d";
};
inherit buildInputs;
configureFlags = [];
/* doConfigure should be removed if not needed */
phaseNames = ["doInstall"];
setParams = a.noDepEntry (''
export SYSTEM_DATA_DIR="$out/share"
export BIN_DIR="$out/bin"
export DOC_DIR="$out/share/doc"
export PIXMAP_DIR="$out/share/pixmap"
export HAWKNL_BUILTIN=1
export LIBZIP_BUILTIN=1
export X11=1
export DEBUG=1
'');
doBuild=a.fullDepEntry (''
sed -re 's/ -1/ 255 /g' -i *.sh
source functions.sh
export INCLUDE_PATH=$(echo $NIX_CFLAGS_COMPILE | grep_param -I)
bash compile.sh
'') ["doUnpack" "addInputs" "setParams"];
doInstall = a.fullDepEntry (''
ensureDir $BIN_DIR $SYSTEM_DATA_DIR $DOC_DIR $PIXMAP_DIR
bash install.sh
'') ["doBuild" "addInputs" "setParams" "defEnsureDir"];
name = "openlierox-" + version;
meta = {
description = "Real-time game with Worms-like shooting";
maintainers = [
];
};
}
|