Merge pull request #60419 from dtzWill/fix/mosh-llvm7
mosh: upstream patch to fix w/newer clang/libcxx (c++17)
This commit is contained in:
commit
01390dcef2
@ -1,4 +1,4 @@
|
|||||||
{ lib, stdenv, fetchurl, zlib, protobuf, ncurses, pkgconfig
|
{ lib, stdenv, fetchurl, fetchpatch, zlib, protobuf, ncurses, pkgconfig
|
||||||
, makeWrapper, perlPackages, openssl, autoreconfHook, openssh, bash-completion
|
, makeWrapper, perlPackages, openssl, autoreconfHook, openssh, bash-completion
|
||||||
, libutempter ? null, withUtempter ? stdenv.isLinux }:
|
, libutempter ? null, withUtempter ? stdenv.isLinux }:
|
||||||
|
|
||||||
@ -15,7 +15,15 @@ stdenv.mkDerivation rec {
|
|||||||
++ (with perlPackages; [ perl IOTty ])
|
++ (with perlPackages; [ perl IOTty ])
|
||||||
++ lib.optional withUtempter libutempter;
|
++ lib.optional withUtempter libutempter;
|
||||||
|
|
||||||
patches = [ ./ssh_path.patch ./utempter_path.patch ];
|
patches = [
|
||||||
|
./ssh_path.patch
|
||||||
|
./utempter_path.patch
|
||||||
|
# Fix w/c++17, ::bind vs std::bind
|
||||||
|
(fetchpatch {
|
||||||
|
url = "https://github.com/mobile-shell/mosh/commit/e5f8a826ef9ff5da4cfce3bb8151f9526ec19db0.patch";
|
||||||
|
sha256 = "15518rb0r5w1zn4s6981bf1sz6ins6gpn2saizfzhmr13hw4gmhm";
|
||||||
|
})
|
||||||
|
];
|
||||||
postPatch = ''
|
postPatch = ''
|
||||||
substituteInPlace scripts/mosh.pl \
|
substituteInPlace scripts/mosh.pl \
|
||||||
--subst-var-by ssh "${openssh}/bin/ssh"
|
--subst-var-by ssh "${openssh}/bin/ssh"
|
||||||
|
@ -4616,9 +4616,7 @@ in
|
|||||||
docbook-xsl = docbook_xsl;
|
docbook-xsl = docbook_xsl;
|
||||||
};
|
};
|
||||||
|
|
||||||
mosh = callPackage ../tools/networking/mosh {
|
mosh = callPackage ../tools/networking/mosh { };
|
||||||
stdenv = if stdenv.cc.isClang then llvmPackages_6.stdenv else stdenv;
|
|
||||||
};
|
|
||||||
|
|
||||||
motuclient = callPackage ../applications/science/misc/motu-client { };
|
motuclient = callPackage ../applications/science/misc/motu-client { };
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user