From 2b9caf8896f319ca6d4b40d1f1a7b70931bf23f1 Mon Sep 17 00:00:00 2001 From: Frederik Rietdijk Date: Fri, 26 Apr 2019 11:49:56 +0200 Subject: [PATCH] pigz: fix cross --- pkgs/tools/compression/pigz/default.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/tools/compression/pigz/default.nix b/pkgs/tools/compression/pigz/default.nix index 7d4cdc2df86d..1fabedaf62d8 100644 --- a/pkgs/tools/compression/pigz/default.nix +++ b/pkgs/tools/compression/pigz/default.nix @@ -15,7 +15,7 @@ stdenv.mkDerivation { buildInputs = [zlib] ++ stdenv.lib.optional stdenv.isLinux utillinux; - makeFlags = [ "CC=cc" ]; + makeFlags = [ "CC=${stdenv.cc}/bin/${stdenv.cc.targetPrefix}cc" ]; doCheck = stdenv.isLinux; checkTarget = "tests";