gdal: make armadillo and netcdf optional
Signed-off-by: Austin Seipp <aseipp@pobox.com>
This commit is contained in:
parent
55f76104aa
commit
a93ab55b41
|
@ -12,6 +12,8 @@
|
||||||
, usePoppler ? (!useMinimalFeatures)
|
, usePoppler ? (!useMinimalFeatures)
|
||||||
, useArrow ? (!useMinimalFeatures)
|
, useArrow ? (!useMinimalFeatures)
|
||||||
, useHDF ? (!useMinimalFeatures)
|
, useHDF ? (!useMinimalFeatures)
|
||||||
|
, useNetCDF ? (!useMinimalFeatures)
|
||||||
|
, useArmadillo ? (!useMinimalFeatures)
|
||||||
|
|
||||||
, bison
|
, bison
|
||||||
, cmake
|
, cmake
|
||||||
|
@ -133,6 +135,8 @@ stdenv.mkDerivation (finalAttrs: {
|
||||||
hdf4
|
hdf4
|
||||||
hdf5-cpp
|
hdf5-cpp
|
||||||
];
|
];
|
||||||
|
netCdfDeps = lib.optionals useNetCDF [ netcdf ];
|
||||||
|
armadilloDeps = lib.optionals useArmadillo [ armadillo ];
|
||||||
|
|
||||||
darwinDeps = lib.optionals stdenv.isDarwin [ libiconv ];
|
darwinDeps = lib.optionals stdenv.isDarwin [ libiconv ];
|
||||||
nonDarwinDeps = lib.optionals (!stdenv.isDarwin) ([
|
nonDarwinDeps = lib.optionals (!stdenv.isDarwin) ([
|
||||||
|
@ -141,7 +145,6 @@ stdenv.mkDerivation (finalAttrs: {
|
||||||
xercesc
|
xercesc
|
||||||
] ++ arrowDeps);
|
] ++ arrowDeps);
|
||||||
in [
|
in [
|
||||||
armadillo
|
|
||||||
c-blosc
|
c-blosc
|
||||||
brunsli
|
brunsli
|
||||||
cfitsio
|
cfitsio
|
||||||
|
@ -159,7 +162,6 @@ stdenv.mkDerivation (finalAttrs: {
|
||||||
xz
|
xz
|
||||||
libxml2
|
libxml2
|
||||||
lz4
|
lz4
|
||||||
netcdf
|
|
||||||
openjpeg
|
openjpeg
|
||||||
openssl
|
openssl
|
||||||
pcre2
|
pcre2
|
||||||
|
@ -183,6 +185,8 @@ stdenv.mkDerivation (finalAttrs: {
|
||||||
++ popplerDeps
|
++ popplerDeps
|
||||||
++ arrowDeps
|
++ arrowDeps
|
||||||
++ hdfDeps
|
++ hdfDeps
|
||||||
|
++ netCdfDeps
|
||||||
|
++ armadilloDeps
|
||||||
++ darwinDeps
|
++ darwinDeps
|
||||||
++ nonDarwinDeps;
|
++ nonDarwinDeps;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue