2015-04-30 22:31:11 +00:00
|
|
|
{ stdenv, fetchurl, automake, autoconf, libtool, flex, bison, texinfo
|
|
|
|
|
|
|
|
# Optional Dependencies
|
|
|
|
, ncurses ? null
|
|
|
|
}:
|
2009-11-18 09:39:59 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2015-04-05 03:31:55 +00: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 03:31:55 +00:00
|
|
|
sha256 = "13d426a8h403ckpc8zyf7s2p5rql0lqbg2bv0454x0pvgbfbf4gh";
|
2009-11-18 09:39:59 +00:00
|
|
|
};
|
|
|
|
|
2015-04-30 22:31:11 +00:00
|
|
|
nativeBuildInputs = [ automake autoconf libtool flex bison texinfo ];
|
|
|
|
buildInputs = [ ncurses ];
|
2009-11-18 09:39:59 +00:00
|
|
|
|
2016-02-26 17:38:15 +00:00
|
|
|
hardeningDisable = [ "format" ];
|
2015-12-23 01:59:47 +00:00
|
|
|
|
2015-04-05 03:31:55 +00:00
|
|
|
preConfigure = ''
|
|
|
|
./autogen.sh
|
|
|
|
'';
|
|
|
|
|
|
|
|
configureFlags = [
|
|
|
|
"--sysconfdir=/etc"
|
|
|
|
"--localstatedir=/var"
|
2015-04-30 22:31:11 +00:00
|
|
|
(if ncurses == null then "--without-curses" else "--with-curses")
|
2015-04-05 03:31:55 +00:00
|
|
|
];
|
2010-11-29 23:51:24 +00:00
|
|
|
|
2015-04-30 22:31:11 +00:00
|
|
|
# Provide libgpm.so for compatability
|
2010-11-29 23:51:24 +00:00
|
|
|
postInstall = ''
|
2015-04-30 22:31:11 +00:00
|
|
|
ln -sv $out/lib/libgpm.so.2 $out/lib/libgpm.so
|
2010-11-29 23:51:24 +00:00
|
|
|
'';
|
|
|
|
|
2015-04-30 22:31:11 +00:00
|
|
|
meta = with stdenv.lib; {
|
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-04-30 22:31:11 +00:00
|
|
|
license = licenses.gpl2;
|
|
|
|
platforms = platforms.linux;
|
|
|
|
maintainers = with maintainers; [ eelco wkennington ];
|
2009-11-18 09:39:59 +00:00
|
|
|
};
|
|
|
|
}
|