Skip to content
Snippets Groups Projects
Commit dc59581c authored by test_nonet's avatar test_nonet
Browse files

fix config

parent 87e570ce
No related branches found
No related tags found
No related merge requests found
......@@ -40,13 +40,10 @@ in stdenv.mkDerivation {
'';
configurePhase = ''
OLD_CC="$CC"
unset CC CXX
ct-ng xtensa-esp32-elf
echo "CT_LOCAL_TARBALLS_DIR=$PWD/tarballs" >>.config
echo "CT_FORBID_DOWNLOAD=y" >>.config
'' + (if !canadian then "" else ''
cat >>.config <<EOF
CT_TOOLCHAIN_TYPE="canadian"
unset CT_CROSS
......@@ -57,14 +54,21 @@ in stdenv.mkDerivation {
CT_HOST_PREFIX="${stdenv.hostPlatform.config}-"
EOF
( yes "" || true ) | ct-ng oldconfig
'');
'') + ''
echo "CT_LOCAL_TARBALLS_DIR=$PWD/tarballs" >>.config
echo "CT_FORBID_DOWNLOAD=y" >>.config
'';
buildPhase = ''
export CT_USE_SOURCES_FROM_NIXOS=y
ct-ng build.''${NIX_BUILD_CORES:-1}
'';
installPhase = ''
installPhase = if canadian then ''
#FIXME
cp -aT builds/xtensa-esp32-elf $out
'' else ''
cp -aT builds/xtensa-esp32-elf $out
'';
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment