cargo-typify: add update script
Signed-off-by: lucasew <lucas59356@gmail.com>
This commit is contained in:
@@ -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";
|
||||
|
||||
Reference in New Issue
Block a user