10 rustPlatform.buildRustPackage rec {
11 pname = "cargo-typify";
14 src = fetchFromGitHub {
15 owner = "oxidecomputer";
18 hash = "sha256-vokhWIY5iikTyADrqxp6DIq+tJ+xdFPebDFTddJnstA=";
21 cargoHash = "sha256-etlZqhtRCcCBeMC4lq6BjTD4TQyWEwJf1bLKjoIDR70=";
40 # cargo-typify depends on rustfmt-wrapper, which requires RUSTFMT:
41 export RUSTFMT="${lib.getExe rustfmt}"
45 wrapProgram $out/bin/cargo-typify \
46 --set RUSTFMT "${lib.getExe rustfmt}"
49 passthru.updateScript = gitUpdater { rev-prefix = "v"; };
52 description = "JSON Schema to Rust type converter";
53 mainProgram = "cargo-typify";
54 homepage = "https://github.com/oxidecomputer/typify";
55 license = with lib.licenses; [ asl20 ];
56 maintainers = with lib.maintainers; [ david-r-cox ];