nixpkgs/pkgs/development/tools/refinery-cli/default.nix

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

28 lines
854 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-01-23 08:59:22 +00:00
version = "0.8.12";
2022-07-31 17:36:52 +00:00
src = fetchCrate {
pname = "refinery_cli";
inherit version;
2024-01-23 08:59:22 +00:00
sha256 = "sha256-ftti/+Zl9/8CsrlEI5gZQF0M33vzl5aK3X/EfCujtY4=";
2022-07-31 17:36:52 +00:00
};
2024-01-23 08:59:22 +00:00
cargoHash = "sha256-KlZTgg/Y4cXy5DR8iT4olVTF0kq1g5AQm3Sjpmrl6lk=";
2022-07-31 17:36:52 +00:00
nativeBuildInputs = [ pkg-config ];
2023-09-16 04:20:00 +00:00
buildInputs = [ openssl ]
++ lib.optionals stdenv.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";
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 ];
};
}