bombsquad: 1.7.37 -> 1.7.61

This also fixes the build on aarch64 and changes the updater to skip the
latest (not yet settled, unstable hash) version.
This commit is contained in:
Mrmaxmeier
2026-04-03 15:36:33 +02:00
parent d6d2274149
commit 44258b99bd
+18 -8
View File
@@ -2,12 +2,15 @@
lib,
stdenv,
fetchurl,
python312,
python313,
SDL2,
cairo,
pango,
libvorbis,
openal,
curl,
gnugrep,
gnused,
libgcc,
makeBinaryWrapper,
makeDesktopItem,
@@ -22,11 +25,11 @@ let
{
x86_64-linux = {
name = "BombSquad_Linux_x86_64";
hash = "sha256-ICjaNZSCUbslB5pELbI4e+1zXWrZzkCkv69jLRx4dr0=";
hash = "sha256-VHhDRzB7sSvb3Ou/Sg+PjTKFDG9sKsXueu2qLNfC06k=";
};
aarch-64-linux = {
aarch64-linux = {
name = "BombSquad_Linux_Arm64";
hash = "sha256-/m0SOQbHssk0CqZJPRLK9YKphup3dtMqkbWGzqcF0+g=";
hash = "sha256-usrhPOsXkJZk0HCSBIGnc4qdIu2SW7STp6Y/e6RmZlM=";
};
}
.${stdenv.targetPlatform.system} or (throw "${stdenv.targetPlatform.system} is unsupported.");
@@ -39,10 +42,13 @@ let
in
stdenv.mkDerivation (finalAttrs: {
pname = "bombsquad";
version = "1.7.37";
# Note: This version trails behind the latest version by one since the latest
# version sometimes gets replaced for minor updates. The builds in /old/ are
# stable.
version = "1.7.61";
src = fetchurl {
url = "https://web.archive.org/web/20240825230506if_/https://files.ballistica.net/bombsquad/builds/${archive.name}_${finalAttrs.version}.tar.gz";
url = "https://files.ballistica.net/bombsquad/builds/old/${archive.name}_${finalAttrs.version}.tar.gz";
inherit (archive) hash;
};
@@ -50,10 +56,12 @@ stdenv.mkDerivation (finalAttrs: {
buildInputs = [
SDL2
cairo
libgcc
libvorbis
openal
python312
pango
python313
];
nativeBuildInputs = [
@@ -98,11 +106,12 @@ stdenv.mkDerivation (finalAttrs: {
runtimeInputs = [
curl
gnugrep
gnused
];
text = ''
curl -sL "https://files.ballistica.net/bombsquad/builds/CHANGELOG.md" \
| grep -oP '^### \K\d+\.\d+\.\d+' \
| head -n 1
| sed -n 2p
'';
});
};
@@ -118,6 +127,7 @@ stdenv.mkDerivation (finalAttrs: {
maintainers = with lib.maintainers; [
syedahkam
coffeeispower
mrmaxmeier
];
mainProgram = "bombsquad";
platforms = lib.platforms.linux;