1 { lib, buildGoModule, fetchFromGitHub }:
6 src = fetchFromGitHub {
10 hash = "sha256-wGAHc0I2ewXJeHPH2qO6V3ScixUAMIX5U7zCBi4fqew=";
13 vendorHash = "sha256-0+GaTE/qKfPfZpkzUBglIXQoZD6fYkX6Z3QabkZ+IcE=";
15 # Something about the way we run tests causes issues. It doesn't happen
16 # when using "go test" directly:
17 # === RUN TestEnumFieldNamesPrefixRule_Apply_fix/no_fix_for_a_correct_proto
18 # util_test.go:35: open : no such file or directory
19 # === RUN TestEnumFieldNamesPrefixRule_Apply_fix/fix_for_an_incorrect_proto
20 # util_test.go:35: open : no such file or directory
21 excludedPackages = [ "internal" ];
24 rev = builtins.substring 0 7 src.rev;
26 "-X github.com/yoheimuta/protolint/internal/cmd.version=${version}"
27 "-X github.com/yoheimuta/protolint/internal/cmd.revision=${rev}"
28 "-X github.com/yoheimuta/protolint/internal/cmd/protocgenprotolint.version=${version}"
29 "-X github.com/yoheimuta/protolint/internal/cmd/protocgenprotolint.revision=${rev}"
33 description = "A pluggable linter and fixer to enforce Protocol Buffer style and conventions";
34 homepage = "https://github.com/yoheimuta/protolint";
35 license = licenses.mit;
36 platforms = platforms.all;
37 maintainers = [ maintainers.zane ];
38 mainProgram = "protolint";