push sheeet
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

This commit is contained in:
Dark Steveneq
2025-10-09 14:15:47 +02:00
commit 646b892680
49168 changed files with 5897842 additions and 0 deletions

View File

@@ -0,0 +1,141 @@
{
lib,
alsa-lib,
cmake,
enet,
fetchFromGitHub,
fetchpatch2,
fixDarwinDylibNames,
flac,
freetype,
gitUpdater,
gtk3,
libGL,
libGLU,
libjpeg,
libpng,
libpthreadstubs,
libpulseaudio,
libtheora,
libvorbis,
libwebp,
libX11,
libXcursor,
libXdmcp,
libXext,
libXfixes,
libXi,
libXpm,
libXt,
libXxf86dga,
libXxf86misc,
libXxf86vm,
openal,
physfs,
pkg-config,
stdenv,
texinfo,
xorgproto,
zlib,
# https://github.com/liballeg/allegro5/blob/master/README_sdl.txt
useSDL ? false,
sdl2-compat ? null,
}:
assert useSDL -> sdl2-compat != null;
stdenv.mkDerivation rec {
pname = "allegro";
version = "5.2.10.1";
src = fetchFromGitHub {
owner = "liballeg";
repo = "allegro5";
rev = version;
sha256 = "sha256-agE3K+6VhhG/LO52fiesCsOq1fNYVRhdW7aKdPCbTOo=";
};
patches = [
(fetchpatch2 {
name = "Bump-CMake-minimum-version-to-3.5";
url = "https://github.com/liballeg/allegro5/commit/6e93fcaabaafd81701f4cd1b74f4b69dd598bc9b.patch?full_index=1";
hash = "sha256-IEnn66bS2m6MVFCNf341yLtd7jTl2gflL5EFJFmbEt4=";
})
];
nativeBuildInputs = [
cmake
pkg-config
]
++ lib.optionals stdenv.hostPlatform.isDarwin [
fixDarwinDylibNames
];
buildInputs = [
enet
flac
freetype
gtk3
libGL
libGLU
libjpeg
libpng
libtheora
libvorbis
libwebp
openal
physfs
texinfo
zlib
]
++ lib.optionals stdenv.hostPlatform.isLinux [
alsa-lib
libpthreadstubs
libpulseaudio
libX11
libXcursor
libXdmcp
libXext
libXfixes
libXi
libXpm
libXt
libXxf86dga
libXxf86misc
libXxf86vm
xorgproto
]
++ lib.optionals useSDL [
sdl2-compat
];
postPatch = ''
sed -e 's@/XInput2.h@/XI2.h@g' -i CMakeLists.txt "src/"*.c
sed -e 's@Kernel/IOKit/hidsystem/IOHIDUsageTables.h@IOKit/hid/IOHIDUsageTables.h@g' -i include/allegro5/platform/alosx.h
sed -e 's@OpenAL/@AL/@g' -i addons/audio/openal.c
'';
cmakeFlags = [
"-DCMAKE_SKIP_RPATH=ON"
]
++ lib.optionals useSDL [
"ALLEGRO_SDL=ON"
];
outputs = [
"out"
"dev"
];
strictDeps = true;
passthru.updateScript = gitUpdater { };
meta = with lib; {
description = "Game programming library";
homepage = "https://liballeg.org/";
license = licenses.zlib;
maintainers = [ maintainers.raskin ];
platforms = platforms.linux ++ platforms.darwin;
};
}

View File

@@ -0,0 +1,78 @@
{
lib,
stdenv,
fetchurl,
texinfo,
libXext,
xorgproto,
libX11,
libXpm,
libXt,
libXcursor,
alsa-lib,
cmake,
pkg-config,
zlib,
libpng,
libvorbis,
libXxf86dga,
libXxf86misc,
libXxf86vm,
openal,
libGLU,
libGL,
}:
stdenv.mkDerivation rec {
pname = "allegro";
version = "4.4.3.1";
src = fetchurl {
url = "https://github.com/liballeg/allegro5/releases/download/${version}/allegro-${version}.tar.gz";
sha256 = "1m6lz35nk07dli26kkwz3wa50jsrxs1kb6w1nj14a911l34xn6gc";
};
patches = [
./nix-unstable-sandbox-fix.patch
./encoding.patch
];
nativeBuildInputs = [
cmake
pkg-config
];
buildInputs = [
texinfo
libXext
xorgproto
libX11
libXpm
libXt
libXcursor
alsa-lib
zlib
libpng
libvorbis
libXxf86dga
libXxf86misc
libXxf86vm
openal
libGLU
libGL
];
hardeningDisable = [ "format" ];
cmakeFlags = [
"-DCMAKE_SKIP_RPATH=ON"
"-DCMAKE_POLICY_VERSION_MINIMUM=3.5"
];
meta = with lib; {
description = "Game programming library";
homepage = "https://liballeg.org/";
license = licenses.giftware;
maintainers = [ maintainers.raskin ];
platforms = platforms.linux;
};
}

View File

@@ -0,0 +1,10 @@
--- allegro-4.4.3/docs/src/allegro._tx.orig 2019-02-02 20:28:46.000000000 +0100
+++ allegro-4.4.3/docs/src/allegro._tx 2019-11-04 11:12:39.352699777 +0100
@@ -23,6 +23,7 @@
@man_shortdesc_force1=allegro
@man_shortdesc_force2=Allegro game programming library.
@$\input texinfo
+@$@documentencoding ISO-8859-1
@$@setfilename allegro.inf
@$@settitle Allegro Manual
@$@setchapternewpage odd

View File

@@ -0,0 +1,13 @@
diff --git a/docs/CMakeLists.txt b/docs/CMakeLists.txt
index 32ed053..73ba87f 100644
--- a/docs/CMakeLists.txt
+++ b/docs/CMakeLists.txt
@@ -72,7 +72,7 @@ foreach(page ${DOC_SRCS})
string(REPLACE "._tx" "" basename ${basename})
set(page ${CMAKE_CURRENT_SOURCE_DIR}/${page})
- if(${page} MATCHES "/build/")
+ if(${page} MATCHES ".+/build/")
set(txt_out ${CMAKE_CURRENT_BINARY_DIR}/build/${basename}.txt)
set(html_out ${CMAKE_CURRENT_BINARY_DIR}/build/${basename}.html)
else()