wip: better packaging?
This commit is contained in:
parent
1c7bb464d9
commit
e3f6b08307
@ -24,7 +24,7 @@ in stdenvNoCC.mkDerivation {
|
|||||||
'';
|
'';
|
||||||
homepage = https://www.ti.com/tool/msp430-gcc-opensource;
|
homepage = https://www.ti.com/tool/msp430-gcc-opensource;
|
||||||
license = licenses.bsd3;
|
license = licenses.bsd3;
|
||||||
platforms = platforms.all;
|
platforms = [ "msp430-none" ];
|
||||||
maintainers = with maintainers; [ aerialx ];
|
maintainers = with maintainers; [ aerialx ];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
@ -1,18 +1,25 @@
|
|||||||
{ runCommand, lndir, newlib, msp430GccSupport }:
|
{ stdenvNoCC, lndir, newlib, msp430GccSupport }:
|
||||||
|
|
||||||
runCommand "msp430-${newlib.name}" {
|
stdenvNoCC.mkDerivation {
|
||||||
|
name = "msp430-${newlib.name}";
|
||||||
inherit newlib;
|
inherit newlib;
|
||||||
inherit msp430GccSupport;
|
inherit msp430GccSupport;
|
||||||
|
|
||||||
preferLocalBuild = true;
|
preferLocalBuild = true;
|
||||||
allowSubstitutes = false;
|
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 = {
|
passthru = {
|
||||||
inherit (newlib) incdir libdir;
|
inherit (newlib) incdir libdir;
|
||||||
};
|
};
|
||||||
} ''
|
|
||||||
mkdir $out
|
meta = {
|
||||||
${lndir}/bin/lndir -silent $newlib $out
|
platforms = [ "msp430-none" ];
|
||||||
${lndir}/bin/lndir -silent $msp430GccSupport/include $out/${newlib.incdir}
|
};
|
||||||
${lndir}/bin/lndir -silent $msp430GccSupport/lib $out/${newlib.libdir}
|
}
|
||||||
''
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user