From 82f66a4050c1e2a3278b10d0594ef3cdcc16c2a6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phan=20Kochen?= Date: Sun, 16 May 2021 10:08:13 +0200 Subject: [PATCH] handlr: fix darwin build --- pkgs/tools/misc/handlr/default.nix | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pkgs/tools/misc/handlr/default.nix b/pkgs/tools/misc/handlr/default.nix index c8143ea330ae..a2dfe7feafc0 100644 --- a/pkgs/tools/misc/handlr/default.nix +++ b/pkgs/tools/misc/handlr/default.nix @@ -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