Files
nixpkgs/pkgs/by-name/re/refinery-cli/package.nix
Dark Steveneq 646b892680
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
push sheeet
2025-10-09 14:15:47 +02:00

40 lines
934 B
Nix

{
fetchCrate,
lib,
openssl,
pkg-config,
rustPlatform,
}:
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 ];
cargoHash = "sha256-gcPVbKcPkV0H+BpErTokvLKFxpSXhxNoptxOeuhH1FU=";
nativeBuildInputs = [ pkg-config ];
buildInputs = [
openssl
];
meta = {
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 = lib.licenses.mit;
maintainers = with lib.maintainers; [ lucperkins ];
};
}