[Nix-dev] Re: make -j<n> howto?

Peter Simons simons at cryp.to
Tue Jun 17 13:12:35 CEST 2008


 > How can I pass a -j8 flag to make for all builds?

The following ~/.nixpkgs/config.nix file seems to do the trick:

{
  replaceStdenv = { stdenv, overrideSetup }: stdenv //
  { mkDerivation = args: stdenv.mkDerivation (args //
    { makeFlags = (if args ? makeFlags then args.makeFlags else []) ++
      ["-j8" "-l8"]; });
  };
}

Peter




More information about the nix-dev mailing list