-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use pre-built cross-compiled aarch64 gcc for x86-64 linux machine (#45)
* add arm gnu gcc nix spec for x86_64 Signed-off-by: Thing-han, Lim <[email protected]> * use the pre-built cross-compiled gcc for x86_64 machines in ci Signed-off-by: Thing-han, Lim <[email protected]> * add skipped parameter Signed-off-by: Thing-han, Lim <[email protected]> * add prefix for some dependencies version summary Signed-off-by: Thing-han, Lim <[email protected]> * make ci job name more readable Signed-off-by: Thing-han, Lim <[email protected]> * fail ci job immediately if the architecture is not as expected Signed-off-by: Thing-han, Lim <[email protected]> * fix ci expect_arch for pqcp-arm64 Signed-off-by: Thing-han, Lim <[email protected]> * set matrix strategy fail-fast to false Signed-off-by: Thing-han, Lim <[email protected]> --------- Signed-off-by: Thing-han, Lim <[email protected]>
- Loading branch information
1 parent
c1d65ef
commit 7ecd006
Showing
4 changed files
with
88 additions
and
26 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
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
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,35 @@ | ||
# SPDX-License-Identifier: Apache-2.0 | ||
|
||
{ stdenvNoCC | ||
, fetchurl | ||
}: | ||
|
||
stdenvNoCC.mkDerivation rec { | ||
pname = "gcc-arm"; | ||
version = "13.2.rel1"; | ||
|
||
platform = { | ||
x86_64-linux = "x86_64"; | ||
}.${stdenvNoCC.hostPlatform.system} or (throw "Unsupported system: ${stdenvNoCC.hostPlatform.system}"); | ||
|
||
platform_suffix = { | ||
x86_64-linux = "linux-gnu"; | ||
}.${stdenvNoCC.hostPlatform.system} or (throw "Unsupported system: ${stdenvNoCC.hostPlatform.system}"); | ||
|
||
src = fetchurl { | ||
url = "https://developer.arm.com/-/media/Files/downloads/gnu/${version}/binrel/arm-gnu-toolchain-${version}-${platform}-aarch64-none-${platform_suffix}.tar.xz"; | ||
sha256 = { | ||
x86_64-linux = "sha256-EvzfE6dDBlUimyBDiknoVm4mVRugh1mSLNr0aVsNTiM="; | ||
}.${stdenvNoCC.hostPlatform.system} or (throw "Unsupported system: ${stdenvNoCC.hostPlatform.system}"); | ||
}; | ||
|
||
dontConfigure = true; | ||
dontBuild = true; | ||
dontPatchELF = true; | ||
dontStrip = true; | ||
|
||
installPhase = '' | ||
mkdir -p $out | ||
cp -r * $out | ||
''; | ||
} |
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