mirror of
https://github.com/JulienMalka/snowfield.git
synced 2025-06-08 02:09:04 +02:00
We had a mosh release
This commit is contained in:
parent
8976722bf8
commit
f2be4eab3f
5 changed files with 1 additions and 100 deletions
|
@ -1,20 +0,0 @@
|
|||
diff --git a/configure.ac b/configure.ac
|
||||
index 3ad983d..ff8ff96 100644
|
||||
--- a/configure.ac
|
||||
+++ b/configure.ac
|
||||
@@ -476,13 +476,7 @@ AS_IF([echo "$protobuf_LIBS" | grep -q -- -pthread],
|
||||
|
||||
# Bash completion needs to ask where it goes if >= 2.0 is installed.
|
||||
AS_IF([test "$install_completion" != no],
|
||||
- [PKG_CHECK_MODULES([BASH_COMPLETION], [bash-completion >= 2.0],
|
||||
- [if test "$prefix" = "NONE"; then
|
||||
- completions="`pkg-config --variable=completionsdir bash-completion`"
|
||||
- else
|
||||
- completions="`pkg-config --define-variable=prefix=$prefix --variable=completionsdir bash-completion`"
|
||||
- fi],
|
||||
- [completions="${sysconfdir}/bash_completion.d"])
|
||||
+ [completions="`pkg-config --define-variable=datadir=$datadir --variable=completionsdir bash-completion`"]
|
||||
AC_SUBST([completions])])
|
||||
|
||||
AC_CONFIG_FILES([
|
||||
|
|
@ -1,62 +0,0 @@
|
|||
{ 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;
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
|
|
@ -1,14 +0,0 @@
|
|||
diff --git i/scripts/mosh.pl w/scripts/mosh.pl
|
||||
index c511482..55bf5f3 100755
|
||||
--- i/scripts/mosh.pl
|
||||
+++ w/scripts/mosh.pl
|
||||
@@ -66,7 +66,7 @@ my $use_remote_ip = 'proxy';
|
||||
my $family = 'prefer-inet';
|
||||
my $port_request = undef;
|
||||
|
||||
-my @ssh = ('ssh');
|
||||
+my @ssh = ('@ssh@');
|
||||
|
||||
my $term_init = 1;
|
||||
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue