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