2019-01-19 13:08:15 -08:00
|
|
|
{ stdenv, fetchFromGitHub, makeWrapper, lrzsz, IOKit }:
|
|
|
|
|
|
|
|
assert stdenv.isDarwin -> IOKit != null;
|
|
|
|
|
|
|
|
with stdenv.lib;
|
2012-09-23 15:26:46 -07:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 05:41:18 -07:00
|
|
|
pname = "picocom";
|
2018-02-04 15:02:24 -08:00
|
|
|
version = "3.1";
|
2012-09-23 15:26:46 -07:00
|
|
|
|
2015-08-17 13:14:51 -07:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "npat-efault";
|
|
|
|
repo = "picocom";
|
|
|
|
rev = version;
|
2018-02-04 15:02:24 -08:00
|
|
|
sha256 = "1vvjydqf0ax47nvdyyl67jafw5b3sfsav00xid6qpgia1gs2r72n";
|
2012-09-23 15:26:46 -07:00
|
|
|
};
|
|
|
|
|
2019-01-19 13:08:15 -08:00
|
|
|
buildInputs = [ makeWrapper ]
|
|
|
|
++ optionals stdenv.isDarwin [ IOKit ];
|
2014-07-22 14:51:25 -07:00
|
|
|
|
2012-09-23 15:26:46 -07:00
|
|
|
installPhase = ''
|
2015-09-19 16:26:56 -07:00
|
|
|
mkdir -p $out/bin $out/share/man/man1
|
2012-09-23 15:26:46 -07:00
|
|
|
cp picocom $out/bin
|
2015-09-19 16:26:56 -07:00
|
|
|
cp picocom.1 $out/share/man/man1
|
2014-07-22 14:51:25 -07:00
|
|
|
|
|
|
|
wrapProgram $out/bin/picocom \
|
|
|
|
--prefix PATH ":" "${lrzsz}/bin"
|
2012-09-23 15:26:46 -07:00
|
|
|
'';
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "Minimal dumb-terminal emulation program";
|
2020-03-31 18:11:51 -07:00
|
|
|
homepage = "https://github.com/npat-efault/picocom/";
|
2014-06-18 21:19:00 -07:00
|
|
|
license = stdenv.lib.licenses.gpl2Plus;
|
2019-01-19 13:08:15 -08:00
|
|
|
platforms = platforms.unix;
|
2012-09-23 15:26:46 -07:00
|
|
|
};
|
|
|
|
}
|