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