Aggregate buildInputs

How do I aggregate buildInputs (or nativeBuildInputs) into a single expression that can be included in buildInputs?

Given packages packageA, packageB, packageC, I want to write an expression

let packageABC = ...

and then include it in

mkDerivation {
  buildInputs = [

How do I write the expression for packageABC?

I do not want to write

mkDerivation {
  buildInputs = [
  ] ++ packageABC;

But that’s the way to do.

1 Like