2021-02-13 14:23:35 +00:00
|
|
|
{ lib
|
2021-05-20 23:08:51 +00:00
|
|
|
, gccStdenv
|
2021-02-13 14:23:35 +00:00
|
|
|
, fetchFromGitHub
|
2024-01-02 11:29:13 +00:00
|
|
|
, autoreconfHook269
|
2021-02-13 14:23:35 +00:00
|
|
|
, xorgproto
|
|
|
|
, libX11
|
|
|
|
, libXpm
|
|
|
|
}:
|
|
|
|
|
2021-05-20 23:08:51 +00:00
|
|
|
gccStdenv.mkDerivation rec {
|
2021-02-13 14:23:35 +00:00
|
|
|
pname = "0verkill";
|
|
|
|
version = "unstable-2011-01-13";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "hackndev";
|
|
|
|
repo = pname;
|
|
|
|
rev = "522f11a3e40670bbf85e0fada285141448167968";
|
|
|
|
sha256 = "WO7PN192HhcDl6iHIbVbH7MVMi1Tl2KyQbDa9DWRO6M=";
|
|
|
|
};
|
|
|
|
|
2024-01-02 11:29:13 +00:00
|
|
|
nativeBuildInputs = [ autoreconfHook269 ];
|
2021-02-13 14:23:35 +00:00
|
|
|
buildInputs = [ libX11 xorgproto libXpm ];
|
|
|
|
|
|
|
|
configureFlags = [ "--with-x" ];
|
|
|
|
|
|
|
|
preAutoreconf = ''
|
|
|
|
autoupdate
|
|
|
|
'';
|
|
|
|
|
2022-05-18 14:49:53 +00:00
|
|
|
# The code needs an update for gcc-10:
|
|
|
|
# https://github.com/hackndev/0verkill/issues/7
|
2023-03-04 12:14:45 +00:00
|
|
|
env.NIX_CFLAGS_COMPILE = "-fcommon";
|
2021-02-13 14:23:35 +00:00
|
|
|
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;
|
|
|
|
};
|
|
|
|
}
|