nixpkgs/pkgs/development/misc/msp430/gcc-support.nix

32 lines
1.0 KiB
Nix
Raw Normal View History

2021-01-26 21:50:30 -08:00
{ lib, stdenvNoCC, fetchzip }:
2019-03-25 19:31:23 -07:00
let
2019-07-02 15:54:52 -07:00
mspgccVersion = "6_1_1_0";
in stdenvNoCC.mkDerivation rec {
pname = "msp430-gcc-support-files";
version = "1.207";
2019-03-25 19:31:23 -07: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 15:54:52 -07:00
sha256 = "1gyi9zc5vh9c1lxd22dwvk6b17dcd17hah2rayr062p4l51kzam1";
2019-03-25 19:31:23 -07:00
};
buildCommand = ''
2019-03-26 22:37:06 -07: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-25 19:31:23 -07:00
# appease bintoolsWrapper_addLDVars, search path needed for ld scripts
touch $out/lib/lib
'';
2021-01-26 21:50:30 -08:00
meta = with lib; {
2019-03-25 19:31:23 -07:00
description = ''
2019-03-26 11:22:23 -07:00
Development headers and linker scripts for TI MSP430 microcontrollers
2019-03-25 19:31:23 -07:00
'';
homepage = "https://www.ti.com/tool/msp430-gcc-opensource";
2019-03-25 19:31:23 -07:00
license = licenses.bsd3;
2019-03-25 22:12:52 -07:00
platforms = [ "msp430-none" ];
2019-03-25 19:31:23 -07:00
maintainers = with maintainers; [ aerialx ];
};
}