From b2c352f6b5d4598e019f11e96af59643f3df179f Mon Sep 17 00:00:00 2001 From: figsoda Date: Fri, 30 Jun 2023 22:09:53 -0400 Subject: [PATCH] protox: init at 0.4.1 https://github.com/andrewhickman/protox --- .../development/tools/misc/protox/default.nix | 29 +++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 ++ 2 files changed, 31 insertions(+) create mode 100644 pkgs/development/tools/misc/protox/default.nix diff --git a/pkgs/development/tools/misc/protox/default.nix b/pkgs/development/tools/misc/protox/default.nix new file mode 100644 index 000000000000..6875292d241b --- /dev/null +++ b/pkgs/development/tools/misc/protox/default.nix @@ -0,0 +1,29 @@ +{ lib +, rustPlatform +, fetchCrate +}: + +rustPlatform.buildRustPackage rec { + pname = "protox"; + version = "0.4.1"; + + src = fetchCrate { + inherit pname version; + hash = "sha256-n72Fvdo6LLk8pzYS2/5zk+dbsLRPAm6NZ5DsMRyHCTY="; + }; + + cargoHash = "sha256-wW4UcC3QAtriLEiXPndP+tZATftWP7ySavpIV6cGVCA="; + + buildFeatures = [ "bin" ]; + + # tests are not included in the crate source + doCheck = false; + + meta = with lib; { + description = "A rust implementation of the protobuf compiler"; + 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 ]; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 7b42eeb42cdb..7d3617d0bb64 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -19367,6 +19367,8 @@ with pkgs; procodile = callPackage ../tools/system/procodile { }; + protox = callPackage ../development/tools/misc/protox { }; + proxmove = callPackage ../tools/admin/proxmove { }; pry = callPackage ../development/tools/pry { };