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