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