mirror of
https://github.com/JulienMalka/snowfield.git
synced 2025-03-28 14:50:55 +01:00
62 lines
1.7 KiB
Nix
62 lines
1.7 KiB
Nix
{ pkgs, lib, stdenv, fetchFromGithub, fetchpatch, zlib, protobuf, ncurses, pkg-config
|
|
, makeWrapper, perlPackages, openssl, autoreconfHook, openssh, bash-completion
|
|
, withUtempter ? stdenv.isLinux, libutempter }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "mosh";
|
|
version = "1.3.2";
|
|
|
|
src = pkgs.fetchFromGitHub {
|
|
owner = "mobile-shell";
|
|
repo = pname;
|
|
rev = "378dfa6aa5778cf168646ada7f52b6f4a8ec8e41";
|
|
sha256 = "LJssBMrICVgaZtTvZTO6bYMFO4fQ330lIUkWzDSyf7o=";
|
|
};
|
|
|
|
nativeBuildInputs = [ autoreconfHook pkg-config makeWrapper ];
|
|
buildInputs = [ protobuf ncurses zlib openssl ]
|
|
++ (with perlPackages; [ perl IOTty ])
|
|
++ lib.optional withUtempter libutempter;
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
patches = [
|
|
./ssh_path.patch
|
|
./bash_completion_datadir.patch
|
|
];
|
|
|
|
|
|
preConfigure = ''
|
|
./autogen.sh
|
|
'';
|
|
|
|
NIX_CFLAGS_COMPILE = "-O2";
|
|
|
|
configureFlags = [ "--enable-completion" ]
|
|
++ lib.optional withUtempter "--with-utempter";
|
|
|
|
postInstall = ''
|
|
wrapProgram $out/bin/mosh --prefix PERL5LIB : $PERL5LIB
|
|
'';
|
|
|
|
CXXFLAGS = lib.optionalString stdenv.cc.isClang "-std=c++11";
|
|
|
|
meta = with lib; {
|
|
homepage = "https://mosh.org/";
|
|
description = "Mobile shell (ssh replacement)";
|
|
longDescription = ''
|
|
Remote terminal application that allows roaming, supports intermittent
|
|
connectivity, and provides intelligent local echo and line editing of
|
|
user keystrokes.
|
|
|
|
Mosh is a replacement for SSH. It's more robust and responsive,
|
|
especially over Wi-Fi, cellular, and long-distance links.
|
|
'';
|
|
license = licenses.gpl3Plus;
|
|
maintainers = with maintainers; [ viric SuperSandro2000 ];
|
|
platforms = platforms.unix;
|
|
};
|
|
}
|
|
|
|
|
|
|