Merge pull request #307842 from NickCao/ploticus

ploticus: fix cross compilation
This commit is contained in:
Pascal Wittmann 2024-04-30 14:39:10 +02:00 committed by GitHub
commit de85574619
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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/