at v192 24 lines 649 B view raw
1{stdenv, fetchurl, libiconv, ocaml, findlib, ncurses}: 2 3stdenv.mkDerivation { 4 name = "ocaml-text-0.7.1"; 5 6 src = fetchurl { 7 url = "https://github.com/vbmithr/ocaml-text/archive/0.7.1.tar.gz"; 8 sha256 = "0dn096q9gjfj7ibj237mb7lq0742a760zawka6i064qns727qwrg"; 9 }; 10 11 buildInputs = [ocaml findlib ncurses libiconv]; 12 13 configurePhase = "iconv_prefix=${libiconv} ocaml setup.ml -configure"; 14 15 createFindlibDestdir = true; 16 17 18 meta = { 19 homepage = "http://ocaml-text.forge.ocamlcore.org/"; 20 description = "A library for convenient text manipulation"; 21 license = stdenv.lib.licenses.bsd3; 22 platforms = ocaml.meta.platforms; 23 }; 24}