2023-10-09 19:29:22 +00:00
|
|
|
{ fetchCrate, lib, stdenv, openssl, pkg-config, rustPlatform, darwin }:
|
2022-08-12 12:06:08 +00:00
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
pname = "refinery-cli";
|
2023-10-09 19:29:22 +00:00
|
|
|
version = "0.8.11";
|
2022-08-12 12:06:08 +00:00
|
|
|
|
|
|
|
src = fetchCrate {
|
|
|
|
pname = "refinery_cli";
|
|
|
|
inherit version;
|
2023-10-09 19:29:22 +00:00
|
|
|
sha256 = "sha256-Dx0xcPQsq5fYrjgCrEjXyQJOpjEF9d1vavTo+LUKSyE=";
|
2022-08-12 12:06:08 +00:00
|
|
|
};
|
|
|
|
|
2023-10-09 19:29:22 +00:00
|
|
|
cargoHash = "sha256-giD9yBbC3Fsgtch6lkMLGkYik/hivK48Um2qWI7EV+A=";
|
2022-08-12 12:06:08 +00:00
|
|
|
|
|
|
|
nativeBuildInputs = [ pkg-config ];
|
|
|
|
|
2023-10-09 19:29:22 +00:00
|
|
|
buildInputs = [ openssl ]
|
|
|
|
++ lib.optionals stdenv.isDarwin [ darwin.apple_sdk.frameworks.SystemConfiguration ];
|
2022-08-12 12:06:08 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Run migrations for the Refinery ORM for Rust via the CLI";
|
|
|
|
homepage = "https://github.com/rust-db/refinery";
|
2023-10-09 19:29:22 +00:00
|
|
|
changelog = "https://github.com/rust-db/refinery/blob/${version}/CHANGELOG.md";
|
2022-08-12 12:06:08 +00:00
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ lucperkins ];
|
|
|
|
};
|
|
|
|
}
|