diff options
author | Mx Kookie <kookie@spacekookie.de> | 2020-12-21 06:05:12 +0100 |
---|---|---|
committer | Mx Kookie <kookie@spacekookie.de> | 2020-12-21 06:05:12 +0100 |
commit | f107be784e6d5da5f90735765a68fdff96acfbb4 (patch) | |
tree | 145573a598009fb6adbd5ef7fbce0a850681f5f0 /infra/libkookie/nixpkgs/pkgs/games/liquidwar | |
parent | 2e04b35e5ac3a9123cafffbc84494fa4d389cca0 (diff) | |
parent | e9158eca70ae59e73fae23be5d13d3fa0cfc78b4 (diff) |
Add 'infra/libkookie/nixpkgs/' from commit 'e9158eca70ae59e73fae23be5d13d3fa0cfc78b4'
git-subtree-dir: infra/libkookie/nixpkgs
git-subtree-mainline: 2e04b35e5ac3a9123cafffbc84494fa4d389cca0
git-subtree-split: e9158eca70ae59e73fae23be5d13d3fa0cfc78b4
Diffstat (limited to 'infra/libkookie/nixpkgs/pkgs/games/liquidwar')
-rw-r--r-- | infra/libkookie/nixpkgs/pkgs/games/liquidwar/5.nix | 24 | ||||
-rw-r--r-- | infra/libkookie/nixpkgs/pkgs/games/liquidwar/default.nix | 46 |
2 files changed, 70 insertions, 0 deletions
diff --git a/infra/libkookie/nixpkgs/pkgs/games/liquidwar/5.nix b/infra/libkookie/nixpkgs/pkgs/games/liquidwar/5.nix new file mode 100644 index 000000000000..3d8cf3840f8b --- /dev/null +++ b/infra/libkookie/nixpkgs/pkgs/games/liquidwar/5.nix @@ -0,0 +1,24 @@ +{ 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 = stdenv.lib.optional stdenv.isx86_64 "--disable-asm"; + + hardeningDisable = [ "format" ]; + + NIX_CFLAGS_COMPILE = [ "-lm" ]; + + meta = with stdenv.lib; { + description = ''The classic version of a quick tactics game LiquidWar''; + maintainers = [ maintainers.raskin ]; + license = licenses.gpl2Plus; + platforms = platforms.linux; + }; +} diff --git a/infra/libkookie/nixpkgs/pkgs/games/liquidwar/default.nix b/infra/libkookie/nixpkgs/pkgs/games/liquidwar/default.nix new file mode 100644 index 000000000000..341d077879c2 --- /dev/null +++ b/infra/libkookie/nixpkgs/pkgs/games/liquidwar/default.nix @@ -0,0 +1,46 @@ +{ 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 } : + +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 + ]; + + hardeningDisable = [ "format" ]; + + NIX_CFLAGS_COMPILE = + "-Wno-error=deprecated-declarations" + + # Avoid GL_GLEXT_VERSION double definition + " -DNO_SDL_GLEXT" + ; + + # To avoid problems finding SDL_types.h. + configureFlags = [ "CFLAGS=-I${SDL.dev}/include/SDL" ]; + + meta = with stdenv.lib; { + description = "Quick tactics game"; + homepage = "https://www.gnu.org/software/liquidwar6/"; + maintainers = [ maintainers.raskin ]; + license = licenses.gpl3Plus; + platforms = platforms.linux; + }; +} |