From 7ed774e8c8f0c36d8bfa2be3011d094b54754cfd Mon Sep 17 00:00:00 2001 From: Wolfgang Walther Date: Sat, 4 Jan 2025 14:44:03 +0100 Subject: [PATCH] test: init --- pkgs/by-name/te/test/package.nix | 47 ++++++++++++++++++++++++++++++++ 1 file changed, 47 insertions(+) create mode 100644 pkgs/by-name/te/test/package.nix diff --git a/pkgs/by-name/te/test/package.nix b/pkgs/by-name/te/test/package.nix new file mode 100644 index 0000000000000..0a350e0010802 --- /dev/null +++ b/pkgs/by-name/te/test/package.nix @@ -0,0 +1,47 @@ +{ + lib, + gccStdenv, + fetchFromGitHub, + autoreconfHook269, + xorgproto, + libX11, + libXpm, +}: + +gccStdenv.mkDerivation rec { + pname = "test"; + 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; [ wolfgangwalther ]; + platforms = with platforms; unix; + }; +}