Skip to content

Commit

Permalink
c2000-cgt: init at 22.6.1.LTS (NixOS#359673)
Browse files Browse the repository at this point in the history
  • Loading branch information
wolfgangwalther authored Dec 18, 2024
2 parents 086a88a + b1a3374 commit af5a5c9
Show file tree
Hide file tree
Showing 2 changed files with 57 additions and 0 deletions.
6 changes: 6 additions & 0 deletions maintainers/maintainer-list.nix
Original file line number Diff line number Diff line change
Expand Up @@ -22122,6 +22122,12 @@
githubId = 4541968;
name = "Nova King";
};
teczito = {
name = "Ruben";
email = "[email protected]";
github = "teczito";
githubId = 15378834;
};
teh = {
email = "[email protected]";
github = "teh";
Expand Down
51 changes: 51 additions & 0 deletions pkgs/by-name/c2/c2000-cgt/package.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
{
lib,
stdenvNoCC,
buildFHSEnv,
fetchurl,
}:

let
fhs = buildFHSEnv {
name = "fhs-shell";
};
in
stdenvNoCC.mkDerivation (finalAttrs: {
pname = "c2000-cgt";
version = "22.6.1.LTS";

src = fetchurl {
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";
hash = "sha256-h+exdlyD7Bj3LZTDVME8jHesInaUUUUmFiIKJR+rM9o=";
};

dontUnpack = true;

installPhase = ''
runHook preInstall
mkdir -p /build/
cp -a $src /build/installer.bin
chmod +x /build/installer.bin
${fhs}/bin/fhs-shell -c '/build/installer.bin --mode unattended --prefix /build/ti'
mv /build/ti/ti-cgt-c2000_${finalAttrs.version} $out
runHook postInstall
'';

meta = {
description = "C28x/CLA code generation tools (CGT) - compiler";
longDescription = ''
The TI C28x code generation tools (C2000-CGT) facilitate the development of applications
for TI C28x microcontroller platforms. The platforms include the Concerto (F28M3xx),
Piccolo (280xx), Delfino floating-point (283xx), and C28x fixed-point (2823x/280x/281x) device families.
'';
homepage = "https://www.ti.com/tool/C2000-CGT";
changelog = "https://software-dl.ti.com/codegen/esd/cgt_public_sw/C2000/${finalAttrs.version}/README.html";
license = lib.licenses.unfree;
maintainers = with lib.maintainers; [ teczito ];
mainProgram = "cl2000";
platforms = [ "x86_64-linux" ];
};
})

0 comments on commit af5a5c9

Please sign in to comment.