mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-19 20:36:27 +00:00
e39dd05e66
https://github.com/editorconfig-checker/editorconfig-checker/releases/tag/2.3.0 https://github.com/editorconfig-checker/editorconfig-checker/releases/tag/2.3.1
33 lines
869 B
Nix
33 lines
869 B
Nix
{ lib, buildGoModule, fetchFromGitHub, installShellFiles }:
|
|
|
|
buildGoModule rec {
|
|
pname = "editorconfig-checker";
|
|
version = "2.3.1";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "editorconfig-checker";
|
|
repo = "editorconfig-checker";
|
|
rev = version;
|
|
sha256 = "0c7mainlwn3pd9q6i1f82m5znv8m6fs15zq7nrbm04fy554h0pzz";
|
|
};
|
|
|
|
vendorSha256 = "1z4j8vm9mnhjhhmhlj0ycs8b1wpm7lhsfqjnk7w8gfapvj3yfk6h";
|
|
|
|
doCheck = false;
|
|
|
|
nativeBuildInputs = [ installShellFiles ];
|
|
|
|
buildFlagsArray = [ "-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 ];
|
|
};
|
|
}
|