Skip to content

Commit

Permalink
make the nix config more readable
Browse files Browse the repository at this point in the history
Signed-off-by: Thing-han, Lim <[email protected]>
  • Loading branch information
potsrevennil committed Jul 22, 2024
1 parent dfcedc1 commit acc1c42
Showing 1 changed file with 13 additions and 9 deletions.
22 changes: 13 additions & 9 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -56,16 +56,20 @@
core =
let
aarch64-gcc =
if pkgs.stdenv.isx86_64
then [
(pkgs.pkgsCross.aarch64-multiplatform.buildPackages.gcc13.override { propagateDoc = true; isGNU = true; })
] ++ (with pkgs.pkgsCross.aarch64-multiplatform; [
glibc
glibc.static
])
else [ (pkgs.gcc13.override { propagateDoc = true; isGNU = true; }) pkgs.glibc pkgs.glibc.static ];
pkgs.lib.optionals
(! (pkgs.stdenv.isDarwin && pkgs.stdenv.isAarch64))
[
(
pkgs.pkgsCross.aarch64-multiplatform.buildPackages.gcc13.override {
propagateDoc = true;
isGNU = true;
}
)
pkgs.pkgsCross.aarch64-multiplatform.glibc
pkgs.pkgsCross.aarch64-multiplatform.glibc.static
];
in
pkgs.lib.optionals pkgs.stdenv.isLinux aarch64-gcc ++
aarch64-gcc ++
builtins.attrValues {
inherit (pkgs)
yq
Expand Down

0 comments on commit acc1c42

Please sign in to comment.