1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-14 00:25:24 +00:00
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
2019-07-02 23:54:52 +01:00
mspgccVersion = "6_1_1_0";
in stdenvNoCC.mkDerivation rec {
pname = "msp430-gcc-support-files";
version = "1.207";
2019-03-26 02:31:23 +00:00
src = fetchzip {
url = "http://software-dl.ti.com/msp430/msp430_public_sw/mcu/msp430/MSPGCC/${mspgccVersion}/exports/msp430-gcc-support-files-${version}.zip";
2019-07-02 23:54:52 +01:00
sha256 = "1gyi9zc5vh9c1lxd22dwvk6b17dcd17hah2rayr062p4l51kzam1";
2019-03-26 02:31:23 +00:00
};
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 ];
};
}