From mboxrd@z Thu Jan 1 00:00:00 1970 From: Alex Kost Subject: Re: [PATCH] gnu: Add emacs-sx. Date: Wed, 18 Jan 2017 13:03:09 +0300 Message-ID: <87h94wlm76.fsf@gmail.com> References: <87o9z8awzm.fsf@wasp.i-did-not-set--mail-host-address--so-tickle-me> <20170115211050.18602-1-ng0@libertad.pw> <20170115211050.18602-2-ng0@libertad.pw> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:34171) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cTn5J-0002Yi-Ca for guix-devel@gnu.org; Wed, 18 Jan 2017 05:03:18 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cTn5F-0006p4-PU for guix-devel@gnu.org; Wed, 18 Jan 2017 05:03:17 -0500 Received: from mail-lf0-x241.google.com ([2a00:1450:4010:c07::241]:32815) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1cTn5F-0006oG-I9 for guix-devel@gnu.org; Wed, 18 Jan 2017 05:03:13 -0500 Received: by mail-lf0-x241.google.com with SMTP id x1so999508lff.0 for ; Wed, 18 Jan 2017 02:03:11 -0800 (PST) In-Reply-To: <20170115211050.18602-2-ng0@libertad.pw> (ng0@libertad.pw's message of "Sun, 15 Jan 2017 21:10:50 +0000") List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: "Guix-devel" To: ng0 Cc: guix-devel@gnu.org, ng0 ng0 (2017-01-15 21:10 +0000) wrote: > From: ng0 > > * gnu/packages/emacs.scm (emacs-sx): New variable. Thanks, I committed it as 899bcad310. See the comments below. > --- > gnu/packages/emacs.scm | 26 +++++++++++++++++++++++++- > 1 file changed, 25 insertions(+), 1 deletion(-) > > diff --git a/gnu/packages/emacs.scm b/gnu/packages/emacs.scm > index 50cea7685..ca038bcb2 100644 > --- a/gnu/packages/emacs.scm > +++ b/gnu/packages/emacs.scm > @@ -12,7 +12,7 @@ > ;;; Copyright =C2=A9 2016 David Thompson > ;;; Copyright =C2=A9 2016 Matthew Jordan > ;;; Copyright =C2=A9 2016 Roel Janssen > -;;; Copyright =C2=A9 2016 ng0 > +;;; Copyright =C2=A9 2016, 2017 ng0 So are you going to use this email now? ".mailmap" still prefers . > ;;; Copyright =C2=A9 2016 Alex Griffin > ;;; Copyright =C2=A9 2016 Nicolas Goaziou > ;;; Copyright =C2=A9 2016 Alex Vong > @@ -1391,6 +1391,30 @@ allows easily move between them.") > strings.") > (license license:gpl3+))) >=20=20 > +(define-public emacs-sx > + (package > + (name "emacs-sx") > + (version "0.4") > + (source > + (origin > + (method url-fetch) > + (uri (string-append "https://github.com/vermiculus/sx.el/" > + "archive/v" version ".tar.gz")) > + (file-name (string-append name "-" version ".tar")) ^^^^^ I changed it to ".tar.gz" > + (sha256 > + (base32 > + "1w0xghfljqg31axcnv8gzlrd8pw25nji6idnrhflq0af9qh1dw03")))) > + (build-system emacs-build-system) > + (inputs > + `(("emacs-markdown-mode" ,emacs-markdown-mode) > + ("let-alist" ,let-alist))) All emacs dependencies should be propagated, otherwise the package will not work. > + (home-page "https://github.com/vermiculus/sx.el/") > + (synopsis "Emacs StackExchange client") > + (description > + "Emacs StackExchange client. Ask and answer questions on > +Stack Overflow, Super User, and other StackExchange sites.") > + (license license:gpl3+))) > + > (define-public emacs-f > (package > (name "emacs-f") Also for those who may wonder, there are a lot of errors like this: sx-method.el:33:1:Error: Creating directory: No such file or directory, /= homeless-shelter/.emacs.d/.sx This leads to many uncompiled elisp files. This issue is fixed in master so it should be OK in the next release: https://github.com/vermiculus/sx.el/commit/53816e1885df22391ecc820297c1fe7c= d381a630 --=20 Alex