tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
0
fork
atom
lol
0
fork
atom
overview
issues
pulls
pipelines
protoc-gen-rust: init at 3.1.0
Luc Perkins
3 years ago
ea836299
86029a01
+31
2 changed files
expand all
collapse all
unified
split
pkgs
development
tools
protoc-gen-rust
default.nix
top-level
all-packages.nix
+29
pkgs/development/tools/protoc-gen-rust/default.nix
···
1
1
+
{ fetchCrate
2
2
+
, lib
3
3
+
, rustPlatform
4
4
+
, protobuf
5
5
+
}:
6
6
+
7
7
+
rustPlatform.buildRustPackage rec {
8
8
+
pname = "protoc-gen-rust";
9
9
+
version = "3.1.0";
10
10
+
11
11
+
src = fetchCrate {
12
12
+
inherit version;
13
13
+
pname = "protobuf-codegen";
14
14
+
sha256 = "sha256-DaydUuENqmN812BgQmpewRPhkq9lT6+g+VPuytLc25Y=";
15
15
+
};
16
16
+
17
17
+
cargoSha256 = "sha256-kzc2Wd+Y3mNmOHxRj5R1LIbvXz5NyGcRnz2e0jdfdPg=";
18
18
+
19
19
+
cargoBuildFlags = ["--bin" pname];
20
20
+
21
21
+
nativeBuildInputs = [ protobuf ];
22
22
+
23
23
+
meta = with lib; {
24
24
+
description = "Protobuf plugin for generating Rust code";
25
25
+
homepage = "https://github.com/stepancheg/rust-protobuf";
26
26
+
license = licenses.mit;
27
27
+
maintainers = with maintainers; [ lucperkins ];
28
28
+
};
29
29
+
}
+2
pkgs/top-level/all-packages.nix
···
482
482
483
483
protoc-gen-connect-go = callPackage ../development/tools/protoc-gen-connect-go { };
484
484
485
485
+
protoc-gen-rust = callPackage ../development/tools/protoc-gen-rust { };
486
486
+
485
487
protoc-gen-twirp = callPackage ../development/tools/protoc-gen-twirp { };
486
488
487
489
protoc-gen-twirp_php = callPackage ../development/tools/protoc-gen-twirp_php { };