Archived
1
0
Fork 0

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:
Igor Goryachev 2024-07-02 09:55:04 +03:00 committed by Andrew Tropin
parent 373a635afa
commit fdfdb15539
No known key found for this signature in database
GPG key ID: 2208D20958C1DEB0

View file

@ -174,7 +174,7 @@ being successfully used in web development and the embedded software domain.")
(origin (origin
(method git-fetch) (method git-fetch)
(uri (git-reference (uri (git-reference
(url "https://github.com/hexpm/hex.git") (url "https://github.com/hexpm/hex")
(commit (string-append "v" version)))) (commit (string-append "v" version))))
(file-name (git-file-name name version)) (file-name (git-file-name name version))
(sha256 (sha256
@ -201,9 +201,14 @@ being successfully used in web development and the embedded software domain.")
(replace 'install (replace 'install
(lambda* (#:key inputs outputs #:allow-other-keys) (lambda* (#:key inputs outputs #:allow-other-keys)
(define X.Y #$(version-major+minor (package-version elixir))) (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) (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") (synopsis "Package manager for the Erlang VM")
(description (description
"This project provides tasks that integrate with Mix, Elixir's build "This project provides tasks that integrate with Mix, Elixir's build