diff --git a/default.nix b/default.nix index 0f2a8f43..e0055478 100644 --- a/default.nix +++ b/default.nix @@ -38,6 +38,7 @@ let inherit lib hostPlatform rustPlatform; fetchFromGitHub = pkgs.fetchFromGitHub; stdenv = pkgs.stdenv; + libiconv = pkgs.libiconv; darwin = pkgs.darwin; installShellFiles = false; installShellCompletions = false; diff --git a/package.nix b/package.nix index 09af5419..16fc9c96 100644 --- a/package.nix +++ b/package.nix @@ -8,6 +8,7 @@ , installShellCompletions ? stdenv.buildPlatform.canExecute stdenv.hostPlatform , installManPages ? stdenv.buildPlatform.canExecute stdenv.hostPlatform , notmuch +, libiconv , gpgme , buildNoDefaultFeatures ? false , buildFeatures ? [ ] @@ -33,6 +34,7 @@ rustPlatform.buildRustPackage rec { cargoTestFlags = [ "--lib" ]; nativeBuildInputs = [ ] + ++ lib.optional hostPlatform.isDarwin libiconv ++ lib.optional (installManPages || installShellCompletions) installShellFiles; buildInputs = [ ]