depot/third_party/nixpkgs/pkgs/by-name/re/refinery-cli/package.nix
Default email f34ce41345 Project import generated by Copybara.
GitOrigin-RevId: b73c2221a46c13557b1b3be9c2070cc42cf01eb3
2024-07-27 08:49:29 +02:00

28 lines
882 B
Nix

{ fetchCrate, lib, stdenv, openssl, pkg-config, rustPlatform, darwin }:
rustPlatform.buildRustPackage rec {
pname = "refinery-cli";
version = "0.8.14";
src = fetchCrate {
pname = "refinery_cli";
inherit version;
hash = "sha256-gHW+5WWzk1H2O5B2sWdl6QcOeUbNvbdZZBD10SmE1GA=";
};
cargoHash = "sha256-Go7+LZSze/IrNwEl+11Dm5O9RcREyPSkHPjlE9SPO70=";
nativeBuildInputs = [ pkg-config ];
buildInputs = [ openssl ]
++ lib.optionals stdenv.isDarwin [ darwin.apple_sdk.frameworks.SystemConfiguration ];
meta = with lib; {
description = "Run migrations for the Refinery ORM for Rust via the CLI";
mainProgram = "refinery";
homepage = "https://github.com/rust-db/refinery";
changelog = "https://github.com/rust-db/refinery/blob/${version}/CHANGELOG.md";
license = licenses.mit;
maintainers = with maintainers; [ lucperkins ];
};
}