Merge pull request #136571 from markuskowa/fix-gfortran

treewide: move gfortran to nativeBuildInputs
This commit is contained in:
markuskowa 2021-09-08 14:48:28 +02:00 committed by GitHub
commit 13bd2afb65
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
34 changed files with 78 additions and 56 deletions

View file

@ -61,6 +61,7 @@ mkDerivation rec {
ninja
pkg-config
pyside2-tools
gfortran
wrapQtAppsHook
];
@ -69,7 +70,6 @@ mkDerivation rec {
boost
coin3d
eigen
gfortran
gts
hdf5
libGLU

View file

@ -27,9 +27,15 @@ in stdenv.mkDerivation {
./openblasPath.patch
];
nativeBuildInputs = [ perl cmake texlive.combined.scheme-minimal makeWrapper ];
buildInputs = [
nativeBuildInputs = [
perl
gfortran
cmake
texlive.combined.scheme-minimal
makeWrapper
];
buildInputs = [
openblas
hdf5-cpp
python

View file

@ -21,10 +21,12 @@ stdenv.mkDerivation rec {
patchShebangs configure
'';
buildInputs = [ fftw blas lapack gfortran ]
nativeBuildInputs = [ gfortran ];
buildInputs = [ fftw blas lapack ]
++ (lib.optionals useMpi [ mpi ]);
configureFlags = if useMpi then [ "LD=${mpi}/bin/mpif90" ] else [ "LD=${gfortran}/bin/gfortran" ];
configureFlags = if useMpi then [ "LD=${mpi}/bin/mpif90" ] else [ "LD=${gfortran}/bin/gfortran" ];
makeFlags = [ "all" ];

View file

@ -17,7 +17,9 @@ stdenv.mkDerivation {
inherit mpi;
};
buildInputs = [ blas lapack gfortran ]
nativeBuildInputs = [ gfortran ];
buildInputs = [ blas lapack ]
++ lib.optionals useMpi [ mpi scalapack ];
enableParallelBuilding = true;

View file

@ -8,7 +8,9 @@ stdenv.mkDerivation {
sha256 = "1f9ql6cjy2gwiyc51ylfan24v1ca9sjajxkbhszlds1lqmma8n05";
};
buildInputs = [ blas gfortran.cc.lib lapack ];
nativeBuildInputs = [ gfortran ];
buildInputs = [ blas lapack ];
postPatch = ''
substituteInPlace Makefile --replace /usr/local/bin $out/bin

View file

@ -6,7 +6,11 @@ stdenv.mkDerivation rec {
url = "mirror://sourceforge/mcmc-jags/${name}.tar.gz";
sha256 = "1z3icccg2ic56vmhyrpinlsvpq7kcaflk1731rgpvz9bk1bxvica";
};
buildInputs = [gfortran blas lapack];
nativeBuildInputs = [ gfortran ];
buildInputs = [ blas lapack ];
configureFlags = [ "--with-blas=-lblas" "--with-lapack=-llapack" ];
meta = with lib; {

View file

@ -19,11 +19,12 @@ stdenv.mkDerivation rec {
sha256 = "1adk6jqlj7i3gjklvlf1j3il1nb22axnp4rvwl314an62siih0sc";
};
buildInputs = [gfortran ncurses]
++ lib.optionals withGtk [gtk2]
++ lib.optionals withOCaml [ocaml]
++ lib.optional withX xlibsWrapper
;
nativeBuildInputs = [ gfortran ];
buildInputs = [ ncurses ]
++ lib.optionals withGtk [ gtk2 ]
++ lib.optionals withOCaml [ ocaml ]
++ lib.optional withX xlibsWrapper;
/*

View file

@ -11,7 +11,9 @@ stdenv.mkDerivation {
sha256 = "1r76zvln3bwycxlmqday0sqzv5j260y7mdh66as2aqny6jzd5ld7";
};
buildInputs = [ mpi gfortran ];
nativeBuildInputs = [ gfortran ];
buildInputs = [ mpi ];
configurePhase = ''
cd source

View file

@ -13,8 +13,8 @@ stdenv.mkDerivation rec {
hardeningDisable = [ "format" ];
nativeBuildInputs = [ cmake pkg-config git ];
buildInputs = [ gfortran mpi blas liblapack qt4 qwt6_qt4 ];
nativeBuildInputs = [ cmake gfortran pkg-config git ];
buildInputs = [ mpi blas liblapack qt4 qwt6_qt4 ];
preConfigure = ''
patchShebangs ./

View file

@ -13,7 +13,10 @@ stdenv.mkDerivation rec {
sed -ie '/sys\/sysctl.h/d' ATOOLS/Org/Run_Parameter.C
'';
buildInputs = [ gfortran sqlite lhapdf rivet ];
nativeBuildInputs = [ gfortran ];
buildInputs = [ sqlite lhapdf rivet ];
enableParallelBuilding = true;

View file

@ -370,9 +370,11 @@ in rec {
./009_remove_signedness_verifier.patch ./010_mx_substratevm.py
];
nativeBuildInputs = [ gfortran ];
buildInputs = [ mx zlib.dev mercurial jvmci8 git llvm clang
python27withPackages icu ruby bzip2 which
readline bzip2 xz pcre curl ed gfortran
readline bzip2 xz pcre curl ed
] ++ lib.optional stdenv.isDarwin [
CoreFoundation gcc.cc.lib libiconv perl openssl
];

View file

@ -17,13 +17,13 @@ stdenv.mkDerivation rec {
substituteInPlace cmake/FindOpenJPEG.cmake --replace openjpeg-2.1 ${openjpeg.incDir}
'';
nativeBuildInputs = [ cmake ];
nativeBuildInputs = [ cmake gfortran ];
buildInputs = [ netcdf
openjpeg
libpng
gfortran
];
propagatedBuildInputs = optionals enablePython [
pythonPackages.python
pythonPackages.numpy

View file

@ -13,8 +13,8 @@ stdenv.mkDerivation rec {
sha256 = "0bky91ncz6vy0011ps9prsnq9f4a5s5xwr23kkmi39xzg0417mnd";
};
nativeBuildInputs = [ autoreconfHook ];
buildInputs = [ mpi blas gfortran openssh ];
nativeBuildInputs = [ autoreconfHook gfortran ];
buildInputs = [ mpi blas openssh ];
preConfigure = ''
configureFlagsArray+=( "--enable-i8" \

View file

@ -11,8 +11,7 @@ stdenv.mkDerivation rec {
sha256 = "0cy3x2zn1bldc5i0rzislfbc8h4nqgds445jkfqjv0d1shvdy0zn";
};
buildInputs = [ gfortran ];
nativeBuildInputs = [ perl cmake ];
nativeBuildInputs = [ perl cmake gfortran ];
preConfigure = ''
patchShebangs ./

View file

@ -26,7 +26,8 @@ stdenv.mkDerivation rec {
enableParallelBuilding = true;
buildInputs = [ perl gfortran openssh hwloc ]
nativeBuildInputs = [ gfortran ];
buildInputs = [ perl openssh hwloc ]
++ lib.optional (!stdenv.isDarwin) ch4backend;
doCheck = true;

View file

@ -21,13 +21,12 @@ stdenv.mkDerivation rec {
sha256 = "0jd28vy9ivl3rcpkxmhw73b6krzm0pd9jps8asw92wa00lm2z9mk";
};
nativeBuildInputs = [ pkg-config bison makeWrapper ];
nativeBuildInputs = [ pkg-config bison makeWrapper gfortran ];
propagatedBuildInputs = [ numactl rdma-core zlib opensm ];
buildInputs = with lib; [
numactl
libxml2
perl
gfortran
openssh
hwloc
] ++ optionals (network == "infiniband") [ rdma-core opensm ]

View file

@ -8,7 +8,8 @@ stdenv.mkDerivation rec {
sha256 = "00qwg4v250yg8kxp68srrnvfbfim241fnlm071p9ila2mihk8r01";
};
buildInputs = [ netcdf hdf5 curl gfortran ];
nativeBuildInputs = [ gfortran ];
buildInputs = [ netcdf hdf5 curl ];
doCheck = true;
meta = with lib; {

View file

@ -46,14 +46,14 @@ in stdenv.mkDerivation rec {
'';
buildInputs = [ zlib ]
++ lib.optionals fortranSupport [ gfortran ]
++ lib.optionals stdenv.isLinux [ libnl numactl pmix ucx ]
++ lib.optionals cudaSupport [ cudatoolkit ]
++ [ libevent hwloc ]
++ lib.optional (stdenv.isLinux || stdenv.isFreeBSD) rdma-core
++ lib.optional fabricSupport [ libpsm2 libfabric ];
nativeBuildInputs = [ perl ];
nativeBuildInputs = [ perl ]
++ lib.optionals fortranSupport [ gfortran ];
configureFlags = lib.optional (!cudaSupport) "--disable-mca-dso"
++ lib.optional (!fortranSupport) "--disable-mpi-fortran"

View file

@ -9,8 +9,10 @@ stdenv.mkDerivation rec {
sha256 = "1yw9wrk3vjv84kd3j4s1scfhinirknwk6xq0hvj7x2srx3h93q9p";
};
nativeBuildInputs = [ gfortran ];
# For some reason zlib was only needed after bump to gfortran8
buildInputs = [ gfortran hoppet lhapdf root5 zlib ];
buildInputs = [ hoppet lhapdf root5 zlib ];
patches = [
./bad_code.patch

View file

@ -9,9 +9,9 @@ stdenv.mkDerivation rec {
sha256 = "10y3fb33zsinr0z3hzap9rsbcqhy1yjqnv4b4vz21g7mdlw6pq2k";
};
nativeBuildInputs = [ autoconf automake libtool ];
nativeBuildInputs = [ autoconf automake libtool gfortran ];
buildInputs = [ boost fastjet gfortran gsl thepeg zlib ]
buildInputs = [ boost fastjet gsl thepeg zlib ]
# There is a bug that requires for default PDF's to be present during the build
++ (with lhapdf.pdf_sets; [ CT14lo CT14nlo ]);

View file

@ -9,8 +9,7 @@ stdenv.mkDerivation rec {
sha256 = "0j7437rh4xxbfzmkjr22ry34xm266gijzj6mvrq193fcsfzipzdz";
};
buildInputs = [ gfortran ];
nativeBuildInputs = [ perl ];
nativeBuildInputs = [ perl gfortran ];
enableParallelBuilding = true;

View file

@ -11,7 +11,7 @@ stdenv.mkDerivation rec {
sha256 = "01sgd4mwx4n58x95brphp4dskqkkx8434bvsr38r5drg9na5nc9y";
};
buildInputs = [ gfortran ];
nativeBuildInputs = [ gfortran ];
enableParallelBuilding = true;

View file

@ -42,9 +42,7 @@ stdenv.mkDerivation rec {
installTargets = lib.optionals stdenv.isDarwin [ "install-staticlib" "install-shlib" ];
buildInputs = [ gfortran ];
nativeBuildInputs = [ which ];
nativeBuildInputs = [ which gfortran ];
meta = with lib; {
description = "Library for fast updating of qr and cholesky decompositions";

View file

@ -22,9 +22,8 @@ stdenv.mkDerivation rec {
})
];
nativeBuildInputs = [ cmake ];
nativeBuildInputs = [ cmake gfortran ];
buildInputs = assert (blas.isILP64 == lapack.isILP64); [
gfortran
blas
lapack
eigen

View file

@ -9,7 +9,7 @@ stdenv.mkDerivation rec {
sha256 = "sha256-LjYNmcm9yEB6YYiMQKqFP7QhlCDruCZNtIbLiGBGirM=";
};
buildInputs = [ gfortran ];
nativeBuildInputs = [ gfortran ];
configurePhase = ''
echo >make.inc "SHELL = ${stdenv.shell}"

View file

@ -10,7 +10,8 @@ stdenv.mkDerivation rec {
sha256 = "0hz1lfp0zaarvl0dv0zgp337hyd8np41kmdpz5rr3fc6yzw7vmkg";
};
buildInputs = [ suitesparse gfortran blas lapack ];
nativeBuildInputs = [ gfortran ];
buildInputs = [ suitesparse blas lapack ];
makeFlags = [
"BLAS=-lcblas"

View file

@ -35,9 +35,8 @@ stdenv.mkDerivation rec {
"-DBUILD_TEST=OFF"
];
nativeBuildInputs = [ cmake ];
nativeBuildInputs = [ cmake gfortran ];
buildInputs = [
gfortran
blas
python3
boost

View file

@ -18,9 +18,9 @@ stdenv.mkDerivation rec {
"--with-lapack-lib=-llapack"
];
nativeBuildInputs = [ unzip ];
nativeBuildInputs = [ unzip gfortran ];
buildInputs = [ gfortran blas lapack ];
buildInputs = [ blas lapack ];
enableParallelBuilding = true;

View file

@ -15,8 +15,8 @@ stdenv.mkDerivation rec {
sha256 = "1c10d18gj3kvpmyv5q246x35hjxaqn4ygy1cygaydhyxnm4klzdj";
};
nativeBuildInputs = [ cmake openssh ];
buildInputs = [ mpi gfortran blas lapack ];
nativeBuildInputs = [ cmake openssh gfortran ];
buildInputs = [ mpi blas lapack ];
doCheck = true;

View file

@ -1,4 +1,4 @@
{ lib, stdenv, fetchurl, gfortran, perl }:
{ lib, stdenv, fetchurl, perl }:
stdenv.mkDerivation rec {
pname = "spooles";

View file

@ -21,7 +21,7 @@ stdenv.mkDerivation rec {
hash = "sha256-SNp7qoFS3bIq7RsC2C0du0+/6iKs9nY0ARqgMDoQCkM=";
};
nativeBuildInputs = [ cmake ];
nativeBuildInputs = [ cmake gfortran ];
buildInputs = [
python
@ -29,7 +29,6 @@ stdenv.mkDerivation rec {
++ lib.optionals (lapackSupport)
# Check that the same index size is used for both libraries
(assert (blas.isILP64 == lapack.isILP64); [
gfortran
blas
lapack
])

View file

@ -16,7 +16,8 @@ buildPythonPackage rec {
sha256 = "1z3w2c50dwwa297j88pr16pyrjysagsvdj7vrlq40q8777rs7a6z";
};
buildInputs = [ pillow gfortran glibcLocales ];
nativeBuildInputs = [ gfortran ];
buildInputs = [ pillow glibcLocales ];
propagatedBuildInputs = [ numpy scipy numpy.blas ];
checkInputs = [ pytest ];

View file

@ -38,7 +38,6 @@ buildPythonPackage rec {
buildInputs = [
pillow
gfortran
glibcLocales
] ++ lib.optionals stdenv.cc.isClang [
llvmPackages.openmp
@ -46,6 +45,7 @@ buildPythonPackage rec {
nativeBuildInputs = [
cython
gfortran
];
propagatedBuildInputs = [

View file

@ -34,10 +34,10 @@ stdenv.mkDerivation rec {
outputs = [ "out" "dev" ];
nativeBuildInputs = [ removeReferencesTo ];
nativeBuildInputs = [ removeReferencesTo ]
++ optional (gfortran != null) gfortran;
buildInputs = []
++ optional (gfortran != null) gfortran
++ optional (szip != null) szip
++ optional javaSupport jdk;