Commit 4d63ecab authored by eljamm's avatar eljamm
Browse files

linuxPackages.shufflecake: use wrapped gcc compiler

parent df76765d
Loading
Loading
Loading
Loading
+10 −6
Original line number Diff line number Diff line
@@ -23,13 +23,17 @@ stdenv.mkDerivation (finalAttrs: {
    libgcrypt
    lvm2
  ];
  makeFlags = kernelModuleMakeFlags ++ [
  makeFlags =
    kernelModuleMakeFlags
    ++ [
      "KERNEL_DIR=${kernel.dev}/lib/modules/${kernel.modDirVersion}/build"
    ]
    # Use wrapped gcc compiler since the unwrapped one fails to find the
    # headers.
    ++ lib.optionals stdenv.cc.isGNU [
      "CC=${stdenv.cc.targetPrefix}cc"
    ];

  # GCC 14 makes this an error by default, remove when fixed upstream
  env.NIX_CFLAGS_COMPILE = "-Wno-error=incompatible-pointer-types";

  outputs = [
    "out"
    "bin"