8ac5e011d6
GitOrigin-RevId: 2c3273caa153ee8eb5786bc8141b85b859e7efd7
25 lines
563 B
Nix
25 lines
563 B
Nix
{ stdenvNoCC, lndir, newlib, msp430GccSupport }:
|
|
|
|
stdenvNoCC.mkDerivation {
|
|
name = "msp430-${newlib.name}";
|
|
inherit newlib;
|
|
inherit msp430GccSupport;
|
|
|
|
preferLocalBuild = true;
|
|
allowSubstitutes = false;
|
|
|
|
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}
|
|
'';
|
|
|
|
passthru = {
|
|
inherit (newlib) incdir libdir;
|
|
};
|
|
|
|
meta = {
|
|
platforms = [ "msp430-none" ];
|
|
};
|
|
}
|