From patchwork Mon Aug 30 21:42:43 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Aleksandr Vityazev X-Patchwork-Id: 32427 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id 8EF7527BBE1; Mon, 30 Aug 2021 22:43:43 +0100 (BST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, MAILING_LIST_MULTI,RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,T_DKIM_INVALID, URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.2 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id D661627BBE3 for ; Mon, 30 Aug 2021 22:43:39 +0100 (BST) Received: from localhost ([::1]:34900 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mKp46-00068Y-QV for patchwork@mira.cbaines.net; Mon, 30 Aug 2021 17:43:38 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:58224) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mKp3W-000667-Vb for guix-patches@gnu.org; Mon, 30 Aug 2021 17:43:05 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:48989) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mKp3W-00050P-Mh for guix-patches@gnu.org; Mon, 30 Aug 2021 17:43:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mKp3W-0000Jo-H1 for guix-patches@gnu.org; Mon, 30 Aug 2021 17:43:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#50287] [PATCH] emacs-org-roam: Add new phase after unpack. Resent-From: Alexandr Vityazev Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Mon, 30 Aug 2021 21:43:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 50287 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 50287@debbugs.gnu.org X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.16303597561152 (code B ref -1); Mon, 30 Aug 2021 21:43:02 +0000 Received: (at submit) by debbugs.gnu.org; 30 Aug 2021 21:42:36 +0000 Received: from localhost ([127.0.0.1]:60532 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mKp32-0000IR-Le for submit@debbugs.gnu.org; Mon, 30 Aug 2021 17:42:36 -0400 Received: from lists.gnu.org ([209.51.188.17]:37664) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mKp2x-0000IB-Ml for submit@debbugs.gnu.org; Mon, 30 Aug 2021 17:42:31 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:58054) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mKp2x-0005ep-4V for guix-patches@gnu.org; Mon, 30 Aug 2021 17:42:27 -0400 Received: from mout02.posteo.de ([185.67.36.66]:47449) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mKp2v-0004bC-29 for guix-patches@gnu.org; Mon, 30 Aug 2021 17:42:26 -0400 Received: from submission (posteo.de [89.146.220.130]) by mout02.posteo.de (Postfix) with ESMTPS id 26363240103 for ; Mon, 30 Aug 2021 23:42:20 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.org; s=2017; t=1630359741; bh=U1rWaulcV5PusK/rnhcylk2LYVsbTcVBjvmZB3kXlT8=; h=From:To:Subject:Date:From; b=kIzc8+wUsn2JeNHz2WqFTFWzOYPg3DtrC6EeRRYHdtPct0fG9N+zkV753NWY7cy9H BaKxENa98uhL+5wGfcZo7qSLZOOgAV1/Ed86JchyC/sBeTcjr6Jv+PCiEFoMGHnHYi 7yI2yz/2GNUILoAmK89Kk8vasHSmgyn79gef+lvpjwWxs13P53GWsHmpeEHy+umzvL +pFkvWWq3hxISde827A0lMOxtNvSw9IJlJNPcOvqFQ3WKIo/zKDRswOCSBiOVKRLkG HQoVu0phkd95mvAmExysKZ9p+vMO8K5ChR4DILSNw3Cy+uERGk5lPcZhdF68iIwllM ujW6NwMLqgo1Q== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4Gz3gw14N7z9rxN for ; Mon, 30 Aug 2021 23:42:19 +0200 (CEST) From: Alexandr Vityazev Date: Mon, 30 Aug 2021 21:42:43 +0000 Message-ID: <87bl5e4njg.fsf@posteo.org> MIME-Version: 1.0 Received-SPF: pass client-ip=185.67.36.66; envelope-from=avityazev@posteo.org; helo=mout02.posteo.de X-Spam_score_int: -43 X-Spam_score: -4.4 X-Spam_bar: ---- X-Spam_report: (-4.4 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_MED=-2.3, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org Sender: "Guix-patches" X-getmail-retrieved-from-mailbox: Patches * gnu/packages/emacs-xyz.scm (emacs-org-roam)[arguments]: After the unpack phase add a move-source-files phase to include the org-roam extensions to the package. --- gnu/packages/emacs-xyz.scm | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/gnu/packages/emacs-xyz.scm b/gnu/packages/emacs-xyz.scm index 70c4c30bc2..679636c123 100644 --- a/gnu/packages/emacs-xyz.scm +++ b/gnu/packages/emacs-xyz.scm @@ -28227,6 +28227,15 @@ snippets for Emacs.") (arguments `(#:phases (modify-phases %standard-phases + ;; Move the extensions source files to the top level, which is included in + ;; the EMACSLOADPATH. + (add-after 'unpack 'move-source-files + (lambda _ + (let ((el-files (find-files "./extensions" ".*\\.el$"))) + (for-each (lambda (f) + (rename-file f (basename f))) + el-files)) + #t)) (add-after 'install 'install-image (lambda* (#:key outputs #:allow-other-keys) (let ((out (assoc-ref outputs "out")))