1 { lib, stdenv, fetchurl, ncurses, glibc }:
3 stdenv.mkDerivation rec {
8 url = "http://www.ibiblio.org/pub/Linux/system/serial/${pname}-${version}.tar.gz";
9 sha256 = "0rrrmxfba5yn836zlgmr8g9xnrpash7cjs7lk2m44ac50vakpks0";
13 substituteInPlace Makefile \
14 --replace '-lcurses' '-lncurses'
16 substituteInPlace Makefile \
17 --replace 'LDFLAGS = -s -N' '#LDFLAGS = -s -N'
20 buildInputs = [ ncurses glibc ];
24 cp statserial $out/bin
26 mkdir -p $out/share/man/man1
27 cp statserial.1 $out/share/man/man1
31 homepage = "https://sites.google.com/site/tranter/software";
32 description = "Display serial port modem status lines";
33 license = licenses.gpl2;
36 '' Statserial displays a table of the signals on a standard 9-pin or
37 25-pin serial port, and indicates the status of the handshaking lines. It
38 can be useful for debugging problems with serial ports or modems.
41 platforms = platforms.unix;
42 maintainers = with maintainers; [ rps ];