2009-11-18 13:47:58 +01:00
|
|
|
{ stdenv, fetchurl, flex, bison, ncurses }:
|
2009-11-18 10:39:59 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "gpm-1.20.6";
|
2015-03-20 16:52:02 +01:00
|
|
|
|
2009-11-18 10:39:59 +01:00
|
|
|
src = fetchurl {
|
2009-11-18 13:47:58 +01:00
|
|
|
url = "http://www.nico.schottelius.org/software/gpm/archives/${name}.tar.bz2";
|
|
|
|
sha256 = "1990i19ddzn8gg5xwm53yn7d0mya885f48sd2hyvr7dvzyaw7ch8";
|
2009-11-18 10:39:59 +01:00
|
|
|
};
|
|
|
|
|
2012-12-28 19:20:09 +01:00
|
|
|
nativeBuildInputs = [ flex bison ];
|
2010-11-26 18:55:22 +01:00
|
|
|
buildInputs = [ ncurses ];
|
2009-11-18 10:39:59 +01:00
|
|
|
|
|
|
|
preConfigure =
|
|
|
|
''
|
|
|
|
sed -e 's/[$](MKDIR)/mkdir -p /' -i doc/Makefile.in
|
|
|
|
'';
|
2010-11-30 00:51:24 +01: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 10:39:59 +01:00
|
|
|
meta = {
|
2009-11-18 13:47:58 +01:00
|
|
|
homepage = http://www.nico.schottelius.org/software/gpm/;
|
|
|
|
description = "A daemon that provides mouse support on the Linux console";
|
2015-03-20 16:52:02 +01:00
|
|
|
platforms = stdenv.lib.platforms.linux;
|
|
|
|
maintainers = [ stdenv.lib.maintainers.eelco ];
|
2009-11-18 10:39:59 +01:00
|
|
|
};
|
|
|
|
}
|