14 stdenv.mkDerivation (finalAttrs: {
18 src = fetchFromGitHub {
19 owner = "deathkiller";
20 repo = "jazz2-native";
21 rev = finalAttrs.version;
22 hash = "sha256-qJVT7WCw3nfoLbSqLFfZCI5VLOuoD/iSVfC9B+XEhyg=";
25 patches = [ ./nocontent.patch ];
27 nativeBuildInputs = [ cmake ];
28 buildInputs = [ libopenmpt libvorbis openal SDL2 zlib ];
31 "-DLIBOPENMPT_INCLUDE_DIR=${lib.getDev libopenmpt}/include/libopenmpt"
32 "-DNCINE_DOWNLOAD_DEPENDENCIES=OFF"
33 "-DNCINE_OVERRIDE_CONTENT_PATH=${jazz2-content}"
36 passthru.tests.version = testers.testVersion {
37 package = finalAttrs.finalPackage;
41 description = "Open-source Jazz Jackrabbit 2 reimplementation";
42 homepage = "https://github.com/deathkiller/jazz2-native";
43 license = licenses.gpl3Only;
44 mainProgram = "jazz2";
45 maintainers = with maintainers; [ surfaceflinger ];
46 platforms = platforms.linux;