build-mix buildRebar3: strip out derivation for NIFs
parent
8989d2eae8
commit
2a87cb7a8b
|
@ -29,9 +29,6 @@ let
|
||||||
MIX_DEBUG = if enableDebugInfo then 1 else 0;
|
MIX_DEBUG = if enableDebugInfo then 1 else 0;
|
||||||
HEX_OFFLINE = 1;
|
HEX_OFFLINE = 1;
|
||||||
|
|
||||||
# stripping does not have any effect on beam files
|
|
||||||
dontStrip = true;
|
|
||||||
|
|
||||||
# add to ERL_LIBS so other modules can find at runtime.
|
# add to ERL_LIBS so other modules can find at runtime.
|
||||||
# http://erlang.org/doc/man/code.html#code-path
|
# http://erlang.org/doc/man/code.html#code-path
|
||||||
# Mix also searches the code path when compiling with the --no-deps-check flag
|
# Mix also searches the code path when compiling with the --no-deps-check flag
|
||||||
|
@ -72,6 +69,10 @@ let
|
||||||
runHook postInstall
|
runHook postInstall
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
# stripping does not have any effect on beam files
|
||||||
|
# it is however needed for dependencies with NIFs like bcrypt for example
|
||||||
|
dontStrip = false;
|
||||||
|
|
||||||
passthru = {
|
passthru = {
|
||||||
packageName = name;
|
packageName = name;
|
||||||
env = shell self;
|
env = shell self;
|
||||||
|
|
|
@ -42,9 +42,13 @@ let
|
||||||
buildInputs = buildInputs ++ [ erlang rebar3 openssl libyaml ];
|
buildInputs = buildInputs ++ [ erlang rebar3 openssl libyaml ];
|
||||||
propagatedBuildInputs = unique beamDeps;
|
propagatedBuildInputs = unique beamDeps;
|
||||||
|
|
||||||
dontStrip = true;
|
|
||||||
inherit src;
|
inherit src;
|
||||||
|
|
||||||
|
# stripping does not have any effect on beam files
|
||||||
|
# it is however needed for dependencies with NIFs
|
||||||
|
# false is the default but we keep this for readability
|
||||||
|
dontStrip = false;
|
||||||
|
|
||||||
setupHook = writeText "setupHook.sh" ''
|
setupHook = writeText "setupHook.sh" ''
|
||||||
addToSearchPath ERL_LIBS "$1/lib/erlang/lib/"
|
addToSearchPath ERL_LIBS "$1/lib/erlang/lib/"
|
||||||
'';
|
'';
|
||||||
|
|
Loading…
Reference in New Issue