47 lines
1 KiB
Nix
47 lines
1 KiB
Nix
{ cmake
|
|
, fetchFromGitHub
|
|
, glew
|
|
, glfw
|
|
, jazz2-content
|
|
, lib
|
|
, libGL
|
|
, libopenmpt
|
|
, libvorbis
|
|
, openal
|
|
, SDL2
|
|
, stdenv
|
|
, xorg
|
|
, zlib
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "jazz2";
|
|
version = "2.1.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "deathkiller";
|
|
repo = "jazz2-native";
|
|
rev = version;
|
|
sha256 = "nJha7+geP2Ov7ciEDzJ+XWdiF1jzv4Oeis1DwxcpJXo=";
|
|
};
|
|
|
|
patches = [ ./nocontent.patch ];
|
|
|
|
buildInputs = [ libGL SDL2 zlib glew glfw openal libvorbis libopenmpt xorg.libSM xorg.libICE xorg.libXext ];
|
|
nativeBuildInputs = [ cmake ];
|
|
|
|
cmakeFlags = [
|
|
"-DNCINE_DOWNLOAD_DEPENDENCIES=OFF"
|
|
"-DGLFW_INCLUDE_DIR=${glfw}/include/GLFW"
|
|
"-DLIBOPENMPT_INCLUDE_DIR=${libopenmpt.dev}/include/libopenmpt"
|
|
"-DNCINE_OVERRIDE_CONTENT_PATH=${jazz2-content}"
|
|
];
|
|
|
|
meta = with lib; {
|
|
description = "Open-source Jazz Jackrabbit 2 reimplementation";
|
|
homepage = "https://github.com/deathkiller/jazz2-native";
|
|
license = licenses.gpl3;
|
|
maintainers = with maintainers; [ surfaceflinger ];
|
|
platforms = platforms.linux;
|
|
};
|
|
}
|