2021-01-11 07:54:33 +00:00
|
|
|
{ lib, stdenv, fetchurl, allegro }:
|
2016-08-26 12:40:38 +01:00
|
|
|
stdenv.mkDerivation rec {
|
2020-11-02 01:58:54 +00:00
|
|
|
version = "5.6.5";
|
2019-08-15 13:41:18 +01:00
|
|
|
pname = "liquidwar5";
|
2016-08-26 12:40:38 +01:00
|
|
|
src = fetchurl {
|
2020-11-02 01:58:54 +00:00
|
|
|
url = "http://www.ufoot.org/download/liquidwar/v5/${version}/liquidwar-${version}.tar.gz";
|
|
|
|
sha256 = "2tCqhN1BbK0FVCHtm0DfOe+ueNPfdZwFg8ZMVPfy/18=";
|
2016-08-26 12:40:38 +01:00
|
|
|
};
|
|
|
|
|
2016-08-28 15:06:55 +01:00
|
|
|
buildInputs = [ allegro ];
|
2016-08-26 12:40:38 +01:00
|
|
|
|
2021-01-15 04:31:39 +00:00
|
|
|
configureFlags = lib.optional stdenv.isx86_64 "--disable-asm";
|
2016-08-26 12:40:38 +01:00
|
|
|
|
2016-08-28 15:06:55 +01:00
|
|
|
hardeningDisable = [ "format" ];
|
|
|
|
|
2019-09-12 17:28:56 +01:00
|
|
|
NIX_CFLAGS_COMPILE = [ "-lm" ];
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2021-01-24 09:19:10 +00:00
|
|
|
description = "The classic version of a quick tactics game LiquidWar";
|
2016-08-28 15:06:55 +01:00
|
|
|
maintainers = [ maintainers.raskin ];
|
|
|
|
license = licenses.gpl2Plus;
|
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
2016-08-26 12:40:38 +01:00
|
|
|
}
|