Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 16.09 35 lines 924 B view raw
1{stdenv, fetchurl, ocaml_pcre, ocamlnet, ocaml, findlib, camlp4}: 2 3stdenv.mkDerivation { 4 name = "ocaml-http-0.1.5"; 5 6 src = fetchurl { 7 url = https://forge.ocamlcore.org/frs/download.php/545/ocaml-http-0.1.5.tar.gz; 8 sha256 = "09q12b0j01iymflssxigsqggbsp8dqh9pfvkm76dv860544mygws"; 9 }; 10 11 buildInputs = [ocaml findlib camlp4]; 12 propagatedBuildInputs = [ocaml_pcre ocamlnet]; 13 14 createFindlibDestdir = true; 15 16 prePatch = '' 17 BASH=$(type -tp bash) 18 echo $BASH 19 substituteInPlace Makefile --replace "SHELL=/bin/bash" "SHELL=$BASH" 20 ''; 21 22 configurePhase = "true"; # Skip configure phase 23 24 buildPhase = '' 25 make all opt 26 ''; 27 28 meta = with stdenv.lib; { 29 homepage = http://ocaml-http.forge.ocamlcore.org/; 30 platforms = ocaml.meta.platforms or []; 31 description = "Do it yourself (OCaml) HTTP daemon"; 32 license = licenses.lgpl2; 33 maintainers = with maintainers; [ roconnor vbgl ]; 34 }; 35}