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,13 @@
diff --git a/CMakeLists.txt b/CMakeLists.txt
index a4c631102..13b5743ca 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -141,7 +141,7 @@ include(GitUtilities)
if("${SRB2_SDL2_EXE_NAME}" STREQUAL "")
# cause a reconfigure if the branch changes
get_git_dir(SRB2_GIT_DIR)
- configure_file("${SRB2_GIT_DIR}/HEAD" HEAD COPYONLY)
+ #configure_file("${SRB2_GIT_DIR}/HEAD" HEAD COPYONLY)
git_current_branch(SRB2_GIT_REVISION)

View File

@@ -0,0 +1,121 @@
{
lib,
stdenv,
fetchgit,
fetchFromGitHub,
cmake,
curl,
libopenmpt,
miniupnpc,
game-music-emu,
libpng,
SDL2,
SDL2_mixer,
zlib,
makeWrapper,
makeDesktopItem,
copyDesktopItems,
}:
stdenv.mkDerivation (finalAttrs: {
pname = "srb2";
version = "2.2.15";
src = fetchFromGitHub {
owner = "STJr";
repo = "SRB2";
rev = "SRB2_release_${finalAttrs.version}";
hash = "sha256-eJ0GYe3Rw6qQXj+jtyt8MkP87DaCiO9ffChg+SpQqaI=";
};
nativeBuildInputs = [
cmake
makeWrapper
copyDesktopItems
];
buildInputs = [
curl
game-music-emu
libpng
libopenmpt
miniupnpc
SDL2
SDL2_mixer
zlib
];
assets = stdenv.mkDerivation {
pname = "srb2-data";
version = finalAttrs.version;
src = fetchgit {
url = "https://git.do.srb2.org/STJr/srb2assets-public";
rev = "SRB2_release_${finalAttrs.version}";
hash = "sha256-1kwhWHzL2TbSx1rhFExbMhXqn0HMBRhR6LZiuoRx+iI=";
fetchLFS = true;
};
installPhase = ''
runHook preInstall
mkdir -p $out/share/srb2
cp -r * $out/share/srb2
runHook postInstall
'';
};
cmakeFlags = [
"-DSRB2_ASSET_DIRECTORY=${finalAttrs.assets}/share/srb2"
"-DGME_INCLUDE_DIR=${game-music-emu}/include"
"-DOPENMPT_INCLUDE_DIR=${libopenmpt.dev}/include"
"-DSDL2_MIXER_INCLUDE_DIR=${lib.getDev SDL2_mixer}/include/SDL2"
"-DSDL2_INCLUDE_DIR=${lib.getInclude SDL2}/include/SDL2"
];
patches = [
./cmake.patch
];
desktopItems = [
(makeDesktopItem rec {
name = "Sonic Robo Blast 2";
exec = "srb2";
icon = "srb2";
comment = finalAttrs.meta.description;
desktopName = name;
genericName = name;
categories = [ "Game" ];
startupWMClass = ".srb2-wrapped";
})
];
installPhase = ''
runHook preInstall
mkdir -p $out/bin $out/share/applications $out/share/pixmaps $out/share/icons
copyDesktopItems
cp ../srb2.png $out/share/pixmaps/.
cp ../srb2.png $out/share/icons/.
cp bin/lsdlsrb2 $out/bin/srb2
wrapProgram $out/bin/srb2 --set SRB2WADDIR "${finalAttrs.assets}/share/srb2"
runHook postInstall
'';
meta = with lib; {
description = "Sonic Robo Blast 2 is a 3D Sonic the Hedgehog fangame based on a modified version of Doom Legacy";
homepage = "https://www.srb2.org/";
platforms = platforms.linux;
license = licenses.gpl2Plus;
maintainers = with maintainers; [
zeratax
donovanglover
];
mainProgram = "srb2";
};
})