depot/third_party/nixpkgs/pkgs/by-name/se/sea-orm-cli/package.nix
Luke Granger-Brown f92e137cfb
Some checks failed
/ combine-systems (push) Blocked by required conditions
/ build (x86_64-linux) (push) Failing after 11m44s
/ build (aarch64-linux) (push) Failing after 11m50s
/ build (push) Failing after 16m42s
Merge commit '1e2ed035f4bebc9adad02b365508ad96f7df87c1' into HEAD
2025-03-02 02:23:32 +00:00

45 lines
976 B
Nix

{
lib,
rustPlatform,
fetchCrate,
pkg-config,
openssl,
nix-update-script,
versionCheckHook,
}:
rustPlatform.buildRustPackage rec {
pname = "sea-orm-cli";
version = "1.1.4";
src = fetchCrate {
inherit pname version;
hash = "sha256-6SFEzbXarfF8FXQqzc8n5S283xKfqqS/sfIBzpGxS04=";
};
nativeBuildInputs = [ pkg-config ];
buildInputs = [ openssl ];
useFetchCargoVendor = true;
cargoHash = "sha256-/44i91g0BllvhqZAqvm4cpm4JTWtm1wuydis33pjY+U=";
nativeInstallCheckInputs = [ versionCheckHook ];
versionCheckProgramArg = [ "--version" ];
doInstallCheck = true;
__darwinAllowLocalNetworking = true;
passthru = {
updateScript = nix-update-script { };
};
meta = {
mainProgram = "sea-orm-cli";
homepage = "https://www.sea-ql.org/SeaORM";
description = "Command line utility for SeaORM";
license = with lib.licenses; [
mit # or
asl20
];
maintainers = with lib.maintainers; [ traxys ];
};
}