11 if lib.versionOlder ocaml.version "4.02" then
12 throw "ocp-ocamlres is not available for OCaml ${ocaml.version}"
15 stdenv.mkDerivation rec {
16 pname = "ocaml${ocaml.version}-ocp-ocamlres";
18 src = fetchFromGitHub {
20 repo = "ocp-ocamlres";
22 sha256 = "0smfwrj8qhzknhzawygxi0vgl2af4vyi652fkma59rzjpvscqrnn";
36 createFindlibDestdir = true;
38 installFlags = [ "BINDIR=$(out)/bin" ];
39 preInstall = "mkdir -p $out/bin";
42 description = "Simple tool and library to embed files and directories inside OCaml executables";
43 homepage = "https://www.typerex.org/ocp-ocamlres.html";
44 license = lib.licenses.lgpl3Plus;
45 maintainers = [ lib.maintainers.vbgl ];
46 mainProgram = "ocp-ocamlres";
47 inherit (ocaml.meta) platforms;