2015-04-05 04:31:55 +01:00
|
|
|
{ stdenv, fetchurl, automake, autoconf, libtool, flex, bison, ncurses, texinfo }:
|
2009-11-18 09:39:59 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2015-04-05 04:31:55 +01:00
|
|
|
name = "gpm-1.20.7";
|
2015-03-20 15:52:02 +00:00
|
|
|
|
2009-11-18 09:39:59 +00:00
|
|
|
src = fetchurl {
|
2009-11-18 12:47:58 +00:00
|
|
|
url = "http://www.nico.schottelius.org/software/gpm/archives/${name}.tar.bz2";
|
2015-04-05 04:31:55 +01:00
|
|
|
sha256 = "13d426a8h403ckpc8zyf7s2p5rql0lqbg2bv0454x0pvgbfbf4gh";
|
2009-11-18 09:39:59 +00:00
|
|
|
};
|
|
|
|
|
2015-04-05 04:31:55 +01:00
|
|
|
buildInputs = [ automake autoconf libtool flex bison ncurses texinfo ];
|
2009-11-18 09:39:59 +00:00
|
|
|
|
2015-04-05 04:31:55 +01:00
|
|
|
preConfigure = ''
|
|
|
|
./autogen.sh
|
|
|
|
sed -e 's/[$](MKDIR)/mkdir -p /' -i doc/Makefile.in
|
|
|
|
'';
|
|
|
|
|
|
|
|
configureFlags = [
|
|
|
|
"--sysconfdir=/etc"
|
|
|
|
"--localstatedir=/var"
|
|
|
|
];
|
2010-11-29 23:51:24 +00:00
|
|
|
|
|
|
|
# Its configure script does not allow --disable-static
|
|
|
|
# Disabling this, we make cross-builds easier, because having
|
|
|
|
# cross-built static libraries we either have to disable stripping
|
|
|
|
# or fixing the gpm users, because there -lgpm will fail.
|
|
|
|
postInstall = ''
|
|
|
|
rm -f $out/lib/*.a
|
|
|
|
ln -s $out/lib/libgpm.so.2 $out/lib/libgpm.so
|
|
|
|
'';
|
|
|
|
|
2009-11-18 09:39:59 +00:00
|
|
|
meta = {
|
2009-11-18 12:47:58 +00:00
|
|
|
homepage = http://www.nico.schottelius.org/software/gpm/;
|
|
|
|
description = "A daemon that provides mouse support on the Linux console";
|
2015-03-20 15:52:02 +00:00
|
|
|
platforms = stdenv.lib.platforms.linux;
|
|
|
|
maintainers = [ stdenv.lib.maintainers.eelco ];
|
2009-11-18 09:39:59 +00:00
|
|
|
};
|
|
|
|
}
|