nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{ fetchFromGitHub, rebar3Relx, lib }:
2
3rebar3Relx rec {
4 pname = "erlfmt";
5 version = "1.3.0";
6 releaseType = "escript";
7 src = fetchFromGitHub {
8 owner = "WhatsApp";
9 repo = "erlfmt";
10 sha256 = "sha256-fVjEVmCnoofnfcxwBk0HI4adO0M6QOshP3uZrecZ9vM=";
11 rev = "v${version}";
12 };
13 meta = with lib; {
14 homepage = "https://github.com/WhatsApp/erlfmt";
15 description = "Automated code formatter for Erlang";
16 mainProgram = "erlfmt";
17 platforms = platforms.unix;
18 license = licenses.asl20;
19 maintainers = with lib.maintainers; [ dlesl ];
20 };
21}