From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id eMJeGyFGIWOaTwAAbAwnHQ (envelope-from ) for ; Wed, 14 Sep 2022 05:10:25 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id qK5gGyFGIWNbzAAAauVa8A (envelope-from ) for ; Wed, 14 Sep 2022 05:10:25 +0200 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 0668E6284 for ; Wed, 14 Sep 2022 05:10:25 +0200 (CEST) Received: from localhost ([::1]:56164 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oYInA-0003Hr-5S for larch@yhetil.org; Tue, 13 Sep 2022 23:10:24 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:38776) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oYImo-0003Hi-9N for guix-patches@gnu.org; Tue, 13 Sep 2022 23:10:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:36346) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oYImn-0001Xg-Vv for guix-patches@gnu.org; Tue, 13 Sep 2022 23:10:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oYImn-0003hU-RE for guix-patches@gnu.org; Tue, 13 Sep 2022 23:10:01 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#57659] [PATCH v3] gnu: Add blesh. References: <412cc868c48c12fd60239cea4bf2797daa93919c.1662603065.git.kiasoc5@disroot.org> In-Reply-To: <412cc868c48c12fd60239cea4bf2797daa93919c.1662603065.git.kiasoc5@disroot.org> Resent-From: kiasoc5 Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Wed, 14 Sep 2022 03:10:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 57659 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: mail@cbaines.net, maximedevos@telenet.be Cc: kiasoc5 , 57659@debbugs.gnu.org Received: via spool by 57659-submit@debbugs.gnu.org id=B57659.166312498114189 (code B ref 57659); Wed, 14 Sep 2022 03:10:01 +0000 Received: (at 57659) by debbugs.gnu.org; 14 Sep 2022 03:09:41 +0000 Received: from localhost ([127.0.0.1]:53277 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oYImF-0003gZ-On for submit@debbugs.gnu.org; Tue, 13 Sep 2022 23:09:41 -0400 Received: from knopi.disroot.org ([178.21.23.139]:39604) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oYImC-0003gN-RC for 57659@debbugs.gnu.org; Tue, 13 Sep 2022 23:09:26 -0400 Received: from localhost (localhost [127.0.0.1]) by disroot.org (Postfix) with ESMTP id 2AC4349FE1; Wed, 14 Sep 2022 05:09:23 +0200 (CEST) X-Virus-Scanned: SPAM Filter at disroot.org Received: from knopi.disroot.org ([127.0.0.1]) by localhost (disroot.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id l2m8AX_JPIZs; Wed, 14 Sep 2022 05:09:21 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=disroot.org; s=mail; t=1663124872; bh=be3cYzBIWO/Q0ZtDCZzERrEGJa+RVWOuRBrtaBfjjjY=; h=From:To:Cc:Subject:Date; b=SifNc58LcamCovWpHiXS5ofutkGkKhUf1z2sigwcC+TlWK6u9CPH7lUq6ccLoTrkJ 0tu4UsCB85b7OxlnQHHJlJckn/jirU91yR85eSx1w3MThfLDInk3q/Qy6roMzDymiv B+nZrIrRK9HPn9o2LDqfLICE77+z5UHXjkqid4BSSJ3RMdQMPLydPlX9Ashet0drxe TjY0Orhfly8l0bqcaqVFRyze+b/A1Afpt69ApCvQ1NaNY8fN+osjmWK+GkD0G5viaL PQxaXLRGhwAMXhY7RhdgLyJtGTXsLfyBolGiQBloRvM/qd2n2Cry37fwgAlA77GaCz lUroTPPfIXhFw== Date: Tue, 13 Sep 2022 23:07:08 -0400 Message-Id: <20220914030706.47516-1-kiasoc5@disroot.org> Mime-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: "Guix-patches" Reply-to: kiasoc5 X-ACL-Warn: , kiasoc5 via Guix-patches From: kiasoc5 via Guix-patches via X-Migadu-Flow: FLOW_IN X-Migadu-To: larch@yhetil.org X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1663125025; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding:resent-cc: resent-from:resent-sender:resent-message-id:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=Ou0Fw4KLsCzgNMn61kVXGHRFhflgqCI28XLVIa3i8z4=; b=pIkR2IsNLzC7/UmAZ0ScdzNm2ETogKsPUcA96yKLx0EtBNHMsDH/kUGhkfutwsetNBDkgT mNA6E+J8CtDxRLhdkmjKPdTQxdNivaI7t1sTaV8d+FTt6V1H+5YI8cpRe3/yuW8wcgx27B dCvcD8AvqgaOmpHk/kzM387b07KdUt86IKkGKvCoZHmPBOIv8x91ebO6xELrKQqcJ00PY9 bo5zmDiWI+9mZKi7s5QmreN8qT445tJIrM3j7NSW3yERdeqreVYy9JwE90L7ajSwuhdCOU rMQL4mP/Ytqs4smoCX8C9gG2WQtTaLU/MpsPaQ63G54HRgJui5MYvzlfanwLBg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1663125025; a=rsa-sha256; cv=none; b=hNPGLBdOBPGjATYJ2BNDZ/hxYnW93Z6aLjsWtgZv8Mabj0LECW5tN8/UW4CSJICBH2+q4o JHvIPT2sp97VgZhNYMOQoaWLQA4Dpd5h5HZe+4v6xaMYqoZ0kfJ7771M+2zDGSyUFhXhSw fO0PCkbx/qrSMGg21+DAeC29RFar+gnb1tP15T3xmB2DMuRM5CG9RXTFJ2XCb/vJO6gVop GGWLGoEj9cO6FOgwZH/welCqMjkEOQ3ThLQ4xiPPWQyoc/sSR5gPqcfPgoz7O7kPZUpJke nNe9XFxc+AHgGkEiOKg5/ZKksZfn0wRS8XbUeGZYSEoQ9xgn5ZauRiE4vS3IPA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=disroot.org header.s=mail header.b=SifNc58L; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: -3.41 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=disroot.org header.s=mail header.b=SifNc58L; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: 0668E6284 X-Spam-Score: -3.41 X-Migadu-Scanner: scn0.migadu.com X-TUID: XZ5RfwFi62aw Tests pass now. * gnu/packages/bash.scm (blesh): New variable. --- gnu/packages/bash.scm | 45 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 45 insertions(+) diff --git a/gnu/packages/bash.scm b/gnu/packages/bash.scm index 72758560cd..8f614e145a 100644 --- a/gnu/packages/bash.scm +++ b/gnu/packages/bash.scm @@ -37,6 +37,8 @@ (define-module (gnu packages bash) #:use-module (gnu packages libffi) #:use-module (gnu packages pkg-config) #:use-module (gnu packages guile) + #:use-module (gnu packages version-control) + #:use-module (gnu packages less) #:use-module (guix packages) #:use-module (guix download) #:use-module (guix git-download) @@ -456,3 +458,46 @@ (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.4.0-devel2") + (source (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/akinomyoga/ble.sh") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "02fdjyh4x6wr5hg3i86nsxhz8ysgjrvvxdmk6pqr0lm8ngw9p3sh")))) + (arguments + (list #:make-flags #~(list (string-append "PREFIX=" + #$output)) + #:phases #~(modify-phases %standard-phasesg + (add-after 'unpack 'pretend-contrib-.git-exists + (lambda _ + (mkdir-p "contrib/.git"))) + (add-after 'unpack 'make-readlink-work + (lambda _ + (substitute* "ble.pp" + (("PATH=/bin:/usr/bin readlink") + (search-input-file %build-inputs + "/bin/readlink"))))) + (delete 'configure) ;no configure + (add-before 'check 'use-LC_ALL-for-tests + (lambda _ + (setenv "LANG" + (getenv "LC_ALL")) + (unsetenv "LC_ALL")))))) + (build-system gnu-build-system) + (inputs (list coreutils)) + (native-inputs (list git-minimal less)) + (home-page "https://github.com/akinomyoga/ble.sh") + (synopsis "Bash Line Editor") + (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))) base-commit: 491dd62b38e1772f3e50de58118d9b9ac97272ff -- 2.37.3