mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-25 16:33:15 +00:00
aff1f4ab94
The following parameters are now available: * hardeningDisable To disable specific hardening flags * hardeningEnable To enable specific hardening flags Only the cc-wrapper supports this right now, but these may be reused by other wrappers, builders or setup hooks. cc-wrapper supports the following flags: * fortify * stackprotector * pie (disabled by default) * pic * strictoverflow * format * relro * bindnow
43 lines
1.1 KiB
Nix
43 lines
1.1 KiB
Nix
{ stdenv, fetchurl, automake, autoconf, libtool, flex, bison, texinfo
|
|
|
|
# Optional Dependencies
|
|
, ncurses ? null
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
name = "gpm-1.20.7";
|
|
|
|
src = fetchurl {
|
|
url = "http://www.nico.schottelius.org/software/gpm/archives/${name}.tar.bz2";
|
|
sha256 = "13d426a8h403ckpc8zyf7s2p5rql0lqbg2bv0454x0pvgbfbf4gh";
|
|
};
|
|
|
|
nativeBuildInputs = [ automake autoconf libtool flex bison texinfo ];
|
|
buildInputs = [ ncurses ];
|
|
|
|
hardeningDisable = [ "format" ];
|
|
|
|
preConfigure = ''
|
|
./autogen.sh
|
|
'';
|
|
|
|
configureFlags = [
|
|
"--sysconfdir=/etc"
|
|
"--localstatedir=/var"
|
|
(if ncurses == null then "--without-curses" else "--with-curses")
|
|
];
|
|
|
|
# Provide libgpm.so for compatability
|
|
postInstall = ''
|
|
ln -sv $out/lib/libgpm.so.2 $out/lib/libgpm.so
|
|
'';
|
|
|
|
meta = with stdenv.lib; {
|
|
homepage = http://www.nico.schottelius.org/software/gpm/;
|
|
description = "A daemon that provides mouse support on the Linux console";
|
|
license = licenses.gpl2;
|
|
platforms = platforms.linux;
|
|
maintainers = with maintainers; [ eelco wkennington ];
|
|
};
|
|
}
|