Skip to content

Commit af5a5c9

Browse files
c2000-cgt: init at 22.6.1.LTS (#359673)
2 parents 086a88a + b1a3374 commit af5a5c9

File tree

2 files changed

+57
-0
lines changed

2 files changed

+57
-0
lines changed

maintainers/maintainer-list.nix

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22122,6 +22122,12 @@
2212222122
githubId = 4541968;
2212322123
name = "Nova King";
2212422124
};
22125+
teczito = {
22126+
name = "Ruben";
22127+
email = "[email protected]";
22128+
github = "teczito";
22129+
githubId = 15378834;
22130+
};
2212522131
teh = {
2212622132
email = "[email protected]";
2212722133
github = "teh";
Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
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+
})

0 commit comments

Comments
 (0)