{ lib, rustPlatform, fetchCrate, pkg-config, openssl, nix-update-script, versionCheckHook, }: rustPlatform.buildRustPackage rec { pname = "sea-orm-cli"; version = "1.1.16"; src = fetchCrate { inherit pname version; hash = "sha256-L8x7+yz/d03yOoWKWCtV1U+37JkTb28sH9OMxzrIsE4="; }; nativeBuildInputs = [ pkg-config ]; buildInputs = [ openssl ]; cargoHash = "sha256-efgzVuv9Lm8T+05Z0WAaux/l7hRdJdVPfpknKt22d50="; nativeInstallCheckInputs = [ versionCheckHook ]; versionCheckProgramArg = "--version"; doInstallCheck = true; __darwinAllowLocalNetworking = true; passthru = { updateScript = nix-update-script { }; }; meta = { mainProgram = "sea-orm-cli"; homepage = "https://www.sea-ql.org/SeaORM"; description = "Command line utility for SeaORM"; license = with lib.licenses; [ mit # or asl20 ]; maintainers = with lib.maintainers; [ traxys ]; }; }