nixpkgs/pkgs/development/tools/misc/editorconfig-checker/default.nix
2024-01-22 11:25:53 +10:00

38 lines
1.0 KiB
Nix

{ lib, buildGoModule, fetchFromGitHub, installShellFiles, testers, editorconfig-checker }:
buildGoModule rec {
pname = "editorconfig-checker";
version = "2.8.0";
src = fetchFromGitHub {
owner = "editorconfig-checker";
repo = "editorconfig-checker";
rev = version;
hash = "sha256-CVstdtFPt/OlvJE27O+CqqDpUqp9bQl18IGyf8nputM=";
};
vendorHash = "sha256-t2h9jtGfips+cpN1ckVhVgpg4egIYVXd89ahyDzV060=";
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 = "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 ];
};
}