mirror of
https://github.com/SebastianWendel/nixpkgs.git
synced 2024-09-20 04:19:00 +02:00
mosh: build with latest protobuf
This commit is contained in:
parent
48c5ac5ce0
commit
fd2b5eec41
|
@ -1,5 +1,5 @@
|
|||
{ lib, stdenv, fetchFromGitHub, zlib, protobuf, ncurses, pkg-config
|
||||
, makeWrapper, perl, openssl, autoreconfHook, openssh, bash-completion
|
||||
, makeWrapper, perl, openssl, autoreconfHook, openssh, bash-completion, fetchpatch
|
||||
, withUtempter ? stdenv.isLinux && !stdenv.hostPlatform.isMusl, libutempter }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
|
@ -26,6 +26,12 @@ stdenv.mkDerivation rec {
|
|||
./mosh-client_path.patch
|
||||
# Fix build with bash-completion 2.10
|
||||
./bash_completion_datadir.patch
|
||||
|
||||
# Fixes build with protobuf3 23.x
|
||||
(fetchpatch {
|
||||
url = "https://github.com/mobile-shell/mosh/commit/eee1a8cf413051c2a9104e8158e699028ff56b26.patch";
|
||||
hash = "sha256-CouLHWSsyfcgK3k7CvTK3FP/xjdb1pfsSXYYQj3NmCQ=";
|
||||
})
|
||||
];
|
||||
|
||||
postPatch = ''
|
||||
|
@ -41,8 +47,6 @@ stdenv.mkDerivation rec {
|
|||
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)";
|
||||
|
|
|
@ -10918,9 +10918,7 @@ with pkgs;
|
|||
electron = electron_22;
|
||||
};
|
||||
|
||||
mosh = callPackage ../tools/networking/mosh {
|
||||
protobuf = protobuf3_21;
|
||||
};
|
||||
mosh = callPackage ../tools/networking/mosh { };
|
||||
|
||||
motrix = callPackage ../tools/networking/motrix { };
|
||||
|
||||
|
|
Loading…
Reference in a new issue