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