From 3852b5abca68e53781050442368bcce224f483ed Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment=20DOUIN?= Date: Sun, 24 Nov 2024 21:42:30 +0100 Subject: [PATCH] add missing darwin libiconv input --- package.nix | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/package.nix b/package.nix index d9f97bbb..5da1ebf9 100644 --- a/package.nix +++ b/package.nix @@ -28,18 +28,19 @@ rustPlatform.buildRustPackage rec { cargoHash = "sha256-YS8IamapvmdrOPptQh2Ef9Yold0IK1XIeGs0kDIQ5b8="; - TARGET_CC = "${stdenv.cc}/bin/${stdenv.cc.targetPrefix}cc"; - CARGO_BUILD_RUSTFLAGS = [ - "-Clinker=${TARGET_CC}" - "-Clink-args=-static -latomic" - "-Ctarget-feature=+crt-static" - ]; + # TARGET_CC = "${stdenv.cc}/bin/${stdenv.cc.targetPrefix}cc"; + # CARGO_BUILD_RUSTFLAGS = [ + # "-Clinker=${TARGET_CC}" + # "-Clink-args=-static -latomic" + # "-Ctarget-feature=+crt-static" + # ]; # unit tests only doCheck = false; cargoTestFlags = [ "--lib" ]; nativeBuildInputs = [ ] + ++ lib.optional hostPlatform.isDarwin [ darwin.libiconv ] ++ lib.optional (installManPages || installShellCompletions) installShellFiles; buildInputs = [ ]