From e7c70ce5c8cfb139adcbec73ec518031bfc8f211 Mon Sep 17 00:00:00 2001 From: Jacek Galowicz Date: Thu, 9 Dec 2021 12:27:29 +0100 Subject: Inject gcc path into makewrapper script --- pkgs/test/make-binary-wrapper/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'pkgs/test/make-binary-wrapper') diff --git a/pkgs/test/make-binary-wrapper/default.nix b/pkgs/test/make-binary-wrapper/default.nix index 6f3b3ef4ae12b..04f0059ae153e 100644 --- a/pkgs/test/make-binary-wrapper/default.nix +++ b/pkgs/test/make-binary-wrapper/default.nix @@ -1,9 +1,9 @@ { lib, coreutils, python3, gcc, writeText, writeScript, runCommand, makeBinaryWrapper }: let - env = { nativeBuildInputs = [ makeBinaryWrapper gcc ]; }; + env = { nativeBuildInputs = [ makeBinaryWrapper ]; }; envCheck = runCommand "envcheck" env '' - cc -o $out ${./envcheck.c} + ${gcc}/bin/cc -o $out ${./envcheck.c} ''; makeGoldenTest = testname: runCommand "test-wrapper_${testname}" env '' mkdir -p /tmp/foo -- cgit 1.4.1