diff options
| author | Ivan Sokolov <ivan-p-sokolov@ya.ru> | 2025-07-12 20:40:46 +0300 |
|---|---|---|
| committer | Efraim Flashner <efraim@flashner.co.il> | 2025-08-06 14:57:28 +0300 |
| commit | c676feed86cdf66b0e2a2e85e6bc2299ca4d4ae6 (patch) | |
| tree | 5700944575434345f9a9bc36f8ed89c1650e8447 | |
| parent | 21ab2b7fc6db2f571b19215dc7569af5cc4b350f (diff) | |
gnu: elixir-hex: Fix install phase.
* gnu/packages/elixir.scm (elixir-hex)[arguments]: Get elixir version
from inputs instead of elixir package directly.
[home-page]: Update project home-page.
Change-Id: I1ed27892cc169bea0ac44025a263ac816b58c12e
Signed-off-by: Efraim Flashner <efraim@flashner.co.il>
| -rw-r--r-- | gnu/packages/elixir.scm | 21 |
1 files changed, 11 insertions, 10 deletions
diff --git a/gnu/packages/elixir.scm b/gnu/packages/elixir.scm index 96ba0421ea2..0e53223f105 100644 --- a/gnu/packages/elixir.scm +++ b/gnu/packages/elixir.scm | |||
| @@ -8,7 +8,7 @@ | |||
| 8 | ;;; Copyright © 2021 Oskar Köök <oskar@maatriks.ee> | 8 | ;;; Copyright © 2021 Oskar Köök <oskar@maatriks.ee> |
| 9 | ;;; Copyright © 2021 Cees de Groot <cg@evrl.com> | 9 | ;;; Copyright © 2021 Cees de Groot <cg@evrl.com> |
| 10 | ;;; Copyright © 2024 Andrew Tropin <andrew@trop.in> | 10 | ;;; Copyright © 2024 Andrew Tropin <andrew@trop.in> |
| 11 | ;;; Copyright © 2024 Ivan Sokolov <ivan-p-sokolov@ya.ru> | 11 | ;;; Copyright © 2024, 2025 Ivan Sokolov <ivan-p-sokolov@ya.ru> |
| 12 | ;;; Copyright © 2024, 2025 Igor Goryachev <igor@goryachev.org> | 12 | ;;; Copyright © 2024, 2025 Igor Goryachev <igor@goryachev.org> |
| 13 | ;;; | 13 | ;;; |
| 14 | ;;; This file is part of GNU Guix. | 14 | ;;; This file is part of GNU Guix. |
| @@ -200,23 +200,24 @@ being successfully used in web development and the embedded software domain.") | |||
| 200 | (delete 'bootstrap) | 200 | (delete 'bootstrap) |
| 201 | (delete 'configure) | 201 | (delete 'configure) |
| 202 | (replace 'build | 202 | (replace 'build |
| 203 | (lambda* (#:key inputs #:allow-other-keys) | 203 | (lambda _ |
| 204 | (setenv "MIX_ENV" "prod") | 204 | (setenv "MIX_ENV" "prod") |
| 205 | (invoke "mix" "compile"))) | 205 | (invoke "mix" "compile"))) |
| 206 | (replace 'install | 206 | (replace 'install |
| 207 | (lambda* (#:key inputs outputs #:allow-other-keys) | 207 | (lambda _ |
| 208 | (define X.Y #$(version-major+minor (package-version elixir))) | 208 | (let* ((X.Y #$(version-major+minor |
| 209 | (define out (string-append (assoc-ref outputs "out") | 209 | (package-version |
| 210 | "/lib/elixir/" X.Y "/hex")) | 210 | (lookup-package-input this-package "elixir")))) |
| 211 | (mkdir-p out) | 211 | (out (string-append #$output "/lib/elixir/" X.Y "/hex")) |
| 212 | (let* ((prod-dir "_build/prod/lib/hex") | 212 | (prod-dir "_build/prod/lib/hex") |
| 213 | (prod-dir-mix (string-append prod-dir "/.mix"))) | 213 | (prod-dir-mix (string-append prod-dir "/.mix"))) |
| 214 | (and (directory-exists? prod-dir-mix) | 214 | (and (directory-exists? prod-dir-mix) |
| 215 | (delete-file-recursively prod-dir-mix)) | 215 | (delete-file-recursively prod-dir-mix)) |
| 216 | (copy-recursively "_build/prod/lib/hex" out))))))) | 216 | (mkdir-p out) |
| 217 | (copy-recursively prod-dir out))))))) | ||
| 217 | (synopsis "Package manager for the Erlang VM") | 218 | (synopsis "Package manager for the Erlang VM") |
| 218 | (description | 219 | (description |
| 219 | "This project provides tasks that integrate with Mix, Elixir's build | 220 | "This project provides tasks that integrate with Mix, Elixir's build |
| 220 | tool.") | 221 | tool.") |
| 221 | (home-page "https://hexdocs.pm/makeup_elixir/") | 222 | (home-page "https://hexdocs.pm/hex/api-reference.html") |
| 222 | (license license:bsd-2))) | 223 | (license license:bsd-2))) |
