1 { lib, stdenv, fetchFromBitbucket, cmake, SDL, libGLU, libGL, upx, zlib }:
8 src = fetchFromBitbucket {
12 sha256 = "1ibsnmnim712npxkqklc5ibnd32hgsx2yzyfzzc5fis5mhinbl63";
16 sed -i CMakeLists.txt \
17 -e "s,SET(ROOT_DIR.*,SET(ROOT_DIR $out),g" \
18 -e "s,SET(INSTALL_DIR.*,SET(INSTALL_DIR $out),g"
19 echo 'INSTALL(DIRECTORY include DESTINATION .)' >> CMakeLists.txt
22 cmakeFlags = [ "-DLIBTCOD_SAMPLES=OFF" ];
24 nativeBuildInputs = [ cmake ];
25 buildInputs = [ SDL libGLU libGL upx zlib ];
28 description = "API for roguelike games";
29 homepage = "http://roguecentral.org/doryen/libtcod/";
30 license = lib.licenses.bsd3;
31 platforms = lib.platforms.linux;
32 maintainers = with lib.maintainers; [ AndersonTorres ];