lol
at 23.05-pre 35 lines 1.1 kB view raw
1{ lib, stdenv, fetchFromGitHub, netcdf, netcdfcxx4, gsl, udunits, antlr2, which, curl, flex, coreutils }: 2 3stdenv.mkDerivation rec { 4 pname = "nco"; 5 version = "5.0.6"; 6 7 src = fetchFromGitHub { 8 owner = "nco"; 9 repo = "nco"; 10 rev = version; 11 sha256 = "sha256-LmxHgSBBqXK5M4KOthd8R+H5EY3O5lueb2gnw5mK8Xw="; 12 }; 13 14 nativeBuildInputs = [ flex which antlr2 ]; 15 16 buildInputs = [ netcdf netcdfcxx4 gsl udunits curl coreutils ]; 17 18 postPatch = '' 19 substituteInPlace src/nco/nco_fl_utl.c \ 20 --replace "/bin/cp" "${coreutils}/bin/cp" 21 substituteInPlace src/nco/nco_fl_utl.c \ 22 --replace "/bin/mv" "${coreutils}/bin/mv" 23 ''; 24 25 enableParallelBuilding = true; 26 27 meta = with lib; { 28 description = "NetCDF Operator toolkit"; 29 longDescription = "The NCO (netCDF Operator) toolkit manipulates and analyzes data stored in netCDF-accessible formats, including DAP, HDF4, and HDF5"; 30 homepage = "http://nco.sourceforge.net/"; 31 license = licenses.bsd3; 32 maintainers = with maintainers; [ bzizou ]; 33 platforms = platforms.linux; 34 }; 35}