mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2025-01-26 12:39:36 -05:00
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>
This commit is contained in:
parent
373a635afa
commit
fdfdb15539
1 changed files with 8 additions and 3 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue