Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at netboot-syslinux-multiplatform 36 lines 968 B view raw
1{ lib, buildGoModule, fetchFromGitHub, installShellFiles, testers, editorconfig-checker }: 2 3buildGoModule rec { 4 pname = "editorconfig-checker"; 5 version = "2.7.0"; 6 7 src = fetchFromGitHub { 8 owner = "editorconfig-checker"; 9 repo = "editorconfig-checker"; 10 rev = version; 11 hash = "sha256-8qGRcyDayXx3OflhE9Kw2AXM702/2pYB3JgfpQ0UYR8="; 12 }; 13 14 vendorHash = "sha256-S93ZvC92V9nrBicEv1yQ3DEuf1FmxtvFoKPR15e8VmA="; 15 16 doCheck = false; 17 18 nativeBuildInputs = [ installShellFiles ]; 19 20 ldflags = [ "-X main.version=${version}" ]; 21 22 postInstall = '' 23 installManPage docs/editorconfig-checker.1 24 ''; 25 26 passthru.tests.version = testers.testVersion { 27 package = editorconfig-checker; 28 }; 29 30 meta = with lib; { 31 description = "A tool to verify that your files are in harmony with your .editorconfig"; 32 homepage = "https://editorconfig-checker.github.io/"; 33 license = licenses.mit; 34 maintainers = with maintainers; [ uri-canva zowoq ]; 35 }; 36}