3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/development/misc/msp430/gcc-support.nix

32 lines
1 KiB
Nix
Raw Normal View History

2019-03-26 02:31:23 +00:00
{ stdenvNoCC, fetchzip }:
let
mspgccVersion = "6_1_0_0";
version = "1.206";
in stdenvNoCC.mkDerivation {
name = "msp430-gcc-support-files-${version}";
src = fetchzip {
url = "http://software-dl.ti.com/msp430/msp430_public_sw/mcu/msp430/MSPGCC/${mspgccVersion}/exports/msp430-gcc-support-files-${version}.zip";
sha256 = "0h297jms3gkmdcqmfpr3cg6v9wxnms34qbwvwl2fkmrz20vk766q";
};
buildCommand = ''
2019-03-27 05:37:06 +00:00
find $src/include -name '*.ld' | xargs install -Dm0644 -t $out/lib
find $src/include -name '*.h' | xargs install -Dm0644 -t $out/include
install -Dm0644 -t $out/include $src/include/devices.csv
2019-03-26 02:31:23 +00:00
# appease bintoolsWrapper_addLDVars, search path needed for ld scripts
touch $out/lib/lib
'';
meta = with stdenvNoCC.lib; {
description = ''
2019-03-26 18:22:23 +00:00
Development headers and linker scripts for TI MSP430 microcontrollers
2019-03-26 02:31:23 +00:00
'';
homepage = https://www.ti.com/tool/msp430-gcc-opensource;
license = licenses.bsd3;
2019-03-26 05:12:52 +00:00
platforms = [ "msp430-none" ];
2019-03-26 02:31:23 +00:00
maintainers = with maintainers; [ aerialx ];
};
}