mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-17 03:03:37 +00:00
38 lines
1.0 KiB
Nix
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 ];
|
|
};
|
|
}
|