Files

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

31 lines
586 B
Nix
Raw Permalink Normal View History

2025-10-09 14:15:47 +02:00
{
stdenvNoCC,
xorg,
newlib,
msp430GccSupport,
}:
stdenvNoCC.mkDerivation {
name = "msp430-${newlib.name}";
inherit newlib;
inherit msp430GccSupport;
preferLocalBuild = true;
allowSubstitutes = false;
buildCommand = ''
mkdir $out
${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}
'';
passthru = {
inherit (newlib) incdir libdir;
};
meta = {
platforms = [ "msp430-none" ];
};
}