mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-23 07:23:20 +00:00
46da207715
* Use finalAttrs * Touch support is now unconditional
52 lines
871 B
Nix
52 lines
871 B
Nix
{ lib
|
|
, stdenv
|
|
, fetchFromGitHub
|
|
, cmake
|
|
, zlib
|
|
, libpng
|
|
, libjpeg
|
|
, libGL
|
|
, libX11
|
|
, libXi
|
|
, libXext
|
|
, Cocoa
|
|
, Kernel
|
|
}:
|
|
stdenv.mkDerivation (finalAttrs: {
|
|
pname = "irrlichtmt";
|
|
version = "1.9.0mt13";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "minetest";
|
|
repo = "irrlicht";
|
|
rev = finalAttrs.version;
|
|
hash = "sha256-BlQd7zbpvQnxqLv3IaHWrXzJ1pJFbQQ3DNWDAj14/YY=";
|
|
};
|
|
|
|
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++";
|
|
};
|
|
})
|