about summary refs log tree commit diff
path: root/pkgs/development/ocaml-modules/ocp-ocamlres
diff options
context:
space:
mode:
authorVincent Laporte <Vincent.Laporte@gmail.com>2017-06-30 22:23:21 +0000
committerVincent Laporte <Vincent.Laporte@gmail.com>2017-07-01 08:58:21 +0000
commit1551975e64fca2c6975b87cf0b05431a123df6f0 (patch)
treeeb3b333167913130765f69582ed6309699f1fe07 /pkgs/development/ocaml-modules/ocp-ocamlres
parent81e46dbb29c0218e057df151e6377bf59b98db13 (diff)
downloadnixlib-1551975e64fca2c6975b87cf0b05431a123df6f0.tar
nixlib-1551975e64fca2c6975b87cf0b05431a123df6f0.tar.gz
nixlib-1551975e64fca2c6975b87cf0b05431a123df6f0.tar.bz2
nixlib-1551975e64fca2c6975b87cf0b05431a123df6f0.tar.lz
nixlib-1551975e64fca2c6975b87cf0b05431a123df6f0.tar.xz
nixlib-1551975e64fca2c6975b87cf0b05431a123df6f0.tar.zst
nixlib-1551975e64fca2c6975b87cf0b05431a123df6f0.zip
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
Diffstat (limited to 'pkgs/development/ocaml-modules/ocp-ocamlres')
-rw-r--r--pkgs/development/ocaml-modules/ocp-ocamlres/default.nix26
1 files changed, 26 insertions, 0 deletions
diff --git a/pkgs/development/ocaml-modules/ocp-ocamlres/default.nix b/pkgs/development/ocaml-modules/ocp-ocamlres/default.nix
new file mode 100644
index 000000000000..bf0e98ec1952
--- /dev/null
+++ b/pkgs/development/ocaml-modules/ocp-ocamlres/default.nix
@@ -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;
+	};
+}