depot/third_party/nixpkgs/pkgs/by-name/se/sea-orm-cli/package.nix

36 lines
776 B
Nix

{
lib,
stdenv,
rustPlatform,
fetchCrate,
pkg-config,
openssl,
darwin,
}:
rustPlatform.buildRustPackage rec {
pname = "sea-orm-cli";
version = "1.1.1";
src = fetchCrate {
inherit pname version;
hash = "sha256-rPPOVU5oyBIywiJuK23PutfvhxaFNi/VZ9kVWLMUVjI=";
};
nativeBuildInputs = [ pkg-config ];
buildInputs = [
openssl
] ++ lib.optionals stdenv.hostPlatform.isDarwin [ darwin.apple_sdk.frameworks.SystemConfiguration ];
cargoHash = "sha256-r5nqzu79z/XdrqvaJ+5ylZI6tC/SKTzmoOSgkbAaPn4=";
meta = with lib; {
homepage = "https://www.sea-ql.org/SeaORM";
description = " Command line utility for SeaORM";
license = with licenses; [
mit # or
asl20
];
maintainers = with maintainers; [ traxys ];
};
}