about summary refs log tree commit diff
path: root/pkgs/development/beam-modules
diff options
context:
space:
mode:
authorc4710n <c4710n@users.noreply.github.com>2023-12-03 14:36:09 +0800
committerYt <happysalada@tuta.io>2023-12-08 07:23:35 +0000
commitc865c66216c4c71d72fadff797567bd8be1aad07 (patch)
tree2a881250e9f6e2b128c7f9b3f741919a1dc61021 /pkgs/development/beam-modules
parente924d0f542496ea026ad8292dd412722aeeec3a2 (diff)
beamPackages.buildMix: remove erlang references from output
Diffstat (limited to 'pkgs/development/beam-modules')
-rw-r--r--pkgs/development/beam-modules/build-mix.nix9
1 files changed, 8 insertions, 1 deletions
diff --git a/pkgs/development/beam-modules/build-mix.nix b/pkgs/development/beam-modules/build-mix.nix
index 4c5ad3f6fa246..a0e088a024ee9 100644
--- a/pkgs/development/beam-modules/build-mix.nix
+++ b/pkgs/development/beam-modules/build-mix.nix
@@ -5,6 +5,7 @@
 , src
 , buildInputs ? [ ]
 , nativeBuildInputs ? [ ]
+, erlangCompilerOptions ? [ ]
 , beamDeps ? [ ]
 , propagatedBuildInputs ? [ ]
 , postPatch ? ""
@@ -31,6 +32,13 @@ let
     MIX_ENV = mixEnv;
     MIX_DEBUG = if enableDebugInfo then 1 else 0;
     HEX_OFFLINE = 1;
+
+    ERL_COMPILER_OPTIONS =
+      let
+        options = [ "deterministic" ] ++ erlangCompilerOptions;
+      in
+      "[${lib.concatStringsSep "," options}]";
+
     LC_ALL = "C.UTF-8";
 
     # add to ERL_LIBS so other modules can find at runtime.
@@ -108,4 +116,3 @@ let
   });
 in
 lib.fix pkg
-