1 { stdenv, lib, fetchFromGitHub, gfortran, cmake }:
3 stdenv.mkDerivation rec {
4 pname = "json-fortran";
7 src = fetchFromGitHub {
8 owner = "jacobwilliams";
11 hash = "sha256-96W9bzWEZ3EN4wtnDT3G3pvLdcI4SIhGJWBVPU3rNZ4=";
20 "-DUSE_GNU_INSTALL_CONVENTION=ON"
23 # Due to some misconfiguration in CMake the Fortran modules end up in $out/$out.
24 # Move them back to the desired location.
26 mv $out/$out/include $out/.
31 description = "Modern Fortran JSON API";
32 homepage = "https://github.com/jacobwilliams/json-fortran";
33 license = licenses.mit;
34 platforms = platforms.linux;
35 maintainers = [ maintainers.sheepforce ];