2023-09-16 04:20:00 +00:00
|
|
|
{ fetchCrate, lib, stdenv, openssl, pkg-config, rustPlatform, darwin }:
|
2022-07-31 17:36:52 +00:00
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
pname = "refinery-cli";
|
2024-04-06 07:36:39 +00:00
|
|
|
version = "0.8.14";
|
2022-07-31 17:36:52 +00:00
|
|
|
|
|
|
|
src = fetchCrate {
|
|
|
|
pname = "refinery_cli";
|
|
|
|
inherit version;
|
2024-07-12 18:42:22 +00:00
|
|
|
hash = "sha256-gHW+5WWzk1H2O5B2sWdl6QcOeUbNvbdZZBD10SmE1GA=";
|
2022-07-31 17:36:52 +00:00
|
|
|
};
|
|
|
|
|
2024-04-06 07:36:39 +00:00
|
|
|
cargoHash = "sha256-Go7+LZSze/IrNwEl+11Dm5O9RcREyPSkHPjlE9SPO70=";
|
2022-07-31 17:36:52 +00:00
|
|
|
|
|
|
|
nativeBuildInputs = [ pkg-config ];
|
|
|
|
|
2023-09-16 04:20:00 +00:00
|
|
|
buildInputs = [ openssl ]
|
|
|
|
++ lib.optionals stdenv.hostPlatform.isDarwin [ darwin.apple_sdk.frameworks.SystemConfiguration ];
|
2022-07-31 17:36:52 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Run migrations for the Refinery ORM for Rust via the CLI";
|
2024-03-19 02:14:51 +00:00
|
|
|
mainProgram = "refinery";
|
2022-07-31 17:36:52 +00:00
|
|
|
homepage = "https://github.com/rust-db/refinery";
|
2023-09-16 04:20:00 +00:00
|
|
|
changelog = "https://github.com/rust-db/refinery/blob/${version}/CHANGELOG.md";
|
2022-07-31 17:36:52 +00:00
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ lucperkins ];
|
|
|
|
};
|
|
|
|
}
|