2022-10-21 18:38:19 +00:00
|
|
|
{ stdenvNoCC, xorg, newlib, msp430GccSupport }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
stdenvNoCC.mkDerivation {
|
|
|
|
name = "msp430-${newlib.name}";
|
|
|
|
inherit newlib;
|
|
|
|
inherit msp430GccSupport;
|
|
|
|
|
|
|
|
preferLocalBuild = true;
|
|
|
|
allowSubstitutes = false;
|
|
|
|
|
|
|
|
buildCommand = ''
|
|
|
|
mkdir $out
|
2022-10-21 18:38:19 +00:00
|
|
|
${xorg.lndir}/bin/lndir -silent $newlib $out
|
|
|
|
${xorg.lndir}/bin/lndir -silent $msp430GccSupport/include $out/${newlib.incdir}
|
|
|
|
${xorg.lndir}/bin/lndir -silent $msp430GccSupport/lib $out/${newlib.libdir}
|
2020-04-24 23:36:52 +00:00
|
|
|
'';
|
|
|
|
|
|
|
|
passthru = {
|
|
|
|
inherit (newlib) incdir libdir;
|
|
|
|
};
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
platforms = [ "msp430-none" ];
|
|
|
|
};
|
|
|
|
}
|