flake.nix: Fix cross build
The lix package currently fails unless it's using a clang stdenv.
However, the flake's cross build outputs (e.g. `packages.x86_64-linux.nix-armv7l-linux`)
used the default stdenv, normally gcc.
Replace this with clang to fix package build.
Also take this opportunity to remove the no longer necessary `useLLVM = true`
override on FreeBSD. Since 24.05, nixpkgs always sets `useLLVM = true`
on FreeBSD in `lib.systems.elaborate`.
Change-Id: I939302e4f6385291fa9e582d38d908c42f6db89a
This commit is contained in:
parent
834450e237
commit
9903bed3f4
11
flake.nix
11
flake.nix
|
@ -138,14 +138,7 @@
|
||||||
localSystem = {
|
localSystem = {
|
||||||
inherit system;
|
inherit system;
|
||||||
};
|
};
|
||||||
crossSystem =
|
crossSystem = if crossSystem == null then null else { system = crossSystem; };
|
||||||
if crossSystem == null then
|
|
||||||
null
|
|
||||||
else
|
|
||||||
{
|
|
||||||
system = crossSystem;
|
|
||||||
}
|
|
||||||
// lib.optionalAttrs (crossSystem == "x86_64-freebsd") { useLLVM = true; };
|
|
||||||
overlays = [ (overlayFor (p: p.${stdenv})) ];
|
overlays = [ (overlayFor (p: p.${stdenv})) ];
|
||||||
};
|
};
|
||||||
stdenvs = forAllStdenvs (make-pkgs null);
|
stdenvs = forAllStdenvs (make-pkgs null);
|
||||||
|
@ -154,7 +147,7 @@
|
||||||
{
|
{
|
||||||
inherit stdenvs native;
|
inherit stdenvs native;
|
||||||
static = native.pkgsStatic;
|
static = native.pkgsStatic;
|
||||||
cross = forAllCrossSystems (crossSystem: make-pkgs crossSystem "stdenv");
|
cross = forAllCrossSystems (crossSystem: make-pkgs crossSystem "clangStdenv");
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue