at 22.05-pre 31 lines 1.0 kB view raw
1{ lib, stdenvNoCC, fetchzip }: 2 3let 4 mspgccVersion = "6_1_1_0"; 5in stdenvNoCC.mkDerivation rec { 6 pname = "msp430-gcc-support-files"; 7 version = "1.207"; 8 src = fetchzip { 9 url = "http://software-dl.ti.com/msp430/msp430_public_sw/mcu/msp430/MSPGCC/${mspgccVersion}/exports/msp430-gcc-support-files-${version}.zip"; 10 sha256 = "1gyi9zc5vh9c1lxd22dwvk6b17dcd17hah2rayr062p4l51kzam1"; 11 }; 12 13 buildCommand = '' 14 find $src/include -name '*.ld' | xargs install -Dm0644 -t $out/lib 15 find $src/include -name '*.h' | xargs install -Dm0644 -t $out/include 16 install -Dm0644 -t $out/include $src/include/devices.csv 17 18 # appease bintoolsWrapper_addLDVars, search path needed for ld scripts 19 touch $out/lib/lib 20 ''; 21 22 meta = with lib; { 23 description = '' 24 Development headers and linker scripts for TI MSP430 microcontrollers 25 ''; 26 homepage = "https://www.ti.com/tool/msp430-gcc-opensource"; 27 license = licenses.bsd3; 28 platforms = [ "msp430-none" ]; 29 maintainers = with maintainers; [ aerialx ]; 30 }; 31}