Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cargo-typify: init at 0.0.14 #273252

Merged
merged 2 commits into from
Dec 26, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions maintainers/maintainer-list.nix
Original file line number Diff line number Diff line change
Expand Up @@ -4156,6 +4156,15 @@
githubId = 118536343;
name = "David Hamelin";
};
david-r-cox = {
email = "[email protected]";
github = "david-r-cox";
githubId = 4259949;
name = "David Cox";
keys = [{
fingerprint = "0056 A3F6 9918 1E0D 8FF0 BCDE 65BB 07FA A4D9 4634";
}];
};
davidrusu = {
email = "[email protected]";
github = "davidrusu";
Expand Down
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 ];
};
}