@@ -1,20 +1,24 @@
1−{ stdenv, fetchurl, flex, bison, ncurses }:
1+{ stdenv, fetchurl, automake, autoconf, libtool, flex, bison, ncurses, texinfo }:
22
33stdenv.mkDerivation rec {
4− name = "gpm-1.20.6";
4+ name = "gpm-1.20.7";
55
66 src = fetchurl {
77 url = "http://www.nico.schottelius.org/software/gpm/archives/${name}.tar.bz2";
8− sha256 = "1990i19ddzn8gg5xwm53yn7d0mya885f48sd2hyvr7dvzyaw7ch8";
8+ sha256 = "13d426a8h403ckpc8zyf7s2p5rql0lqbg2bv0454x0pvgbfbf4gh";
99 };
1010
11− nativeBuildInputs = [ flex bison ];
12− buildInputs = [ ncurses ];
11+ buildInputs = [ automake autoconf libtool flex bison ncurses texinfo ];
1312
14− preConfigure =
15− ''
16− sed -e 's/[$](MKDIR)/mkdir -p /' -i doc/Makefile.in
17− '';
13+ preConfigure = ''
14+ ./autogen.sh
15+ sed -e 's/[$](MKDIR)/mkdir -p /' -i doc/Makefile.in
16+ '';
17+
18+ configureFlags = [
19+ "--sysconfdir=/etc"
20+ "--localstatedir=/var"
21+ ];
1822
1923 # Its configure script does not allow --disable-static
2024 # Disabling this, we make cross-builds easier, because having