1 { lib, stdenv, fetchFromGitHub, autoconf, automake, libX11, libXt, libXpm, libXaw, localStateDir?null }:
6 src = fetchFromGitHub {
9 rev = "e7f20fb8c2c456bed70abb046c1a966462192b80";
10 sha256 = "0hq4739cvi5a47pxdc0wwkj2lmlqbf1xigq0v85qs5bq3ixmq2f7";
12 nativeBuildInputs = [ autoconf automake ];
13 buildInputs = [ libX11 libXt libXpm libXaw ];
14 preConfigure = "autoreconf --install";
15 patches = if stdenv.buildPlatform.isDarwin then [ ./darwin.patch ] else [];
17 if localStateDir != null then
18 ["--localstatedir=${localStateDir}"]
23 description = "The falling tower game";
24 license = licenses.gpl2;
25 maintainers = with maintainers; [ pmeunier ];