mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-27 09:23:01 +00:00
Merge pull request #326961 from mattpolzin/init-protoc-gen-elixir
This commit is contained in:
commit
37feaa1823
44
pkgs/by-name/pr/protoc-gen-elixir/package.nix
Normal file
44
pkgs/by-name/pr/protoc-gen-elixir/package.nix
Normal file
@ -0,0 +1,44 @@
|
|||||||
|
{
|
||||||
|
beamPackages,
|
||||||
|
fetchFromGitHub,
|
||||||
|
lib,
|
||||||
|
}:
|
||||||
|
beamPackages.mixRelease rec {
|
||||||
|
pname = "protoc-gen-elixir";
|
||||||
|
version = "0.12.0";
|
||||||
|
|
||||||
|
src = fetchFromGitHub {
|
||||||
|
owner = "elixir-protobuf";
|
||||||
|
repo = "protobuf";
|
||||||
|
rev = "refs/tags/v${version}";
|
||||||
|
hash = "sha256-wLU3iM9jI/Zc96/HfPUjNvjteGryWos6IobIb/4zqpw=";
|
||||||
|
};
|
||||||
|
|
||||||
|
mixFodDeps = beamPackages.fetchMixDeps {
|
||||||
|
inherit version src;
|
||||||
|
pname = "protoc-gen-elixir-deps";
|
||||||
|
|
||||||
|
hash = "sha256-H7yiBHoxuiqWcNbWwPU5X0Nnv8f6nM8z/ZAfZAGPZjE=";
|
||||||
|
};
|
||||||
|
|
||||||
|
postBuild = ''
|
||||||
|
mix do escript.build
|
||||||
|
'';
|
||||||
|
|
||||||
|
installPhase = ''
|
||||||
|
runHook preInstall
|
||||||
|
|
||||||
|
mkdir -p $out/bin
|
||||||
|
cp protoc-gen-elixir $out/bin
|
||||||
|
|
||||||
|
runHook postInstall
|
||||||
|
'';
|
||||||
|
|
||||||
|
meta = {
|
||||||
|
description = "A protoc plugin to generate Elixir code";
|
||||||
|
mainProgram = "protoc-gen-elixir";
|
||||||
|
homepage = "https://github.com/elixir-protobuf/protobuf";
|
||||||
|
license = lib.licenses.mit;
|
||||||
|
maintainers = with lib.maintainers; [ mattpolzin ];
|
||||||
|
};
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user