2023-08-04 22:07:22 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, fetchFromGitHub
|
|
|
|
, SDL
|
|
|
|
, SDL_mixer
|
|
|
|
, autoreconfHook
|
|
|
|
, gitUpdater
|
|
|
|
}:
|
2021-02-05 17:12:51 +00:00
|
|
|
|
2023-08-04 22:07:22 +00:00
|
|
|
stdenv.mkDerivation (finalAttrs: {
|
2022-01-19 23:45:15 +00:00
|
|
|
pname = "hhexen";
|
2021-02-05 17:12:51 +00:00
|
|
|
version = "1.6.3";
|
2023-08-04 22:07:22 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "sezero";
|
|
|
|
repo = "hhexen";
|
|
|
|
rev = "hhexen-${finalAttrs.version}";
|
|
|
|
hash = "sha256-y3jKfU4e8R2pJQN/FN7W6KQ7D/P+7pmQkdmZug15ApI=";
|
2021-02-05 17:12:51 +00:00
|
|
|
};
|
|
|
|
|
2023-08-04 22:07:22 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
autoreconfHook
|
|
|
|
SDL.dev
|
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
SDL
|
|
|
|
SDL_mixer
|
|
|
|
];
|
|
|
|
|
|
|
|
strictDeps = true;
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
|
|
|
configureFlags = [ "--with-audio=sdlmixer" ];
|
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
installPhase = ''
|
2023-08-04 22:07:22 +00:00
|
|
|
runHook preInstall
|
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
install -Dm755 hhexen-gl -t $out/bin
|
2023-08-04 22:07:22 +00:00
|
|
|
|
|
|
|
runHook postInstall
|
2021-02-05 17:12:51 +00:00
|
|
|
'';
|
|
|
|
|
2023-08-04 22:07:22 +00:00
|
|
|
passthru.updateScript = gitUpdater {
|
|
|
|
rev-prefix = "hhexen-";
|
|
|
|
};
|
|
|
|
|
|
|
|
meta = {
|
2021-02-05 17:12:51 +00:00
|
|
|
description = "Linux port of Raven Game's Hexen";
|
2023-02-02 18:25:31 +00:00
|
|
|
homepage = "https://hhexen.sourceforge.net/hhexen.html";
|
2023-08-04 22:07:22 +00:00
|
|
|
license = lib.licenses.gpl2Plus;
|
|
|
|
maintainers = with lib.maintainers; [ moody djanatyn ];
|
2023-07-15 17:15:38 +00:00
|
|
|
mainProgram = "hhexen-gl";
|
2023-08-04 22:07:22 +00:00
|
|
|
inherit (SDL.meta) platforms;
|
2024-09-26 11:04:55 +00:00
|
|
|
broken = stdenv.hostPlatform.isDarwin;
|
2021-02-05 17:12:51 +00:00
|
|
|
};
|
2023-08-04 22:07:22 +00:00
|
|
|
})
|