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

protoc-gen-elixir: use mixRelease escriptBinName

parent a5f67e6b
Loading
Loading
Loading
Loading
+1 −14
Original line number Diff line number Diff line
@@ -25,20 +25,7 @@ mixRelease rec {
    hash = "sha256-T1uL3xXXmCkobJJhS3p6xMrJUyiim3AMwaG87/Ix7A8=";
  };

  buildInputs = [ erlang ];

  postBuild = ''
    mix do escript.build
  '';

  installPhase = ''
    runHook preInstall

    mkdir -p $out/bin
    cp protoc-gen-elixir $out/bin

    runHook postInstall
  '';
  escriptBinName = "protoc-gen-elixir";

  passthru.updateScript = nix-update-script { };