From 3b856174c3568276dee6cd88e550212aaca15b32 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phan=20Kochen?= Date: Sat, 15 May 2021 21:42:38 +0200 Subject: [PATCH] gitoxide: fix darwin build --- pkgs/applications/version-management/gitoxide/default.nix | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/pkgs/applications/version-management/gitoxide/default.nix b/pkgs/applications/version-management/gitoxide/default.nix index 6db7cbad6e9..1f798e33eb8 100644 --- a/pkgs/applications/version-management/gitoxide/default.nix +++ b/pkgs/applications/version-management/gitoxide/default.nix @@ -1,4 +1,5 @@ -{ lib, stdenv, rustPlatform, cmake, fetchFromGitHub, pkg-config, openssl, Security }: +{ lib, stdenv, rustPlatform, cmake, fetchFromGitHub, pkg-config, openssl +, libiconv, Security }: rustPlatform.buildRustPackage rec { pname = "gitoxide"; @@ -14,8 +15,9 @@ rustPlatform.buildRustPackage rec { cargoSha256 = "0gw19zdxbkgnj1kcyqn1naj1dnhsx10j860m0xgs5z7bbvfg82p6"; nativeBuildInputs = [ cmake pkg-config ]; - buildInputs = [ openssl ] - ++ lib.optionals stdenv.isDarwin [ Security ]; + buildInputs = if stdenv.isDarwin + then [ libiconv Security ] + else [ openssl ]; # Needed to get openssl-sys to use pkg-config. OPENSSL_NO_VENDOR = 1;