depot/third_party/nixpkgs/pkgs/development/tools/sea-orm-cli/default.nix
Default email c7f94ff3ce Project import generated by Copybara.
GitOrigin-RevId: b85ed9dcbf187b909ef7964774f8847d554fab3b
2023-08-22 22:05:09 +02:00

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