3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/development/tools/misc/editorconfig-checker/default.nix

33 lines
867 B
Nix
Raw Normal View History

{ lib, buildGoModule, fetchFromGitHub, installShellFiles }:
2019-09-11 06:32:40 +01:00
buildGoModule rec {
pname = "editorconfig-checker";
2021-03-15 11:22:45 +00:00
version = "2.3.4";
2019-09-11 06:32:40 +01:00
src = fetchFromGitHub {
owner = "editorconfig-checker";
repo = "editorconfig-checker";
rev = version;
2021-03-15 11:22:45 +00:00
sha256 = "sha256-aTHY9RFFkpTQKv+Erczu5joqvE7L05Ev2GOSiXNxLj8=";
2019-09-11 06:32:40 +01:00
};
2021-03-15 11:22:45 +00:00
vendorSha256 = "sha256-y+wQ6XzX4vmKzesUcF9jgfrKPj5EsCuw/aKizVX/ogI=";
doCheck = false;
nativeBuildInputs = [ installShellFiles ];
buildFlagsArray = [ "-ldflags=-X main.version=${version}" ];
postInstall = ''
installManPage docs/editorconfig-checker.1
'';
2019-09-11 06:32:40 +01: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;
2020-06-07 14:25:05 +01:00
maintainers = with maintainers; [ uri-canva zowoq ];
2019-09-11 06:32:40 +01:00
};
}