protoc-gen-elixir: 0.13.0 -> 0.14.1 (#392617)
This commit is contained in:
@@ -2,25 +2,31 @@
|
||||
beamPackages,
|
||||
fetchFromGitHub,
|
||||
lib,
|
||||
nix-update-script,
|
||||
}:
|
||||
beamPackages.mixRelease rec {
|
||||
let
|
||||
inherit (beamPackages) mixRelease fetchMixDeps erlang;
|
||||
in
|
||||
mixRelease rec {
|
||||
pname = "protoc-gen-elixir";
|
||||
version = "0.13.0";
|
||||
version = "0.14.1";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "elixir-protobuf";
|
||||
repo = "protobuf";
|
||||
tag = "v${version}";
|
||||
hash = "sha256-TnuIlXYr36hx1sVktPHj4J4cJLCFK5F1xaX0V9/+ICQ=";
|
||||
hash = "sha256-SbwjOFTyN3euMNXkuIP49zNqoXmD8611IXgqPwqfuFU=";
|
||||
};
|
||||
|
||||
mixFodDeps = beamPackages.fetchMixDeps {
|
||||
mixFodDeps = fetchMixDeps {
|
||||
inherit version src;
|
||||
pname = "protoc-gen-elixir-deps";
|
||||
|
||||
hash = "sha256-lFfAfKAM4O+yIBXgdCA+EPe1XAOaTIjTfpOFjITpvQ4=";
|
||||
hash = "sha256-T1uL3xXXmCkobJJhS3p6xMrJUyiim3AMwaG87/Ix7A8=";
|
||||
};
|
||||
|
||||
buildInputs = [ erlang ];
|
||||
|
||||
postBuild = ''
|
||||
mix do escript.build
|
||||
'';
|
||||
@@ -34,6 +40,8 @@ beamPackages.mixRelease rec {
|
||||
runHook postInstall
|
||||
'';
|
||||
|
||||
passthru.updateScript = nix-update-script { };
|
||||
|
||||
meta = {
|
||||
description = "A protoc plugin to generate Elixir code";
|
||||
mainProgram = "protoc-gen-elixir";
|
||||
|
||||
Reference in New Issue
Block a user