tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
lol
0
fork
atom
overview
issues
pulls
pipelines
protolint: init at 0.37.1
Zane van Iperen
3 years ago
3babd377
54ca88ea
+41
2 changed files
expand all
collapse all
unified
split
pkgs
development
tools
protolint
default.nix
top-level
all-packages.nix
+39
pkgs/development/tools/protolint/default.nix
···
1
1
+
{ lib, buildGoModule, fetchFromGitHub }:
2
2
+
buildGoModule rec {
3
3
+
pname = "protolint";
4
4
+
version = "0.37.1";
5
5
+
6
6
+
src = fetchFromGitHub {
7
7
+
owner = "yoheimuta";
8
8
+
repo = pname;
9
9
+
rev = "6aa30515838cc0adf7c76a9461f52bdc713f2e9f";
10
10
+
sha256 = "sha256-oKGA5FZpT3E5G7oREGAojdu4Xn8JPd7IYwfueK9QA34=";
11
11
+
};
12
12
+
13
13
+
vendorSha256 = "sha256-iLQwx3B5n21ZXefWiGBBL9roa9LIFByzB8KXLywhvKs=";
14
14
+
15
15
+
# Something about the way we run tests causes issues. It doesn't happen
16
16
+
# when using "go test" directly:
17
17
+
# === RUN TestEnumFieldNamesPrefixRule_Apply_fix/no_fix_for_a_correct_proto
18
18
+
# util_test.go:35: open : no such file or directory
19
19
+
# === RUN TestEnumFieldNamesPrefixRule_Apply_fix/fix_for_an_incorrect_proto
20
20
+
# util_test.go:35: open : no such file or directory
21
21
+
excludedPackages = [ "internal" ];
22
22
+
23
23
+
ldflags = let
24
24
+
rev = builtins.substring 0 7 src.rev;
25
25
+
in [
26
26
+
"-X github.com/yoheimuta/protolint/internal/cmd.version=${version}"
27
27
+
"-X github.com/yoheimuta/protolint/internal/cmd.revision=${rev}"
28
28
+
"-X github.com/yoheimuta/protolint/internal/cmd/protocgenprotolint.version=${version}"
29
29
+
"-X github.com/yoheimuta/protolint/internal/cmd/protocgenprotolint.revision=${rev}"
30
30
+
];
31
31
+
32
32
+
meta = with lib; {
33
33
+
description = "A pluggable linter and fixer to enforce Protocol Buffer style and conventions";
34
34
+
homepage = "https://github.com/yoheimuta/protolint";
35
35
+
license = licenses.mit;
36
36
+
platforms = platforms.all;
37
37
+
maintainers = [ maintainers.zane ];
38
38
+
};
39
39
+
}
+2
pkgs/top-level/all-packages.nix
···
409
409
410
410
protoc-gen-validate = callPackage ../development/tools/protoc-gen-validate { };
411
411
412
412
+
protolint = callPackage ../development/tools/protolint { };
413
413
+
412
414
ptags = callPackage ../development/tools/misc/ptags { };
413
415
414
416
ptouch-print = callPackage ../misc/ptouch-print { };