git.iko.soy/typeable/nixpkgs
on master help sign in
eccodes: nixpkgs-fmt
commitc36249ac1d7ebcecb4a7bb0e77ec1374811ccaa1 authorMatthias Riße <matthias.risze@t-online.de> dateThu 23 Sep 2021, 15:12 (5 years ago) parent2fa0810
1 file changed+31−18
pkgs/development/libraries/eccodes/default.nix+31−18
pkgs/development/libraries/eccodes/default.nix+31−18
@@ -1,8 +1,18 @@
1−{ fetchurl, lib, stdenv
2−, cmake, netcdf, openjpeg, libpng, gfortran, perl
3−, enablePython ? false, pythonPackages
1+{ fetchurl
2+, lib
3+, stdenv
4+, cmake
5+, netcdf
6+, openjpeg
7+, libpng
8+, gfortran
9+, perl
10+, enablePython ? false
11+, pythonPackages
412, enablePosixThreads ? false
5−, enableOpenMPThreads ? false}:
13+, enableOpenMPThreads ? false
14+}:
15+
616with lib;
717stdenv.mkDerivation rec {
818 pname = "eccodes";
@@ -19,21 +29,24 @@ stdenv.mkDerivation rec {
1929
2030 nativeBuildInputs = [ cmake perl ];
2131
22− buildInputs = [ netcdf
23− openjpeg
24− libpng
25− gfortran
26− ];
32+ buildInputs = [
33+ netcdf
34+ openjpeg
35+ libpng
36+ gfortran
37+ ];
38+
2739 propagatedBuildInputs = optionals enablePython [
28− pythonPackages.python
29− pythonPackages.numpy
30− ];
31−
32− cmakeFlags = [ "-DENABLE_PYTHON=${if enablePython then "ON" else "OFF"}"
33− "-DENABLE_PNG=ON"
34− "-DENABLE_ECCODES_THREADS=${if enablePosixThreads then "ON" else "OFF"}"
35− "-DENABLE_ECCODES_OMP_THREADS=${if enableOpenMPThreads then "ON" else "OFF"}"
36− ];
40+ pythonPackages.python
41+ pythonPackages.numpy
42+ ];
43+
44+ cmakeFlags = [
45+ "-DENABLE_PYTHON=${if enablePython then "ON" else "OFF"}"
46+ "-DENABLE_PNG=ON"
47+ "-DENABLE_ECCODES_THREADS=${if enablePosixThreads then "ON" else "OFF"}"
48+ "-DENABLE_ECCODES_OMP_THREADS=${if enableOpenMPThreads then "ON" else "OFF"}"
49+ ];
3750
3851 doCheck = true;
3952