summary refs log tree commit diff
path: root/pkgs/tools/misc/picocom/default.nix
blob: 6b4a0e3018fe5ac6c12872f6b14fa918fea72ffa (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
{ stdenv, fetchurl, makeWrapper, lrzsz }:

stdenv.mkDerivation rec {
  name = "picocom-1.7";

  src = fetchurl {
    url = "http://picocom.googlecode.com/files/${name}.tar.gz";
    sha256 = "17hjq713naq02xar711aw24qqd52p591mj1h5n97cni1ga7irwyh";
  };

  buildInputs = [ makeWrapper ];

  installPhase = ''
    ensureDir $out/bin $out/share/man/man8
    cp picocom $out/bin
    cp picocom.8 $out/share/man/man8

    wrapProgram $out/bin/picocom \
      --prefix PATH ":" "${lrzsz}/bin"
  '';

  meta = {
    description = "Minimal dumb-terminal emulation program";
    homepage = http://code.google.com/p/picocom/;
    license = stdenv.lib.licenses.gpl2Plus;
    platforms = stdenv.lib.platforms.gnu;  # arbitrary choice
  };
}