From: Oleg Pykhalov <go.wigust@gmail.com>
To: Leo Famulari <leo@famulari.name>
Cc: 30433@debbugs.gnu.org
Subject: [bug#30433] [PATCH] gnu: Add epipe.
Date: Wed, 14 Feb 2018 16:14:15 +0300 [thread overview]
Message-ID: <874lmjiuhk.fsf@gmail.com> (raw)
In-Reply-To: <20180212193848.GA32133@jasmine.lan> (Leo Famulari's message of "Mon, 12 Feb 2018 14:38:48 -0500")
[-- Attachment #1: Type: text/plain, Size: 2210 bytes --]
Leo Famulari <leo@famulari.name> writes:
> On Mon, Feb 12, 2018 at 10:48:51AM +0300, Oleg Pykhalov wrote:
>> * gnu/packages/emacs.scm (epipe): New public variable.
>
> Thanks!
Thank you for review.
>> +(define-public epipe
>> + (let ((commit "c966d549d5416fb92ecf4bd4a0a5a8fc9239e3af")
>> + (revision "1"))
>> + (package
>> + (name "epipe")
>> + (version (string-append "0.0.1" "-" revision "."
>> + (string-take commit 7)))
>
> This commit corresponds to the upstream tag "0.1.0", so you can omit the
> commit and revision variables, and just set the version to "0.1.0"...
Maybe it's better to get a source via url-fetch from GitHub archive
tarball?
>> + (source (origin
>> + (method git-fetch)
>> + (uri (git-reference
>> + (url "https://github.com/cute-jumper/epipe")
>> + (commit commit)))
>
> ... and here use (commit version).
OK.
>> + (arguments
>> + '(#:modules ((guix build utils))
>> + #:builder
>> + (begin
>> + (use-modules (guix build utils))
>> + ;; Copy source
>> + (copy-recursively (assoc-ref %build-inputs "source") ".")
>> + ;; Patch shebangs
>> + (substitute* "epipe"
>> + (("/usr/bin/env bash")
>> + (string-append (assoc-ref %build-inputs "bash") "/bin/bash")))
>> + (substitute* "epipe.pl"
>> + (("/usr/bin/perl")
>> + (string-append (assoc-ref %build-inputs "perl") "/bin/perl")))
>> + ;; Installation
>> + (for-each (lambda (file)
>> + (install-file file (string-append %output "/bin")))
>> + '("epipe" "epipe.pl"))
>> + #t)))
>
> I think you could use the patch-shebang procedure from (guix build
> utils), as in the package for woof.
As I see only for Perl, because folling does nothing:
--8<---------------cut here---------------start------------->8---
(patch-shebang "epipe"
(list (string-append (assoc-ref %build-inputs "bash")
"/bin")))
--8<---------------cut here---------------end--------------->8---
Oleg.
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 832 bytes --]
next prev parent reply other threads:[~2018-02-14 13:15 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-02-12 7:48 [bug#30433] [PATCH] gnu: Add epipe Oleg Pykhalov
2018-02-12 19:38 ` Leo Famulari
2018-02-14 13:14 ` Oleg Pykhalov [this message]
2018-02-14 20:51 ` Leo Famulari
2018-02-15 17:47 ` Oleg Pykhalov
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=874lmjiuhk.fsf@gmail.com \
--to=go.wigust@gmail.com \
--cc=30433@debbugs.gnu.org \
--cc=leo@famulari.name \
/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 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.