Skip to content

Commit

Permalink
ploticus: fix cross compilation
Browse files Browse the repository at this point in the history
  • Loading branch information
NickCao committed Apr 29, 2024
1 parent 5467a90 commit 1363f2b
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions pkgs/tools/graphics/ploticus/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,8 @@ stdenv.mkDerivation (finalAttrs: {
preBuild = ''
cd src
'';
makeFlags = [ "CC=cc" ];

makeFlags = [ "CC:=$(CC)" ];

preInstall = ''
mkdir -p "$out/bin"
Expand All @@ -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/
Expand Down

0 comments on commit 1363f2b

Please sign in to comment.