From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:470:142:3::10]:43256) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1i85nj-0006FT-Al for guix-patches@gnu.org; Wed, 11 Sep 2019 12:49:04 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1i85ni-0003kK-3w for guix-patches@gnu.org; Wed, 11 Sep 2019 12:49:03 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:33868) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1i85ni-0003kF-0e for guix-patches@gnu.org; Wed, 11 Sep 2019 12:49:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1i85nh-0002SG-TG for guix-patches@gnu.org; Wed, 11 Sep 2019 12:49:01 -0400 Subject: [bug#37358] Add emacs-doom-themes Resent-Message-ID: References: <87d0g9tnm8.fsf@yahoo.de> <875zlzzu4u.fsf@gnu.org> In-reply-to: <875zlzzu4u.fsf@gnu.org> Date: Wed, 11 Sep 2019 18:48:33 +0200 Message-ID: <87woeevkwu.fsf@yahoo.de> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" 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" Reply-to: Tim Gesthuizen via Guix-patches From: Tim Gesthuizen via Guix-patches via To: Ludovic =?UTF-8?Q?Court=C3=A8s?= Cc: 37358@debbugs.gnu.org --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Hi, Ludovic Court=C3=A8s writes: > Why is this needed? I am pretty sure that this is not what I want (did I miss a build-system option?): The themes of the package are in a subdirectory that is not byte compiled or installed to the store when the package is build. The easiest workaround I could come up with is copying all .el files to the root of the package. The package is pretty useless without the theme .el files. > I could suggest: > > (for-each (lambda (file) > (rename-file file (string-append (dirname file) "/.."))) > (find-files themes)) > > =E2=80=A6 which would really move files, but it also more verbose. A version moving the files is attached. I would prefer the copying version however: The files will not get installed, we are talking about a few kilobytes in /tmp/, and it is easier to read. Choose the version you like :) Tim. --=-=-= Content-Type: text/x-patch Content-Disposition: inline; filename=0001-gnu-Add-emacs-doom-themes.patch >From b775f49533df6af3a3646547abeb2ca627f401c8 Mon Sep 17 00:00:00 2001 From: Tim Gesthuizen Date: Mon, 9 Sep 2019 18:48:31 +0200 Subject: [PATCH] gnu: Add emacs-doom-themes * gnu/packages/emacs-xyz.scm (emacs-doom-themes): New variable. --- gnu/packages/emacs-xyz.scm | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/gnu/packages/emacs-xyz.scm b/gnu/packages/emacs-xyz.scm index f3de24d825..d39a176e4f 100644 --- a/gnu/packages/emacs-xyz.scm +++ b/gnu/packages/emacs-xyz.scm @@ -18200,3 +18200,31 @@ You can customize: @code{tao-theme-scale-fn}, that returns 16 2-digit numbers; @code{tao-theme-scale-filter-fn}, for edge filter; and @code{tao-theme-use-height}.") (license license:gpl3+)))) + +(define-public emacs-doom-themes + (package + (name "emacs-doom-themes") + (version "2.1.6") + (source (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/hlissner/emacs-doom-themes.git") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 (base32 "042pzcdhxi2z07jcscgjbaki9nrrm0cbgbbrnymd1r4q8ckkn8l9")))) + (build-system emacs-build-system) + (arguments + `(#:phases + (modify-phases %standard-phases + (add-after 'unpack + 'move-themes + (lambda _ + (for-each + (lambda (file) + (rename-file file (string-append (dirname file) "/../" (basename file)))) + (find-files "themes"))))))) + (synopsis "Wide collection of color themes for emacs") + (description "emacs-doom-themes contains numerous popular color themes for +emacs that integrate with major modes like org-mode.") + (home-page "https://github.com/hlissner/emacs-doom-themes") + (license license:expat))) -- 2.23.0 --=-=-=--