mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-01 18:12:46 +00:00
4a7f99d55d
Part of: https://github.com/NixOS/nixpkgs/issues/108938 meta = with stdenv.lib; is a widely used pattern. We want to slowly remove the `stdenv.lib` indirection and encourage people to use `lib` directly. Thus let’s start with the meta field. This used a rewriting script to mostly automatically replace all occurances of this pattern, and add the `lib` argument to the package header if it doesn’t exist yet. The script in its current form is available at https://cs.tvl.fyi/depot@2f807d7f141068d2d60676a89213eaa5353ca6e0/-/blob/users/Profpatsch/nixpkgs-rewriter/default.nix
34 lines
1,014 B
Nix
34 lines
1,014 B
Nix
{ lib, 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 lib; {
|
|
description = "City simulation game";
|
|
license = licenses.gpl2Plus;
|
|
homepage = "https://sourceforge.net/projects/lincity";
|
|
};
|
|
}
|