depot/third_party/nixpkgs/pkgs/games/lincity/default.nix
Default email 8ac5e011d6 Project import generated by Copybara.
GitOrigin-RevId: 2c3273caa153ee8eb5786bc8141b85b859e7efd7
2020-04-24 19:36:52 -04:00

33 lines
1,016 B
Nix

{ stdenv, fetchurl, fetchpatch, libX11, libXext, xorgproto, libICE, libSM, libpng12, zlib }:
stdenv.mkDerivation rec {
pname = "lincity";
version = "1.13.1";
src = fetchurl {
url = "mirror://sourceforge/lincity/${pname}-${version}.tar.gz";
sha256 = "0p81wl7labyfb6rgp0hi42l2akn3n7r2bnxal1wyvjylzw8vsk3v";
};
buildInputs = [
libICE libpng12 libSM libX11 libXext
xorgproto zlib
];
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";
})
];
meta = with stdenv.lib; {
description = "City simulation game";
license = licenses.gpl2Plus;
homepage = "https://sourceforge.net/projects/lincity";
};
}