Commit a5f67e6b authored by Mathew Polzin's avatar Mathew Polzin
Browse files

beamPackages.ex_doc: use mixRelease escriptBinName

parent 17ebe93f
Loading
Loading
Loading
Loading
+2 −19
Original line number Diff line number Diff line
@@ -30,6 +30,8 @@ mixRelease {
    elixir
    ;

  escriptBinName = "ex_doc";

  stripDebug = true;

  mixFodDeps = fetchMixDeps {
@@ -38,25 +40,6 @@ mixRelease {
    hash = "sha256-s4b6wuBJPdN0FPn76zbLCHzqJNEZ6E4nOyB1whUM2VY=";
  };

  configurePhase = ''
    runHook preConfigure
    mix deps.compile --no-deps-check
    runHook postConfigure
  '';

  buildPhase = ''
    runHook preBuild
    mix do escript.build
    runHook postBuild
  '';

  installPhase = ''
    runHook preInstall
    mkdir -p $out/bin
    cp -v ex_doc $out/bin
    runHook postInstall
  '';

  passthru = {
    tests = {
      # ex_doc is the doc generation for OTP 27+, so let's make sure they build