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