about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/libraries/irrlichtmt/default.nix
blob: 8787fd390efd18156353204a84758237470e4c11 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
{ 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++";
  };
})