Skip to content

Commit

Permalink
ignore gcc for x86-64 for now
Browse files Browse the repository at this point in the history
Signed-off-by: Thing-han, Lim <[email protected]>
  • Loading branch information
potsrevennil committed May 31, 2024
1 parent 9f1bb4f commit 2698c12
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,8 @@
flake-parts.lib.mkFlake { inherit inputs; } {
imports = [ ];
systems = [ "x86_64-linux" "aarch64-linux" "aarch64-darwin" "x86_64-darwin" ];
perSystem = { pkgs, system, ... }:
perSystem = { pkgs, ... }:
let
# NOTE: For installing pkgs specific for aarch64 (not sure if there is any better way of doing this)
aarch64-system = "aarch64-" + pkgs.lib.lists.last (pkgs.lib.strings.splitString "-" system);
aarch64-pkgs = inputs.nixpkgs.legacyPackages.${aarch64-system};
core = builtins.attrValues
{
inherit (pkgs)
Expand All @@ -29,7 +26,10 @@
nixpkgs-fmt
shfmt;
}
++ [ (aarch64-pkgs.gcc13.override { propagateDoc = true; isGNU = true; }) ];
++ (if pkgs.stdenv.isAarch64
then [ (pkgs.gcc13.override { propagateDoc = true; isGNU = true; }) ]
else [ ]
);

in
{
Expand Down

0 comments on commit 2698c12

Please sign in to comment.