diff options
author | Jude Taylor <me@jude.bio> | 2015-11-03 14:32:08 -0800 |
---|---|---|
committer | Jude Taylor <me@jude.bio> | 2015-11-03 14:32:14 -0800 |
commit | 772960bcb7c7b49661f355e36c83962444c2d0c8 (patch) | |
tree | fc0b0de8fe2d6d8edc85983a739d392523e34a7a /pkgs/tools/networking/mosh | |
parent | 37e5618203e007c5d2c1dbcb14dae159d180903b (diff) |
darwin purity: mosh
Diffstat (limited to 'pkgs/tools/networking/mosh')
-rw-r--r-- | pkgs/tools/networking/mosh/default.nix | 15 |
1 files changed, 12 insertions, 3 deletions
diff --git a/pkgs/tools/networking/mosh/default.nix b/pkgs/tools/networking/mosh/default.nix index ec2f8d78dc672..59ff89547f2ea 100644 --- a/pkgs/tools/networking/mosh/default.nix +++ b/pkgs/tools/networking/mosh/default.nix @@ -1,5 +1,5 @@ { stdenv, fetchurl, zlib, boost, protobuf, ncurses, pkgconfig, IOTty -, makeWrapper, perl, openssl }: +, makeWrapper, perl, openssl, autoreconfHook }: stdenv.mkDerivation rec { name = "mosh-1.2.5"; @@ -9,10 +9,19 @@ stdenv.mkDerivation rec { sha256 = "1qsb0y882yfgwnpy6f98pi5xqm6kykdsrxzvaal37hs7szjhky0s"; }; - buildInputs = [ boost protobuf ncurses zlib pkgconfig IOTty makeWrapper perl openssl ]; + buildInputs = [ + 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 = '' - wrapProgram $out/bin/mosh --prefix PERL5LIB : $PERL5LIB + wrapProgram $out/bin/mosh --prefix PERL5LIB : $PERL5LIB ''; meta = { |