lol
at v206 40 lines 1.1 kB view raw
1{ stdenv, fetchurl, automake, autoconf, libtool, flex, bison, texinfo 2 3# Optional Dependencies 4, ncurses ? null 5}: 6 7stdenv.mkDerivation rec { 8 name = "gpm-1.20.7"; 9 10 src = fetchurl { 11 url = "http://www.nico.schottelius.org/software/gpm/archives/${name}.tar.bz2"; 12 sha256 = "13d426a8h403ckpc8zyf7s2p5rql0lqbg2bv0454x0pvgbfbf4gh"; 13 }; 14 15 nativeBuildInputs = [ automake autoconf libtool flex bison texinfo ]; 16 buildInputs = [ ncurses ]; 17 18 preConfigure = '' 19 ./autogen.sh 20 ''; 21 22 configureFlags = [ 23 "--sysconfdir=/etc" 24 "--localstatedir=/var" 25 (if ncurses == null then "--without-curses" else "--with-curses") 26 ]; 27 28 # Provide libgpm.so for compatability 29 postInstall = '' 30 ln -sv $out/lib/libgpm.so.2 $out/lib/libgpm.so 31 ''; 32 33 meta = with stdenv.lib; { 34 homepage = http://www.nico.schottelius.org/software/gpm/; 35 description = "A daemon that provides mouse support on the Linux console"; 36 license = licenses.gpl2; 37 platforms = platforms.linux; 38 maintainers = with maintainers; [ eelco wkennington ]; 39 }; 40}