Unverified Commit 76c385af authored by Kenichi Kamiya's avatar Kenichi Kamiya
Browse files

jsonschema-cli: use finalAttrs instead of rec

Removed versionCheckProgram.
This attribute would have required an update in this change,
but I chose to remove it since its functionality is now provided by the default.
See befb2bee for detail.
parent fb67d037
Loading
Loading
Loading
Loading
+4 −5
Original line number Diff line number Diff line
@@ -6,13 +6,13 @@
  nix-update-script,
}:

rustPlatform.buildRustPackage rec {
rustPlatform.buildRustPackage (finalAttrs: {
  pname = "jsonschema-cli";
  version = "0.32.0";

  src = fetchCrate {
    pname = "jsonschema-cli";
    inherit version;
    inherit (finalAttrs) version;
    hash = "sha256-ZcavZSHf2eT65f7HbtZmD2mYUtrXEL/l1opXCvdn1O0=";
  };

@@ -22,7 +22,6 @@ rustPlatform.buildRustPackage rec {
    versionCheckHook
  ];
  doInstallCheck = true;
  versionCheckProgram = "${placeholder "out"}/bin/${meta.mainProgram}";
  versionCheckProgramArg = "--version";

  passthru.updateScript = nix-update-script { };
@@ -30,11 +29,11 @@ rustPlatform.buildRustPackage rec {
  meta = {
    description = "Fast command-line tool for JSON Schema validation";
    homepage = "https://github.com/Stranger6667/jsonschema";
    changelog = "https://github.com/Stranger6667/jsonschema/releases/tag/rust-v${version}";
    changelog = "https://github.com/Stranger6667/jsonschema/releases/tag/rust-v${finalAttrs.version}";
    license = lib.licenses.mit;
    maintainers = with lib.maintainers; [
      kachick
    ];
    mainProgram = "jsonschema-cli";
  };
}
})