vacuum-go: 0.16.1 -> 0.16.2 (#380231)
[NixPkgs.git] / pkgs / by-name / ed / editorconfig-checker / package.nix
blob51d7552b0e25313bc762b02bd3f1a9cd405a79b6
2   lib,
3   buildGoModule,
4   fetchFromGitHub,
5   installShellFiles,
6   testers,
7   editorconfig-checker,
8 }:
10 buildGoModule rec {
11   pname = "editorconfig-checker";
12   version = "3.2.0";
14   src = fetchFromGitHub {
15     owner = "editorconfig-checker";
16     repo = "editorconfig-checker";
17     rev = "v${version}";
18     hash = "sha256-JEpmCpFLj7LO/Vojw7MoAu8E5bZKT1cU4Zk4Nw6IEmM=";
19   };
21   vendorHash = "sha256-GNUkU/cmu8j6naFAHIEZ56opJnj8p2Sb8M7TduTbJcU=";
23   doCheck = false;
25   nativeBuildInputs = [ installShellFiles ];
27   ldflags = [ "-X main.version=${version}" ];
29   postInstall = ''
30     installManPage docs/editorconfig-checker.1
31   '';
33   passthru.tests.version = testers.testVersion {
34     package = editorconfig-checker;
35   };
37   meta = with lib; {
38     changelog = "https://github.com/editorconfig-checker/editorconfig-checker/releases/tag/${src.rev}";
39     description = "Tool to verify that your files are in harmony with your .editorconfig";
40     mainProgram = "editorconfig-checker";
41     homepage = "https://editorconfig-checker.github.io/";
42     license = licenses.mit;
43     maintainers = with maintainers; [
44       uri-canva
45       zowoq
46     ];
47   };