2022-10-13 22:16:16 +00:00
|
|
|
{ stdenvNoCC, xorg, newlib, msp430GccSupport }:
|
2019-03-26 03:33:39 +00:00
|
|
|
|
2019-03-26 05:12:52 +00:00
|
|
|
stdenvNoCC.mkDerivation {
|
|
|
|
name = "msp430-${newlib.name}";
|
2019-03-26 03:33:39 +00:00
|
|
|
inherit newlib;
|
|
|
|
inherit msp430GccSupport;
|
|
|
|
|
|
|
|
preferLocalBuild = true;
|
|
|
|
allowSubstitutes = false;
|
|
|
|
|
2019-03-26 05:12:52 +00:00
|
|
|
buildCommand = ''
|
|
|
|
mkdir $out
|
2022-10-13 22:16:16 +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}
|
2019-03-26 05:12:52 +00:00
|
|
|
'';
|
|
|
|
|
2019-03-26 03:33:39 +00:00
|
|
|
passthru = {
|
|
|
|
inherit (newlib) incdir libdir;
|
|
|
|
};
|
2019-03-26 05:12:52 +00:00
|
|
|
|
|
|
|
meta = {
|
|
|
|
platforms = [ "msp430-none" ];
|
|
|
|
};
|
|
|
|
}
|