2021-01-11 08:54:33 +01:00
|
|
|
{ lib, stdenv, fetchurl, fetchpatch, libX11, libXext, xorgproto, libICE, libSM, libpng12, zlib }:
|
2016-01-25 22:48:34 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 14:41:18 +02:00
|
|
|
pname = "lincity";
|
2017-02-28 17:33:31 +01:00
|
|
|
version = "1.13.1";
|
2016-01-25 22:48:34 +01:00
|
|
|
|
2008-08-08 09:16:34 +02:00
|
|
|
src = fetchurl {
|
2019-08-15 14:41:18 +02:00
|
|
|
url = "mirror://sourceforge/lincity/${pname}-${version}.tar.gz";
|
2017-02-28 17:33:31 +01:00
|
|
|
sha256 = "0p81wl7labyfb6rgp0hi42l2akn3n7r2bnxal1wyvjylzw8vsk3v";
|
2008-08-08 09:16:34 +02:00
|
|
|
};
|
|
|
|
|
2016-01-25 22:48:34 +01:00
|
|
|
buildInputs = [
|
2017-02-28 17:33:31 +01:00
|
|
|
libICE libpng12 libSM libX11 libXext
|
2018-12-31 04:40:47 +01:00
|
|
|
xorgproto zlib
|
2016-01-25 22:48:34 +01:00
|
|
|
];
|
2015-09-15 06:27:19 +02:00
|
|
|
|
2017-02-28 17:33:31 +01:00
|
|
|
patches = [
|
|
|
|
(fetchpatch {
|
|
|
|
url = "https://sources.debian.net/data/main/l/lincity/1.13.1-13/debian/patches/extern-inline-functions-777982";
|
|
|
|
sha256 = "06dp3zwk0z5wr5a3xaaj2my75vcjcy98vc22hsag7ggd9jwrkcp0";
|
|
|
|
})
|
|
|
|
(fetchpatch {
|
|
|
|
url = "https://sources.debian.net/data/main/l/lincity/1.13.1-13/debian/patches/clang-ftbfs-757859";
|
|
|
|
sha256 = "098rnywcsyc0m11x4a5m3dza8i0jmfh6pacfgma1vvxpsfkb6ngp";
|
|
|
|
})
|
|
|
|
];
|
|
|
|
|
2021-01-11 08:54:33 +01:00
|
|
|
meta = with lib; {
|
2008-08-08 09:16:34 +02:00
|
|
|
description = "City simulation game";
|
2017-02-28 17:33:31 +01:00
|
|
|
license = licenses.gpl2Plus;
|
2020-04-01 03:11:51 +02:00
|
|
|
homepage = "https://sourceforge.net/projects/lincity";
|
2008-08-08 09:16:34 +02:00
|
|
|
};
|
|
|
|
}
|