2021-01-15 22:18:51 +00:00
|
|
|
{ lib, stdenv, fetchurl, ncurses, glibc }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "statserial";
|
|
|
|
version = "1.1";
|
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "http://www.ibiblio.org/pub/Linux/system/serial/${pname}-${version}.tar.gz";
|
|
|
|
sha256 = "0rrrmxfba5yn836zlgmr8g9xnrpash7cjs7lk2m44ac50vakpks0";
|
|
|
|
};
|
|
|
|
|
|
|
|
postPatch = ''
|
|
|
|
substituteInPlace Makefile \
|
|
|
|
--replace '-lcurses' '-lncurses'
|
|
|
|
|
|
|
|
substituteInPlace Makefile \
|
|
|
|
--replace 'LDFLAGS = -s -N' '#LDFLAGS = -s -N'
|
|
|
|
'';
|
|
|
|
|
2022-04-03 18:54:34 +00:00
|
|
|
buildInputs = [ ncurses glibc ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
mkdir -p $out/bin
|
|
|
|
cp statserial $out/bin
|
|
|
|
|
|
|
|
mkdir -p $out/share/man/man1
|
|
|
|
cp statserial.1 $out/share/man/man1
|
|
|
|
'';
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
homepage = "https://sites.google.com/site/tranter/software";
|
2020-10-19 00:13:06 +00:00
|
|
|
description = "Display serial port modem status lines";
|
2020-04-24 23:36:52 +00:00
|
|
|
license = licenses.gpl2;
|
|
|
|
|
|
|
|
longDescription =
|
|
|
|
'' Statserial displays a table of the signals on a standard 9-pin or
|
|
|
|
25-pin serial port, and indicates the status of the handshaking lines. It
|
|
|
|
can be useful for debugging problems with serial ports or modems.
|
|
|
|
'';
|
|
|
|
|
|
|
|
platforms = platforms.unix;
|
|
|
|
maintainers = with maintainers; [ rps ];
|
|
|
|
};
|
|
|
|
}
|