Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)

build-mix buildRebar3: strip out derivation for NIFs

+9 -4
+4 -3
pkgs/development/beam-modules/build-mix.nix
··· 29 MIX_DEBUG = if enableDebugInfo then 1 else 0; 30 HEX_OFFLINE = 1; 31 32 - # stripping does not have any effect on beam files 33 - dontStrip = true; 34 - 35 # add to ERL_LIBS so other modules can find at runtime. 36 # http://erlang.org/doc/man/code.html#code-path 37 # Mix also searches the code path when compiling with the --no-deps-check flag ··· 71 72 runHook postInstall 73 ''; 74 75 passthru = { 76 packageName = name;
··· 29 MIX_DEBUG = if enableDebugInfo then 1 else 0; 30 HEX_OFFLINE = 1; 31 32 # add to ERL_LIBS so other modules can find at runtime. 33 # http://erlang.org/doc/man/code.html#code-path 34 # Mix also searches the code path when compiling with the --no-deps-check flag ··· 68 69 runHook postInstall 70 ''; 71 + 72 + # stripping does not have any effect on beam files 73 + # it is however needed for dependencies with NIFs like bcrypt for example 74 + dontStrip = false; 75 76 passthru = { 77 packageName = name;
+5 -1
pkgs/development/beam-modules/build-rebar3.nix
··· 42 buildInputs = buildInputs ++ [ erlang rebar3 openssl libyaml ]; 43 propagatedBuildInputs = unique beamDeps; 44 45 - dontStrip = true; 46 inherit src; 47 48 setupHook = writeText "setupHook.sh" '' 49 addToSearchPath ERL_LIBS "$1/lib/erlang/lib/"
··· 42 buildInputs = buildInputs ++ [ erlang rebar3 openssl libyaml ]; 43 propagatedBuildInputs = unique beamDeps; 44 45 inherit src; 46 + 47 + # stripping does not have any effect on beam files 48 + # it is however needed for dependencies with NIFs 49 + # false is the default but we keep this for readability 50 + dontStrip = false; 51 52 setupHook = writeText "setupHook.sh" '' 53 addToSearchPath ERL_LIBS "$1/lib/erlang/lib/"