2018-01-13 06:58:22 +01:00
|
|
|
{ stdenv, fetchFromGitHub, autoreconfHook, jam, pkgconfig
|
2018-02-24 14:12:44 +01:00
|
|
|
, zlib, libxml2, libxslt, xproto, libX11, libGLU_combined, SDL
|
2018-01-13 06:58:22 +01:00
|
|
|
, SDL_mixer, SDL_image, SDL_ttf, SDL_gfx, physfs
|
2012-11-30 19:59:26 +01:00
|
|
|
}:
|
2018-01-13 06:58:22 +01:00
|
|
|
|
2012-11-30 19:59:26 +01:00
|
|
|
stdenv.mkDerivation rec {
|
2017-08-29 14:23:52 +02:00
|
|
|
name = "lincity-ng-${version}";
|
|
|
|
version = "2.9beta.20170715";
|
|
|
|
|
2018-01-13 06:58:22 +01:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "lincity-ng";
|
|
|
|
repo = "lincity-ng";
|
|
|
|
rev = "0c19714b811225238f310633e59f428934185e6b";
|
2017-08-29 14:23:52 +02:00
|
|
|
sha256 = "1gaj9fq97zmb0jsdw4rzrw34pimkmkwbfqps0glpqij4w3srz5f3";
|
2012-11-30 19:59:26 +01:00
|
|
|
};
|
|
|
|
|
2016-02-26 18:38:15 +01:00
|
|
|
hardeningDisable = [ "format" ];
|
2016-02-12 16:59:08 +01:00
|
|
|
|
2017-08-29 14:23:52 +02:00
|
|
|
nativeBuildInputs = [
|
2018-01-13 06:58:22 +01:00
|
|
|
autoreconfHook jam pkgconfig
|
2017-08-29 14:23:52 +02:00
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
2018-02-24 14:12:44 +01:00
|
|
|
zlib libxml2 libxslt xproto libX11 libGLU_combined SDL SDL_mixer SDL_image
|
2017-08-29 14:23:52 +02:00
|
|
|
SDL_ttf SDL_gfx physfs
|
|
|
|
];
|
|
|
|
|
2018-01-13 06:58:22 +01: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 19:59:26 +01:00
|
|
|
|
2018-01-13 06:58:22 +01:00
|
|
|
runHook postInstall
|
|
|
|
'';
|
2012-11-30 19:59:26 +01:00
|
|
|
|
2018-01-13 06:58:22 +01:00
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "City building game";
|
|
|
|
license = licenses.gpl2;
|
|
|
|
maintainers = with maintainers; [ raskin ];
|
|
|
|
platforms = platforms.linux;
|
2012-11-30 19:59:26 +01:00
|
|
|
};
|
|
|
|
}
|