[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug#71707] [PATCH 02/15] gnu: elixir-hex: Remove redundant directory, f
From: |
Igor Goryachev |
Subject: |
[bug#71707] [PATCH 02/15] gnu: elixir-hex: Remove redundant directory, fix lint warnings. |
Date: |
Fri, 21 Jun 2024 22:01:08 +0300 |
* 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
- [bug#71707] [PATCH 00/15] Updates and fixes for elixir and dependents, Igor Goryachev, 2024/06/21
- [bug#71707] [PATCH 02/15] gnu: elixir-hex: Remove redundant directory, fix lint warnings.,
Igor Goryachev <=
- [bug#71707] [PATCH 03/15] gnu: elixir: Update to 1.17.1., Igor Goryachev, 2024/06/21
- [bug#71707] [PATCH 01/15] gnu: elixir: Fix mix substitute., Igor Goryachev, 2024/06/21
- [bug#71707] [PATCH 04/15] gnu: elixir-nimble-parsec: Update to 1.4.0., Igor Goryachev, 2024/06/21
- [bug#71707] [PATCH 07/15] gnu: elixir-jason: Fix lint warnings., Igor Goryachev, 2024/06/21
- [bug#71707] [PATCH 09/15] gnu: elixir-bunt: Update to 1.0.0., Igor Goryachev, 2024/06/21
- [bug#71707] [PATCH 11/15] gnu: elixir-excoveralls: Update to 0.18.1, fix lint warnings., Igor Goryachev, 2024/06/21
- [bug#71707] [PATCH 05/15] build-sysem/mix: Preserve code paths., Igor Goryachev, 2024/06/21
- [bug#71707] [PATCH 10/15] gnu: elixir-castore: Update to 1.0.7., Igor Goryachev, 2024/06/21
- [bug#71707] [PATCH 14/15] gnu: elixir-dialyxir: Update to 1.4.3., Igor Goryachev, 2024/06/21
- [bug#71707] [PATCH 06/15] gnu: elixir-makeup: Update to 1.1.2, make reproducible., Igor Goryachev, 2024/06/21