mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-17 07:13:23 +01:00
e686d3e812
Without the change the build against upstream gcc-10 build fails as: ld: sprite.o:/build/0verkill/data.h:171: multiple definition of `obj_attr'; server.o:/build/0verkill/data.h:171: first defined here ld: sprite.o:/build/0verkill/data.h:142: multiple definition of `weapon_name'; server.o:/build/0verkill/data.h:142: first defined here Use -fcommon as a workeround until upstream updates the code.
42 lines
1,023 B
Nix
42 lines
1,023 B
Nix
{ lib
|
|
, gccStdenv
|
|
, fetchFromGitHub
|
|
, autoreconfHook
|
|
, xorgproto
|
|
, libX11
|
|
, libXpm
|
|
}:
|
|
|
|
gccStdenv.mkDerivation rec {
|
|
pname = "0verkill";
|
|
version = "unstable-2011-01-13";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "hackndev";
|
|
repo = pname;
|
|
rev = "522f11a3e40670bbf85e0fada285141448167968";
|
|
sha256 = "WO7PN192HhcDl6iHIbVbH7MVMi1Tl2KyQbDa9DWRO6M=";
|
|
};
|
|
|
|
nativeBuildInputs = [ autoreconfHook ];
|
|
buildInputs = [ libX11 xorgproto libXpm ];
|
|
|
|
configureFlags = [ "--with-x" ];
|
|
|
|
preAutoreconf = ''
|
|
autoupdate
|
|
'';
|
|
|
|
# The code needs an update for gcc-10:
|
|
# https://github.com/hackndev/0verkill/issues/7
|
|
NIX_CFLAGS_COMPILE = "-fcommon";
|
|
hardeningDisable = [ "all" ]; # Someday the upstream will update the code...
|
|
|
|
meta = with lib; {
|
|
homepage = "https://github.com/hackndev/0verkill";
|
|
description = "ASCII-ART bloody 2D action deathmatch-like game";
|
|
license = with licenses; gpl2Only;
|
|
maintainers = with maintainers; [ AndersonTorres ];
|
|
platforms = with platforms; unix;
|
|
};
|
|
}
|