Merge pull request #258191 from markuskowa/split-elpa

elpa: split outputs and enable parallel builds
This commit is contained in:
Fabián Heredia Montiel 2023-10-04 00:56:26 -06:00 committed by GitHub
commit a0db6b6b13
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -41,6 +41,8 @@ stdenv.mkDerivation rec {
substituteInPlace Makefile.am --replace '#!/bin/bash' '#!${stdenv.shell}'
'';
outputs = [ "out" "doc" "man" "dev" ];
nativeBuildInputs = [ autoreconfHook perl ];
buildInputs = [ mpi blas lapack scalapack ]
@ -74,6 +76,8 @@ stdenv.mkDerivation rec {
++ lib.optional stdenv.hostPlatform.isx86_64 "--enable-sse-assembly"
++ lib.optionals enableCuda [ "--enable-nvidia-gpu" "--with-NVIDIA-GPU-compute-capability=${nvidiaArch}" ];
enableParallelBuilding = true;
doCheck = true;
nativeCheckInputs = [ mpiCheckPhaseHook openssh ];