1 { fetchCrate, lib, stdenv, openssl, pkg-config, rustPlatform, darwin }:
3 rustPlatform.buildRustPackage rec {
4 pname = "refinery-cli";
8 pname = "refinery_cli";
10 hash = "sha256-gHW+5WWzk1H2O5B2sWdl6QcOeUbNvbdZZBD10SmE1GA=";
13 cargoHash = "sha256-Go7+LZSze/IrNwEl+11Dm5O9RcREyPSkHPjlE9SPO70=";
15 nativeBuildInputs = [ pkg-config ];
17 buildInputs = [ openssl ]
18 ++ lib.optionals stdenv.hostPlatform.isDarwin [ darwin.apple_sdk.frameworks.SystemConfiguration ];
21 description = "Run migrations for the Refinery ORM for Rust via the CLI";
22 mainProgram = "refinery";
23 homepage = "https://github.com/rust-db/refinery";
24 changelog = "https://github.com/rust-db/refinery/blob/${version}/CHANGELOG.md";
25 license = licenses.mit;
26 maintainers = with maintainers; [ lucperkins ];