2022-05-18 14:49:53 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, fetchFromGitHub
|
|
|
|
, cmake
|
|
|
|
, zlib
|
|
|
|
, libpng
|
|
|
|
, libjpeg
|
|
|
|
, libGL
|
|
|
|
, libX11
|
|
|
|
, libXi
|
|
|
|
, libXext
|
|
|
|
, Cocoa
|
|
|
|
, Kernel
|
|
|
|
}:
|
2024-01-02 11:29:13 +00:00
|
|
|
stdenv.mkDerivation (finalAttrs: {
|
2022-05-18 14:49:53 +00:00
|
|
|
pname = "irrlichtmt";
|
2024-01-02 11:29:13 +00:00
|
|
|
version = "1.9.0mt13";
|
2022-05-18 14:49:53 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "minetest";
|
|
|
|
repo = "irrlicht";
|
2024-01-02 11:29:13 +00:00
|
|
|
rev = finalAttrs.version;
|
|
|
|
hash = "sha256-BlQd7zbpvQnxqLv3IaHWrXzJ1pJFbQQ3DNWDAj14/YY=";
|
2022-05-18 14:49:53 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
cmake
|
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
zlib
|
|
|
|
libpng
|
|
|
|
libjpeg
|
|
|
|
libGL
|
|
|
|
libX11
|
|
|
|
libXi
|
|
|
|
libXext
|
|
|
|
] ++ lib.optionals stdenv.isDarwin [
|
|
|
|
Cocoa
|
|
|
|
Kernel
|
|
|
|
];
|
|
|
|
|
|
|
|
outputs = [ "out" "dev" ];
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
homepage = "https://github.com/minetest/irrlicht";
|
|
|
|
license = lib.licenses.zlib;
|
|
|
|
maintainers = with lib.maintainers; [ DeeUnderscore ];
|
|
|
|
description = "Minetest project's fork of Irrlicht, a realtime 3D engine written in C++";
|
|
|
|
};
|
2024-01-02 11:29:13 +00:00
|
|
|
})
|