From c865c66216c4c71d72fadff797567bd8be1aad07 Mon Sep 17 00:00:00 2001 From: c4710n Date: Sun, 3 Dec 2023 14:36:09 +0800 Subject: [PATCH] beamPackages.buildMix: remove erlang references from output --- pkgs/development/beam-modules/build-mix.nix | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/pkgs/development/beam-modules/build-mix.nix b/pkgs/development/beam-modules/build-mix.nix index 4c5ad3f6fa24..a0e088a024ee 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 -