diff options
author | c4710n <c4710n@users.noreply.github.com> | 2023-12-03 14:36:09 +0800 |
---|---|---|
committer | Yt <happysalada@tuta.io> | 2023-12-08 07:23:35 +0000 |
commit | c865c66216c4c71d72fadff797567bd8be1aad07 (patch) | |
tree | 2a881250e9f6e2b128c7f9b3f741919a1dc61021 /pkgs/development/beam-modules | |
parent | e924d0f542496ea026ad8292dd412722aeeec3a2 (diff) |
beamPackages.buildMix: remove erlang references from output
Diffstat (limited to 'pkgs/development/beam-modules')
-rw-r--r-- | pkgs/development/beam-modules/build-mix.nix | 9 |
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 - |