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

some improvements -> crosstool can build the first few things

parent fbef27ef
No related branches found
No related tags found
No related merge requests found
{ stdenv, fetchurl, fetchgit, fetchFromGitHub, espressif-crosstool-ng, gcc, binutils, which, lib, gnum4, perl }:
{ lib, stdenv, fetchurl, fetchgit, fetchFromGitHub, espressif-crosstool-ng, autoconf, automake, bison, flex, unzip, help2man, libtool, which, texinfo, file, wget, gnum4, perl }:
let
srcs = import ./sources.nix { inherit fetchFromGitHub; };
srcs2 = import ./sources2.nix { inherit fetchurl fetchgit fetchFromGitHub; };
......@@ -9,7 +9,7 @@ in stdenv.mkDerivation {
additionalSources = lib.strings.concatStringsSep "\n"
(lib.attrsets.mapAttrsToList (name: drv: if drv ? outPath then "${name} ${drv.outPath}" else "") srcs2);
nativeBuildInputs = [ espressif-crosstool-ng gcc binutils which gnum4 perl ];
nativeBuildInputs = [ espressif-crosstool-ng autoconf automake bison flex unzip help2man libtool which texinfo file wget gnum4 perl ];
dontConfigure = true;
dontInstall = true;
......@@ -22,16 +22,19 @@ in stdenv.mkDerivation {
echo "CT_FORBID_DOWNLOAD=y" >>.config
mkdir tarballs
while read name path ; do
echo ln -s $path tarballs/$name
ln -s $path tarballs/$name
if [ -d tarballs/$name/ ] ; then
printf "%-20s -> %s" $name $path
if [ -d $path ] ; then
# ugly but works...
tar -C tarballs -cjf tarballs/$name.tar.bz2 $name
cp -aHT $path tarballs/$name
chmod -R u+w tarballs/$name
tar -C tarballs -cjf tarballs/$name.tar.bz2 $name/
else
ln -s $path tarballs/$name
fi
done <<<"$additionalSources"
echo "$additionalSources"
CT_USE_SOURCES_FROM_NIXOS=y \
ct-ng build
ct-ng build \
|| ( tail -n 100 build.log ; exit 1 )
'';
}
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