nixpkgs-suyu/pkgs/tools/misc/picocom/default.nix
Tuomas Tynkkynen 8756ac99eb picocom: 1.8 -> 2.0
- Upstream changed manpage filename
- Home page no longer at Google Code
2015-09-20 02:26:56 +03:00

31 lines
776 B
Nix

{ stdenv, fetchFromGitHub, makeWrapper, lrzsz }:
stdenv.mkDerivation rec {
name = "picocom-${version}";
version = "2.0";
src = fetchFromGitHub {
owner = "npat-efault";
repo = "picocom";
rev = version;
sha256 = "0s990jiqlbcg3isvhr3bn4sb7b0k6qqbf1jdvs1fyy9h0iiwprjw";
};
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
};
}