treewide: fix *Flags

This commit is contained in:
Robin Gloster
2019-10-28 10:17:49 +01:00
committed by Jan Tojnar
parent 20b02b80aa
commit ac8eaa8507
26 changed files with 107 additions and 99 deletions

View File

@@ -10,7 +10,7 @@
} @ args:
let
inherit (stdenv.lib) getVersion versionAtLeast;
inherit (stdenv.lib) getVersion versionAtLeast optional;
in
assert versionAtLeast (getVersion erlang) minimumOTPVersion;
@@ -29,9 +29,7 @@ in
inherit debugInfo;
buildFlags = if debugInfo
then "ERL_COMPILER_OPTIONS=debug_info"
else "";
buildFlags = optional debugInfo "ERL_COMPILER_OPTIONS=debug_info";
preBuild = ''
# The build process uses ./rebar. Link it to the nixpkgs rebar