cbonsai: fix cross-compilation

This commit is contained in:
Ben Siraphob 2021-07-27 01:08:58 +07:00
parent 6df6003859
commit ee20f1abe9

View File

@ -13,6 +13,8 @@ stdenv.mkDerivation rec {
nativeBuildInputs = [ pkg-config ]; nativeBuildInputs = [ pkg-config ];
buildInputs = [ ncurses ]; buildInputs = [ ncurses ];
makeFlags = [ "CC=${stdenv.cc.targetPrefix}cc" ];
installFlags = [ "PREFIX=$(out)" ]; installFlags = [ "PREFIX=$(out)" ];
passthru.updateScript = nix-update-script { attrPath = pname; }; passthru.updateScript = nix-update-script { attrPath = pname; };