Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
48 lines
1004 B
Nix
48 lines
1004 B
Nix
{
|
|
lib,
|
|
stdenv,
|
|
fetchzip,
|
|
fetchFromGitHub,
|
|
cmake,
|
|
}:
|
|
|
|
let
|
|
common = import ./common.nix { inherit fetchzip; };
|
|
in
|
|
|
|
stdenv.mkDerivation {
|
|
pname = "irrlicht-mac";
|
|
version = common.version;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "quiark";
|
|
repo = "IrrlichtCMake";
|
|
rev = "523a5e6ef84be67c3014f7b822b97acfced536ce";
|
|
sha256 = "10ahnry2zl64wphs233gxhvs6c0345pyf5nwa29mc6yn49x7bidi";
|
|
};
|
|
|
|
postUnpack = ''
|
|
cp -r ${common.src}/* $sourceRoot/
|
|
chmod -R 777 $sourceRoot
|
|
'';
|
|
|
|
patches = [ ./mac_device.patch ];
|
|
|
|
cmakeFlags = [
|
|
"-DIRRLICHT_STATIC_LIBRARY=ON"
|
|
"-DIRRLICHT_BUILD_EXAMPLES=OFF"
|
|
"-DIRRLICHT_INSTALL_MEDIA_FILES=OFF"
|
|
"-DIRRLICHT_ENABLE_X11_SUPPORT=OFF"
|
|
"-DIRRLICHT_BUILD_TOOLS=OFF"
|
|
];
|
|
|
|
nativeBuildInputs = [ cmake ];
|
|
|
|
meta = {
|
|
homepage = "https://irrlicht.sourceforge.net/";
|
|
license = lib.licenses.zlib;
|
|
description = "Open source high performance realtime 3D engine written in C++";
|
|
platforms = lib.platforms.darwin;
|
|
};
|
|
}
|