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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
|
{ stdenv
, SDL2
, SDL2_gfx
, SDL2_image
, SDL2_mixer
, SDL2_ttf
, autoreconfHook
, fetchFromGitHub
, jam
, lib
, libGL
, libGLU
, libX11
, libxml2
, libxslt
, physfs
, pkg-config
, xorgproto
, zlib
}:
stdenv.mkDerivation {
pname = "lincity-ng";
version = "2.9beta.20211125";
src = fetchFromGitHub {
owner = "lincity-ng";
repo = "lincity-ng";
rev = "b9062bec252632ca5d26b98d71453b8762c63173";
sha256 = "0l07cn8rmpmlqdppjc2ikh5c7xmwib27504zpmn3n9pryp394r46";
};
hardeningDisable = [ "format" ];
nativeBuildInputs = [
autoreconfHook
jam
pkg-config
];
buildInputs = [
SDL2
SDL2_gfx
SDL2_image
SDL2_mixer
SDL2_ttf
libGL
libGLU
libX11
libxml2
libxslt
physfs
xorgproto
zlib
];
autoreconfPhase = ''
./autogen.sh
'';
buildPhase = ''
runHook preBuild
AR='ar r' jam -j $NIX_BUILD_CORES
runHook postBuild
'';
installPhase = ''
runHook preInstall
touch CREDITS
AR='ar r' jam install
runHook postInstall
'';
meta = with lib; {
description = "City building game";
license = licenses.gpl2;
maintainers = with maintainers; [ raskin ];
platforms = platforms.linux;
};
}
|