git.iko.soy/typeable/nixpkgs
on master help sign in
darwin purity: mosh
commit772960bcb7c7b49661f355e36c83962444c2d0c8 authorJude Taylor <me@jude.bio> dateTue 3 Nov 2015, 14:32 (11 years ago) parent37e5618
1 file changed+12−3
pkgs/tools/networking/mosh/default.nix+12−3
pkgs/tools/networking/mosh/default.nix+12−3
@@ -1,5 +1,5 @@
11{ stdenv, fetchurl, zlib, boost, protobuf, ncurses, pkgconfig, IOTty
2−, makeWrapper, perl, openssl }:
2+, makeWrapper, perl, openssl, autoreconfHook }:
33
44stdenv.mkDerivation rec {
55 name = "mosh-1.2.5";
@@ -9,10 +9,19 @@ stdenv.mkDerivation rec {
99 sha256 = "1qsb0y882yfgwnpy6f98pi5xqm6kykdsrxzvaal37hs7szjhky0s";
1010 };
1111
12− buildInputs = [ boost protobuf ncurses zlib pkgconfig IOTty makeWrapper perl openssl ];
12+ buildInputs = [
13+ boost protobuf ncurses zlib pkgconfig IOTty makeWrapper perl openssl
14+ ] ++ stdenv.lib.optional stdenv.isDarwin autoreconfHook;
15+
16+ prePatch = stdenv.lib.optionalString stdenv.isDarwin ''
17+ # look for forkpty in libSystem, not libutil
18+ substituteInPlace configure.ac \
19+ --replace '[util]' '[System]' \
20+ --replace 'LIBUTIL="-lutil"' 'LIBUTIL="-lSystem"'
21+ '';
1322
1423 postInstall = ''
15− wrapProgram $out/bin/mosh --prefix PERL5LIB : $PERL5LIB
24+ wrapProgram $out/bin/mosh --prefix PERL5LIB : $PERL5LIB
1625 '';
1726
1827 meta = {