summaryrefslogtreecommitdiff
path: root/gnu/packages
diff options
context:
space:
mode:
authorIgor Goryachev <igor@goryachev.org>2024-07-02 09:55:04 +0300
committerAndrew Tropin <andrew@trop.in>2024-07-02 11:53:52 +0400
commitfdfdb15539ff438954f5a2bbc5586861263ada19 (patch)
treec6486f808b3d1cfcc83255a7cade23364a2542c7 /gnu/packages
parent373a635afa15f3d70efa277a9157393421dcb1b9 (diff)
gnu: elixir-hex: Remove redundant directory, fix lint warnings.
* gnu/packages/elixir.scm (elixir-hex): Remove redundant directory, fix lint warnings. Change-Id: Ic5b29d8ddb9c3d4dc058494cf6cbb5f60a492bb1 Signed-off-by: Andrew Tropin <andrew@trop.in>
Diffstat (limited to 'gnu/packages')
-rw-r--r--gnu/packages/elixir.scm11
1 files changed, 8 insertions, 3 deletions
diff --git a/gnu/packages/elixir.scm b/gnu/packages/elixir.scm
index ace067aa474..e2e9fcc245a 100644
--- a/gnu/packages/elixir.scm
+++ b/gnu/packages/elixir.scm
@@ -174,7 +174,7 @@ being successfully used in web development and the embedded software domain.")
174 (origin 174 (origin
175 (method git-fetch) 175 (method git-fetch)
176 (uri (git-reference 176 (uri (git-reference
177 (url "https://github.com/hexpm/hex.git") 177 (url "https://github.com/hexpm/hex")
178 (commit (string-append "v" version)))) 178 (commit (string-append "v" version))))
179 (file-name (git-file-name name version)) 179 (file-name (git-file-name name version))
180 (sha256 180 (sha256
@@ -201,9 +201,14 @@ being successfully used in web development and the embedded software domain.")
201 (replace 'install 201 (replace 'install
202 (lambda* (#:key inputs outputs #:allow-other-keys) 202 (lambda* (#:key inputs outputs #:allow-other-keys)
203 (define X.Y #$(version-major+minor (package-version elixir))) 203 (define X.Y #$(version-major+minor (package-version elixir)))
204 (define out (string-append (assoc-ref outputs "out") "/lib/elixir/" X.Y "/hex")) 204 (define out (string-append (assoc-ref outputs "out")
205 "/lib/elixir/" X.Y "/hex"))
205 (mkdir-p out) 206 (mkdir-p out)
206 (copy-recursively "_build/prod/lib/hex" out)))))) 207 (let* ((prod-dir "_build/prod/lib/hex")
208 (prod-dir-mix (string-append prod-dir "/.mix")))
209 (and (directory-exists? prod-dir-mix)
210 (delete-file-recursively prod-dir-mix))
211 (copy-recursively "_build/prod/lib/hex" out)))))))
207 (synopsis "Package manager for the Erlang VM") 212 (synopsis "Package manager for the Erlang VM")
208 (description 213 (description
209 "This project provides tasks that integrate with Mix, Elixir's build 214 "This project provides tasks that integrate with Mix, Elixir's build