summaryrefslogtreecommitdiffstats
path: root/pkgs/by-name/ef/efmt/package.nix
blob: 26c1a9407f9f14f5391ea2ba3a94635d0c12e751 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
{
  lib,
  rustPlatform,
  fetchFromGitHub,
}:

rustPlatform.buildRustPackage (finalAttrs: {
  pname = "efmt";
  version = "0.21.0";

  src = fetchFromGitHub {
    owner = "sile";
    repo = "efmt";
    rev = finalAttrs.version;
    hash = "sha256-Qk33fKOQmBnT0D3/VEF8txm0GIPLziISkqxGjn2gWdM=";
  };

  cargoHash = "sha256-WW6vh/Efv1NweVNfgNDyRVM8cWOPYA2py5jEcL358dk=";

  meta = {
    description = "Erlang code formatter";
    homepage = "https://github.com/sile/efmt";
    license = with lib.licenses; [
      asl20
      mit
    ];
    maintainers = with lib.maintainers; [ haruki7049 ];
    mainProgram = "efmt";
  };
})