From 1363f2bd9ae590c5a7cd7da31ba1851a81fb34a0 Mon Sep 17 00:00:00 2001 From: Nick Cao Date: Mon, 29 Apr 2024 17:00:52 -0400 Subject: ploticus: fix cross compilation --- pkgs/tools/graphics/ploticus/default.nix | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'pkgs/tools/graphics') diff --git a/pkgs/tools/graphics/ploticus/default.nix b/pkgs/tools/graphics/ploticus/default.nix index ac5855304f4ad..e83c57aa5ca37 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/ -- cgit 1.4.1