2019-03-26 06:12:52 +01:00
|
|
|
{ stdenvNoCC, lndir, newlib, msp430GccSupport }:
|
2019-03-26 04:33:39 +01:00
|
|
|
|
2019-03-26 06:12:52 +01:00
|
|
|
stdenvNoCC.mkDerivation {
|
|
|
|
name = "msp430-${newlib.name}";
|
2019-03-26 04:33:39 +01:00
|
|
|
inherit newlib;
|
|
|
|
inherit msp430GccSupport;
|
|
|
|
|
|
|
|
preferLocalBuild = true;
|
|
|
|
allowSubstitutes = false;
|
|
|
|
|
2019-03-26 06:12:52 +01:00
|
|
|
buildCommand = ''
|
|
|
|
mkdir $out
|
|
|
|
${lndir}/bin/lndir -silent $newlib $out
|
|
|
|
${lndir}/bin/lndir -silent $msp430GccSupport/include $out/${newlib.incdir}
|
|
|
|
${lndir}/bin/lndir -silent $msp430GccSupport/lib $out/${newlib.libdir}
|
|
|
|
'';
|
|
|
|
|
2019-03-26 04:33:39 +01:00
|
|
|
passthru = {
|
|
|
|
inherit (newlib) incdir libdir;
|
|
|
|
};
|
2019-03-26 06:12:52 +01:00
|
|
|
|
|
|
|
meta = {
|
|
|
|
platforms = [ "msp430-none" ];
|
|
|
|
};
|
|
|
|
}
|