2020-05-18 09:27:28 +00:00
|
|
|
{ lib, buildGoModule, fetchFromGitHub, installShellFiles }:
|
2019-09-11 05:32:40 +00:00
|
|
|
|
|
|
|
buildGoModule rec {
|
|
|
|
pname = "editorconfig-checker";
|
2021-03-29 19:42:33 +00:00
|
|
|
version = "2.3.5";
|
2019-09-11 05:32:40 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "editorconfig-checker";
|
|
|
|
repo = "editorconfig-checker";
|
2020-11-01 22:39:49 +00:00
|
|
|
rev = version;
|
2021-03-29 19:42:33 +00:00
|
|
|
sha256 = "sha256-t1qvmTs6hOrAnq5hjU2Qjt33vdW9MuSOvWCCY82db+g=";
|
2019-09-11 05:32:40 +00:00
|
|
|
};
|
|
|
|
|
2021-03-29 19:42:33 +00:00
|
|
|
vendorSha256 = "sha256-Rs7u/ZepnMNg5EZ/HWqSdO428KOkxpSbo7rl0treqUY=";
|
2020-05-18 09:27:28 +00:00
|
|
|
|
2020-08-04 00:26:27 +00:00
|
|
|
doCheck = false;
|
|
|
|
|
2020-05-18 09:27:28 +00:00
|
|
|
nativeBuildInputs = [ installShellFiles ];
|
|
|
|
|
2021-07-31 13:44:18 +00:00
|
|
|
ldflags = [ "-X main.version=${version}" ];
|
2020-05-18 09:27:28 +00:00
|
|
|
|
|
|
|
postInstall = ''
|
|
|
|
installManPage docs/editorconfig-checker.1
|
|
|
|
'';
|
2019-09-11 05:32:40 +00:00
|
|
|
|
2020-03-27 07:33:21 +00:00
|
|
|
meta = with lib; {
|
2019-09-11 05:32:40 +00:00
|
|
|
description = "A tool to verify that your files are in harmony with your .editorconfig";
|
|
|
|
homepage = "https://editorconfig-checker.github.io/";
|
|
|
|
license = licenses.mit;
|
2020-06-07 13:25:05 +00:00
|
|
|
maintainers = with maintainers; [ uri-canva zowoq ];
|
2019-09-11 05:32:40 +00:00
|
|
|
};
|
2020-05-18 09:27:28 +00:00
|
|
|
}
|