diff --git a/pkgs/tools/misc/castty/default.nix b/pkgs/tools/misc/castty/default.nix index ddda737c8b5b..075c6d739b3f 100644 --- a/pkgs/tools/misc/castty/default.nix +++ b/pkgs/tools/misc/castty/default.nix @@ -13,7 +13,10 @@ stdenv.mkDerivation { buildInputs = [ libsoundio lame ]; - makeFlags = [ "PREFIX=$(out)" ]; + makeFlags = [ + "CC=${stdenv.cc.targetPrefix}cc" + "PREFIX=$(out)" + ]; meta = with lib; { description = "CLI tool to record audio-enabled screencasts of your terminal, for the web";