guix_mirror_bot pushed a commit to branch master
in repository guix.
commit e9bfe0893c805bd76a0b3730590fb253d2167efb
Author: Igorj Gorjaĉev <[email protected]>
AuthorDate: Sun Jan 11 15:17:14 2026 +0200
build-system: mix: Set deterministic compiler option.
* guix/build/mix-build-system.scm (set-mix-env): Set deterministic compiler
option.
Merges: https://codeberg.org/guix/guix/pulls/5550
Change-Id: Id9d353bf9747d79ec6e86603f9fb899a0c607cbb
Signed-off-by: Giacomo Leidi <[email protected]>
---
guix/build/mix-build-system.scm | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/guix/build/mix-build-system.scm b/guix/build/mix-build-system.scm
index 51aa8bf0a5..f16fb1eaae 100644
--- a/guix/build/mix-build-system.scm
+++ b/guix/build/mix-build-system.scm
@@ -1,6 +1,6 @@
;;; GNU Guix --- Functional package management for GNU
;;; Copyright © 2023 Pierre-Henry Fröhring <[email protected]>
-;;; Copyright © 2024 Igor Goryachev <[email protected]>
+;;; Copyright © 2024, 2026 Igorj Gorjaĉev <[email protected]>
;;; Copyright © 2024, 2025 Giacomo Leidi <[email protected]>
;;;
;;; This file is part of GNU Guix.
@@ -97,6 +97,8 @@ See:
https://hexdocs.pm/mix/1.15.7/Mix.html#module-environment-variables"
(setenv "MIX_HOME" (getcwd))
(setenv "MIX_PATH" (or mix-path ""))
(setenv "MIX_REBAR3" (string-append (assoc-ref inputs "rebar3")
"/bin/rebar3"))
+ ;; Set deterministic compiler option.
+ (setenv "ERL_COMPILER_OPTIONS" "deterministic")
;; Add Erlang dependencies in Elixir's load path.
(setenv "ERL_LIBS"
(string-join (search-path-as-list