hheretic: init at 0.2.3

This commit is contained in:
Jacob Moody 2023-07-26 18:06:25 -05:00 committed by Anderson Torres
parent 5b05f88050
commit c56fec9f9f
2 changed files with 58 additions and 0 deletions

View File

@ -0,0 +1,56 @@
{ lib
, stdenv
, fetchFromGitHub
, SDL
, SDL_mixer
, autoreconfHook
, gitUpdater
}:
stdenv.mkDerivation (finalAttrs: {
pname = "hheretic";
version = "0.2.3";
src = fetchFromGitHub {
owner = "sezero";
repo = "hheretic";
rev = "hheretic-${finalAttrs.version}";
hash = "sha256-e9N869W8STZdLUBSscxEnF2Z+SrdVv8ARDL8AMe1SJ8=";
};
nativeBuildInputs = [
autoreconfHook
SDL.dev
];
buildInputs = [
SDL
SDL_mixer
];
strictDeps = true;
enableParallelBuilding = true;
configureFlags = [ "--with-audio=sdlmixer" ];
installPhase = ''
runHook preInstall
install -Dm755 hheretic-gl -t $out/bin
runHook postInstall
'';
passthru.updateScript = gitUpdater {
rev-prefix = "hheretic-";
};
meta = {
description = "Linux port of Raven Game's Heretic";
homepage = "https://hhexen.sourceforge.net/hhexen.html";
license = lib.licenses.gpl2Plus;
mainProgram = "hheretic-gl";
maintainers = with lib.maintainers; [ moody ];
inherit (SDL.meta) platforms;
};
})

View File

@ -38226,6 +38226,8 @@ with pkgs;
hhexen = callPackage ../games/hhexen { };
hheretic = callPackage ../games/hheretic { };
wyvern = callPackage ../games/wyvern { };
hsetroot = callPackage ../tools/X11/hsetroot { };