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

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

32 lines
1 KiB
Nix
Raw Normal View History

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