2021-07-04 15:52:19 +00:00
|
|
|
{ fetchFromGitHub, rebar3Relx, lib }:
|
|
|
|
|
|
|
|
rebar3Relx rec {
|
2021-07-08 11:13:42 +00:00
|
|
|
pname = "erlfmt";
|
2023-12-14 19:03:01 +00:00
|
|
|
version = "1.3.0";
|
2021-07-04 15:52:19 +00:00
|
|
|
releaseType = "escript";
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "WhatsApp";
|
|
|
|
repo = "erlfmt";
|
2023-12-14 19:03:01 +00:00
|
|
|
sha256 = "sha256-fVjEVmCnoofnfcxwBk0HI4adO0M6QOshP3uZrecZ9vM=";
|
2021-07-04 15:52:19 +00:00
|
|
|
rev = "v${version}";
|
|
|
|
};
|
|
|
|
meta = with lib; {
|
|
|
|
homepage = "https://github.com/WhatsApp/erlfmt";
|
|
|
|
description = "An automated code formatter for Erlang";
|
2024-03-19 02:14:51 +00:00
|
|
|
mainProgram = "erlfmt";
|
2021-07-04 15:52:19 +00:00
|
|
|
platforms = platforms.unix;
|
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = with lib.maintainers; [ dlesl ];
|
|
|
|
};
|
|
|
|
}
|