1{
2 stdenvNoCC,
3 xorg,
4 newlib,
5 msp430GccSupport,
6}:
7
8stdenvNoCC.mkDerivation {
9 name = "msp430-${newlib.name}";
10 inherit newlib;
11 inherit msp430GccSupport;
12
13 preferLocalBuild = true;
14 allowSubstitutes = false;
15
16 buildCommand = ''
17 mkdir $out
18 ${xorg.lndir}/bin/lndir -silent $newlib $out
19 ${xorg.lndir}/bin/lndir -silent $msp430GccSupport/include $out/${newlib.incdir}
20 ${xorg.lndir}/bin/lndir -silent $msp430GccSupport/lib $out/${newlib.libdir}
21 '';
22
23 passthru = {
24 inherit (newlib) incdir libdir;
25 };
26
27 meta = {
28 platforms = [ "msp430-none" ];
29 };
30}