nixpkgs/pkgs/tools/misc/picocom/default.nix
William A. Kennington III ca58b16d67 picocom: 2.0 -> 2.1
2015-10-18 17:23:51 -07:00

32 lines
776 B
Nix

{ stdenv, fetchFromGitHub, makeWrapper, lrzsz }:
stdenv.mkDerivation rec {
name = "picocom-${version}";
version = "2.1";
src = fetchFromGitHub {
owner = "npat-efault";
repo = "picocom";
rev = version;
sha256 = "1ac3xdfiw5bd24lw4l9hxc75rcagw0y182x7svhkqp2gwsvzkbjv";
};
buildInputs = [ makeWrapper ];
installPhase = ''
mkdir -p $out/bin $out/share/man/man1
cp picocom $out/bin
cp picocom.1 $out/share/man/man1
wrapProgram $out/bin/picocom \
--prefix PATH ":" "${lrzsz}/bin"
'';
meta = {
description = "Minimal dumb-terminal emulation program";
homepage = https://github.com/npat-efault/picocom/;
license = stdenv.lib.licenses.gpl2Plus;
platforms = stdenv.lib.platforms.gnu; # arbitrary choice
};
}