2015-08-17 21:14:51 +01:00
|
|
|
{ stdenv, fetchFromGitHub, makeWrapper, lrzsz }:
|
2012-09-23 23:26:46 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2015-08-17 21:14:51 +01:00
|
|
|
name = "picocom-${version}";
|
2015-10-19 01:23:31 +01:00
|
|
|
version = "2.1";
|
2012-09-23 23:26:46 +01:00
|
|
|
|
2015-08-17 21:14:51 +01:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "npat-efault";
|
|
|
|
repo = "picocom";
|
|
|
|
rev = version;
|
2015-10-19 01:23:31 +01:00
|
|
|
sha256 = "1ac3xdfiw5bd24lw4l9hxc75rcagw0y182x7svhkqp2gwsvzkbjv";
|
2012-09-23 23:26:46 +01:00
|
|
|
};
|
|
|
|
|
2014-07-22 22:51:25 +01:00
|
|
|
buildInputs = [ makeWrapper ];
|
|
|
|
|
2012-09-23 23:26:46 +01:00
|
|
|
installPhase = ''
|
2015-09-20 00:26:56 +01:00
|
|
|
mkdir -p $out/bin $out/share/man/man1
|
2012-09-23 23:26:46 +01:00
|
|
|
cp picocom $out/bin
|
2015-09-20 00:26:56 +01:00
|
|
|
cp picocom.1 $out/share/man/man1
|
2014-07-22 22:51:25 +01:00
|
|
|
|
|
|
|
wrapProgram $out/bin/picocom \
|
|
|
|
--prefix PATH ":" "${lrzsz}/bin"
|
2012-09-23 23:26:46 +01:00
|
|
|
'';
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "Minimal dumb-terminal emulation program";
|
2015-09-20 00:26:56 +01:00
|
|
|
homepage = https://github.com/npat-efault/picocom/;
|
2014-06-19 05:19:00 +01:00
|
|
|
license = stdenv.lib.licenses.gpl2Plus;
|
2012-09-23 23:26:46 +01:00
|
|
|
platforms = stdenv.lib.platforms.gnu; # arbitrary choice
|
|
|
|
};
|
|
|
|
}
|