anchor.diff:      buildInputs = [ erlang perl which gitMinimal wget ];
       propagatedBuildInputs = beamDeps;
   
  +    buildFlags = [ "SKIP_DEPS=1" ]
  +      ++ lib.optional (enableDebugInfo || erlang.debugInfo) ''ERL_OPTS="$ERL_OPTS +debug_info"''
  +      ++ buildFlags;
  +
       configurePhase = if configurePhase == null
       then ''
         runHook preConfigure
  
positive.code:     then ''
          runHook preBuild
  
          make SKIP_DEPS=1 ERL_OPTS="$ERL_OPTS ${debugInfoFlag}"
  
          runHook postBuild
      ''
  
negative.code: , configurePhase ? null
  , meta ? {}
  , enableDebugInfo ? false
  , buildFlags ? []
  , ... }@attrs:
  
  with stdenv.lib;
  