mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-02 03:43:06 +00:00
61c3058bcb
using inherits in callPackage args is discouraged and doesn't splice correctly
26 lines
577 B
Nix
26 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" ];
|
|
};
|
|
}
|