statserial: init at 1.1 (#75073)
This commit is contained in:
parent
b3c3a0bd18
commit
f32e75c728
44
pkgs/tools/misc/statserial/default.nix
Normal file
44
pkgs/tools/misc/statserial/default.nix
Normal file
@ -0,0 +1,44 @@
|
|||||||
|
{ stdenv, fetchurl, ncurses, glibc }:
|
||||||
|
|
||||||
|
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'
|
||||||
|
'';
|
||||||
|
|
||||||
|
buildInputs = [ ncurses glibc stdenv ];
|
||||||
|
|
||||||
|
installPhase = ''
|
||||||
|
mkdir -p $out/bin
|
||||||
|
cp statserial $out/bin
|
||||||
|
|
||||||
|
mkdir -p $out/share/man/man1
|
||||||
|
cp statserial.1 $out/share/man/man1
|
||||||
|
'';
|
||||||
|
|
||||||
|
meta = with stdenv.lib; {
|
||||||
|
homepage = "https://sites.google.com/site/tranter/software";
|
||||||
|
description = "Display serial port modem status lines.";
|
||||||
|
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 ];
|
||||||
|
};
|
||||||
|
}
|
@ -2143,6 +2143,8 @@ in
|
|||||||
|
|
||||||
stagit = callPackage ../development/tools/stagit { };
|
stagit = callPackage ../development/tools/stagit { };
|
||||||
|
|
||||||
|
statserial = callPackage ../tools/misc/statserial { };
|
||||||
|
|
||||||
step-ca = callPackage ../tools/security/step-ca { };
|
step-ca = callPackage ../tools/security/step-ca { };
|
||||||
|
|
||||||
step-cli = callPackage ../tools/security/step-cli { };
|
step-cli = callPackage ../tools/security/step-cli { };
|
||||||
|
Loading…
x
Reference in New Issue
Block a user