cargo-typify: add update script

Signed-off-by: lucasew <lucas59356@gmail.com>
This commit is contained in:
lucasew
2024-05-16 13:37:42 -03:00
parent 25778548a8
commit e4a9345519
+3 -1
View File
@@ -1,4 +1,4 @@
{ lib, rustfmt, rustPlatform, fetchFromGitHub }:
{ lib, rustfmt, rustPlatform, fetchFromGitHub, gitUpdater }:
rustPlatform.buildRustPackage rec {
pname = "cargo-typify";
@@ -22,6 +22,8 @@ rustPlatform.buildRustPackage rec {
export RUSTFMT="${lib.getExe rustfmt}"
'';
passthru.updateScript = gitUpdater { rev-prefix = "v"; };
meta = with lib; {
description = "JSON Schema to Rust type converter";
mainProgram = "cargo-typify";