diff options
author | Peter Hoeg <peter@hoeg.com> | 2018-01-13 13:58:22 +0800 |
---|---|---|
committer | Peter Hoeg <peter@hoeg.com> | 2018-01-17 21:59:59 +0800 |
commit | 883957c0e6a1241108ed5c1eea5461ba1d18a27e (patch) | |
tree | c40e30f679fc91d033a9685d8e2bbeceb949f793 /pkgs/games/lincity | |
parent | 7177c9e336af715f08c0b1fa0571ba702120f4a1 (diff) | |
download | nixlib-883957c0e6a1241108ed5c1eea5461ba1d18a27e.tar nixlib-883957c0e6a1241108ed5c1eea5461ba1d18a27e.tar.gz nixlib-883957c0e6a1241108ed5c1eea5461ba1d18a27e.tar.bz2 nixlib-883957c0e6a1241108ed5c1eea5461ba1d18a27e.tar.lz nixlib-883957c0e6a1241108ed5c1eea5461ba1d18a27e.tar.xz nixlib-883957c0e6a1241108ed5c1eea5461ba1d18a27e.tar.zst nixlib-883957c0e6a1241108ed5c1eea5461ba1d18a27e.zip |
lincity_ng: cleanups and compile against older physfs
Diffstat (limited to 'pkgs/games/lincity')
-rw-r--r-- | pkgs/games/lincity/ng.nix | 54 |
1 files changed, 34 insertions, 20 deletions
diff --git a/pkgs/games/lincity/ng.nix b/pkgs/games/lincity/ng.nix index 28fd6fe6e501..8004aa9931de 100644 --- a/pkgs/games/lincity/ng.nix +++ b/pkgs/games/lincity/ng.nix @@ -1,41 +1,55 @@ -{stdenv, fetchgit -, zlib, jam, pkgconfig, gettext, libxml2, libxslt, xproto, libX11, mesa, SDL -, SDL_mixer, SDL_image, SDL_ttf, SDL_gfx, physfs, autoconf, automake, libtool +{ stdenv, fetchFromGitHub, autoreconfHook, jam, pkgconfig +, zlib, libxml2, libxslt, xproto, libX11, mesa, SDL +, SDL_mixer, SDL_image, SDL_ttf, SDL_gfx, physfs }: + stdenv.mkDerivation rec { name = "lincity-ng-${version}"; version = "2.9beta.20170715"; - src = fetchgit { - url = "https://github.com/lincity-ng/lincity-ng"; - rev = "0c19714b811225238f310633e59f428934185e6b"; + src = fetchFromGitHub { + owner = "lincity-ng"; + repo = "lincity-ng"; + rev = "0c19714b811225238f310633e59f428934185e6b"; sha256 = "1gaj9fq97zmb0jsdw4rzrw34pimkmkwbfqps0glpqij4w3srz5f3"; }; hardeningDisable = [ "format" ]; nativeBuildInputs = [ - jam autoconf automake libtool pkgconfig + autoreconfHook jam pkgconfig ]; buildInputs = [ - zlib gettext libxml2 libxslt xproto libX11 mesa SDL SDL_mixer SDL_image + zlib libxml2 libxslt xproto libX11 mesa SDL SDL_mixer SDL_image SDL_ttf SDL_gfx physfs ]; - preConfigure = '' - ./autogen.sh - ''; + 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 - installPhase = '' - touch CREDITS - AR='ar r' jam install - ''; + runHook postInstall + ''; - meta = { - description = ''City building game''; - license = stdenv.lib.licenses.gpl2; - platforms = stdenv.lib.platforms.linux; - maintainers = [stdenv.lib.maintainers.raskin]; + meta = with stdenv.lib; { + description = "City building game"; + license = licenses.gpl2; + maintainers = with maintainers; [ raskin ]; + platforms = platforms.linux; }; } |