about summary refs log tree commit diff
path: root/pkgs/games/six/default.nix
blob: a95ed6c50c65e470c73570629e2d432165481a5f (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
26
27
28
29
30
31
32
33
34
35
{ stdenv, fetchurl, arts, kdelibs, libX11, libXext, libXt, perl, qt3, zlib }:

let

    versionNumber = "0.5.3";

in

stdenv.mkDerivation {

  name = "six-${versionNumber}";

  src = fetchurl {
    url = "http://six.retes.hu/download/six-${versionNumber}.tar.gz";
    sha256 = "0hialm0kxr11rp5z452whjmxp2vaqqj668d0dfs32fd10ggi8wj4";
  };

  meta = {
    description = "Six - A Hex playing program for KDE";
    homepage = http://six.retes.hu/;
    license = "GPLv2";
    platforms = stdenv.lib.platforms.linux;
  };

  buildInputs = [ arts kdelibs libX11 libXext libXt perl qt3 zlib ];

  # Supress some warnings which are less useful to us when making packages.
  NIX_CFLAGS_COMPILE = "-Wno-conversion -Wno-parentheses";

  # Without "--x-libraries=", we get the error
  # "impure path `/usr/lib' used in link".
  configureFlags = "--x-libraries=";

  patches = [ ./gcc43-includes.patch ];
}