refinery-cli: fix build on darwin

This commit is contained in:
Mario Rodas 2023-09-16 04:20:00 +00:00
parent f99e9325ad
commit b7c56ae8e9

View File

@ -1,4 +1,4 @@
{ fetchCrate, lib, openssl, pkg-config, rustPlatform }:
{ fetchCrate, lib, stdenv, openssl, pkg-config, rustPlatform, darwin }:
rustPlatform.buildRustPackage rec {
pname = "refinery-cli";
@ -14,7 +14,8 @@ rustPlatform.buildRustPackage rec {
nativeBuildInputs = [ pkg-config ];
buildInputs = [ openssl ];
buildInputs = [ openssl ]
++ lib.optionals stdenv.isDarwin [ darwin.apple_sdk.frameworks.SystemConfiguration ];
meta = with lib; {
description = "Run migrations for the Refinery ORM for Rust via the CLI";