2021-06-06 07:54:09 +00:00
|
|
|
{ stdenv, lib, fetchurl
|
|
|
|
, ocaml, findlib
|
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "ocaml${ocaml.version}-stdcompat";
|
2022-02-20 05:27:41 +00:00
|
|
|
version = "18";
|
2021-06-06 07:54:09 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "https://github.com/thierry-martinez/stdcompat/releases/download/v${version}/stdcompat-${version}.tar.gz";
|
2022-02-20 05:27:41 +00:00
|
|
|
sha256 = "sha256:01y67rndjlzfp5zq0gbqpg9skqq2hfbvhbq9lfhhk5xidr98sfj8";
|
2021-06-06 07:54:09 +00:00
|
|
|
};
|
|
|
|
|
2022-03-05 16:20:37 +00:00
|
|
|
nativeBuildInputs = [ ocaml findlib ];
|
|
|
|
|
|
|
|
strictDeps = true;
|
|
|
|
|
2022-02-10 20:34:41 +00:00
|
|
|
# build fails otherwise
|
|
|
|
enableParallelBuilding = false;
|
2021-06-06 07:54:09 +00:00
|
|
|
|
2022-06-16 17:23:12 +00:00
|
|
|
configureFlags = [ "--libdir=$(OCAMLFIND_DESTDIR)" ];
|
2021-06-06 07:54:09 +00:00
|
|
|
|
|
|
|
meta = {
|
|
|
|
homepage = "https://github.com/thierry-martinez/stdcompat";
|
|
|
|
license = lib.licenses.bsd2;
|
|
|
|
maintainers = [ lib.maintainers.vbgl ];
|
|
|
|
inherit (ocaml.meta) platforms;
|
|
|
|
};
|
|
|
|
}
|