gnu: mosh: Remove ‘/bin/sh’ dependency.
authorTobias Geerinckx-Rice <me@tobias.gr>
Fri, 3 Jul 2020 18:33:44 +0000 (20:33 +0200)
committerTobias Geerinckx-Rice <me@tobias.gr>
Sun, 5 Jul 2020 05:03:11 +0000 (07:03 +0200)
* gnu/packages/ssh.scm (mosh)[arguments]: Add ‘patch-FHS-file-names’ phase.

gnu/packages/ssh.scm

index ea42e72..38b98f1 100644 (file)
@@ -405,6 +405,12 @@ authentication scheme.")
     (arguments
      '(#:phases
        (modify-phases %standard-phases
+         (add-after 'unpack 'patch-FHS-file-names
+           (lambda _
+             (substitute* "scripts/mosh.pl"
+               (("/bin/sh")
+                (which "sh")))
+             #t))
          (add-after 'install 'wrap
            (lambda* (#:key outputs #:allow-other-keys)
              ;; Make sure 'mosh' can find 'mosh-client' and