kbs2: fix build on darwin

This commit is contained in:
Mario Rodas 2021-05-05 04:20:00 +00:00
parent ca6daab25b
commit 887aae03b2

View file

@ -1,4 +1,4 @@
{ lib, stdenv, rustPlatform, fetchFromGitHub, installShellFiles, python3, libxcb, AppKit }: { lib, stdenv, rustPlatform, fetchFromGitHub, installShellFiles, python3, libxcb, AppKit, libiconv }:
rustPlatform.buildRustPackage rec { rustPlatform.buildRustPackage rec {
pname = "kbs2"; pname = "kbs2";
@ -18,7 +18,7 @@ rustPlatform.buildRustPackage rec {
buildInputs = [ ] buildInputs = [ ]
++ lib.optionals stdenv.isLinux [ libxcb ] ++ lib.optionals stdenv.isLinux [ libxcb ]
++ lib.optionals stdenv.isDarwin [ AppKit ]; ++ lib.optionals stdenv.isDarwin [ AppKit libiconv ];
preCheck = '' preCheck = ''
export HOME=$TMPDIR export HOME=$TMPDIR