2020-05-18 10:27:28 +01:00
|
|
|
{ lib, buildGoModule, fetchFromGitHub, installShellFiles }:
|
2019-09-11 06:32:40 +01:00
|
|
|
|
|
|
|
buildGoModule rec {
|
|
|
|
pname = "editorconfig-checker";
|
2020-05-18 10:27:28 +01:00
|
|
|
version = "2.0.4";
|
2019-09-11 06:32:40 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "editorconfig-checker";
|
|
|
|
repo = "editorconfig-checker";
|
|
|
|
rev = "${version}";
|
2020-05-18 10:27:28 +01:00
|
|
|
sha256 = "1y90yz8da0iqig3m0kbjcicwblkirbbx0s3agpmz2pdca6y2ijwi";
|
2019-09-11 06:32:40 +01:00
|
|
|
};
|
|
|
|
|
2020-05-18 10:27:28 +01:00
|
|
|
vendorSha256 = "1lyrqrm3pyfv470dmymbkb3vpvp0i2zsndp7qw34fbhp2gnay5kh";
|
|
|
|
|
|
|
|
nativeBuildInputs = [ installShellFiles ];
|
|
|
|
|
|
|
|
buildFlagsArray = [ "-ldflags=-X main.version=${version}" ];
|
|
|
|
|
|
|
|
postInstall = ''
|
|
|
|
installManPage docs/editorconfig-checker.1
|
|
|
|
'';
|
2019-09-11 06:32:40 +01:00
|
|
|
|
2020-03-27 07:33:21 +00:00
|
|
|
meta = with lib; {
|
2019-09-11 06:32:40 +01:00
|
|
|
description = "A tool to verify that your files are in harmony with your .editorconfig";
|
|
|
|
homepage = "https://editorconfig-checker.github.io/";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ uri-canva ];
|
|
|
|
};
|
2020-05-18 10:27:28 +01:00
|
|
|
}
|