From 30974110e340101129be954fa306ae5a60b66bd9 Mon Sep 17 00:00:00 2001 From: Markus Kowalewski Date: Fri, 3 Sep 2021 13:33:31 +0200 Subject: [PATCH 01/34] freecad: move gfortran to nativeBuildInputs --- pkgs/applications/graphics/freecad/default.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/applications/graphics/freecad/default.nix b/pkgs/applications/graphics/freecad/default.nix index ac4050fc8c5b..4bc1f8b66dec 100644 --- a/pkgs/applications/graphics/freecad/default.nix +++ b/pkgs/applications/graphics/freecad/default.nix @@ -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 From eecadd3f3b6952bbae0e06f69253828354876d47 Mon Sep 17 00:00:00 2001 From: Markus Kowalewski Date: Fri, 3 Sep 2021 13:33:31 +0200 Subject: [PATCH 02/34] openmolcas: move gfortran to nativeBuildInputs --- .../science/chemistry/openmolcas/default.nix | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/pkgs/applications/science/chemistry/openmolcas/default.nix b/pkgs/applications/science/chemistry/openmolcas/default.nix index 8efe537dcacd..3cd991796989 100644 --- a/pkgs/applications/science/chemistry/openmolcas/default.nix +++ b/pkgs/applications/science/chemistry/openmolcas/default.nix @@ -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 From 9eb814fd967764c45db221160d896b77fd5642f4 Mon Sep 17 00:00:00 2001 From: Markus Kowalewski Date: Fri, 3 Sep 2021 13:33:31 +0200 Subject: [PATCH 03/34] quantum-espresso: move gfortran to nativeBuildInputs --- .../science/chemistry/quantum-espresso/default.nix | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/pkgs/applications/science/chemistry/quantum-espresso/default.nix b/pkgs/applications/science/chemistry/quantum-espresso/default.nix index a348c51c2815..6912fdf789c1 100644 --- a/pkgs/applications/science/chemistry/quantum-espresso/default.nix +++ b/pkgs/applications/science/chemistry/quantum-espresso/default.nix @@ -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" ]; From d5c38a0d5ccc89e6520047d3f503d5506e9103b3 Mon Sep 17 00:00:00 2001 From: Markus Kowalewski Date: Fri, 3 Sep 2021 13:33:31 +0200 Subject: [PATCH 04/34] siesta: move gfortran to nativeBuildInputs --- pkgs/applications/science/chemistry/siesta/default.nix | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pkgs/applications/science/chemistry/siesta/default.nix b/pkgs/applications/science/chemistry/siesta/default.nix index 02ff4c1ca440..7b3a69ae775b 100644 --- a/pkgs/applications/science/chemistry/siesta/default.nix +++ b/pkgs/applications/science/chemistry/siesta/default.nix @@ -17,7 +17,9 @@ stdenv.mkDerivation { inherit mpi; }; - buildInputs = [ blas lapack gfortran ] + nativeBuildInputs = [ gfortran ]; + + buildInputs = [ blas lapack ] ++ lib.optionals useMpi [ mpi scalapack ]; enableParallelBuilding = true; From eabbf45b60bd9b36b3cc87f97232f2aa83e97a56 Mon Sep 17 00:00:00 2001 From: Markus Kowalewski Date: Fri, 3 Sep 2021 13:33:31 +0200 Subject: [PATCH 05/34] csdp: move gfortran to nativeBuildInputs --- pkgs/applications/science/math/csdp/default.nix | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pkgs/applications/science/math/csdp/default.nix b/pkgs/applications/science/math/csdp/default.nix index 02c4c134f92e..d1bfc2c020a8 100644 --- a/pkgs/applications/science/math/csdp/default.nix +++ b/pkgs/applications/science/math/csdp/default.nix @@ -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 From 74443bc786a2f1f0bbc8c1b745cae38a53703379 Mon Sep 17 00:00:00 2001 From: Markus Kowalewski Date: Fri, 3 Sep 2021 13:33:31 +0200 Subject: [PATCH 06/34] jags: move gfortran to nativeBuildInputs --- pkgs/applications/science/math/jags/default.nix | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/pkgs/applications/science/math/jags/default.nix b/pkgs/applications/science/math/jags/default.nix index 2e5986651342..5c0de33a71ae 100644 --- a/pkgs/applications/science/math/jags/default.nix +++ b/pkgs/applications/science/math/jags/default.nix @@ -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; { From 35a17a0cfe3be3fd74b431c541aeb734911ad3cc Mon Sep 17 00:00:00 2001 From: Markus Kowalewski Date: Fri, 3 Sep 2021 13:33:32 +0200 Subject: [PATCH 07/34] scilab: move gfortran to nativeBuildInputs --- pkgs/applications/science/math/scilab/default.nix | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/pkgs/applications/science/math/scilab/default.nix b/pkgs/applications/science/math/scilab/default.nix index 95c6c23fb09a..4ce04340f3a1 100644 --- a/pkgs/applications/science/math/scilab/default.nix +++ b/pkgs/applications/science/math/scilab/default.nix @@ -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; /* From 9259691d58b6d177164fde56f3114d4f21431eb0 Mon Sep 17 00:00:00 2001 From: Markus Kowalewski Date: Fri, 3 Sep 2021 13:33:32 +0200 Subject: [PATCH 08/34] dl-poly-classic: move gfortran to nativeBuildInputs --- .../science/molecular-dynamics/dl-poly-classic/default.nix | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pkgs/applications/science/molecular-dynamics/dl-poly-classic/default.nix b/pkgs/applications/science/molecular-dynamics/dl-poly-classic/default.nix index 16d858b00bed..cf4584979ba2 100644 --- a/pkgs/applications/science/molecular-dynamics/dl-poly-classic/default.nix +++ b/pkgs/applications/science/molecular-dynamics/dl-poly-classic/default.nix @@ -11,7 +11,9 @@ stdenv.mkDerivation { sha256 = "1r76zvln3bwycxlmqday0sqzv5j260y7mdh66as2aqny6jzd5ld7"; }; - buildInputs = [ mpi gfortran ]; + nativeBuildInputs = [ gfortran ]; + + buildInputs = [ mpi ]; configurePhase = '' cd source From 01ba299e537601230e46100bec1cd465e0ee7052 Mon Sep 17 00:00:00 2001 From: Markus Kowalewski Date: Fri, 3 Sep 2021 13:33:32 +0200 Subject: [PATCH 09/34] elmerfem: move gfortran to nativeBuildInputs --- pkgs/applications/science/physics/elmerfem/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/applications/science/physics/elmerfem/default.nix b/pkgs/applications/science/physics/elmerfem/default.nix index 5033b28bd3b3..cd9b7430b99f 100644 --- a/pkgs/applications/science/physics/elmerfem/default.nix +++ b/pkgs/applications/science/physics/elmerfem/default.nix @@ -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 ./ From 25ebbde3e15d1c6ee714a87316f4a4dfe4d1d812 Mon Sep 17 00:00:00 2001 From: Markus Kowalewski Date: Fri, 3 Sep 2021 13:33:32 +0200 Subject: [PATCH 10/34] sherpa: move gfortran to nativeBuildInputs --- pkgs/applications/science/physics/sherpa/default.nix | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/pkgs/applications/science/physics/sherpa/default.nix b/pkgs/applications/science/physics/sherpa/default.nix index eb718be12e4a..1c1bc22b0ffc 100644 --- a/pkgs/applications/science/physics/sherpa/default.nix +++ b/pkgs/applications/science/physics/sherpa/default.nix @@ -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; From f476dcf3b3194c8efb1ddf372f6003703b04ede7 Mon Sep 17 00:00:00 2001 From: Markus Kowalewski Date: Fri, 3 Sep 2021 13:33:32 +0200 Subject: [PATCH 11/34] graalvm: move gfortran to nativeBuildInputs --- pkgs/development/compilers/graalvm/default.nix | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pkgs/development/compilers/graalvm/default.nix b/pkgs/development/compilers/graalvm/default.nix index ccfb4a18a12a..069c4655ea46 100644 --- a/pkgs/development/compilers/graalvm/default.nix +++ b/pkgs/development/compilers/graalvm/default.nix @@ -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 ]; From 471cb111fe9d607e0a15e08a14686b951836e8d8 Mon Sep 17 00:00:00 2001 From: Markus Kowalewski Date: Fri, 3 Sep 2021 13:33:32 +0200 Subject: [PATCH 12/34] eccodes: move gfortran to nativeBuildInputs --- pkgs/development/libraries/eccodes/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/libraries/eccodes/default.nix b/pkgs/development/libraries/eccodes/default.nix index 1050490a220b..c17ac9dcf03d 100644 --- a/pkgs/development/libraries/eccodes/default.nix +++ b/pkgs/development/libraries/eccodes/default.nix @@ -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 From fa92d39f7c1bcecaf61ca90092bdb79c6a4dcab6 Mon Sep 17 00:00:00 2001 From: Markus Kowalewski Date: Fri, 3 Sep 2021 13:33:32 +0200 Subject: [PATCH 13/34] globalarrays: move gfortran to nativeBuildInputs --- pkgs/development/libraries/globalarrays/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/libraries/globalarrays/default.nix b/pkgs/development/libraries/globalarrays/default.nix index 8b01f9f68146..a2e983ece83d 100644 --- a/pkgs/development/libraries/globalarrays/default.nix +++ b/pkgs/development/libraries/globalarrays/default.nix @@ -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" \ From b9bc2a758de9e85b228b2eb1ceb5dea9d29d1ec7 Mon Sep 17 00:00:00 2001 From: Markus Kowalewski Date: Fri, 3 Sep 2021 13:33:32 +0200 Subject: [PATCH 14/34] libxc: move gfortran to nativeBuildInputs --- pkgs/development/libraries/libxc/default.nix | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/pkgs/development/libraries/libxc/default.nix b/pkgs/development/libraries/libxc/default.nix index 0680e4b832ce..65458c2d970e 100644 --- a/pkgs/development/libraries/libxc/default.nix +++ b/pkgs/development/libraries/libxc/default.nix @@ -11,8 +11,7 @@ stdenv.mkDerivation rec { sha256 = "0cy3x2zn1bldc5i0rzislfbc8h4nqgds445jkfqjv0d1shvdy0zn"; }; - buildInputs = [ gfortran ]; - nativeBuildInputs = [ perl cmake ]; + nativeBuildInputs = [ perl cmake gfortran ]; preConfigure = '' patchShebangs ./ From 5a5e3217bb2e348a13288cec09ad2862a515f21b Mon Sep 17 00:00:00 2001 From: Markus Kowalewski Date: Fri, 3 Sep 2021 13:33:32 +0200 Subject: [PATCH 15/34] mpich: move gfortran to nativeBuildInputs --- pkgs/development/libraries/mpich/default.nix | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pkgs/development/libraries/mpich/default.nix b/pkgs/development/libraries/mpich/default.nix index 9227cd705430..3aed0d288527 100644 --- a/pkgs/development/libraries/mpich/default.nix +++ b/pkgs/development/libraries/mpich/default.nix @@ -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; From 6705a07e705b3078f2eee28a3e3a8dcb61a09094 Mon Sep 17 00:00:00 2001 From: Markus Kowalewski Date: Fri, 3 Sep 2021 13:33:32 +0200 Subject: [PATCH 16/34] mvapich: move gfortran to nativeBuildInputs --- pkgs/development/libraries/mvapich/default.nix | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/pkgs/development/libraries/mvapich/default.nix b/pkgs/development/libraries/mvapich/default.nix index 704a28dbb8cd..c496927ebca5 100644 --- a/pkgs/development/libraries/mvapich/default.nix +++ b/pkgs/development/libraries/mvapich/default.nix @@ -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 ] From 62ab013a43c8d679322db92f12db34a4297f8e77 Mon Sep 17 00:00:00 2001 From: Markus Kowalewski Date: Fri, 3 Sep 2021 13:33:33 +0200 Subject: [PATCH 17/34] netcdf-fortran: move gfortran to nativeBuildInputs --- pkgs/development/libraries/netcdf-fortran/default.nix | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pkgs/development/libraries/netcdf-fortran/default.nix b/pkgs/development/libraries/netcdf-fortran/default.nix index 0cdeda238792..503226ddcbb3 100644 --- a/pkgs/development/libraries/netcdf-fortran/default.nix +++ b/pkgs/development/libraries/netcdf-fortran/default.nix @@ -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; { From 552309eb6cce77cfc4ec436957b8da13fc6cd1b8 Mon Sep 17 00:00:00 2001 From: Markus Kowalewski Date: Fri, 3 Sep 2021 13:33:33 +0200 Subject: [PATCH 18/34] openmpi: move gfortran to nativeBuildInputs --- pkgs/development/libraries/openmpi/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/libraries/openmpi/default.nix b/pkgs/development/libraries/openmpi/default.nix index 35708c0ac016..d3323b1fa9e0 100644 --- a/pkgs/development/libraries/openmpi/default.nix +++ b/pkgs/development/libraries/openmpi/default.nix @@ -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" From d6af4e1b3f0bcd545b5c67fa64b2acc2fe028e8e Mon Sep 17 00:00:00 2001 From: Markus Kowalewski Date: Fri, 3 Sep 2021 13:33:33 +0200 Subject: [PATCH 19/34] applgrid: move gfortran to nativeBuildInputs --- pkgs/development/libraries/physics/applgrid/default.nix | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pkgs/development/libraries/physics/applgrid/default.nix b/pkgs/development/libraries/physics/applgrid/default.nix index 65aa7b8b4703..3ed2f24f45f9 100644 --- a/pkgs/development/libraries/physics/applgrid/default.nix +++ b/pkgs/development/libraries/physics/applgrid/default.nix @@ -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 From b8ff05f376a746231f29881867a8244aa575af0d Mon Sep 17 00:00:00 2001 From: Markus Kowalewski Date: Fri, 3 Sep 2021 13:33:33 +0200 Subject: [PATCH 20/34] herwig: move gfortran to nativeBuildInputs --- pkgs/development/libraries/physics/herwig/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/libraries/physics/herwig/default.nix b/pkgs/development/libraries/physics/herwig/default.nix index 0a7e9b4d948e..1c3bfaa2064e 100644 --- a/pkgs/development/libraries/physics/herwig/default.nix +++ b/pkgs/development/libraries/physics/herwig/default.nix @@ -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 ]); From e477d5115d0e256cf58a6215e707d26eec106956 Mon Sep 17 00:00:00 2001 From: Markus Kowalewski Date: Fri, 3 Sep 2021 13:33:33 +0200 Subject: [PATCH 21/34] hoppet: move gfortran to nativeBuildInputs --- pkgs/development/libraries/physics/hoppet/default.nix | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/pkgs/development/libraries/physics/hoppet/default.nix b/pkgs/development/libraries/physics/hoppet/default.nix index 7ad5b9861a1d..af90192878d7 100644 --- a/pkgs/development/libraries/physics/hoppet/default.nix +++ b/pkgs/development/libraries/physics/hoppet/default.nix @@ -9,8 +9,7 @@ stdenv.mkDerivation rec { sha256 = "0j7437rh4xxbfzmkjr22ry34xm266gijzj6mvrq193fcsfzipzdz"; }; - buildInputs = [ gfortran ]; - nativeBuildInputs = [ perl ]; + nativeBuildInputs = [ perl gfortran ]; enableParallelBuilding = true; From b51b7f3182680a6476eeb580ebd1e29297077a86 Mon Sep 17 00:00:00 2001 From: Markus Kowalewski Date: Fri, 3 Sep 2021 13:33:33 +0200 Subject: [PATCH 22/34] mela: move gfortran to nativeBuildInputs --- pkgs/development/libraries/physics/mela/default.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/development/libraries/physics/mela/default.nix b/pkgs/development/libraries/physics/mela/default.nix index 90cf5ac8b2d1..e48a2f4638bc 100644 --- a/pkgs/development/libraries/physics/mela/default.nix +++ b/pkgs/development/libraries/physics/mela/default.nix @@ -11,7 +11,7 @@ stdenv.mkDerivation rec { sha256 = "01sgd4mwx4n58x95brphp4dskqkkx8434bvsr38r5drg9na5nc9y"; }; - buildInputs = [ gfortran ]; + nativeBuildInputs = [ gfortran ]; enableParallelBuilding = true; From 49df5c27c8836fdef3432f93431c897c52b4a994 Mon Sep 17 00:00:00 2001 From: Markus Kowalewski Date: Fri, 3 Sep 2021 13:33:33 +0200 Subject: [PATCH 23/34] qrupdate: move gfortran to nativeBuildInputs --- pkgs/development/libraries/qrupdate/default.nix | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/pkgs/development/libraries/qrupdate/default.nix b/pkgs/development/libraries/qrupdate/default.nix index ad7e88d4647e..2f119311c1f2 100644 --- a/pkgs/development/libraries/qrupdate/default.nix +++ b/pkgs/development/libraries/qrupdate/default.nix @@ -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"; From f61aa16302a9a6f545136951f588f1610e1ec291 Mon Sep 17 00:00:00 2001 From: Markus Kowalewski Date: Fri, 3 Sep 2021 13:33:33 +0200 Subject: [PATCH 24/34] arpack: move gfortran to nativeBuildInputs --- pkgs/development/libraries/science/math/arpack/default.nix | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/pkgs/development/libraries/science/math/arpack/default.nix b/pkgs/development/libraries/science/math/arpack/default.nix index a26a3bb6d8d9..88336f21ed27 100644 --- a/pkgs/development/libraries/science/math/arpack/default.nix +++ b/pkgs/development/libraries/science/math/arpack/default.nix @@ -22,9 +22,8 @@ stdenv.mkDerivation rec { }) ]; - nativeBuildInputs = [ cmake ]; + nativeBuildInputs = [ cmake gfortran ]; buildInputs = assert (blas.isILP64 == lapack.isILP64); [ - gfortran blas lapack eigen From 5ed6afda44f00b69e360fde5c62587954dce7650 Mon Sep 17 00:00:00 2001 From: Markus Kowalewski Date: Fri, 3 Sep 2021 13:33:33 +0200 Subject: [PATCH 25/34] blas: move gfortran to nativeBuildInputs --- pkgs/development/libraries/science/math/blas/default.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/development/libraries/science/math/blas/default.nix b/pkgs/development/libraries/science/math/blas/default.nix index 85a73ccd5697..cfdc102e0447 100644 --- a/pkgs/development/libraries/science/math/blas/default.nix +++ b/pkgs/development/libraries/science/math/blas/default.nix @@ -9,7 +9,7 @@ stdenv.mkDerivation rec { sha256 = "sha256-LjYNmcm9yEB6YYiMQKqFP7QhlCDruCZNtIbLiGBGirM="; }; - buildInputs = [ gfortran ]; + nativeBuildInputs = [ gfortran ]; configurePhase = '' echo >make.inc "SHELL = ${stdenv.shell}" From ece4c5fc291ad38fdc3a78be8dec8ddf0e65030d Mon Sep 17 00:00:00 2001 From: Markus Kowalewski Date: Fri, 3 Sep 2021 13:33:33 +0200 Subject: [PATCH 26/34] cholmod-extra: move gfortran to nativeBuildInputs --- .../libraries/science/math/cholmod-extra/default.nix | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pkgs/development/libraries/science/math/cholmod-extra/default.nix b/pkgs/development/libraries/science/math/cholmod-extra/default.nix index 38d1b126ea4e..311ffefcfaad 100644 --- a/pkgs/development/libraries/science/math/cholmod-extra/default.nix +++ b/pkgs/development/libraries/science/math/cholmod-extra/default.nix @@ -10,7 +10,8 @@ stdenv.mkDerivation rec { sha256 = "0hz1lfp0zaarvl0dv0zgp337hyd8np41kmdpz5rr3fc6yzw7vmkg"; }; - buildInputs = [ suitesparse gfortran blas lapack ]; + nativeBuildInputs = [ gfortran ]; + buildInputs = [ suitesparse blas lapack ]; makeFlags = [ "BLAS=-lcblas" From 4c8194527faf50bf30d02723831fdc7dcce29d1f Mon Sep 17 00:00:00 2001 From: Markus Kowalewski Date: Fri, 3 Sep 2021 13:33:34 +0200 Subject: [PATCH 27/34] clblas: move gfortran to nativeBuildInputs --- pkgs/development/libraries/science/math/clblas/default.nix | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/pkgs/development/libraries/science/math/clblas/default.nix b/pkgs/development/libraries/science/math/clblas/default.nix index fcb49d70a3b1..a87d107b3a17 100644 --- a/pkgs/development/libraries/science/math/clblas/default.nix +++ b/pkgs/development/libraries/science/math/clblas/default.nix @@ -35,9 +35,8 @@ stdenv.mkDerivation rec { "-DBUILD_TEST=OFF" ]; - nativeBuildInputs = [ cmake ]; + nativeBuildInputs = [ cmake gfortran ]; buildInputs = [ - gfortran blas python3 boost From 62ada7c8edc2f18a8c4116159232cd447ab4b070 Mon Sep 17 00:00:00 2001 From: Markus Kowalewski Date: Fri, 3 Sep 2021 13:33:34 +0200 Subject: [PATCH 28/34] ipopt: move gfortran to nativeBuildInputs --- pkgs/development/libraries/science/math/ipopt/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/libraries/science/math/ipopt/default.nix b/pkgs/development/libraries/science/math/ipopt/default.nix index d1d7a9b9f342..e0dfef0b7eec 100644 --- a/pkgs/development/libraries/science/math/ipopt/default.nix +++ b/pkgs/development/libraries/science/math/ipopt/default.nix @@ -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; From 80300f2bfbdae30c2e2b0ec159aed3752c0ecc88 Mon Sep 17 00:00:00 2001 From: Markus Kowalewski Date: Fri, 3 Sep 2021 13:33:34 +0200 Subject: [PATCH 29/34] scalapack: move gfortran to nativeBuildInputs --- pkgs/development/libraries/science/math/scalapack/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/libraries/science/math/scalapack/default.nix b/pkgs/development/libraries/science/math/scalapack/default.nix index 3b84a9d99cbe..3b1fb98a42ea 100644 --- a/pkgs/development/libraries/science/math/scalapack/default.nix +++ b/pkgs/development/libraries/science/math/scalapack/default.nix @@ -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; From 2589c35d8554b21ab98abdebcf535cac8b0aaa0b Mon Sep 17 00:00:00 2001 From: Markus Kowalewski Date: Fri, 3 Sep 2021 13:33:34 +0200 Subject: [PATCH 30/34] spooles: move gfortran to nativeBuildInputs --- pkgs/development/libraries/science/math/spooles/default.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/development/libraries/science/math/spooles/default.nix b/pkgs/development/libraries/science/math/spooles/default.nix index 6f4ddb3f787e..6e94d093a2cb 100644 --- a/pkgs/development/libraries/science/math/spooles/default.nix +++ b/pkgs/development/libraries/science/math/spooles/default.nix @@ -1,4 +1,4 @@ -{ lib, stdenv, fetchurl, gfortran, perl }: +{ lib, stdenv, fetchurl, perl }: stdenv.mkDerivation rec { pname = "spooles"; From be7e4cc15baccf84f8c2fd3a84df7e833b6c259b Mon Sep 17 00:00:00 2001 From: Markus Kowalewski Date: Fri, 3 Sep 2021 13:33:34 +0200 Subject: [PATCH 31/34] sundials: move gfortran to nativeBuildInputs --- pkgs/development/libraries/sundials/default.nix | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/pkgs/development/libraries/sundials/default.nix b/pkgs/development/libraries/sundials/default.nix index f04b22abe8c6..75c238a430c4 100644 --- a/pkgs/development/libraries/sundials/default.nix +++ b/pkgs/development/libraries/sundials/default.nix @@ -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 ]) From 7d1b3059fcf362f569899d67ffee99e97ea88ece Mon Sep 17 00:00:00 2001 From: Markus Kowalewski Date: Fri, 3 Sep 2021 13:33:34 +0200 Subject: [PATCH 32/34] scikit-learn: move gfortran to nativeBuildInputs --- pkgs/development/python-modules/scikit-learn/0.20.nix | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pkgs/development/python-modules/scikit-learn/0.20.nix b/pkgs/development/python-modules/scikit-learn/0.20.nix index 81915e83d2dc..0ed863755897 100644 --- a/pkgs/development/python-modules/scikit-learn/0.20.nix +++ b/pkgs/development/python-modules/scikit-learn/0.20.nix @@ -16,7 +16,8 @@ buildPythonPackage rec { sha256 = "1z3w2c50dwwa297j88pr16pyrjysagsvdj7vrlq40q8777rs7a6z"; }; - buildInputs = [ pillow gfortran glibcLocales ]; + nativeBuildInputs = [ gfortran ]; + buildInputs = [ pillow glibcLocales ]; propagatedBuildInputs = [ numpy scipy numpy.blas ]; checkInputs = [ pytest ]; From 76f9e8dc07f6301ddd80bc1890c6bedc25169165 Mon Sep 17 00:00:00 2001 From: Markus Kowalewski Date: Fri, 3 Sep 2021 13:33:34 +0200 Subject: [PATCH 33/34] scikit-learn: move gfortran to nativeBuildInputs --- pkgs/development/python-modules/scikit-learn/default.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/development/python-modules/scikit-learn/default.nix b/pkgs/development/python-modules/scikit-learn/default.nix index 6f4ad1d2bd15..e7ac79b42837 100644 --- a/pkgs/development/python-modules/scikit-learn/default.nix +++ b/pkgs/development/python-modules/scikit-learn/default.nix @@ -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 = [ From 550ffc4513814e0eb4e6d7ad6601b586309a276b Mon Sep 17 00:00:00 2001 From: Markus Kowalewski Date: Fri, 3 Sep 2021 13:33:34 +0200 Subject: [PATCH 34/34] misc: move gfortran to nativeBuildInputs --- pkgs/tools/misc/hdf5/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/tools/misc/hdf5/default.nix b/pkgs/tools/misc/hdf5/default.nix index 248351272d89..c5485a5b3fb1 100644 --- a/pkgs/tools/misc/hdf5/default.nix +++ b/pkgs/tools/misc/hdf5/default.nix @@ -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;