diff --git a/pkgs/tools/graphics/ploticus/default.nix b/pkgs/tools/graphics/ploticus/default.nix index ac5855304f4ad14..e83c57aa5ca377c 100644 --- a/pkgs/tools/graphics/ploticus/default.nix +++ b/pkgs/tools/graphics/ploticus/default.nix @@ -50,7 +50,8 @@ stdenv.mkDerivation (finalAttrs: { preBuild = '' cd src ''; - makeFlags = [ "CC=cc" ]; + + makeFlags = [ "CC:=$(CC)" ]; preInstall = '' mkdir -p "$out/bin" @@ -69,7 +70,7 @@ stdenv.mkDerivation (finalAttrs: { passthru.tests = { prefab = runCommand "ploticus-prefab-test" { - buildInputs = [ finalAttrs.finalPackage ]; + nativeBuildInputs = [ finalAttrs.finalPackage ]; } '' # trivial test to see if the prefab path munging works mkdir $out/