elixir: modify elixir to allow debug information
This modifies the elixir derivation to allow 'debugInfo' to be set. This will build the elixir library with debug information and allow dializer to be used it derivative projects
This commit is contained in:
parent
be5da0449e
commit
e214f29168
File diff suppressed because it is too large
Load Diff
@ -1,4 +1,5 @@
|
||||
{ stdenv, fetchurl, erlang, rebar, makeWrapper, coreutils, curl, bash }:
|
||||
{ stdenv, fetchurl, erlang, rebar, makeWrapper, coreutils, curl, bash,
|
||||
debugInfo ? false }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
name = "elixir-${version}";
|
||||
@ -16,6 +17,10 @@ stdenv.mkDerivation rec {
|
||||
LANG = "en_US.UTF-8";
|
||||
LC_TYPE = "en_US.UTF-8";
|
||||
|
||||
buildFlags = if debugInfo
|
||||
then "ERL_COMPILER_OPTIONS=debug_info"
|
||||
else "";
|
||||
|
||||
preBuild = ''
|
||||
# The build process uses ./rebar. Link it to the nixpkgs rebar
|
||||
rm -v rebar
|
||||
|
Loading…
Reference in New Issue
Block a user