forked from NixOS/nixpkgs
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
91bd90b
commit 7ed774e
Showing
1 changed file
with
47 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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; | ||
}; | ||
} |