nixpkgs/pkgs/tools/misc/picocom/default.nix

32 lines
776 B
Nix
Raw Normal View History

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-12-26 17:23:10 +01:00
version = "3.0";
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-12-26 17:23:10 +01:00
sha256 = "1i75ksm44la8kn82v71hzq0q5642y108rascdb94zilhagdhilk2";
2012-09-24 00:26:46 +02:00
};
buildInputs = [ makeWrapper ];
2012-09-24 00:26:46 +02:00
installPhase = ''
mkdir -p $out/bin $out/share/man/man1
2012-09-24 00:26:46 +02:00
cp picocom $out/bin
cp picocom.1 $out/share/man/man1
wrapProgram $out/bin/picocom \
--prefix PATH ":" "${lrzsz}/bin"
2012-09-24 00:26:46 +02:00
'';
meta = {
description = "Minimal dumb-terminal emulation program";
homepage = https://github.com/npat-efault/picocom/;
license = stdenv.lib.licenses.gpl2Plus;
2012-09-24 00:26:46 +02:00
platforms = stdenv.lib.platforms.gnu; # arbitrary choice
};
}