mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-18 02:05:51 +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,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"}"
|
||||
|
Loading…
Reference in New Issue
Block a user