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 29 MIX_DEBUG = if enableDebugInfo then 1 else 0; 30 30 HEX_OFFLINE = 1; 31 31 32 - # stripping does not have any effect on beam files 33 - dontStrip = true; 34 - 35 32 # add to ERL_LIBS so other modules can find at runtime. 36 33 # http://erlang.org/doc/man/code.html#code-path 37 34 # Mix also searches the code path when compiling with the --no-deps-check flag ··· 71 68 72 69 runHook postInstall 73 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; 74 75 75 76 passthru = { 76 77 packageName = name;
+5 -1
pkgs/development/beam-modules/build-rebar3.nix
··· 42 42 buildInputs = buildInputs ++ [ erlang rebar3 openssl libyaml ]; 43 43 propagatedBuildInputs = unique beamDeps; 44 44 45 - dontStrip = true; 46 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; 47 51 48 52 setupHook = writeText "setupHook.sh" '' 49 53 addToSearchPath ERL_LIBS "$1/lib/erlang/lib/"