2023-05-11 19:43:53 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, rustPlatform
|
|
|
|
, fetchCrate
|
|
|
|
, pkg-config
|
|
|
|
, openssl
|
|
|
|
, darwin
|
|
|
|
}:
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
pname = "sea-orm-cli";
|
2023-12-27 22:19:20 +00:00
|
|
|
version = "0.12.10";
|
2023-05-11 19:43:53 +00:00
|
|
|
|
|
|
|
src = fetchCrate {
|
|
|
|
inherit pname version;
|
2023-12-27 22:19:20 +00:00
|
|
|
hash = "sha256-BVQbzP/+TJFqhnBeerYiLMpJJ8q9x582DR5X10K027U=";
|
2023-05-11 19:43:53 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [ pkg-config ];
|
|
|
|
|
|
|
|
buildInputs = [ openssl ]
|
|
|
|
++ lib.optionals stdenv.isDarwin [ darwin.apple_sdk.frameworks.SystemConfiguration ];
|
|
|
|
|
2023-12-27 22:19:20 +00:00
|
|
|
cargoHash = "sha256-qCcWReo72eHN9MoTVAmSHYVhpqw0kZ9VU/plYRcirVA=";
|
2023-05-11 19:43:53 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
2023-12-30 03:35:58 +00:00
|
|
|
homepage = "https://www.sea-ql.org/SeaORM";
|
2023-05-11 19:43:53 +00:00
|
|
|
description = " Command line utility for SeaORM";
|
|
|
|
license = with licenses; [ mit /* or */ asl20 ];
|
|
|
|
maintainers = with maintainers; [ traxys ];
|
|
|
|
};
|
|
|
|
}
|