cc65: fix darwin build
commite726f8034fc2a48c10c0864b1991cbac18d99385
authorStéphan Kochen <git@stephank.nl>
dateTue 18 May 2021, 18:56 (6 years ago)
parent6be706b
pkgs/development/compilers/cc65/default.nix+4−1
@@ -13,7 +13,10 @@ stdenv.mkDerivation rec {
1313 sha256 = "01a15yvs455qp20hri2pbg2wqvcip0d50kb7dibi9427hqk9cnj4";
1414 };
1515
16− makeFlags = [ "PREFIX=${placeholder "out"}"];
16+ makeFlags = [
17+ "PREFIX=${placeholder "out"}"
18+ "CC=${stdenv.cc.targetPrefix}cc"
19+ ];
1720
1821 meta = with lib; {
1922 homepage = "https://cc65.github.io/";