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 ]; }; }