wip: better packaging?

+16 -9
+1 -1
pkgs/development/misc/msp430/gcc-support.nix
··· 24 24 ''; 25 25 homepage = https://www.ti.com/tool/msp430-gcc-opensource; 26 26 license = licenses.bsd3; 27 - platforms = platforms.all; 27 + platforms = [ "msp430-none" ]; 28 28 maintainers = with maintainers; [ aerialx ]; 29 29 }; 30 30 }
+15 -8
pkgs/development/misc/msp430/newlib.nix
··· 1 - { runCommand, lndir, newlib, msp430GccSupport }: 1 + { stdenvNoCC, lndir, newlib, msp430GccSupport }: 2 2 3 - runCommand "msp430-${newlib.name}" { 3 + stdenvNoCC.mkDerivation { 4 + name = "msp430-${newlib.name}"; 4 5 inherit newlib; 5 6 inherit msp430GccSupport; 6 7 7 8 preferLocalBuild = true; 8 9 allowSubstitutes = false; 10 + 11 + buildCommand = '' 12 + mkdir $out 13 + ${lndir}/bin/lndir -silent $newlib $out 14 + ${lndir}/bin/lndir -silent $msp430GccSupport/include $out/${newlib.incdir} 15 + ${lndir}/bin/lndir -silent $msp430GccSupport/lib $out/${newlib.libdir} 16 + ''; 9 17 10 18 passthru = { 11 19 inherit (newlib) incdir libdir; 12 20 }; 13 - } '' 14 - mkdir $out 15 - ${lndir}/bin/lndir -silent $newlib $out 16 - ${lndir}/bin/lndir -silent $msp430GccSupport/include $out/${newlib.incdir} 17 - ${lndir}/bin/lndir -silent $msp430GccSupport/lib $out/${newlib.libdir} 18 - '' 21 + 22 + meta = { 23 + platforms = [ "msp430-none" ]; 24 + }; 25 + }