Merge remote-tracking branch 'origin/master' into staging.
This commit is contained in:
34
pkgs/development/ocaml-modules/ansiterminal/default.nix
Normal file
34
pkgs/development/ocaml-modules/ansiterminal/default.nix
Normal file
@@ -0,0 +1,34 @@
|
||||
{ stdenv, fetchurl, ocaml, findlib }:
|
||||
|
||||
stdenv.mkDerivation {
|
||||
|
||||
name = "ansiterminal-0.6.5";
|
||||
|
||||
src = fetchurl {
|
||||
url = "https://forge.ocamlcore.org/frs/download.php/1206/ANSITerminal-0.6.5.tar.gz";
|
||||
sha256 = "1j9kflv2i16vf9hy031cl6z8hv6791mjbhnd9bw07y1pswdlx1r6";
|
||||
};
|
||||
|
||||
buildInputs = [ ocaml findlib ];
|
||||
|
||||
configurePhase = "ocaml setup.ml -configure --prefix $out";
|
||||
|
||||
buildPhase = "ocaml setup.ml -build";
|
||||
|
||||
installPhase = "ocaml setup.ml -install";
|
||||
|
||||
createFindlibDestdir = true;
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
homepage = "https://forge.ocamlcore.org/projects/ansiterminal";
|
||||
description = "A module allowing to use the colors and cursor movements on ANSI terminals";
|
||||
longDescription = ''
|
||||
ANSITerminal is a module allowing to use the colors and cursor
|
||||
movements on ANSI terminals. It also works on the windows shell (but
|
||||
this part is currently work in progress).
|
||||
'';
|
||||
license = licenses.lgpl3;
|
||||
platforms = ocaml.meta.platforms;
|
||||
maintainers = [ maintainers.jirkamarsik ];
|
||||
};
|
||||
}
|
||||
41
pkgs/development/ocaml-modules/bolt/default.nix
Normal file
41
pkgs/development/ocaml-modules/bolt/default.nix
Normal file
@@ -0,0 +1,41 @@
|
||||
{ stdenv, fetchurl, ocaml, findlib, which }:
|
||||
|
||||
let inherit (stdenv.lib) getVersion versionAtLeast; in
|
||||
|
||||
assert versionAtLeast (getVersion ocaml) "4.00.0";
|
||||
assert versionAtLeast (getVersion findlib) "1.3.3";
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
|
||||
name = "bolt-1.4";
|
||||
|
||||
src = fetchurl {
|
||||
url = "https://forge.ocamlcore.org/frs/download.php/1043/${name}.tar.gz";
|
||||
sha256 = "1c807wrpxra9sbb34lajhimwra28ldxv04m570567lh2b04n38zy";
|
||||
};
|
||||
|
||||
buildInputs = [ ocaml findlib which ];
|
||||
|
||||
# The custom `configure` script does not expect the --prefix
|
||||
# option. Installation is handled by ocamlfind.
|
||||
dontAddPrefix = true;
|
||||
|
||||
createFindlibDestdir = true;
|
||||
|
||||
buildFlags = "all";
|
||||
|
||||
doCheck = true;
|
||||
checkTarget = "tests";
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
homepage = "http://bolt.x9c.fr";
|
||||
description = "A logging tool for the OCaml language";
|
||||
longDescription = ''
|
||||
Bolt is a logging tool for the OCaml language. It is inspired by and
|
||||
modeled after the famous log4j logging framework for Java.
|
||||
'';
|
||||
license = licenses.lgpl3;
|
||||
platforms = ocaml.meta.platforms;
|
||||
maintainers = [ maintainers.jirkamarsik ];
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user