2014-07-22 23:51:25 +02:00
|
|
|
{ stdenv, fetchurl, makeWrapper, lrzsz }:
|
2012-09-24 00:26:46 +02:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "picocom-1.7";
|
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "http://picocom.googlecode.com/files/${name}.tar.gz";
|
|
|
|
sha256 = "17hjq713naq02xar711aw24qqd52p591mj1h5n97cni1ga7irwyh";
|
|
|
|
};
|
|
|
|
|
2014-07-22 23:51:25 +02:00
|
|
|
buildInputs = [ makeWrapper ];
|
|
|
|
|
2012-09-24 00:26:46 +02:00
|
|
|
installPhase = ''
|
2014-06-30 14:56:10 +02:00
|
|
|
mkdir -p $out/bin $out/share/man/man8
|
2012-09-24 00:26:46 +02:00
|
|
|
cp picocom $out/bin
|
|
|
|
cp picocom.8 $out/share/man/man8
|
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";
|
|
|
|
homepage = http://code.google.com/p/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
|
|
|
|
};
|
|
|
|
}
|