1{ fetchCrate, lib, stdenv, openssl, pkg-config, rustPlatform, darwin }:
2
3rustPlatform.buildRustPackage rec {
4 pname = "refinery-cli";
5 version = "0.8.11";
6
7 src = fetchCrate {
8 pname = "refinery_cli";
9 inherit version;
10 sha256 = "sha256-Dx0xcPQsq5fYrjgCrEjXyQJOpjEF9d1vavTo+LUKSyE=";
11 };
12
13 cargoHash = "sha256-giD9yBbC3Fsgtch6lkMLGkYik/hivK48Um2qWI7EV+A=";
14
15 nativeBuildInputs = [ pkg-config ];
16
17 buildInputs = [ openssl ]
18 ++ lib.optionals stdenv.isDarwin [ darwin.apple_sdk.frameworks.SystemConfiguration ];
19
20 meta = with lib; {
21 description = "Run migrations for the Refinery ORM for Rust via the CLI";
22 homepage = "https://github.com/rust-db/refinery";
23 changelog = "https://github.com/rust-db/refinery/blob/${version}/CHANGELOG.md";
24 license = licenses.mit;
25 maintainers = with maintainers; [ lucperkins ];
26 };
27}