nixpkgs/pkgs/by-name/re/refinery-cli/package.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

29 lines
895 B
Nix
Raw Normal View History

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;
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";
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 ];
};
}