From d6ad42c30859a3a022e1f57d1b52f2d2e8bf3bb0 Mon Sep 17 00:00:00 2001 From: Quentin Boyer Date: Mon, 30 Dec 2024 11:58:08 +0100 Subject: [PATCH] sea-orm-cli: 1.1.1 -> 1.1.3 Diff: https://diff.rs/sea-orm-cli/1.1.1/1.1.3 --- pkgs/by-name/se/sea-orm-cli/package.nix | 32 +++++++++++++++---------- 1 file changed, 20 insertions(+), 12 deletions(-) diff --git a/pkgs/by-name/se/sea-orm-cli/package.nix b/pkgs/by-name/se/sea-orm-cli/package.nix index 4a2b9a31df1a..0b27163049bd 100644 --- a/pkgs/by-name/se/sea-orm-cli/package.nix +++ b/pkgs/by-name/se/sea-orm-cli/package.nix @@ -1,36 +1,44 @@ { lib, - stdenv, rustPlatform, fetchCrate, pkg-config, openssl, - darwin, + nix-update-script, + versionCheckHook, }: rustPlatform.buildRustPackage rec { pname = "sea-orm-cli"; - version = "1.1.1"; + version = "1.1.3"; src = fetchCrate { inherit pname version; - hash = "sha256-rPPOVU5oyBIywiJuK23PutfvhxaFNi/VZ9kVWLMUVjI="; + hash = "sha256-4j4jeZBe4HyPpa8Em4/zPcIjlJmGfymyEJP2PfDdELQ="; }; nativeBuildInputs = [ pkg-config ]; - buildInputs = [ - openssl - ] ++ lib.optionals stdenv.hostPlatform.isDarwin [ darwin.apple_sdk.frameworks.SystemConfiguration ]; + buildInputs = [ openssl ]; - cargoHash = "sha256-r5nqzu79z/XdrqvaJ+5ylZI6tC/SKTzmoOSgkbAaPn4="; + cargoHash = "sha256-ZdKDQUBpFEVBvvGCulRH+riTeLoXGMMBn2RGSL1uUy4="; - meta = with lib; { + 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 licenses; [ + description = "Command line utility for SeaORM"; + license = with lib.licenses; [ mit # or asl20 ]; - maintainers = with maintainers; [ traxys ]; + maintainers = with lib.maintainers; [ traxys ]; }; }