From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:54908) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1elJwQ-0001Lf-Vh for guix-patches@gnu.org; Mon, 12 Feb 2018 14:39:08 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1elJwM-0005Vm-RS for guix-patches@gnu.org; Mon, 12 Feb 2018 14:39:06 -0500 Received: from debbugs.gnu.org ([208.118.235.43]:60390) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1elJwM-0005Ub-FN for guix-patches@gnu.org; Mon, 12 Feb 2018 14:39:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1elJwM-0007AL-7l for guix-patches@gnu.org; Mon, 12 Feb 2018 14:39:02 -0500 Subject: [bug#30433] [PATCH] gnu: Add epipe. Resent-Message-ID: Date: Mon, 12 Feb 2018 14:38:48 -0500 From: Leo Famulari Message-ID: <20180212193848.GA32133@jasmine.lan> References: <20180212074851.3515-1-go.wigust@gmail.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="k1lZvvs/B4yU6o8G" Content-Disposition: inline In-Reply-To: <20180212074851.3515-1-go.wigust@gmail.com> List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+kyle=kyleam.com@gnu.org Sender: "Guix-patches" To: Oleg Pykhalov Cc: 30433@debbugs.gnu.org --k1lZvvs/B4yU6o8G Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Mon, Feb 12, 2018 at 10:48:51AM +0300, Oleg Pykhalov wrote: > * gnu/packages/emacs.scm (epipe): New public variable. Thanks! > +(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"... > + (source (origin > + (method git-fetch) > + (uri (git-reference > + (url "https://github.com/cute-jumper/epipe") > + (commit commit))) ... and here use (commit version). > + (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. --k1lZvvs/B4yU6o8G Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCAAdFiEEsFFZSPHn08G5gDigJkb6MLrKfwgFAlqB7UUACgkQJkb6MLrK fwj/GhAAvv8ngsNKgX6x4uHM/udOvjXi4qM6+1LJEqAGHmf/oW04MYUf1+KaPrKl Rv3TSX4bHAuf2slI2BvYKIcFzc6xD8XNP4NXQycFzxFJeaGvDt77Bze+zFQZn4o/ Jeiv6F2BwWGftU6sxDDClc5yPEGEVQeXwk3LcQHFyTIs/KEbFMcDsWG5h2son3YE 3dZkXyfdG5Y4Eeu0zOybCwpKCgQ2hvfSxL6l1zdyVJU5w+SP71PN1bznR4FZF7DH mkcvDCXhePTmU1iwxmEC5Bm/w5TJqter7cJBXUS97sr5S942C/625iUWMKUhdJb1 2EH1oY9TUFj7rM58SW5TSaC57VAA/woIuRTQRsIa1CwrSEkyUmhEhbxVhULjc+of xZsvBNhR/f7Pa6WUaxmRKlje+Z5co+f2mfCPEKaF2UzAqR7P5c/yIExO61eHj5UC e/592nyv88yh08+zTLj6m4y8OltaZGK8Kix/BCTkXrPjZfVTtFFq2tGFmLtKRwoo U1ZQ8kGoZDN8hEu7jOpcLCVLFzJ2CuDxgen50xnNFX8qSj6CQEplsCGp8QTtC+/k CH121Yt0VZlDb4TrL1on3w92qhHliluSQmn4C8/TnNBnSceW9VaV2gfwOgS38T5L rNO1BHgWwtKKmpIvvvAXHzUR4Yq2J6E5XvKHCT1h6CGgYwPwUFA= =PqOe -----END PGP SIGNATURE----- --k1lZvvs/B4yU6o8G--