2020-08-19 16:40:55 +00:00
|
|
|
{ lib, fetchFromGitHub, stdenv
|
2021-04-02 06:49:42 +00:00
|
|
|
, findlib, ocaml, ocamlbuild
|
2020-08-19 16:40:55 +00:00
|
|
|
}:
|
|
|
|
|
2022-04-25 20:35:24 +00:00
|
|
|
if lib.versionOlder ocaml.version "4.02"
|
2021-04-02 06:49:42 +00:00
|
|
|
then throw "sosa is not available for OCaml ${ocaml.version}"
|
|
|
|
else
|
|
|
|
|
2020-08-19 16:40:55 +00:00
|
|
|
stdenv.mkDerivation rec {
|
2022-02-06 22:35:27 +00:00
|
|
|
pname = "ocaml${ocaml.version}-sosa";
|
2020-08-19 16:40:55 +00:00
|
|
|
version = "0.3.0";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "hammerlab";
|
|
|
|
repo = "sosa";
|
|
|
|
rev = "sosa.${version}";
|
|
|
|
sha256 = "053hdv6ww0q4mivajj4iyp7krfvgq8zajq9d8x4mia4lid7j0dyk";
|
|
|
|
};
|
|
|
|
|
2022-02-22 09:59:04 +00:00
|
|
|
nativeBuildInputs = [ ocaml ocamlbuild findlib ];
|
|
|
|
|
|
|
|
strictDeps = true;
|
2020-08-19 16:40:55 +00:00
|
|
|
|
|
|
|
buildPhase = "make build";
|
|
|
|
|
|
|
|
createFindlibDestdir = true;
|
|
|
|
|
|
|
|
doCheck = true;
|
|
|
|
|
|
|
|
meta = with lib; {
|
2021-11-10 10:37:56 +00:00
|
|
|
homepage = "http://www.hammerlab.org/docs/sosa/master/index.html";
|
2020-08-19 16:40:55 +00:00
|
|
|
description = "Sane OCaml String API";
|
|
|
|
license = licenses.isc;
|
|
|
|
maintainers = [ maintainers.alexfmpe ];
|
|
|
|
};
|
|
|
|
}
|