jazz2: cleanup

This commit is contained in:
Gaetan Lepage
2025-03-24 17:44:42 +01:00
parent e5b5b2af6f
commit c7ffb4ba06

View File

@@ -1,16 +1,16 @@
{
cmake,
fetchFromGitHub,
gitUpdater,
jazz2-content,
lib,
stdenv,
fetchFromGitHub,
cmake,
jazz2-content,
libopenmpt,
libvorbis,
openal,
SDL2,
stdenv,
testers,
zlib,
versionCheckHook,
gitUpdater,
}:
stdenv.mkDerivation (finalAttrs: {
@@ -20,7 +20,7 @@ stdenv.mkDerivation (finalAttrs: {
src = fetchFromGitHub {
owner = "deathkiller";
repo = "jazz2-native";
rev = finalAttrs.version;
tag = finalAttrs.version;
hash = "sha256-9Fsm4hiNIEi5OVZLOLccSUkFmHnQ+ZUoBor+DZ9edVo=";
};
@@ -36,24 +36,27 @@ stdenv.mkDerivation (finalAttrs: {
];
cmakeFlags = [
"-DLIBOPENMPT_INCLUDE_DIR=${lib.getDev libopenmpt}/include/libopenmpt"
"-DNCINE_DOWNLOAD_DEPENDENCIES=OFF"
"-DNCINE_OVERRIDE_CONTENT_PATH=${jazz2-content}"
(lib.cmakeFeature "LIBOPENMPT_INCLUDE_DIR" "${lib.getDev libopenmpt}/include/libopenmpt")
(lib.cmakeBool "NCINE_DOWNLOAD_DEPENDENCIES" false)
(lib.cmakeFeature "NCINE_OVERRIDE_CONTENT_PATH" "${jazz2-content}")
];
nativeInstallCheckInputs = [
versionCheckHook
];
versionCheckProgramArg = "--version";
doInstallCheck = true;
passthru = {
updateScript = gitUpdater { };
tests.version = testers.testVersion {
package = finalAttrs.finalPackage;
};
};
meta = with lib; {
meta = {
description = "Open-source Jazz Jackrabbit 2 reimplementation";
homepage = "https://github.com/deathkiller/jazz2-native";
license = licenses.gpl3Only;
license = lib.licenses.gpl3Only;
mainProgram = "jazz2";
maintainers = with maintainers; [ surfaceflinger ];
platforms = platforms.linux;
maintainers = with lib.maintainers; [ surfaceflinger ];
platforms = lib.platforms.linux;
};
})