parent
b3bb609b96
commit
d2e6b9f3ae
|
@ -1,5 +1,5 @@
|
||||||
{ stdenv, fetchurl, zlib, boost, protobuf, ncurses, pkgconfig, IOTty
|
{ stdenv, fetchurl, zlib, boost, protobuf, ncurses, pkgconfig, IOTty
|
||||||
, makeWrapper, perl, openssl, autoreconfHook }:
|
, makeWrapper, perl, openssl }:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
name = "mosh-1.2.5";
|
name = "mosh-1.2.5";
|
||||||
|
@ -9,19 +9,10 @@ stdenv.mkDerivation rec {
|
||||||
sha256 = "1qsb0y882yfgwnpy6f98pi5xqm6kykdsrxzvaal37hs7szjhky0s";
|
sha256 = "1qsb0y882yfgwnpy6f98pi5xqm6kykdsrxzvaal37hs7szjhky0s";
|
||||||
};
|
};
|
||||||
|
|
||||||
buildInputs = [
|
buildInputs = [ boost protobuf ncurses zlib pkgconfig IOTty makeWrapper perl openssl ];
|
||||||
boost protobuf ncurses zlib pkgconfig IOTty makeWrapper perl openssl
|
|
||||||
] ++ stdenv.lib.optional stdenv.isDarwin autoreconfHook;
|
|
||||||
|
|
||||||
prePatch = stdenv.lib.optionalString stdenv.isDarwin ''
|
|
||||||
# look for forkpty in libSystem, not libutil
|
|
||||||
substituteInPlace configure.ac \
|
|
||||||
--replace '[util]' '[System]' \
|
|
||||||
--replace 'LIBUTIL="-lutil"' 'LIBUTIL="-lSystem"'
|
|
||||||
'';
|
|
||||||
|
|
||||||
postInstall = ''
|
postInstall = ''
|
||||||
wrapProgram $out/bin/mosh --prefix PERL5LIB : $PERL5LIB
|
wrapProgram $out/bin/mosh --prefix PERL5LIB : $PERL5LIB
|
||||||
'';
|
'';
|
||||||
|
|
||||||
meta = {
|
meta = {
|
||||||
|
|
Loading…
Reference in New Issue