mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-03 12:23:02 +00:00
49 lines
1.1 KiB
Nix
49 lines
1.1 KiB
Nix
{ cmake
|
|
, fetchFromGitHub
|
|
, jazz2-content
|
|
, lib
|
|
, libopenmpt
|
|
, libvorbis
|
|
, openal
|
|
, SDL2
|
|
, stdenv
|
|
, testers
|
|
, zlib
|
|
}:
|
|
|
|
stdenv.mkDerivation (finalAttrs: {
|
|
pname = "jazz2";
|
|
version = "2.8.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "deathkiller";
|
|
repo = "jazz2-native";
|
|
rev = finalAttrs.version;
|
|
hash = "sha256-qJVT7WCw3nfoLbSqLFfZCI5VLOuoD/iSVfC9B+XEhyg=";
|
|
};
|
|
|
|
patches = [ ./nocontent.patch ];
|
|
|
|
nativeBuildInputs = [ cmake ];
|
|
buildInputs = [ libopenmpt libvorbis openal SDL2 zlib ];
|
|
|
|
cmakeFlags = [
|
|
"-DLIBOPENMPT_INCLUDE_DIR=${lib.getDev libopenmpt}/include/libopenmpt"
|
|
"-DNCINE_DOWNLOAD_DEPENDENCIES=OFF"
|
|
"-DNCINE_OVERRIDE_CONTENT_PATH=${jazz2-content}"
|
|
];
|
|
|
|
passthru.tests.version = testers.testVersion {
|
|
package = finalAttrs.finalPackage;
|
|
};
|
|
|
|
meta = with lib; {
|
|
description = "Open-source Jazz Jackrabbit 2 reimplementation";
|
|
homepage = "https://github.com/deathkiller/jazz2-native";
|
|
license = licenses.gpl3Only;
|
|
mainProgram = "jazz2";
|
|
maintainers = with maintainers; [ surfaceflinger ];
|
|
platforms = platforms.linux;
|
|
};
|
|
})
|