handlr: fix darwin build

This commit is contained in:
Stéphan Kochen
2021-05-16 10:08:13 +02:00
committed by Jonathan Ringer
parent 523572c9f3
commit 82f66a4050

View File

@@ -1,4 +1,4 @@
{ lib, rustPlatform, fetchFromGitHub, shared-mime-info }:
{ lib, stdenv, rustPlatform, fetchFromGitHub, shared-mime-info, libiconv }:
rustPlatform.buildRustPackage rec {
pname = "handlr";
@@ -14,6 +14,7 @@ rustPlatform.buildRustPackage rec {
cargoSha256 = "sha256-xDQV8wVlzItz0lzR1nVRPVsg7nSf/khUhevDlGgSO3g=";
nativeBuildInputs = [ shared-mime-info ];
buildInputs = lib.optional stdenv.isDarwin libiconv;
preCheck = ''
export HOME=$TEMPDIR