pbzx: fix cross compilation

This commit is contained in:
Andrew Childs 2020-11-19 16:29:47 +09:00
parent 9ad03b1ed9
commit 2931a2e1d5

View File

@ -11,7 +11,7 @@ stdenv.mkDerivation rec {
};
buildInputs = [ xz xar ];
buildPhase = ''
cc pbzx.c -llzma -lxar -o pbzx
${stdenv.cc.targetPrefix}cc pbzx.c -llzma -lxar -o pbzx
'';
installPhase = ''
mkdir -p $out/bin