ocamlPackages.ocp-ocamlres: init at 0.3
A tool ocp-ocamlres to embed files and directories inside OCaml executables, with a companion library ocplib-ocamlres to manipulate them at run-time. Homepage: https://www.typerex.org/ocp-ocamlres.html
This commit is contained in:
parent
81e46dbb29
commit
1551975e64
26
pkgs/development/ocaml-modules/ocp-ocamlres/default.nix
Normal file
26
pkgs/development/ocaml-modules/ocp-ocamlres/default.nix
Normal file
@ -0,0 +1,26 @@
|
|||||||
|
{ stdenv, fetchFromGitHub, ocaml, findlib, pprint }:
|
||||||
|
|
||||||
|
stdenv.mkDerivation rec {
|
||||||
|
name = "ocaml${ocaml.version}-ocp-ocamlres-${version}";
|
||||||
|
version = "0.3";
|
||||||
|
src = fetchFromGitHub {
|
||||||
|
owner = "OCamlPro";
|
||||||
|
repo = "ocp-ocamlres";
|
||||||
|
rev = "v${version}";
|
||||||
|
sha256 = "0pm1g38f6pmch1x4pcc09ky587x5g7p7n9dfbbif8zkjqr603ixg";
|
||||||
|
};
|
||||||
|
|
||||||
|
buildInputs = [ ocaml findlib pprint ];
|
||||||
|
createFindlibDestdir = true;
|
||||||
|
|
||||||
|
installFlags = [ "BINDIR=$(out)/bin" ];
|
||||||
|
preInstall = "mkdir -p $out/bin";
|
||||||
|
|
||||||
|
meta = {
|
||||||
|
description = "A simple tool and library to embed files and directories inside OCaml executables";
|
||||||
|
license = stdenv.lib.licenses.lgpl3Plus;
|
||||||
|
homepage = https://www.typerex.org/ocp-ocamlres.html;
|
||||||
|
maintainers = [ stdenv.lib.maintainers.vbgl ];
|
||||||
|
inherit (ocaml.meta) platforms;
|
||||||
|
};
|
||||||
|
}
|
@ -393,6 +393,8 @@ let
|
|||||||
|
|
||||||
ocp-index = callPackage ../development/tools/ocaml/ocp-index { ocpIndent = ocpIndent_1_5_2; };
|
ocp-index = callPackage ../development/tools/ocaml/ocp-index { ocpIndent = ocpIndent_1_5_2; };
|
||||||
|
|
||||||
|
ocp-ocamlres = callPackage ../development/ocaml-modules/ocp-ocamlres { };
|
||||||
|
|
||||||
ocplib-endian = callPackage ../development/ocaml-modules/ocplib-endian { };
|
ocplib-endian = callPackage ../development/ocaml-modules/ocplib-endian { };
|
||||||
|
|
||||||
ocplib-json-typed = callPackage ../development/ocaml-modules/ocplib-json-typed { };
|
ocplib-json-typed = callPackage ../development/ocaml-modules/ocplib-json-typed { };
|
||||||
|
Loading…
x
Reference in New Issue
Block a user