Commit b7c56ae8 authored by Mario Rodas's avatar Mario Rodas
Browse files

refinery-cli: fix build on darwin

parent f99e9325
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
{ 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";