40 stdenv.mkDerivation rec {
44 src = fetchFromGitHub {
48 sha256 = "sha256-n2OCmZmAqeXjtnCTqJgQ5q4j8/lnPfH+5tpWKIFKle0=";
74 ] ++ lib.optionals stdenv.hostPlatform.isLinux [
93 sed -e 's@/XInput2.h@/XI2.h@g' -i CMakeLists.txt "src/"*.c
94 sed -e 's@Kernel/IOKit/hidsystem/IOHIDUsageTables.h@IOKit/hid/IOHIDUsageTables.h@g' -i include/allegro5/platform/alosx.h
95 sed -e 's@OpenAL/@AL/@g' -i addons/audio/openal.c
98 cmakeFlags = [ "-DCMAKE_SKIP_RPATH=ON" ];
101 description = "Game programming library";
102 homepage = "https://liballeg.org/";
103 license = licenses.zlib;
104 maintainers = [ maintainers.raskin ];
105 platforms = platforms.linux ++ platforms.darwin;