nixpkgs/pkgs/by-name/se/sea-orm-cli/package.nix
2024-11-18 22:15:27 -08:00

32 lines
753 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 ];
};
}