mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-17 14:19:58 +03:00
eccodes: nixpkgs-fmt
This commit is contained in:
parent
2fa0810d11
commit
c36249ac1d
@ -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,21 +29,24 @@ stdenv.mkDerivation rec {
|
||||
|
||||
nativeBuildInputs = [ cmake perl ];
|
||||
|
||||
buildInputs = [ netcdf
|
||||
openjpeg
|
||||
libpng
|
||||
gfortran
|
||||
];
|
||||
propagatedBuildInputs = optionals enablePython [
|
||||
pythonPackages.python
|
||||
pythonPackages.numpy
|
||||
];
|
||||
buildInputs = [
|
||||
netcdf
|
||||
openjpeg
|
||||
libpng
|
||||
gfortran
|
||||
];
|
||||
|
||||
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"}"
|
||||
];
|
||||
propagatedBuildInputs = optionals enablePython [
|
||||
pythonPackages.python
|
||||
pythonPackages.numpy
|
||||
];
|
||||
|
||||
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"}"
|
||||
];
|
||||
|
||||
doCheck = true;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user