protoc-gen-elixir: fix unpatched escript binary

The result of `mix do escript.build` is a script with a shebang
referring to the `escript` binary. Previously, this shebang was being
left alone. This commit causes the shebang to be patched.
This commit is contained in:
Mathew Polzin
2025-03-23 22:42:03 -05:00
parent 0a712020b4
commit 0bded101de
@@ -4,7 +4,10 @@
lib,
nix-update-script,
}:
beamPackages.mixRelease rec {
let
inherit (beamPackages) mixRelease fetchMixDeps erlang;
in
mixRelease rec {
pname = "protoc-gen-elixir";
version = "0.14.1";
@@ -15,13 +18,15 @@ beamPackages.mixRelease rec {
hash = "sha256-SbwjOFTyN3euMNXkuIP49zNqoXmD8611IXgqPwqfuFU=";
};
mixFodDeps = beamPackages.fetchMixDeps {
mixFodDeps = fetchMixDeps {
inherit version src;
pname = "protoc-gen-elixir-deps";
hash = "sha256-T1uL3xXXmCkobJJhS3p6xMrJUyiim3AMwaG87/Ix7A8=";
};
buildInputs = [ erlang ];
postBuild = ''
mix do escript.build
'';