Skip to content

Commit 1551975

Browse files
committedJul 1, 2017
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
1 parent 81e46db commit 1551975

File tree

2 files changed

+28
-0
lines changed

2 files changed

+28
-0
lines changed
 
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
{ stdenv, fetchFromGitHub, ocaml, findlib, pprint }:
2+
3+
stdenv.mkDerivation rec {
4+
name = "ocaml${ocaml.version}-ocp-ocamlres-${version}";
5+
version = "0.3";
6+
src = fetchFromGitHub {
7+
owner = "OCamlPro";
8+
repo = "ocp-ocamlres";
9+
rev = "v${version}";
10+
sha256 = "0pm1g38f6pmch1x4pcc09ky587x5g7p7n9dfbbif8zkjqr603ixg";
11+
};
12+
13+
buildInputs = [ ocaml findlib pprint ];
14+
createFindlibDestdir = true;
15+
16+
installFlags = [ "BINDIR=$(out)/bin" ];
17+
preInstall = "mkdir -p $out/bin";
18+
19+
meta = {
20+
description = "A simple tool and library to embed files and directories inside OCaml executables";
21+
license = stdenv.lib.licenses.lgpl3Plus;
22+
homepage = https://www.typerex.org/ocp-ocamlres.html;
23+
maintainers = [ stdenv.lib.maintainers.vbgl ];
24+
inherit (ocaml.meta) platforms;
25+
};
26+
}

‎pkgs/top-level/ocaml-packages.nix

+2
Original file line numberDiff line numberDiff line change
@@ -393,6 +393,8 @@ let
393393

394394
ocp-index = callPackage ../development/tools/ocaml/ocp-index { ocpIndent = ocpIndent_1_5_2; };
395395

396+
ocp-ocamlres = callPackage ../development/ocaml-modules/ocp-ocamlres { };
397+
396398
ocplib-endian = callPackage ../development/ocaml-modules/ocplib-endian { };
397399

398400
ocplib-json-typed = callPackage ../development/ocaml-modules/ocplib-json-typed { };

0 commit comments

Comments
 (0)
Please sign in to comment.