Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ 2 lib, 3 stdenv, 4 fetchzip, 5 fetchFromGitHub, 6 cmake, 7}: 8 9let 10 common = import ./common.nix { inherit fetchzip; }; 11in 12 13stdenv.mkDerivation { 14 pname = "irrlicht-mac"; 15 version = common.version; 16 17 src = fetchFromGitHub { 18 owner = "quiark"; 19 repo = "IrrlichtCMake"; 20 rev = "523a5e6ef84be67c3014f7b822b97acfced536ce"; 21 sha256 = "10ahnry2zl64wphs233gxhvs6c0345pyf5nwa29mc6yn49x7bidi"; 22 }; 23 24 postUnpack = '' 25 cp -r ${common.src}/* $sourceRoot/ 26 chmod -R 777 $sourceRoot 27 ''; 28 29 patches = [ ./mac_device.patch ]; 30 dontFixCmake = true; 31 32 cmakeFlags = [ 33 "-DIRRLICHT_STATIC_LIBRARY=ON" 34 "-DIRRLICHT_BUILD_EXAMPLES=OFF" 35 "-DIRRLICHT_INSTALL_MEDIA_FILES=OFF" 36 "-DIRRLICHT_ENABLE_X11_SUPPORT=OFF" 37 "-DIRRLICHT_BUILD_TOOLS=OFF" 38 ]; 39 40 nativeBuildInputs = [ cmake ]; 41 42 meta = { 43 homepage = "https://irrlicht.sourceforge.net/"; 44 license = lib.licenses.zlib; 45 description = "Open source high performance realtime 3D engine written in C++"; 46 platforms = lib.platforms.darwin; 47 }; 48}