1 { lib, stdenv, fetchurl, allegro }:
2 stdenv.mkDerivation rec {
6 url = "http://www.ufoot.org/download/liquidwar/v5/${version}/liquidwar-${version}.tar.gz";
7 sha256 = "2tCqhN1BbK0FVCHtm0DfOe+ueNPfdZwFg8ZMVPfy/18=";
10 buildInputs = [ allegro ];
12 configureFlags = lib.optional stdenv.hostPlatform.isx86_64 "--disable-asm";
14 hardeningDisable = [ "format" ];
16 env.NIX_CFLAGS_COMPILE = toString [
17 # Workaround build failure on -fno-common toolchains like upstream
18 # gcc-10. Otherwise build fails as:
19 # ld: random.o:(.bss+0x0): multiple definition of `LW_RANDOM_ON'; game.o:(.bss+0x4): first defined here
26 description = "Classic version of a quick tactics game LiquidWar";
27 maintainers = [ maintainers.raskin ];
28 license = licenses.gpl2Plus;
29 platforms = platforms.linux;