Merge pull request #132497 from samueldr/fix/linuxConfig

linuxConfig: fix build
This commit is contained in:
Samuel Dionne-Riel 2021-08-07 20:26:27 -04:00 committed by GitHub
commit fb9577a03b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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