forked from NixOS/nixpkgs
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
c2000-cgt: init at 22.6.1.LTS (NixOS#359673)
- Loading branch information
Showing
2 changed files
with
57 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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"; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" ]; | ||
}; | ||
}) |