mirror of
https://github.com/xddxdd/nix-cachyos-kernel.git
synced 2026-07-03 11:08:07 +02:00
Fix evaluation after nixpkgs platform change (Fix #86)
This commit is contained in:
parent
6509377e70
commit
9274620f17
11
helpers.nix
11
helpers.nix
@ -36,20 +36,9 @@ rec {
|
||||
|
||||
stdenvLLVM =
|
||||
let
|
||||
mkLLVMPlatform =
|
||||
platform:
|
||||
platform
|
||||
// {
|
||||
linux-kernel = platform.linux-kernel // {
|
||||
makeFlags = (platform.linux-kernel.makeFlags or [ ]) ++ ltoMakeflags;
|
||||
};
|
||||
};
|
||||
|
||||
stdenv' = pkgs.overrideCC hostLLVM.stdenv hostLLVM.clangUseLLVM;
|
||||
in
|
||||
stdenv'.override (old: {
|
||||
hostPlatform = mkLLVMPlatform stdenv'.hostPlatform;
|
||||
buildPlatform = mkLLVMPlatform stdenv'.buildPlatform;
|
||||
extraNativeBuildInputs = [
|
||||
hostLLVM.lld
|
||||
pkgs.patchelf
|
||||
|
||||
Loading…
Reference in New Issue
Block a user