c2000-cgt: init at 22.6.1.LTS (#359673)

authored by Wolfgang Walther and committed by GitHub af5a5c98 086a88a1

+57
+6
maintainers/maintainer-list.nix
··· 22122 22122 githubId = 4541968; 22123 22123 name = "Nova King"; 22124 22124 }; 22125 + teczito = { 22126 + name = "Ruben"; 22127 + email = "ruben@teczito.com"; 22128 + github = "teczito"; 22129 + githubId = 15378834; 22130 + }; 22125 22131 teh = { 22126 22132 email = "tehunger@gmail.com"; 22127 22133 github = "teh";
+51
pkgs/by-name/c2/c2000-cgt/package.nix
··· 1 + { 2 + lib, 3 + stdenvNoCC, 4 + buildFHSEnv, 5 + fetchurl, 6 + }: 7 + 8 + let 9 + fhs = buildFHSEnv { 10 + name = "fhs-shell"; 11 + }; 12 + in 13 + stdenvNoCC.mkDerivation (finalAttrs: { 14 + pname = "c2000-cgt"; 15 + version = "22.6.1.LTS"; 16 + 17 + src = fetchurl { 18 + url = "https://dr-download.ti.com/software-development/ide-configuration-compiler-or-debugger/MD-xqxJ05PLfM/${finalAttrs.version}/ti_cgt_c2000_${finalAttrs.version}_linux-x64_installer.bin"; 19 + hash = "sha256-h+exdlyD7Bj3LZTDVME8jHesInaUUUUmFiIKJR+rM9o="; 20 + }; 21 + 22 + dontUnpack = true; 23 + 24 + installPhase = '' 25 + runHook preInstall 26 + 27 + mkdir -p /build/ 28 + cp -a $src /build/installer.bin 29 + 30 + chmod +x /build/installer.bin 31 + ${fhs}/bin/fhs-shell -c '/build/installer.bin --mode unattended --prefix /build/ti' 32 + mv /build/ti/ti-cgt-c2000_${finalAttrs.version} $out 33 + 34 + runHook postInstall 35 + ''; 36 + 37 + meta = { 38 + description = "C28x/CLA code generation tools (CGT) - compiler"; 39 + longDescription = '' 40 + The TI C28x code generation tools (C2000-CGT) facilitate the development of applications 41 + for TI C28x microcontroller platforms. The platforms include the Concerto (F28M3xx), 42 + Piccolo (280xx), Delfino floating-point (283xx), and C28x fixed-point (2823x/280x/281x) device families. 43 + ''; 44 + homepage = "https://www.ti.com/tool/C2000-CGT"; 45 + changelog = "https://software-dl.ti.com/codegen/esd/cgt_public_sw/C2000/${finalAttrs.version}/README.html"; 46 + license = lib.licenses.unfree; 47 + maintainers = with lib.maintainers; [ teczito ]; 48 + mainProgram = "cl2000"; 49 + platforms = [ "x86_64-linux" ]; 50 + }; 51 + })