From fbc141246d8b6352853b6a6a325c74499dc972bd Mon Sep 17 00:00:00 2001 From: FliegendeWurst Date: Mon, 30 Dec 2024 19:46:28 +0100 Subject: [PATCH] iverilog: set correct build compilers --- pkgs/by-name/iv/iverilog/package.nix | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/pkgs/by-name/iv/iverilog/package.nix b/pkgs/by-name/iv/iverilog/package.nix index 6ae58d945ad13..d018d650dbbe1 100644 --- a/pkgs/by-name/iv/iverilog/package.nix +++ b/pkgs/by-name/iv/iverilog/package.nix @@ -13,6 +13,7 @@ python3, readline, zlib, + buildPackages, }: stdenv.mkDerivation rec { @@ -33,8 +34,8 @@ stdenv.mkDerivation rec { gperf ]; - CC_FOR_BUILD = "${stdenv.cc}/bin/cc"; - CXX_FOR_BUILD = "${stdenv.cc}/bin/c++"; + CC_FOR_BUILD = "${buildPackages.stdenv.cc}/bin/cc"; + CXX_FOR_BUILD = "${buildPackages.stdenv.cc}/bin/c++"; patches = [ # NOTE(jleightcap): `-Werror=format-security` warning patched shortly after release, backport the upstream fix