41 stdenv.mkDerivation rec {
45 src = fetchFromGitHub {
49 sha256 = "sha256-uNcaeTelFNfg+YjPYc7nK4TrFDxJsEuPhsF8x1cvIYQ=";
75 ] ++ lib.optionals stdenv.isLinux [
94 sed -e 's@/XInput2.h@/XI2.h@g' -i CMakeLists.txt "src/"*.c
95 sed -e 's@Kernel/IOKit/hidsystem/IOHIDUsageTables.h@IOKit/hid/IOHIDUsageTables.h@g' -i include/allegro5/platform/alosx.h
96 sed -e 's@OpenAL/@AL/@g' -i addons/audio/openal.c
99 cmakeFlags = [ "-DCMAKE_SKIP_RPATH=ON" ];
102 description = "A game programming library";
103 homepage = "https://liballeg.org/";
104 license = licenses.zlib;
105 maintainers = [ maintainers.raskin ];
106 platforms = platforms.linux ++ platforms.darwin;