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