2021-01-16 18:04:36 -08:00
|
|
|
{ lib, stdenv, fetchFromGitHub, autoreconfHook, jam, pkg-config
|
2019-11-10 08:44:34 -08:00
|
|
|
, zlib, libxml2, libxslt, xorgproto, libX11, libGLU, libGL, SDL
|
2018-01-12 21:58:22 -08:00
|
|
|
, SDL_mixer, SDL_image, SDL_ttf, SDL_gfx, physfs
|
2012-11-30 10:59:26 -08:00
|
|
|
}:
|
2018-01-12 21:58:22 -08:00
|
|
|
|
2019-08-13 14:52:01 -07:00
|
|
|
stdenv.mkDerivation {
|
2019-08-15 05:41:18 -07:00
|
|
|
pname = "lincity-ng";
|
2017-08-29 05:23:52 -07:00
|
|
|
version = "2.9beta.20170715";
|
|
|
|
|
2018-01-12 21:58:22 -08:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "lincity-ng";
|
|
|
|
repo = "lincity-ng";
|
|
|
|
rev = "0c19714b811225238f310633e59f428934185e6b";
|
2017-08-29 05:23:52 -07:00
|
|
|
sha256 = "1gaj9fq97zmb0jsdw4rzrw34pimkmkwbfqps0glpqij4w3srz5f3";
|
2012-11-30 10:59:26 -08:00
|
|
|
};
|
|
|
|
|
2016-02-26 09:38:15 -08:00
|
|
|
hardeningDisable = [ "format" ];
|
2016-02-12 07:59:08 -08:00
|
|
|
|
2017-08-29 05:23:52 -07:00
|
|
|
nativeBuildInputs = [
|
2021-01-16 18:04:36 -08:00
|
|
|
autoreconfHook jam pkg-config
|
2017-08-29 05:23:52 -07:00
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
2019-11-10 08:44:34 -08:00
|
|
|
zlib libxml2 libxslt xorgproto libX11 libGLU libGL SDL SDL_mixer SDL_image
|
2017-08-29 05:23:52 -07:00
|
|
|
SDL_ttf SDL_gfx physfs
|
|
|
|
];
|
|
|
|
|
2018-01-12 21:58:22 -08: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 10:59:26 -08:00
|
|
|
|
2018-01-12 21:58:22 -08:00
|
|
|
runHook postInstall
|
|
|
|
'';
|
2012-11-30 10:59:26 -08:00
|
|
|
|
2021-01-10 23:54:33 -08:00
|
|
|
meta = with lib; {
|
2018-01-12 21:58:22 -08:00
|
|
|
description = "City building game";
|
|
|
|
license = licenses.gpl2;
|
|
|
|
maintainers = with maintainers; [ raskin ];
|
|
|
|
platforms = platforms.linux;
|
2012-11-30 10:59:26 -08:00
|
|
|
};
|
|
|
|
}
|