depot/third_party/nixpkgs/pkgs/by-name/re/refinery-cli/package.nix
Luke Granger-Brown f92e137cfb
Some checks failed
/ combine-systems (push) Blocked by required conditions
/ build (x86_64-linux) (push) Failing after 11m44s
/ build (aarch64-linux) (push) Failing after 11m50s
/ build (push) Failing after 16m42s
Merge commit '1e2ed035f4bebc9adad02b365508ad96f7df87c1' into HEAD
2025-03-02 02:23:32 +00:00

42 lines
1.1 KiB
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=";
};
# The `time` crate doesn't build on Rust 1.80+
# https://github.com/NixOS/nixpkgs/issues/332957
cargoPatches = [ ./time-crate.patch ];
useFetchCargoVendor = true;
cargoHash = "sha256-gcPVbKcPkV0H+BpErTokvLKFxpSXhxNoptxOeuhH1FU=";
nativeBuildInputs = [ pkg-config ];
buildInputs = [
openssl
] ++ lib.optionals stdenv.hostPlatform.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 ];
};
}