about summary refs log tree commit diff
diff options
context:
space:
mode:
authorJörg Thalheim <Mic92@users.noreply.github.com>2024-05-17 18:20:00 +0200
committerGitHub <noreply@github.com>2024-05-17 18:20:00 +0200
commit5a17f6eaf31c7260f0f7d82bca07843f151fce21 (patch)
treea29918860704e3720e3fc01d0425a77cc40273ad
parent4a6b83b05df1a8bd7d99095ec4b4d271f2956b64 (diff)
parent0203af979a00e4af96d4b380b9194cf3d1be2db1 (diff)
Merge pull request #312262 from lucasew/20240516-fix-cargo-typify
cargo-typify: add update script, mark as broken
-rw-r--r--pkgs/by-name/ca/cargo-typify/package.nix5
1 files changed, 4 insertions, 1 deletions
diff --git a/pkgs/by-name/ca/cargo-typify/package.nix b/pkgs/by-name/ca/cargo-typify/package.nix
index 6693776c04eda..e8bf2013f9352 100644
--- a/pkgs/by-name/ca/cargo-typify/package.nix
+++ b/pkgs/by-name/ca/cargo-typify/package.nix
@@ -1,4 +1,4 @@
-{ lib, rustfmt, rustPlatform, fetchFromGitHub }:
+{ lib, rustfmt, rustPlatform, fetchFromGitHub, gitUpdater }:
 
 rustPlatform.buildRustPackage rec {
   pname = "cargo-typify";
@@ -22,11 +22,14 @@ 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";
     homepage = "https://github.com/oxidecomputer/typify";
     license = with licenses; [ asl20 ];
     maintainers = with maintainers; [ david-r-cox ];
+    broken = true;
   };
 }