acr-cli: init at 0.14 (#359508)
[NixPkgs.git] / pkgs / by-name / re / refinery-cli / package.nix
blob59a5dd255ba6939253b8841ea22f839359f4e91a
1 { fetchCrate, lib, stdenv, openssl, pkg-config, rustPlatform, darwin }:
3 rustPlatform.buildRustPackage rec {
4   pname = "refinery-cli";
5   version = "0.8.14";
7   src = fetchCrate {
8     pname = "refinery_cli";
9     inherit version;
10     hash = "sha256-gHW+5WWzk1H2O5B2sWdl6QcOeUbNvbdZZBD10SmE1GA=";
11   };
13   cargoHash = "sha256-Go7+LZSze/IrNwEl+11Dm5O9RcREyPSkHPjlE9SPO70=";
15   nativeBuildInputs = [ pkg-config ];
17   buildInputs = [ openssl ]
18     ++ lib.optionals stdenv.hostPlatform.isDarwin [ darwin.apple_sdk.frameworks.SystemConfiguration ];
20   meta = with lib; {
21     description = "Run migrations for the Refinery ORM for Rust via the CLI";
22     mainProgram = "refinery";
23     homepage = "https://github.com/rust-db/refinery";
24     changelog = "https://github.com/rust-db/refinery/blob/${version}/CHANGELOG.md";
25     license = licenses.mit;
26     maintainers = with maintainers; [ lucperkins ];
27   };