at master 44 lines 943 B view raw
1{ 2 lib, 3 rustPlatform, 4 fetchCrate, 5 pkg-config, 6 openssl, 7 nix-update-script, 8 versionCheckHook, 9}: 10rustPlatform.buildRustPackage rec { 11 pname = "sea-orm-cli"; 12 version = "1.1.16"; 13 14 src = fetchCrate { 15 inherit pname version; 16 hash = "sha256-L8x7+yz/d03yOoWKWCtV1U+37JkTb28sH9OMxzrIsE4="; 17 }; 18 19 nativeBuildInputs = [ pkg-config ]; 20 21 buildInputs = [ openssl ]; 22 23 cargoHash = "sha256-efgzVuv9Lm8T+05Z0WAaux/l7hRdJdVPfpknKt22d50="; 24 25 nativeInstallCheckInputs = [ versionCheckHook ]; 26 versionCheckProgramArg = "--version"; 27 doInstallCheck = true; 28 __darwinAllowLocalNetworking = true; 29 30 passthru = { 31 updateScript = nix-update-script { }; 32 }; 33 34 meta = { 35 mainProgram = "sea-orm-cli"; 36 homepage = "https://www.sea-ql.org/SeaORM"; 37 description = "Command line utility for SeaORM"; 38 license = with lib.licenses; [ 39 mit # or 40 asl20 41 ]; 42 maintainers = with lib.maintainers; [ traxys ]; 43 }; 44}