depot/third_party/nixpkgs/pkgs/development/misc/msp430/newlib.nix
Default email c594a97518 Project import generated by Copybara.
GitOrigin-RevId: 301aada7a64812853f2e2634a530ef5d34505048
2022-10-21 20:38:19 +02:00

25 lines
577 B
Nix

{ 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" ];
};
}