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 = lib.optionals stdenv.buildPlatform.isDarwin [ ./darwin.patch ];
16 configureFlags = lib.optionals (localStateDir != null) ["--localstatedir=${localStateDir}"];
19 description = "Falling tower game";
20 mainProgram = "xjump";
21 license = licenses.gpl2Plus;
22 maintainers = with maintainers; [ pmeunier ];