diff options
author | Alyssa Ross <hi@alyssa.is> | 2023-08-23 10:09:14 +0000 |
---|---|---|
committer | Alyssa Ross <hi@alyssa.is> | 2023-08-26 09:07:03 +0000 |
commit | 63dabcc77ef9a56655e1ca2ab2e25e6163a72c1f (patch) | |
tree | d58934cb48f9c953b19a0d0d5cffc0d0c5561471 /nixpkgs/pkgs/development/libraries/nco/default.nix | |
parent | c4eef3dacb2a3d359561f30917d9e3cc4e041be9 (diff) | |
parent | 91a22f76cd1716f9d0149e8a5c68424bb691de15 (diff) | |
download | nixlib-63dabcc77ef9a56655e1ca2ab2e25e6163a72c1f.tar nixlib-63dabcc77ef9a56655e1ca2ab2e25e6163a72c1f.tar.gz nixlib-63dabcc77ef9a56655e1ca2ab2e25e6163a72c1f.tar.bz2 nixlib-63dabcc77ef9a56655e1ca2ab2e25e6163a72c1f.tar.lz nixlib-63dabcc77ef9a56655e1ca2ab2e25e6163a72c1f.tar.xz nixlib-63dabcc77ef9a56655e1ca2ab2e25e6163a72c1f.tar.zst nixlib-63dabcc77ef9a56655e1ca2ab2e25e6163a72c1f.zip |
Merge branch 'nixos-unstable' of https://github.com/NixOS/nixpkgs
Conflicts: nixpkgs/pkgs/build-support/go/module.nix nixpkgs/pkgs/development/python-modules/django-mailman3/default.nix
Diffstat (limited to 'nixpkgs/pkgs/development/libraries/nco/default.nix')
-rw-r--r-- | nixpkgs/pkgs/development/libraries/nco/default.nix | 55 |
1 files changed, 40 insertions, 15 deletions
diff --git a/nixpkgs/pkgs/development/libraries/nco/default.nix b/nixpkgs/pkgs/development/libraries/nco/default.nix index 380f5d75d690..585dd4072b27 100644 --- a/nixpkgs/pkgs/development/libraries/nco/default.nix +++ b/nixpkgs/pkgs/development/libraries/nco/default.nix @@ -1,23 +1,48 @@ -{ lib, stdenv, fetchFromGitHub, netcdf, netcdfcxx4, gsl, udunits, antlr2, which, curl, flex, coreutils, libtool }: - -stdenv.mkDerivation rec { +{ antlr2 +, coreutils +, curl +, fetchFromGitHub +, flex +, gsl +, lib +, libtool +, netcdf +, netcdfcxx4 +, stdenv +, udunits +, which +}: + +stdenv.mkDerivation (finalAttrs: { pname = "nco"; - version = "5.1.6"; + version = "5.1.7"; src = fetchFromGitHub { owner = "nco"; repo = "nco"; - rev = version; - sha256 = "sha256-h5HL3fe3pdj48UeL5TKunSr7PvKf26AOOOcQh77W9sk="; + rev = finalAttrs.version; + hash = "sha256-CdIZ0ql8QBM7UcEyTmt4P9gZyO8jrkLipAOsJUkpG8g="; }; - nativeBuildInputs = [ flex which antlr2 ]; - - buildInputs = [ netcdf netcdfcxx4 gsl udunits curl coreutils ]; + nativeBuildInputs = [ + antlr2 + flex + which + ]; + + buildInputs = [ + coreutils + curl + gsl + netcdf + netcdfcxx4 + udunits + ]; postPatch = '' substituteInPlace src/nco/nco_fl_utl.c \ --replace "/bin/cp" "${coreutils}/bin/cp" + substituteInPlace src/nco/nco_fl_utl.c \ --replace "/bin/mv" "${coreutils}/bin/mv" ''; @@ -26,12 +51,12 @@ stdenv.mkDerivation rec { enableParallelBuilding = true; - meta = with lib; { + meta = { description = "NetCDF Operator toolkit"; - longDescription = "The NCO (netCDF Operator) toolkit manipulates and analyzes data stored in netCDF-accessible formats, including DAP, HDF4, and HDF5"; homepage = "https://nco.sourceforge.net/"; - license = licenses.bsd3; - maintainers = with maintainers; [ bzizou ]; - platforms = platforms.unix; + license = lib.licenses.bsd3; + longDescription = "The NCO (netCDF Operator) toolkit manipulates and analyzes data stored in netCDF-accessible formats, including DAP, HDF4, and HDF5"; + maintainers = with lib.maintainers; [ bzizou ]; + platforms = lib.platforms.unix; }; -} +}) |