summaryrefslogtreecommitdiff
path: root/pkgs/games
diff options
context:
space:
mode:
authorGuy Chronister <guychronister@outlook.com>2025-11-10 18:55:51 +0000
committer7c6f434c <7c6f434c@mail.ru>2026-01-03 23:26:41 +0100
commit050b8ae0cc930913aef83288b847d3cdae3dd1a3 (patch)
treea2009f0afcda3b21856bcec8b868ebf0a86ab699 /pkgs/games
parentiqtree: 2.3.6 -> 3.0.1 (#466377) (diff)
downloadnixpkgs-050b8ae0cc930913aef83288b847d3cdae3dd1a3.tar.gz
liquidwar: migrate to by-name
Diffstat (limited to 'pkgs/games')
-rw-r--r--pkgs/games/liquidwar/5.nix36
-rw-r--r--pkgs/games/liquidwar/default.nix93
2 files changed, 0 insertions, 129 deletions
diff --git a/pkgs/games/liquidwar/5.nix b/pkgs/games/liquidwar/5.nix
deleted file mode 100644
index a39d316d767a..000000000000
--- a/pkgs/games/liquidwar/5.nix
+++ /dev/null
@@ -1,36 +0,0 @@
-{
- lib,
- stdenv,
- fetchurl,
- allegro,
-}:
-stdenv.mkDerivation rec {
- version = "5.6.6";
- pname = "liquidwar5";
- src = fetchurl {
- url = "http://www.ufoot.org/download/liquidwar/v5/${version}/liquidwar-${version}.tar.gz";
- sha256 = "sha256-JF2AZuzDiCm9EQ8AiQ6230TgmMgML7yJpG80BFqsQ/c=";
- };
-
- 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 = {
- description = "Classic version of a quick tactics game LiquidWar";
- maintainers = [ lib.maintainers.raskin ];
- license = lib.licenses.gpl2Plus;
- platforms = lib.platforms.linux;
- };
-}
diff --git a/pkgs/games/liquidwar/default.nix b/pkgs/games/liquidwar/default.nix
deleted file mode 100644
index 0ac6905c9f34..000000000000
--- a/pkgs/games/liquidwar/default.nix
+++ /dev/null
@@ -1,93 +0,0 @@
-{
- 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 = {
- description = "Quick tactics game";
- homepage = "https://www.gnu.org/software/liquidwar6/";
- maintainers = [ lib.maintainers.raskin ];
- license = lib.licenses.gpl3Plus;
- platforms = lib.platforms.linux;
- };
-}