c7f94ff3ce
GitOrigin-RevId: b85ed9dcbf187b909ef7964774f8847d554fab3b
31 lines
737 B
Nix
31 lines
737 B
Nix
{ lib
|
|
, stdenv
|
|
, rustPlatform
|
|
, fetchCrate
|
|
, pkg-config
|
|
, openssl
|
|
, darwin
|
|
}:
|
|
rustPlatform.buildRustPackage rec {
|
|
pname = "sea-orm-cli";
|
|
version = "0.12.2";
|
|
|
|
src = fetchCrate {
|
|
inherit pname version;
|
|
hash = "sha256-mg0PkWxlfwo4eAtbU1ZOphEUBB1P6VsSpODyJZhvwQs=";
|
|
};
|
|
|
|
nativeBuildInputs = [ pkg-config ];
|
|
|
|
buildInputs = [ openssl ]
|
|
++ lib.optionals stdenv.isDarwin [ darwin.apple_sdk.frameworks.SystemConfiguration ];
|
|
|
|
cargoHash = "sha256-6LXJtY844CyR6H0/IkEJrpSj4UNWcpO/XoTzUthcTUc=";
|
|
|
|
meta = with lib; {
|
|
homepage = "https://sea-ql.org/SeaORM";
|
|
description = " Command line utility for SeaORM";
|
|
license = with licenses; [ mit /* or */ asl20 ];
|
|
maintainers = with maintainers; [ traxys ];
|
|
};
|
|
}
|