uboot: (firmwareOdroidC2/C4) don't invoke patch tool, use patches = [] instead
https://github.com/NixOS/nixpkgs/blob/master/pkgs/stdenv/generic/setup.sh#L948 this can do it nicely. Signed-off-by: Anton Arapov <anton@deadbeef.mx>
This commit is contained in:
commit
56de2bcd43
30691 changed files with 3076956 additions and 0 deletions
42
pkgs/games/lincity/default.nix
Normal file
42
pkgs/games/lincity/default.nix
Normal file
|
|
@ -0,0 +1,42 @@
|
|||
{ 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";
|
||||
})
|
||||
];
|
||||
|
||||
# Workaround build failure on -fno-common toolchains like upstream
|
||||
# gcc-10. Otherwise build fails as:
|
||||
# ld: modules/.libs/libmodules.a(rocket_pad.o):/build/lincity-1.13.1/modules/../screen.h:23:
|
||||
# multiple definition of `monthgraph_style'; ldsvguts.o:/build/lincity-1.13.1/screen.h:23: first defined here
|
||||
NIX_CFLAGS_COMPILE = "-fcommon";
|
||||
|
||||
meta = with lib; {
|
||||
description = "City simulation game";
|
||||
license = licenses.gpl2Plus;
|
||||
homepage = "https://sourceforge.net/projects/lincity";
|
||||
maintainers = with maintainers; [ ];
|
||||
# ../lcintl.h:14:10: fatal error: 'libintl.h' file not found
|
||||
broken = stdenv.isDarwin;
|
||||
};
|
||||
}
|
||||
84
pkgs/games/lincity/ng.nix
Normal file
84
pkgs/games/lincity/ng.nix
Normal file
|
|
@ -0,0 +1,84 @@
|
|||
{ stdenv
|
||||
, SDL2
|
||||
, SDL2_gfx
|
||||
, SDL2_image
|
||||
, SDL2_mixer
|
||||
, SDL2_ttf
|
||||
, autoreconfHook
|
||||
, fetchFromGitHub
|
||||
, jam
|
||||
, lib
|
||||
, libGL
|
||||
, libGLU
|
||||
, libX11
|
||||
, libxml2
|
||||
, libxslt
|
||||
, physfs
|
||||
, pkg-config
|
||||
, xorgproto
|
||||
, zlib
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation {
|
||||
pname = "lincity-ng";
|
||||
version = "2.9beta.20211125";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "lincity-ng";
|
||||
repo = "lincity-ng";
|
||||
rev = "b9062bec252632ca5d26b98d71453b8762c63173";
|
||||
sha256 = "0l07cn8rmpmlqdppjc2ikh5c7xmwib27504zpmn3n9pryp394r46";
|
||||
};
|
||||
|
||||
hardeningDisable = [ "format" ];
|
||||
|
||||
nativeBuildInputs = [
|
||||
autoreconfHook
|
||||
jam
|
||||
pkg-config
|
||||
];
|
||||
|
||||
buildInputs = [
|
||||
SDL2
|
||||
SDL2_gfx
|
||||
SDL2_image
|
||||
SDL2_mixer
|
||||
SDL2_ttf
|
||||
libGL
|
||||
libGLU
|
||||
libX11
|
||||
libxml2
|
||||
libxslt
|
||||
physfs
|
||||
xorgproto
|
||||
zlib
|
||||
];
|
||||
|
||||
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
|
||||
|
||||
runHook postInstall
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
description = "City building game";
|
||||
license = licenses.gpl2;
|
||||
maintainers = with maintainers; [ raskin ];
|
||||
platforms = platforms.linux;
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue