bitwarden_rs: fix darwin build

This commit is contained in:
Stéphan Kochen 2021-05-11 16:40:37 +02:00 committed by Jonathan Ringer
parent 59ac1c0c48
commit cd66ac5fc3

View File

@ -1,6 +1,6 @@
{ lib, stdenv, rustPlatform, fetchFromGitHub, nixosTests
, pkg-config, openssl
, Security, CoreServices
, libiconv, Security, CoreServices
, dbBackend ? "sqlite", libmysqlclient, postgresql }:
let
@ -19,7 +19,7 @@ in rustPlatform.buildRustPackage rec {
nativeBuildInputs = [ pkg-config ];
buildInputs = with lib; [ openssl ]
++ optionals stdenv.isDarwin [ Security CoreServices ]
++ optionals stdenv.isDarwin [ libiconv Security CoreServices ]
++ optional (dbBackend == "mysql") libmysqlclient
++ optional (dbBackend == "postgresql") postgresql;