2022-05-27 19:23:58 +01:00
|
|
|
{ stdenv
|
|
|
|
, SDL2
|
|
|
|
, SDL2_gfx
|
|
|
|
, SDL2_image
|
|
|
|
, SDL2_mixer
|
|
|
|
, SDL2_ttf
|
|
|
|
, autoreconfHook
|
|
|
|
, fetchFromGitHub
|
|
|
|
, jam
|
|
|
|
, lib
|
|
|
|
, libGL
|
|
|
|
, libGLU
|
|
|
|
, libX11
|
|
|
|
, libxml2
|
|
|
|
, libxslt
|
|
|
|
, physfs
|
|
|
|
, pkg-config
|
|
|
|
, xorgproto
|
|
|
|
, zlib
|
2012-11-30 18:59:26 +00:00
|
|
|
}:
|
2018-01-13 05:58:22 +00:00
|
|
|
|
2019-08-13 22:52:01 +01:00
|
|
|
stdenv.mkDerivation {
|
2019-08-15 13:41:18 +01:00
|
|
|
pname = "lincity-ng";
|
2022-05-27 19:23:58 +01:00
|
|
|
version = "2.9beta.20211125";
|
2017-08-29 13:23:52 +01:00
|
|
|
|
2018-01-13 05:58:22 +00:00
|
|
|
src = fetchFromGitHub {
|
2022-05-27 19:23:58 +01:00
|
|
|
owner = "lincity-ng";
|
|
|
|
repo = "lincity-ng";
|
|
|
|
rev = "b9062bec252632ca5d26b98d71453b8762c63173";
|
|
|
|
sha256 = "0l07cn8rmpmlqdppjc2ikh5c7xmwib27504zpmn3n9pryp394r46";
|
2012-11-30 18:59:26 +00:00
|
|
|
};
|
|
|
|
|
2016-02-26 17:38:15 +00:00
|
|
|
hardeningDisable = [ "format" ];
|
2016-02-12 15:59:08 +00:00
|
|
|
|
2017-08-29 13:23:52 +01:00
|
|
|
nativeBuildInputs = [
|
2022-05-27 19:23:58 +01:00
|
|
|
autoreconfHook
|
|
|
|
jam
|
|
|
|
pkg-config
|
2017-08-29 13:23:52 +01:00
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
2022-05-27 19:23:58 +01:00
|
|
|
SDL2
|
|
|
|
SDL2_gfx
|
|
|
|
SDL2_image
|
|
|
|
SDL2_mixer
|
|
|
|
SDL2_ttf
|
|
|
|
libGL
|
|
|
|
libGLU
|
|
|
|
libX11
|
|
|
|
libxml2
|
|
|
|
libxslt
|
|
|
|
physfs
|
|
|
|
xorgproto
|
|
|
|
zlib
|
2017-08-29 13:23:52 +01:00
|
|
|
];
|
|
|
|
|
2018-01-13 05:58:22 +00:00
|
|
|
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
|
2012-11-30 18:59:26 +00:00
|
|
|
|
2018-01-13 05:58:22 +00:00
|
|
|
runHook postInstall
|
|
|
|
'';
|
2012-11-30 18:59:26 +00:00
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2018-01-13 05:58:22 +00:00
|
|
|
description = "City building game";
|
2024-03-19 02:14:51 +00:00
|
|
|
mainProgram = "lincity-ng";
|
2024-07-03 10:37:36 +01:00
|
|
|
license = licenses.gpl2Plus;
|
2018-01-13 05:58:22 +00:00
|
|
|
maintainers = with maintainers; [ raskin ];
|
|
|
|
platforms = platforms.linux;
|
2012-11-30 18:59:26 +00:00
|
|
|
};
|
|
|
|
}
|