48 lines
1.1 KiB
Nix
48 lines
1.1 KiB
Nix
{
|
|
lib,
|
|
buildGoModule,
|
|
fetchFromGitHub,
|
|
installShellFiles,
|
|
testers,
|
|
editorconfig-checker,
|
|
}:
|
|
|
|
buildGoModule rec {
|
|
pname = "editorconfig-checker";
|
|
version = "3.0.3";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "editorconfig-checker";
|
|
repo = "editorconfig-checker";
|
|
rev = "v${version}";
|
|
hash = "sha256-lU7YGn3W3KGrvOUH/v++jHii4q3hSo9X8BAjDNJ7y3A=";
|
|
};
|
|
|
|
vendorHash = "sha256-P5lOx9CH37Z7mkDshbwS+XJZQdQiqNKl71wR1iUvpm8=";
|
|
|
|
doCheck = false;
|
|
|
|
nativeBuildInputs = [ installShellFiles ];
|
|
|
|
ldflags = [ "-X main.version=${version}" ];
|
|
|
|
postInstall = ''
|
|
installManPage docs/editorconfig-checker.1
|
|
'';
|
|
|
|
passthru.tests.version = testers.testVersion {
|
|
package = editorconfig-checker;
|
|
};
|
|
|
|
meta = with lib; {
|
|
changelog = "https://github.com/editorconfig-checker/editorconfig-checker/releases/tag/${src.rev}";
|
|
description = "Tool to verify that your files are in harmony with your .editorconfig";
|
|
mainProgram = "editorconfig-checker";
|
|
homepage = "https://editorconfig-checker.github.io/";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [
|
|
uri-canva
|
|
zowoq
|
|
];
|
|
};
|
|
}
|