1 { lib, fetchFromGitHub, stdenv
2 , findlib, ocaml, ocamlbuild
5 if lib.versionOlder ocaml.version "4.02"
6 then throw "sosa is not available for OCaml ${ocaml.version}"
9 stdenv.mkDerivation rec {
10 pname = "ocaml${ocaml.version}-sosa";
13 src = fetchFromGitHub {
16 rev = "sosa.${version}";
17 sha256 = "053hdv6ww0q4mivajj4iyp7krfvgq8zajq9d8x4mia4lid7j0dyk";
20 nativeBuildInputs = [ ocaml ocamlbuild findlib ];
24 buildPhase = "make build";
26 createFindlibDestdir = true;
31 homepage = "http://www.hammerlab.org/docs/sosa/master/index.html";
32 description = "Sane OCaml String API";
33 license = licenses.isc;
34 maintainers = [ maintainers.alexfmpe ];