biome: 1.9.2 -> 1.9.3
[NixPkgs.git] / pkgs / by-name / ja / jazz2 / package.nix
blobeac0fc29d1a2ea974a6d2d11f8d9bd5463ad9b42
1 { cmake
2 , fetchFromGitHub
3 , jazz2-content
4 , lib
5 , libopenmpt
6 , libvorbis
7 , openal
8 , SDL2
9 , stdenv
10 , testers
11 , zlib
14 stdenv.mkDerivation (finalAttrs: {
15   pname = "jazz2";
16   version = "2.8.0";
18   src = fetchFromGitHub {
19     owner = "deathkiller";
20     repo = "jazz2-native";
21     rev = finalAttrs.version;
22     hash = "sha256-qJVT7WCw3nfoLbSqLFfZCI5VLOuoD/iSVfC9B+XEhyg=";
23   };
25   patches = [ ./nocontent.patch ];
27   nativeBuildInputs = [ cmake ];
28   buildInputs = [ libopenmpt libvorbis openal SDL2 zlib ];
30   cmakeFlags = [
31     "-DLIBOPENMPT_INCLUDE_DIR=${lib.getDev libopenmpt}/include/libopenmpt"
32     "-DNCINE_DOWNLOAD_DEPENDENCIES=OFF"
33     "-DNCINE_OVERRIDE_CONTENT_PATH=${jazz2-content}"
34   ];
36   passthru.tests.version = testers.testVersion {
37     package = finalAttrs.finalPackage;
38   };
40   meta = with lib; {
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;
47   };