1{ lib, stdenv, fetchurl, pkg-config, glib, python2, gtk2, readline }:
2
3stdenv.mkDerivation rec {
4 pname = "gnubg";
5 version = "1.06.002";
6
7 src = fetchurl {
8 url = "http://gnubg.org/media/sources/gnubg-release-${version}-sources.tar.gz";
9 sha256 = "11xwhcli1h12k6rnhhyq4jphzrhfik7i8ah3k32pqw803460n6yf";
10 };
11
12 nativeBuildInputs = [ pkg-config python2 glib ];
13
14 buildInputs = [ gtk2 readline ];
15
16 strictDeps = true;
17
18 configureFlags = [ "--with-gtk" "--with--board3d" ];
19
20 meta = with lib;
21 { description = "World class backgammon application";
22 homepage = "http://www.gnubg.org/";
23 license = licenses.gpl3;
24 maintainers = [ maintainers.ehmry ];
25 platforms = platforms.linux;
26 };
27}