nixpkgs/pkgs/development/tools/sea-orm-cli/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

32 lines
737 B
Nix
Raw Normal View History

2023-05-11 20:43:53 +01:00
{ lib
, stdenv
, rustPlatform
, fetchCrate
, pkg-config
, openssl
, darwin
}:
rustPlatform.buildRustPackage rec {
pname = "sea-orm-cli";
2023-08-15 01:50:17 +01:00
version = "0.12.2";
2023-05-11 20:43:53 +01:00
src = fetchCrate {
inherit pname version;
2023-08-15 01:50:17 +01:00
hash = "sha256-mg0PkWxlfwo4eAtbU1ZOphEUBB1P6VsSpODyJZhvwQs=";
2023-05-11 20:43:53 +01:00
};
nativeBuildInputs = [ pkg-config ];
buildInputs = [ openssl ]
++ lib.optionals stdenv.isDarwin [ darwin.apple_sdk.frameworks.SystemConfiguration ];
2023-08-15 01:50:17 +01:00
cargoHash = "sha256-6LXJtY844CyR6H0/IkEJrpSj4UNWcpO/XoTzUthcTUc=";
2023-05-11 20:43:53 +01:00
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 ];
};
}