all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Igor Goryachev via Guix-patches via <guix-patches@gnu.org>
To: 71707@debbugs.gnu.org
Cc: Igor Goryachev <igor@goryachev.org>, Andrew Tropin <andrew@trop.in>
Subject: [bug#71707] [PATCH 02/15] gnu: elixir-hex: Remove redundant directory, fix lint warnings.
Date: Fri, 21 Jun 2024 22:01:08 +0300	[thread overview]
Message-ID: <4351173e2417ee0bd95b37a78c2518ee8edb96fc.1718992389.git.igor@goryachev.org> (raw)
In-Reply-To: <cover.1718992389.git.igor@goryachev.org>

* gnu/packages/elixir.scm (elixir-hex): Remove redundant directory, fix lint warnings.

Change-Id: Ic5b29d8ddb9c3d4dc058494cf6cbb5f60a492bb1
---
 gnu/packages/elixir.scm | 11 ++++++++---
 1 file changed, 8 insertions(+), 3 deletions(-)

diff --git a/gnu/packages/elixir.scm b/gnu/packages/elixir.scm
index ace067aa47..e2e9fcc245 100644
--- a/gnu/packages/elixir.scm
+++ b/gnu/packages/elixir.scm
@@ -174,7 +174,7 @@ (define-public elixir-hex
      (origin
        (method git-fetch)
        (uri (git-reference
-             (url "https://github.com/hexpm/hex.git")
+             (url "https://github.com/hexpm/hex")
              (commit (string-append "v" version))))
        (file-name (git-file-name name version))
        (sha256
@@ -201,9 +201,14 @@ (define-public elixir-hex
           (replace 'install
             (lambda* (#:key inputs outputs #:allow-other-keys)
               (define X.Y #$(version-major+minor (package-version elixir)))
-              (define out (string-append (assoc-ref outputs "out") "/lib/elixir/" X.Y "/hex"))
+              (define out (string-append (assoc-ref outputs "out")
+                                         "/lib/elixir/" X.Y "/hex"))
               (mkdir-p out)
-              (copy-recursively "_build/prod/lib/hex" out))))))
+              (let* ((prod-dir "_build/prod/lib/hex")
+                     (prod-dir-mix (string-append prod-dir "/.mix")))
+                (and (directory-exists? prod-dir-mix)
+                     (delete-file-recursively prod-dir-mix))
+              (copy-recursively "_build/prod/lib/hex" out)))))))
     (synopsis "Package manager for the Erlang VM")
     (description
      "This project provides tasks that integrate with Mix, Elixir's build
-- 
2.45.1





  parent reply	other threads:[~2024-06-21 19:27 UTC|newest]

Thread overview: 37+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-06-21 18:38 [bug#71707] [PATCH 00/15] Updates and fixes for elixir and dependents Igor Goryachev via Guix-patches via
2024-06-21 19:01 ` [bug#71707] [PATCH 01/15] gnu: elixir: Fix mix substitute Igor Goryachev via Guix-patches via
2024-06-21 19:01 ` Igor Goryachev via Guix-patches via [this message]
2024-06-21 19:01 ` [bug#71707] [PATCH 03/15] gnu: elixir: Update to 1.17.1 Igor Goryachev via Guix-patches via
2024-06-21 19:01 ` [bug#71707] [PATCH 04/15] gnu: elixir-nimble-parsec: Update to 1.4.0 Igor Goryachev via Guix-patches via
2024-06-21 19:01 ` [bug#71707] [PATCH 05/15] build-sysem/mix: Preserve code paths Igor Goryachev via Guix-patches via
2024-06-21 19:01 ` [bug#71707] [PATCH 06/15] gnu: elixir-makeup: Update to 1.1.2, make reproducible Igor Goryachev via Guix-patches via
2024-06-21 19:01 ` [bug#71707] [PATCH 07/15] gnu: elixir-jason: Fix lint warnings Igor Goryachev via Guix-patches via
2024-06-21 19:01 ` [bug#71707] [PATCH 08/15] gnu: elixir-file-system: Update to 1.0.0 Igor Goryachev via Guix-patches via
2024-06-21 19:01 ` [bug#71707] [PATCH 09/15] gnu: elixir-bunt: " Igor Goryachev via Guix-patches via
2024-06-21 19:01 ` [bug#71707] [PATCH 10/15] gnu: elixir-castore: Update to 1.0.7 Igor Goryachev via Guix-patches via
2024-06-21 19:01 ` [bug#71707] [PATCH 11/15] gnu: elixir-excoveralls: Update to 0.18.1, fix lint warnings Igor Goryachev via Guix-patches via
2024-06-21 19:01 ` [bug#71707] [PATCH 12/15] gnu: elixir-credo: Update to 1.7.7, " Igor Goryachev via Guix-patches via
2024-06-21 19:01 ` [bug#71707] [PATCH 13/15] gnu: elixir-erlex: Update to 0.2.7 Igor Goryachev via Guix-patches via
2024-06-21 19:01 ` [bug#71707] [PATCH 14/15] gnu: elixir-dialyxir: Update to 1.4.3 Igor Goryachev via Guix-patches via
2024-06-21 19:01 ` [bug#71707] [PATCH 15/15] gnu: elixir-machete: Update to 0.3.3, temporarily disable tests Igor Goryachev via Guix-patches via
2024-06-22 10:18 ` [bug#71707] [PATCH v2] build-sysem/mix: Preserve code paths Igor Goryachev via Guix-patches via
2024-06-22 11:10 ` [bug#71707] [PATCH v3 0/2] Fix tests for elixir dependents Igor Goryachev via Guix-patches via
2024-06-22 11:10   ` [bug#71707] [PATCH v3 1/2] build-sysem/mix: Preserve code paths Igor Goryachev via Guix-patches via
2024-06-22 11:10   ` [bug#71707] [PATCH v3 2/2] gnu: elixir-machete: Update to 0.3.3 Igor Goryachev via Guix-patches via
2024-07-02  3:35   ` [bug#71707] [PATCH v3 0/2] Fix tests for elixir dependents Andrew Tropin via Guix-patches via
2024-07-02  6:55 ` [bug#71707] [PATCH v4 01/15] gnu: elixir: Fix mix substitute Igor Goryachev via Guix-patches via
2024-07-02  6:55   ` [bug#71707] [PATCH v4 02/15] gnu: elixir-hex: Remove redundant directory, fix lint warnings Igor Goryachev via Guix-patches via
2024-07-02  6:55   ` [bug#71707] [PATCH v4 03/15] gnu: elixir: Update to 1.17.1 Igor Goryachev via Guix-patches via
2024-07-02  6:55   ` [bug#71707] [PATCH v4 04/15] gnu: elixir-nimble-parsec: Update to 1.4.0 Igor Goryachev via Guix-patches via
2024-07-02  6:55   ` [bug#71707] [PATCH v4 05/15] gnu: elixir-makeup: Update to 1.1.2, make reproducible Igor Goryachev via Guix-patches via
2024-07-02  6:55   ` [bug#71707] [PATCH v4 06/15] gnu: elixir-jason: Fix lint warnings Igor Goryachev via Guix-patches via
2024-07-02  6:55   ` [bug#71707] [PATCH v4 07/15] gnu: elixir-file-system: Update to 1.0.0 Igor Goryachev via Guix-patches via
2024-07-02  6:55   ` [bug#71707] [PATCH v4 08/15] gnu: elixir-bunt: " Igor Goryachev via Guix-patches via
2024-07-02  6:55   ` [bug#71707] [PATCH v4 09/15] gnu: elixir-castore: Update to 1.0.7 Igor Goryachev via Guix-patches via
2024-07-02  6:55   ` [bug#71707] [PATCH v4 10/15] gnu: elixir-excoveralls: Update to 0.18.1, fix lint warnings Igor Goryachev via Guix-patches via
2024-07-02  6:55   ` [bug#71707] [PATCH v4 11/15] gnu: elixir-credo: Update to 1.7.7, " Igor Goryachev via Guix-patches via
2024-07-02  6:55   ` [bug#71707] [PATCH v4 12/15] gnu: elixir-erlex: Update to 0.2.7 Igor Goryachev via Guix-patches via
2024-07-02  6:55   ` [bug#71707] [PATCH v4 13/15] gnu: elixir-dialyxir: Update to 1.4.3 Igor Goryachev via Guix-patches via
2024-07-02  6:55   ` [bug#71707] [PATCH v4 14/15] gnu: elixir-machete: Update to 0.3.3 Igor Goryachev via Guix-patches via
2024-07-02  6:55   ` [bug#71707] [PATCH v4 15/15] build-sysem/mix: Preserve code paths Igor Goryachev via Guix-patches via
2024-07-02  8:22   ` bug#71707: [PATCH v4 01/15] gnu: elixir: Fix mix substitute Andrew Tropin via Guix-patches via

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4351173e2417ee0bd95b37a78c2518ee8edb96fc.1718992389.git.igor@goryachev.org \
    --to=guix-patches@gnu.org \
    --cc=71707@debbugs.gnu.org \
    --cc=andrew@trop.in \
    --cc=igor@goryachev.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/guix.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.