mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-02-24 21:14:52 +00:00
Merge pull request #132497 from samueldr/fix/linuxConfig
linuxConfig: fix build
This commit is contained in:
commit
fb9577a03b
@ -21568,12 +21568,17 @@ in
|
||||
inherit name src;
|
||||
depsBuildBuild = [ buildPackages.stdenv.cc ]
|
||||
++ lib.optionals (lib.versionAtLeast version "4.16") [ buildPackages.bison buildPackages.flex ];
|
||||
postPatch = ''
|
||||
patchShebangs scripts/
|
||||
'';
|
||||
buildPhase = ''
|
||||
(
|
||||
set -x
|
||||
make \
|
||||
ARCH=${stdenv.hostPlatform.linuxArch} \
|
||||
HOSTCC=${buildPackages.stdenv.cc.targetPrefix}gcc \
|
||||
${makeTarget}
|
||||
)
|
||||
'';
|
||||
installPhase = ''
|
||||
cp .config $out
|
||||
|
Loading…
Reference in New Issue
Block a user