cargo-typify: init at 0.0.14

This commit is contained in:
David Cox 2023-12-09 16:31:47 -10:00
parent 6290195a26
commit 2562649f2b
No known key found for this signature in database
GPG Key ID: 65BB07FAA4D94634

@ -0,0 +1,31 @@
{ lib, rustfmt, rustPlatform, fetchFromGitHub }:
rustPlatform.buildRustPackage rec {
pname = "cargo-typify";
version = "0.0.14";
src = fetchFromGitHub {
owner = "oxidecomputer";
repo = "typify";
rev = "v${version}";
hash = "sha256-Clwm5hRjPPPRB6xpO8YOGpqnyNFtsSMkPbWBY3etPCI=";
};
cargoHash = "sha256-balx5xOtrWwMOFeGQkYQ2f+lcGMCJvdPqE8rH9adkfU=";
cargoBuildFlags = [ "-p" "cargo-typify" ];
nativeCheckInputs = [ rustfmt ];
preCheck = ''
# cargo-typify depends on rustfmt-wrapper, which requires RUSTFMT:
export RUSTFMT="${lib.getExe rustfmt}"
'';
meta = with lib; {
description = "JSON Schema to Rust type converter";
homepage = "https://github.com/oxidecomputer/typify";
license = with licenses; [ asl20 ];
maintainers = with maintainers; [ david-r-cox ];
};
}