uboot: (firmwareOdroidC2/C4) don't invoke patch tool, use patches = [] instead
https://github.com/NixOS/nixpkgs/blob/master/pkgs/stdenv/generic/setup.sh#L948 this can do it nicely. Signed-off-by: Anton Arapov <anton@deadbeef.mx>
This commit is contained in:
commit
56de2bcd43
30691 changed files with 3076956 additions and 0 deletions
40
pkgs/development/libraries/cdo/default.nix
Normal file
40
pkgs/development/libraries/cdo/default.nix
Normal file
|
|
@ -0,0 +1,40 @@
|
|||
{ lib, stdenv, fetchurl, curl, hdf5, netcdf
|
||||
, # build, install and link to a CDI library [default=no]
|
||||
enable_cdi_lib ? false
|
||||
, # build a completely statically linked CDO binary
|
||||
enable_all_static ? stdenv.hostPlatform.isStatic
|
||||
, # Use CXX as default compiler [default=no]
|
||||
enable_cxx ? false
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "cdo";
|
||||
version = "1.9.10";
|
||||
|
||||
# Dependencies
|
||||
buildInputs = [ curl netcdf hdf5 ];
|
||||
|
||||
src = fetchurl {
|
||||
url = "https://code.mpimet.mpg.de/attachments/download/24638/${pname}-${version}.tar.gz";
|
||||
sha256 = "sha256-zDnIm7tIHXs5RaBsVqhJIEcjX0asNjxPDZgPzN3mZ34=";
|
||||
};
|
||||
|
||||
# Configure phase
|
||||
configureFlags = [
|
||||
"--with-netcdf=${netcdf}" "--with-hdf5=${hdf5}"]
|
||||
++ lib.optional (enable_cdi_lib) "--enable-cdi-lib"
|
||||
++ lib.optional (enable_all_static) "--enable-all-static"
|
||||
++ lib.optional (enable_cxx) "--enable-cxx";
|
||||
|
||||
meta = with lib; {
|
||||
description = "Collection of command line Operators to manipulate and analyse Climate and NWP model Data";
|
||||
longDescription = ''
|
||||
Supported data formats are GRIB 1/2, netCDF 3/4, SERVICE, EXTRA and IEG.
|
||||
There are more than 600 operators available.
|
||||
'';
|
||||
homepage = "https://code.mpimet.mpg.de/projects/cdo/";
|
||||
license = licenses.gpl2;
|
||||
maintainers = [ maintainers.ltavard ];
|
||||
platforms = with platforms; linux ++ darwin;
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue