mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-21 05:04:00 +00:00
33 lines
850 B
Nix
33 lines
850 B
Nix
{ lib, buildGoModule, fetchFromGitHub, installShellFiles }:
|
|
|
|
buildGoModule rec {
|
|
pname = "editorconfig-checker";
|
|
version = "2.6.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "editorconfig-checker";
|
|
repo = "editorconfig-checker";
|
|
rev = version;
|
|
sha256 = "sha256-S/iIanLToWN4OsItvSLGSEhgoYRJgUt0w3QFp1+scfY=";
|
|
};
|
|
|
|
vendorSha256 = "sha256-ktyUuWW0xlhRLkertrc4/ZYCyDh/tfYBuHqIrdTkotQ=";
|
|
|
|
doCheck = false;
|
|
|
|
nativeBuildInputs = [ installShellFiles ];
|
|
|
|
ldflags = [ "-X main.version=${version}" ];
|
|
|
|
postInstall = ''
|
|
installManPage docs/editorconfig-checker.1
|
|
'';
|
|
|
|
meta = with lib; {
|
|
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 zowoq ];
|
|
};
|
|
}
|