all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* [bug#27669] [PATCH 2/2] gnu: Add mksh.
       [not found] <20170712141047.2760-1-arunisaac@systemreboot.net>
@ 2017-07-12 14:10 ` Arun Isaac
  2017-07-20  9:20   ` Ludovic Courtès
       [not found] ` <20170712141047.2760-2-arunisaac@systemreboot.net>
  1 sibling, 1 reply; 4+ messages in thread
From: Arun Isaac @ 2017-07-12 14:10 UTC (permalink / raw)
  To: 27669

* gnu/packages/shells.scm (mksh): New variable.
---
 gnu/packages/shells.scm | 39 +++++++++++++++++++++++++++++++++++++++
 1 file changed, 39 insertions(+)

diff --git a/gnu/packages/shells.scm b/gnu/packages/shells.scm
index 65e0eda50..2b53afec1 100644
--- a/gnu/packages/shells.scm
+++ b/gnu/packages/shells.scm
@@ -599,3 +599,42 @@ interactive POSIX shell targeted at resource-constrained systems.")
     ;; The file 'LEGAL' says it is the public domain, and the 2
     ;; exceptions which are listed are not included in this port.
     (license public-domain)))
+
+(define-public mksh
+  (package
+    (name "mksh")
+    (version "55")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (string-append "https://www.mirbsd.org/MirOS/dist/mir/mksh/mksh-R"
+                           version ".tgz"))
+       (sha256
+        (base32
+         "0mssqd2wp3cs9x01v6g66iy3ymdxagbyw2c0v597vnc1l6s2rm6f"))))
+    (build-system gnu-build-system)
+    (arguments
+     `(#:tests? #f ; tests require access to /dev/tty
+       #:phases
+       (modify-phases %standard-phases
+         (delete 'configure)
+         (replace 'build
+           (lambda _
+             (setenv "CC" "gcc")
+             (zero? (system* (which "sh") "Build.sh"))))
+         (replace 'install
+           (lambda* (#:key outputs #:allow-other-keys)
+             (let* ((out (assoc-ref outputs "out"))
+                    (bin (string-append out "/bin"))
+                    (man (string-append out "/share/man/man1")))
+               (install-file "mksh" bin)
+               (with-directory-excursion bin
+                 (symlink "mksh" "ksh"))
+               (install-file "mksh.1" man)))))))
+    (home-page "https://www.mirbsd.org/mksh.htm")
+    (synopsis "Korn Shell from MirBSD")
+    (description "mksh is an actively developed free implementation of the
+Korn Shell programming language and a successor to the Public Domain Korn
+Shell (pdksh).")
+    (license (list miros
+                   isc)))) ; strlcpy.c
-- 
2.12.2


^ permalink raw reply related	[flat|nested] 4+ messages in thread

* [bug#27669] [PATCH 2/2] gnu: Add mksh.
       [not found] ` <20170712141047.2760-2-arunisaac@systemreboot.net>
@ 2017-07-12 14:14   ` Arun Isaac
  0 siblings, 0 replies; 4+ messages in thread
From: Arun Isaac @ 2017-07-12 14:14 UTC (permalink / raw)
  To: 27669


> +    (license (list miros
> +                   isc)))) ; strlcpy.c

The file mksh.ico is under a different license as stated in Appendix D
of https://www.mirbsd.org/TaC-mksh.txt

I haven't added it to the list of licenses for the following two reasons:

- the file mksh.ico is not installed in our built package
- I don't understand what license is described in Appendix D, and could
use some help.

Could someone clarify? Thanks.

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [bug#27669] [PATCH 2/2] gnu: Add mksh.
  2017-07-12 14:10 ` [bug#27669] [PATCH 2/2] gnu: Add mksh Arun Isaac
@ 2017-07-20  9:20   ` Ludovic Courtès
  2017-07-20 14:32     ` bug#27669: " Arun Isaac
  0 siblings, 1 reply; 4+ messages in thread
From: Ludovic Courtès @ 2017-07-20  9:20 UTC (permalink / raw)
  To: Arun Isaac; +Cc: 27669

Arun Isaac <arunisaac@systemreboot.net> skribis:

> * gnu/packages/shells.scm (mksh): New variable.

LGTM, thanks!

Ludo'.

^ permalink raw reply	[flat|nested] 4+ messages in thread

* bug#27669: [PATCH 2/2] gnu: Add mksh.
  2017-07-20  9:20   ` Ludovic Courtès
@ 2017-07-20 14:32     ` Arun Isaac
  0 siblings, 0 replies; 4+ messages in thread
From: Arun Isaac @ 2017-07-20 14:32 UTC (permalink / raw)
  To: Ludovic Courtès; +Cc: 27669-done


Pushed, thanks!

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2017-07-20 14:33 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <20170712141047.2760-1-arunisaac@systemreboot.net>
2017-07-12 14:10 ` [bug#27669] [PATCH 2/2] gnu: Add mksh Arun Isaac
2017-07-20  9:20   ` Ludovic Courtès
2017-07-20 14:32     ` bug#27669: " Arun Isaac
     [not found] ` <20170712141047.2760-2-arunisaac@systemreboot.net>
2017-07-12 14:14   ` [bug#27669] " Arun Isaac

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/guix.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.