summary refs log tree commit diff
path: root/pkgs/os-specific/linux/kernel/manual-config.nix
diff options
context:
space:
mode:
authorSergei Trofimovich <slyich@gmail.com>2022-08-16 17:33:13 +0100
committerSergei Trofimovich <slyich@gmail.com>2022-08-16 17:34:46 +0100
commit8ab16e40be339f7a25428ff4b99543eb65ac778a (patch)
tree72bcde6637bc546d8552857ad121146eee94af7c /pkgs/os-specific/linux/kernel/manual-config.nix
parent9050439c4c1a485a12c5f7754a94ae35dda2699b (diff)
downloadnixpkgs-8ab16e40be339f7a25428ff4b99543eb65ac778a.tar
nixpkgs-8ab16e40be339f7a25428ff4b99543eb65ac778a.tar.gz
nixpkgs-8ab16e40be339f7a25428ff4b99543eb65ac778a.tar.bz2
nixpkgs-8ab16e40be339f7a25428ff4b99543eb65ac778a.tar.lz
nixpkgs-8ab16e40be339f7a25428ff4b99543eb65ac778a.tar.xz
nixpkgs-8ab16e40be339f7a25428ff4b99543eb65ac778a.tar.zst
nixpkgs-8ab16e40be339f7a25428ff4b99543eb65ac778a.zip
pkgsCross.ppc64.linux: flatten makeFlags
Before the cgange:

    nix-repl> pkgsCross.ppc64.linux.makeFlags
    [ "O=$(buildRoot)"
      "CC=/06pbgv2957wl3wcpd2gljml719lw123njq9dhj7h6n2pv4nwgwhl/bin/powerpc64-unknown-linux-gnu-cc"
      "HOSTCC=/0calwri0wxl5mbjl5q80r1hm9hchyk8a7hhayk6cdfrxgbfbia3n/bin/cc"
      "ARCH=powerpc"
      [ ... ] ]

After the change:

    nix-repl> pkgsCross.ppc64.linux.makeFlags
    [ "O=$(buildRoot)"
      "CC=/06pbgv2957wl3wcpd2gljml719lw123njq9dhj7h6n2pv4nwgwhl/bin/powerpc64-unknown-linux-gnu-cc"
      "HOSTCC=/0calwri0wxl5mbjl5q80r1hm9hchyk8a7hhayk6cdfrxgbfbia3n/bin/cc"
      "ARCH=powerpc"
      "CROSS_COMPILE=powerpc64-unknown-linux-gnu-" ]
Diffstat (limited to 'pkgs/os-specific/linux/kernel/manual-config.nix')
-rw-r--r--pkgs/os-specific/linux/kernel/manual-config.nix2
1 files changed, 1 insertions, 1 deletions
diff --git a/pkgs/os-specific/linux/kernel/manual-config.nix b/pkgs/os-specific/linux/kernel/manual-config.nix
index 377f7fc1c07..7e734a4f13a 100644
--- a/pkgs/os-specific/linux/kernel/manual-config.nix
+++ b/pkgs/os-specific/linux/kernel/manual-config.nix
@@ -334,7 +334,7 @@ stdenv.mkDerivation ((drvAttrs config stdenv.hostPlatform.linux-kernel kernelPat
     "CC=${stdenv.cc}/bin/${stdenv.cc.targetPrefix}cc"
     "HOSTCC=${buildPackages.stdenv.cc}/bin/${buildPackages.stdenv.cc.targetPrefix}cc"
     "ARCH=${stdenv.hostPlatform.linuxArch}"
-  ] ++ lib.optional (stdenv.hostPlatform != stdenv.buildPlatform) [
+  ] ++ lib.optionals (stdenv.hostPlatform != stdenv.buildPlatform) [
     "CROSS_COMPILE=${stdenv.cc.targetPrefix}"
   ] ++ (stdenv.hostPlatform.linux-kernel.makeFlags or [])
     ++ extraMakeFlags;