python312Packages.dash-renderer: remove (#369714)
[NixPkgs.git] / pkgs / by-name / ja / jazz2 / package.nix
blob46fc1886e095fdf25fe4999af837f0295dae616c
2   cmake,
3   fetchFromGitHub,
4   jazz2-content,
5   lib,
6   libopenmpt,
7   libvorbis,
8   openal,
9   SDL2,
10   stdenv,
11   testers,
12   zlib,
15 stdenv.mkDerivation (finalAttrs: {
16   pname = "jazz2";
17   version = "3.0.0";
19   src = fetchFromGitHub {
20     owner = "deathkiller";
21     repo = "jazz2-native";
22     rev = finalAttrs.version;
23     hash = "sha256-t1bXREL/WWnYnSfCyAY5tus/Bq5V4HVHg9s7oltGoIg=";
24   };
26   patches = [ ./nocontent.patch ];
28   nativeBuildInputs = [ cmake ];
29   buildInputs = [
30     libopenmpt
31     libvorbis
32     openal
33     SDL2
34     zlib
35   ];
37   cmakeFlags = [
38     "-DLIBOPENMPT_INCLUDE_DIR=${lib.getDev libopenmpt}/include/libopenmpt"
39     "-DNCINE_DOWNLOAD_DEPENDENCIES=OFF"
40     "-DNCINE_OVERRIDE_CONTENT_PATH=${jazz2-content}"
41   ];
43   passthru.tests.version = testers.testVersion {
44     package = finalAttrs.finalPackage;
45   };
47   meta = with lib; {
48     description = "Open-source Jazz Jackrabbit 2 reimplementation";
49     homepage = "https://github.com/deathkiller/jazz2-native";
50     license = licenses.gpl3Only;
51     mainProgram = "jazz2";
52     maintainers = with maintainers; [ surfaceflinger ];
53     platforms = platforms.linux;
54   };