gpm: Refactor
This commit is contained in:
parent
f537943f27
commit
c06df0b064
@ -1,4 +1,8 @@
|
|||||||
{ stdenv, fetchurl, automake, autoconf, libtool, flex, bison, ncurses, texinfo }:
|
{ stdenv, fetchurl, automake, autoconf, libtool, flex, bison, texinfo
|
||||||
|
|
||||||
|
# Optional Dependencies
|
||||||
|
, ncurses ? null
|
||||||
|
}:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
name = "gpm-1.20.7";
|
name = "gpm-1.20.7";
|
||||||
@ -8,31 +12,29 @@ stdenv.mkDerivation rec {
|
|||||||
sha256 = "13d426a8h403ckpc8zyf7s2p5rql0lqbg2bv0454x0pvgbfbf4gh";
|
sha256 = "13d426a8h403ckpc8zyf7s2p5rql0lqbg2bv0454x0pvgbfbf4gh";
|
||||||
};
|
};
|
||||||
|
|
||||||
buildInputs = [ automake autoconf libtool flex bison ncurses texinfo ];
|
nativeBuildInputs = [ automake autoconf libtool flex bison texinfo ];
|
||||||
|
buildInputs = [ ncurses ];
|
||||||
|
|
||||||
preConfigure = ''
|
preConfigure = ''
|
||||||
./autogen.sh
|
./autogen.sh
|
||||||
sed -e 's/[$](MKDIR)/mkdir -p /' -i doc/Makefile.in
|
|
||||||
'';
|
'';
|
||||||
|
|
||||||
configureFlags = [
|
configureFlags = [
|
||||||
"--sysconfdir=/etc"
|
"--sysconfdir=/etc"
|
||||||
"--localstatedir=/var"
|
"--localstatedir=/var"
|
||||||
|
(if ncurses == null then "--without-curses" else "--with-curses")
|
||||||
];
|
];
|
||||||
|
|
||||||
# Its configure script does not allow --disable-static
|
# Provide libgpm.so for compatability
|
||||||
# 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 = ''
|
postInstall = ''
|
||||||
rm -f $out/lib/*.a
|
ln -sv $out/lib/libgpm.so.2 $out/lib/libgpm.so
|
||||||
ln -s $out/lib/libgpm.so.2 $out/lib/libgpm.so
|
|
||||||
'';
|
'';
|
||||||
|
|
||||||
meta = {
|
meta = with stdenv.lib; {
|
||||||
homepage = http://www.nico.schottelius.org/software/gpm/;
|
homepage = http://www.nico.schottelius.org/software/gpm/;
|
||||||
description = "A daemon that provides mouse support on the Linux console";
|
description = "A daemon that provides mouse support on the Linux console";
|
||||||
platforms = stdenv.lib.platforms.linux;
|
license = licenses.gpl2;
|
||||||
maintainers = [ stdenv.lib.maintainers.eelco ];
|
platforms = platforms.linux;
|
||||||
|
maintainers = with maintainers; [ eelco wkennington ];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
@ -9100,7 +9100,9 @@ let
|
|||||||
|
|
||||||
gfxtablet = callPackage ../os-specific/linux/gfxtablet {};
|
gfxtablet = callPackage ../os-specific/linux/gfxtablet {};
|
||||||
|
|
||||||
gpm = callPackage ../servers/gpm { };
|
gpm = callPackage ../servers/gpm {
|
||||||
|
ncurses = null; # Keep curses disabled for lack of value
|
||||||
|
};
|
||||||
|
|
||||||
gradm = callPackage ../os-specific/linux/gradm {
|
gradm = callPackage ../os-specific/linux/gradm {
|
||||||
flex = flex_2_5_35;
|
flex = flex_2_5_35;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user