unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
From: Christopher Baines <mail@cbaines.net>
To: kiasoc5 <kiasoc5@disroot.org>
Cc: 57659@debbugs.gnu.org
Subject: [bug#57659] [PATCH] gnu: Add blesh.
Date: Sun, 11 Sep 2022 20:59:15 +0100	[thread overview]
Message-ID: <87illtu1ba.fsf@cbaines.net> (raw)
In-Reply-To: <412cc868c48c12fd60239cea4bf2797daa93919c.1662603065.git.kiasoc5@disroot.org>

[-- Attachment #1: Type: text/plain, Size: 2309 bytes --]


kiasoc5 via Guix-patches via <guix-patches@gnu.org> writes:

> * gnu/packages/bash.scm (blesh): New variable.
> ---
>  gnu/packages/bash.scm | 23 +++++++++++++++++++++++
>  1 file changed, 23 insertions(+)
>
> diff --git a/gnu/packages/bash.scm b/gnu/packages/bash.scm
> index 72758560cd..2460c7cc00 100644
> --- a/gnu/packages/bash.scm
> +++ b/gnu/packages/bash.scm
> @@ -44,6 +44,7 @@ (define-module (gnu packages bash)
>    #:use-module (guix gexp)
>    #:use-module (guix monads)
>    #:use-module (guix store)
> +  #:use-module (guix build-system copy)
>    #:use-module (guix build-system gnu)
>    #:use-module (guix build-system trivial)
>    #:autoload   (guix gnupg) (gnupg-verify*)
> @@ -456,3 +457,25 @@ (define-public bash-ctypes
>  function interface (FFI) directly in your shell.  In other words, it allows
>  you to call routines in shared libraries from within Bash.")
>      (license license:expat)))
> +
> +(define-public blesh
> +  (package
> +    (name "blesh")
> +    (version "0.3.3")
> +    (source
> +     (origin
> +       (method url-fetch)
> +       (uri (string-append "https://github.com/akinomyoga/ble.sh/releases/download/v"
> +			   version "/ble-" version ".tar.xz"))
> +       (sha256
> +        (base32
> +         "0fpkacw0r5zhby1wpsirlzq4w1yq1fmhivik47l891c2pn1n7rm7"))))
> +    (build-system copy-build-system)
> +    (inputs (list bash))
> +    (arguments
> +      (list
> +	#:install-plan #~'(("." "share/blesh"))))
> +    (home-page "https://github.com/akinomyoga/ble.sh/")
> +    (synopsis "A line editor written in pure Bash")
> +    (description "Bash Line Editor (ble.sh) is a command line editor written in pure Bash which replaces the default GNU Readline. It adds syntax highlighting, auto suggestions, vim modes, and more to Bash interactive sessions.")
> +    (license license:bsd-3)))

Simple things first, the linter makes a number of complaints. There are
tab characters on a couple of lines and some issues with the formatting
of the description.

Maybe more importantly, this package uses the copy build system, but it
looks like ble.sh should be built with make. I realise that the output
of this build process is a mostly readable shell script, but the Guix
package should still build the source to generate it. Does that make
sense?

Thanks,

Chris

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 987 bytes --]

  reply	other threads:[~2022-09-11 20:03 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-09-08  2:11 [bug#57659] [PATCH] gnu: Add blesh kiasoc5 via Guix-patches via
2022-09-11 19:59 ` Christopher Baines [this message]
2022-09-13  2:32 ` [bug#57659] [PATCH v2] " kiasoc5 via Guix-patches via
2022-09-13 12:02   ` Maxime Devos
2022-09-14  3:07 ` [bug#57659] [PATCH v3] " kiasoc5 via Guix-patches via
2022-09-14  8:40   ` bug#57659: " Christopher Baines
2022-09-15 15:26     ` [bug#57659] " Maxime Devos
2022-09-16  0:05       ` kiasoc5 via Guix-patches via

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://guix.gnu.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87illtu1ba.fsf@cbaines.net \
    --to=mail@cbaines.net \
    --cc=57659@debbugs.gnu.org \
    --cc=kiasoc5@disroot.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).