diff options
author | Pascal Wittmann <mail@pascal-wittmann.de> | 2024-04-30 14:39:10 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-04-30 14:39:10 +0200 |
commit | de8557461901be0cc1116da42e76c7d54c6c5d85 (patch) | |
tree | 6780a132c416b55e4299e8bdff3066d649384e34 /pkgs/tools/graphics | |
parent | bb8e65039c576f57cc33f301bc81f6bd48e733e9 (diff) | |
parent | 1363f2bd9ae590c5a7cd7da31ba1851a81fb34a0 (diff) |
Merge pull request #307842 from NickCao/ploticus
ploticus: fix cross compilation
Diffstat (limited to 'pkgs/tools/graphics')
-rw-r--r-- | pkgs/tools/graphics/ploticus/default.nix | 5 |
1 files changed, 3 insertions, 2 deletions
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/ |