summary refs log tree commit diff
path: root/pkgs/games/liquidwar/5.nix
blob: 5c42b8ecaab270b570a352f70c677439b0d5ca8a (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
{ stdenv, fetchurl, allegro }:
stdenv.mkDerivation rec {
  version = "5.6.4";
  pname = "liquidwar5";
  src = fetchurl {
    url = "https://download.savannah.gnu.org/releases/liquidwar/liquidwar-${version}.tar.gz";
    sha256 = "18wkbfzp07yckg05b5gjy67rw06z9lxp0hzg0zwj7rz8i12jxi9j";
  };

  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;
    broken = true;
  };
}