mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-22 13:43:22 +00:00
9b18a0f353
Do the same thing as we do for the "ssh" binary, except with mosh-client: Patch the perl source to substitute mosh-client with @mosh-client@, then substituteInPlace the variable out for the compilation output path.
23 lines
689 B
Diff
23 lines
689 B
Diff
diff --git a/scripts/mosh.pl b/scripts/mosh.pl
|
|
index 56e96d7..2a2177e 100755
|
|
--- a/scripts/mosh.pl
|
|
+++ b/scripts/mosh.pl
|
|
@@ -61,7 +61,7 @@ my $have_ipv6 = eval {
|
|
|
|
$|=1;
|
|
|
|
-my $client = 'mosh-client';
|
|
+my $client = '@mosh-client@';
|
|
my $server = 'mosh-server';
|
|
|
|
my $predict = undef;
|
|
@@ -91,7 +91,7 @@ my @cmdline = @ARGV;
|
|
my $usage =
|
|
qq{Usage: $0 [options] [--] [user@]host [command...]
|
|
--client=PATH mosh client on local machine
|
|
- (default: "mosh-client")
|
|
+ (default: "@mosh-client@")
|
|
--server=COMMAND mosh server on remote machine
|
|
(default: "mosh-server")
|
|
|