aboutsummaryrefslogtreecommitdiff
path: root/pkgs/games/lincity
diff options
context:
space:
mode:
authorMichael Raskin <7c6f434c@mail.ru>2017-08-29 14:23:52 +0200
committerMichael Raskin <7c6f434c@mail.ru>2017-08-29 14:24:12 +0200
commit09eb4adf91e80ce44953894cf8126aa02377e514 (patch)
treeb302e92e8bc836add79c622e4526ba23870560b0 /pkgs/games/lincity
parente9648952dc32f1d11956567844060b0ffe8ee307 (diff)
lincity_ng: 2.0 -> 2.9beta20170715
Diffstat (limited to 'pkgs/games/lincity')
-rw-r--r--pkgs/games/lincity/ng.nix48
-rw-r--r--pkgs/games/lincity/ng.upstream5
2 files changed, 25 insertions, 28 deletions
diff --git a/pkgs/games/lincity/ng.nix b/pkgs/games/lincity/ng.nix
index b6574eaf39e3..4ca2cd271cdb 100644
--- a/pkgs/games/lincity/ng.nix
+++ b/pkgs/games/lincity/ng.nix
@@ -1,39 +1,41 @@
-{stdenv, fetchurl
+{stdenv, fetchgit
, zlib, jam, pkgconfig, gettext, libxml2, libxslt, xproto, libX11, mesa, SDL
-, SDL_mixer, SDL_image, SDL_ttf, SDL_gfx, physfs
+, SDL_mixer, SDL_image, SDL_ttf, SDL_gfx, physfs, autoconf, automake, libtool
}:
-let s = # Generated upstream information
- rec {
- baseName="lincity";
- version="2.0";
- name="lincity-2.0";
- hash="01k6n304qj0z5zmqr49gqirp0jmx2b0cpisgkxk1ga67vyjhdcm6";
- url="http://pkgs.fedoraproject.org/repo/pkgs/lincity-ng/lincity-ng-2.0.tar.bz2"
- + "/1bd0f58e0f2b131d70044f4230600ed1/lincity-ng-2.0.tar.bz2";
- # berlios shut down; I found no better mirror
- sha256="01k6n304qj0z5zmqr49gqirp0jmx2b0cpisgkxk1ga67vyjhdcm6";
- };
- buildInputs = [zlib jam pkgconfig gettext libxml2 libxslt xproto libX11 mesa
- SDL SDL_mixer SDL_image SDL_ttf SDL_gfx physfs];
-in
stdenv.mkDerivation rec {
- inherit (s) name version;
- src = fetchurl {
- inherit (s) url sha256;
+ name = "lincity-ng-${version}";
+ version = "2.9beta.20170715";
+
+ src = fetchgit {
+ url = "https://github.com/lincity-ng/lincity-ng";
+ rev = "0c19714b811225238f310633e59f428934185e6b";
+ sha256 = "1gaj9fq97zmb0jsdw4rzrw34pimkmkwbfqps0glpqij4w3srz5f3";
};
hardeningDisable = [ "format" ];
- inherit buildInputs;
+ nativeBuildInputs = [
+ jam autoconf automake libtool pkgconfig
+ ];
+
+ buildInputs = [
+ zlib gettext libxml2 libxslt xproto libX11 mesa SDL SDL_mixer SDL_image
+ SDL_ttf SDL_gfx physfs
+ ];
+
+ preConfigure = ''
+ ./autogen.sh
+ '';
- buildPhase = "jam";
- installPhase="jam install";
+ installPhase = ''
+ touch CREDITS
+ AR='ar r' jam install
+ '';
meta = {
documentation = ''City building game'';
license = stdenv.lib.licenses.gpl2;
platforms = stdenv.lib.platforms.linux;
maintainers = [stdenv.lib.maintainers.raskin];
- inherit (s) version;
};
}
diff --git a/pkgs/games/lincity/ng.upstream b/pkgs/games/lincity/ng.upstream
deleted file mode 100644
index d73d1a2c4190..000000000000
--- a/pkgs/games/lincity/ng.upstream
+++ /dev/null
@@ -1,5 +0,0 @@
-target ng.nix
-attribute_name lincity_ng
-url https://fedorahosted.org/LinCity-NG/wiki/Downloads
-version_link tar.bz2
-version_link tar.bz2