Skip to content

Commit

Permalink
cargo-typify: init at 0.0.14
Browse files Browse the repository at this point in the history
  • Loading branch information
david-r-cox committed Dec 11, 2023
1 parent 6290195 commit 2562649
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions pkgs/by-name/ca/cargo-typify/package.nix
Original file line number Diff line number Diff line change
@@ -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 ];
};
}

0 comments on commit 2562649

Please sign in to comment.