2023-07-15 17:15:38 +00:00
|
|
|
{ lib
|
|
|
|
, rustPlatform
|
|
|
|
, fetchCrate
|
|
|
|
}:
|
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
pname = "protox";
|
2023-10-09 19:29:22 +00:00
|
|
|
version = "0.5.0";
|
2023-07-15 17:15:38 +00:00
|
|
|
|
|
|
|
src = fetchCrate {
|
|
|
|
inherit pname version;
|
2023-10-09 19:29:22 +00:00
|
|
|
hash = "sha256-U9+7k7dQ6YFfsKMfFMg34g42qLvn+mcSRlAAys3eXNo=";
|
2023-07-15 17:15:38 +00:00
|
|
|
};
|
|
|
|
|
2023-10-09 19:29:22 +00:00
|
|
|
cargoHash = "sha256-sNOw19gxj+cEctxhXNWI8u15VJYlN8nSNl6Ha9sB/eE=";
|
2023-07-15 17:15:38 +00:00
|
|
|
|
|
|
|
buildFeatures = [ "bin" ];
|
|
|
|
|
|
|
|
# tests are not included in the crate source
|
|
|
|
doCheck = false;
|
|
|
|
|
|
|
|
meta = with lib; {
|
2024-06-20 14:57:18 +00:00
|
|
|
description = "Rust implementation of the protobuf compiler";
|
2024-04-21 15:54:59 +00:00
|
|
|
mainProgram = "protox";
|
2023-07-15 17:15:38 +00:00
|
|
|
homepage = "https://github.com/andrewhickman/protox";
|
|
|
|
changelog = "https://github.com/andrewhickman/protox/blob/${version}/CHANGELOG.md";
|
|
|
|
license = with licenses; [ asl20 mit ];
|
|
|
|
maintainers = with maintainers; [ figsoda ];
|
|
|
|
};
|
|
|
|
}
|