nixpkgs/pkgs/games/0verkill/default.nix
Sergei Trofimovich e5a16fa98b _0verkill: pin to autoconf-2.69
`autoconf-2.72` tweaked `AC_CHECK_LIB` macro a bit and exposed missing
quoting in `configure.in` of `0verkill` as:

    0verkill-unstable> ./configure: line 4182: syntax error near unexpected token `newline'
    0verkill-unstable> ./configure: line 4182: `yes:'

`configure.in` requires a bit of patching. Let's pin it to older `2.69`
to allow `autoconf` upgrade to 2.72.
2023-12-24 11:50:35 +00:00

43 lines
1.0 KiB
Nix

{ lib
, gccStdenv
, fetchFromGitHub
, autoreconfHook269
, xorgproto
, libX11
, libXpm
}:
gccStdenv.mkDerivation rec {
pname = "0verkill";
version = "unstable-2011-01-13";
src = fetchFromGitHub {
owner = "hackndev";
repo = pname;
rev = "522f11a3e40670bbf85e0fada285141448167968";
sha256 = "WO7PN192HhcDl6iHIbVbH7MVMi1Tl2KyQbDa9DWRO6M=";
};
nativeBuildInputs = [ autoreconfHook269 ];
buildInputs = [ libX11 xorgproto libXpm ];
configureFlags = [ "--with-x" ];
preAutoreconf = ''
autoupdate
'';
# The code needs an update for gcc-10:
# https://github.com/hackndev/0verkill/issues/7
env.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;
};
}