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,36 @@
{
lib,
stdenv,
fetchurl,
allegro,
}:
stdenv.mkDerivation rec {
version = "5.6.5";
pname = "liquidwar5";
src = fetchurl {
url = "http://www.ufoot.org/download/liquidwar/v5/${version}/liquidwar-${version}.tar.gz";
sha256 = "2tCqhN1BbK0FVCHtm0DfOe+ueNPfdZwFg8ZMVPfy/18=";
};
buildInputs = [ allegro ];
configureFlags = lib.optional stdenv.hostPlatform.isx86_64 "--disable-asm";
hardeningDisable = [ "format" ];
env.NIX_CFLAGS_COMPILE = toString [
# Workaround build failure on -fno-common toolchains like upstream
# gcc-10. Otherwise build fails as:
# ld: random.o:(.bss+0x0): multiple definition of `LW_RANDOM_ON'; game.o:(.bss+0x4): first defined here
"-fcommon"
"-lm"
];
meta = with lib; {
description = "Classic version of a quick tactics game LiquidWar";
maintainers = [ maintainers.raskin ];
license = licenses.gpl2Plus;
platforms = platforms.linux;
};
}

View File

@@ -0,0 +1,93 @@
{
lib,
stdenv,
fetchurl,
xorgproto,
libX11,
libXrender,
gmp,
libjpeg,
libpng,
expat,
gettext,
perl,
guile,
SDL,
SDL_image,
SDL_mixer,
SDL_ttf,
curl,
sqlite,
libtool,
readline,
libogg,
libvorbis,
libcaca,
csound,
cunit,
pkg-config,
}:
stdenv.mkDerivation rec {
pname = "liquidwar6";
version = "0.6.3902";
src = fetchurl {
url = "mirror://gnu/liquidwar6/${pname}-${version}.tar.gz";
sha256 = "1976nnl83d8wspjhb5d5ivdvdxgb8lp34wp54jal60z4zad581fn";
};
buildInputs = [
xorgproto
libX11
gmp
guile
libjpeg
libpng
expat
gettext
perl
SDL
SDL_image
SDL_mixer
SDL_ttf
curl
sqlite
libogg
libvorbis
csound
libXrender
libcaca
cunit
libtool
readline
];
nativeBuildInputs = [ pkg-config ];
hardeningDisable = [ "format" ];
env.NIX_CFLAGS_COMPILE = toString (
lib.optionals (stdenv.cc.isGNU && lib.versionAtLeast stdenv.cc.version "12") [
# Needed with GCC 12 but problematic with some old GCCs
"-Wno-error=address"
"-Wno-error=use-after-free"
]
++ [
"-Wno-error=deprecated-declarations"
# Avoid GL_GLEXT_VERSION double definition
" -DNO_SDL_GLEXT"
]
);
# To avoid problems finding SDL_types.h.
configureFlags = [ "CFLAGS=-I${lib.getDev SDL}/include/SDL" ];
meta = with lib; {
description = "Quick tactics game";
homepage = "https://www.gnu.org/software/liquidwar6/";
maintainers = [ maintainers.raskin ];
license = licenses.gpl3Plus;
platforms = platforms.linux;
};
}