mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-01 10:00:56 +00:00
4b7b083bcb
Include all linux platforms.
32 lines
806 B
Nix
32 lines
806 B
Nix
{ stdenv, fetchFromGitHub, makeWrapper, lrzsz }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
name = "picocom-${version}";
|
|
version = "3.1";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "npat-efault";
|
|
repo = "picocom";
|
|
rev = version;
|
|
sha256 = "1vvjydqf0ax47nvdyyl67jafw5b3sfsav00xid6qpgia1gs2r72n";
|
|
};
|
|
|
|
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 ++ stdenv.lib.platforms.linux; # arbitrary choice
|
|
};
|
|
}
|