From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:37042) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cxGAC-00006E-CY for guix-patches@gnu.org; Sun, 09 Apr 2017 12:58:09 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cxGA8-0004uw-5R for guix-patches@gnu.org; Sun, 09 Apr 2017 12:58:08 -0400 Received: from debbugs.gnu.org ([208.118.235.43]:41765) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1cxGA8-0004uq-1t for guix-patches@gnu.org; Sun, 09 Apr 2017 12:58:04 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1cxGA6-0001bE-94 for guix-patches@gnu.org; Sun, 09 Apr 2017 12:58:02 -0400 Subject: bug#26420: [PATCH 2/2] gnu: Add emacs-use-package. Resent-Message-ID: Message-Id: <8c88a4c1.ADsAAHIoMD8AAAAAAAAAAAOzcd8AAAACwQwAAAAAAAW9WABY6mf5@mailjet.com> From: Arun Isaac Date: Sun, 9 Apr 2017 22:27:03 +0530 In-Reply-To: <20170409165703.9034-1-arunisaac@systemreboot.net> References: <20170409165703.9034-1-arunisaac@systemreboot.net> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable 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: 26420@debbugs.gnu.org * gnu/packages/emacs.scm (emacs-use-package): New variable. --- gnu/packages/emacs.scm | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) diff --git a/gnu/packages/emacs.scm b/gnu/packages/emacs.scm index e3fe5e51e..4a77723b3 100644 --- a/gnu/packages/emacs.scm +++ b/gnu/packages/emacs.scm @@ -4102,3 +4102,37 @@ actually changing the buffer's text.") (description "@code{emacs-diminish} implements hiding or abbreviation of the mode line displays (lighters) of minor modes.") (license license:gpl2+))) + +(define-public emacs-use-package + (package + (name "emacs-use-package") + (version "2.3") + (source + (origin + (method url-fetch) + (uri (string-append + "https://github.com/jwiegley/use-package/archive/" + version ".tar.gz")) + (file-name (string-append name "-" version ".tar.gz")) + (sha256 + (base32 + "0x4h136jb3imyli6zsh7dyzjrra6pv0v6b0yk94jdng3rdfcmsf5")))) + (build-system emacs-build-system) + (propagated-inputs + `(("emacs-diminish" ,emacs-diminish))) + (arguments + `(#:phases + (modify-phases %standard-phases + ;; tests fail in this release + (add-before 'install 'check + (lambda _ + (zero? (system* "emacs" "--batch" "-L" "." + "-l" "use-package-tests.el" + "-f" "ert-run-tests-batch-and-exit")) + #t))))) + (home-page "https://github.com/jwiegley/use-package") + (synopsis "Declaration for simplifying your .emacs") + (description "The use-package macro allows you to isolate package +configuration in your .emacs file in a way that is both +performance-oriented and tidy.") + (license license:gpl2+))) --=20 2.12.2 =