Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at devShellTools-shell 41 lines 788 B view raw
1{ 2 lib, 3 stdenv, 4 fetchFromGitHub, 5 netcdf, 6 hdf5, 7 curl, 8 gfortran, 9}: 10stdenv.mkDerivation rec { 11 pname = "netcdf-fortran"; 12 version = "4.4.5"; 13 14 src = fetchFromGitHub { 15 owner = "Unidata"; 16 repo = "netcdf-fortran"; 17 rev = "v${version}"; 18 sha256 = "sha256-nC93NcA4VJbrqaLwyhjP10j/t6rQSYcAzKBxclpZVe0="; 19 }; 20 21 nativeBuildInputs = [ gfortran ]; 22 buildInputs = [ 23 netcdf 24 hdf5 25 curl 26 ]; 27 28 doCheck = true; 29 30 FFLAGS = [ "-std=legacy" ]; 31 FCFLAGS = [ "-std=legacy" ]; 32 33 meta = with lib; { 34 description = "Fortran API to manipulate netcdf files"; 35 mainProgram = "nf-config"; 36 homepage = "https://www.unidata.ucar.edu/software/netcdf/"; 37 license = licenses.free; 38 maintainers = [ maintainers.bzizou ]; 39 platforms = platforms.unix; 40 }; 41}