3
0
Fork 0
forked from mirrors/nixpkgs
Commit graph

5 commits

Author SHA1 Message Date
Pavol Rusnak d66917c4df
gcc-arm-embedded: use numVersion as version, rename version to release
followup to 009668465e
2021-07-12 13:11:40 +02:00
Sirio Balmelli 009668465e
gcc-arm-embedded: add numVersion attribute for convenience
There are builds which rely on having the numeric version of gcc (eg "10.2.1")
declared in an environment variable.

Running 'arm-none-eabi-gcc --version' returns:
"arm-none-eabi-gcc (GNU Arm Embedded Toolchain 10-2020-q4-major) 10.2.1 20201103 (release)"

However, the attribute arm-none-eabi-gcc.version is "10-2020-q4-major",
from which there is no way to derive "10.2.1".

Contrast this with the attribute gcc.version which (at this time) gives "10.3.0".

By adding a numVersion attribute, consumers of this package can
correctly determine what GCC version is being executed.

Signed-off-by: Sirio Balmelli <sirio@b-ad.ch>
2021-07-12 12:29:46 +02:00
Ben Siraphob acc5f7b18a pkgs/development/compilers: stdenv.lib -> lib 2021-01-23 08:57:37 +07:00
Pavol Rusnak 78a8ccf961 gcc-arm-embedded: don't override phases 2020-12-29 11:36:17 +01:00
Pavol Rusnak 0dc7fa1541 gcc-arm-embedded: 9-2020-q2-update -> 10-2020-q4-major 2020-12-29 11:28:32 +01:00