Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ lib, stdenv, fetchurl, gfortran, zlib }: 2 3stdenv.mkDerivation rec { 4 pname = "QCDNUM"; 5 version = "18-00-00"; 6 7 src = fetchurl { 8 url = "http://www.nikhef.nl/user/h24/qcdnum-files/download/qcdnum${builtins.replaceStrings ["-"] [""] version}.tar.gz"; 9 hash = "sha256-4Qj5JreEA1LkCAunGRTTQD7YEYNk+HcQ4iH97DIO4gA="; 10 }; 11 12 nativeBuildInputs = [ gfortran ]; 13 buildInputs = [ zlib ]; 14 15 FFLAGS = [ 16 "-std=legacy" # fix build with gfortran 10 17 ]; 18 19 enableParallelBuilding = true; 20 21 meta = { 22 description = "A very fast QCD evolution program written in FORTRAN77"; 23 license = lib.licenses.gpl3; 24 homepage = "https://www.nikhef.nl/~h24/qcdnum/index.html"; 25 platforms = lib.platforms.unix; 26 maintainers = with lib.maintainers; [ veprbl ]; 27 }; 28}