eccodes: nixpkgs-fmt

This commit is contained in:
Matthias Riße 2021-09-23 15:12:39 +02:00
parent 2fa0810d11
commit c36249ac1d

View File

@ -1,8 +1,18 @@
{ fetchurl, lib, stdenv
, cmake, netcdf, openjpeg, libpng, gfortran, perl
, enablePython ? false, pythonPackages
{ fetchurl
, lib
, stdenv
, cmake
, netcdf
, openjpeg
, libpng
, gfortran
, perl
, enablePython ? false
, pythonPackages
, enablePosixThreads ? false
, enableOpenMPThreads ? false}:
, enableOpenMPThreads ? false
}:
with lib;
stdenv.mkDerivation rec {
pname = "eccodes";
@ -19,17 +29,20 @@ stdenv.mkDerivation rec {
nativeBuildInputs = [ cmake perl ];
buildInputs = [ netcdf
buildInputs = [
netcdf
openjpeg
libpng
gfortran
];
propagatedBuildInputs = optionals enablePython [
pythonPackages.python
pythonPackages.numpy
];
cmakeFlags = [ "-DENABLE_PYTHON=${if enablePython then "ON" else "OFF"}"
cmakeFlags = [
"-DENABLE_PYTHON=${if enablePython then "ON" else "OFF"}"
"-DENABLE_PNG=ON"
"-DENABLE_ECCODES_THREADS=${if enablePosixThreads then "ON" else "OFF"}"
"-DENABLE_ECCODES_OMP_THREADS=${if enableOpenMPThreads then "ON" else "OFF"}"