mirror of
https://codeberg.org/guix/guix.git
synced 2025-10-02 02:15:12 +00:00
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>
This commit is contained in:
parent
21ab2b7fc6
commit
c676feed86
1 changed files with 11 additions and 10 deletions
|
@ -8,7 +8,7 @@
|
||||||
;;; Copyright © 2021 Oskar Köök <oskar@maatriks.ee>
|
;;; Copyright © 2021 Oskar Köök <oskar@maatriks.ee>
|
||||||
;;; Copyright © 2021 Cees de Groot <cg@evrl.com>
|
;;; Copyright © 2021 Cees de Groot <cg@evrl.com>
|
||||||
;;; Copyright © 2024 Andrew Tropin <andrew@trop.in>
|
;;; Copyright © 2024 Andrew Tropin <andrew@trop.in>
|
||||||
;;; Copyright © 2024 Ivan Sokolov <ivan-p-sokolov@ya.ru>
|
;;; Copyright © 2024, 2025 Ivan Sokolov <ivan-p-sokolov@ya.ru>
|
||||||
;;; Copyright © 2024, 2025 Igor Goryachev <igor@goryachev.org>
|
;;; Copyright © 2024, 2025 Igor Goryachev <igor@goryachev.org>
|
||||||
;;;
|
;;;
|
||||||
;;; This file is part of GNU Guix.
|
;;; This file is part of GNU Guix.
|
||||||
|
@ -200,23 +200,24 @@ being successfully used in web development and the embedded software domain.")
|
||||||
(delete 'bootstrap)
|
(delete 'bootstrap)
|
||||||
(delete 'configure)
|
(delete 'configure)
|
||||||
(replace 'build
|
(replace 'build
|
||||||
(lambda* (#:key inputs #:allow-other-keys)
|
(lambda _
|
||||||
(setenv "MIX_ENV" "prod")
|
(setenv "MIX_ENV" "prod")
|
||||||
(invoke "mix" "compile")))
|
(invoke "mix" "compile")))
|
||||||
(replace 'install
|
(replace 'install
|
||||||
(lambda* (#:key inputs outputs #:allow-other-keys)
|
(lambda _
|
||||||
(define X.Y #$(version-major+minor (package-version elixir)))
|
(let* ((X.Y #$(version-major+minor
|
||||||
(define out (string-append (assoc-ref outputs "out")
|
(package-version
|
||||||
"/lib/elixir/" X.Y "/hex"))
|
(lookup-package-input this-package "elixir"))))
|
||||||
(mkdir-p out)
|
(out (string-append #$output "/lib/elixir/" X.Y "/hex"))
|
||||||
(let* ((prod-dir "_build/prod/lib/hex")
|
(prod-dir "_build/prod/lib/hex")
|
||||||
(prod-dir-mix (string-append prod-dir "/.mix")))
|
(prod-dir-mix (string-append prod-dir "/.mix")))
|
||||||
(and (directory-exists? prod-dir-mix)
|
(and (directory-exists? prod-dir-mix)
|
||||||
(delete-file-recursively prod-dir-mix))
|
(delete-file-recursively prod-dir-mix))
|
||||||
(copy-recursively "_build/prod/lib/hex" out)))))))
|
(mkdir-p out)
|
||||||
|
(copy-recursively prod-dir 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
|
||||||
tool.")
|
tool.")
|
||||||
(home-page "https://hexdocs.pm/makeup_elixir/")
|
(home-page "https://hexdocs.pm/hex/api-reference.html")
|
||||||
(license license:bsd-2)))
|
(license license:bsd-2)))
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue