ocamlPackages.pyml: init at 20210226

Co-authored-by: Vincent Laporte <vbgl@users.noreply.github.com>
This commit is contained in:
Ulrik Strid 2021-09-21 08:45:55 +00:00 committed by Vincent Laporte
parent 993fe6176a
commit 7054010222
2 changed files with 46 additions and 0 deletions

View file

@ -0,0 +1,44 @@
{ stdenv, lib, fetchFromGitHub, ocaml, findlib, utop, python3, stdcompat, ncurses }:
stdenv.mkDerivation rec {
pname = "pyml";
version = "20210226";
src = fetchFromGitHub {
owner = "thierry-martinez";
repo = pname;
rev = version;
sha256 = "15xk6bgdzsf04d6wdjpr3s1ci2g7d7qnbq3102avkz179d5n62h7";
};
buildInputs = [
ocaml
findlib
utop
ncurses
];
propagatedBuildInputs = [
python3
stdcompat
];
buildPhase = ''
make all pymltop pymlutop PREFIX=$out
'';
installPhase = ''
runHook preInstall
mkdir -p $out/bin
mkdir -p $OCAMLFIND_DESTDIR/stublibs
make install PREFIX=$out
runHook postInstall
'';
doCheck = true;
meta = {
description = "OCaml bindings for Python";
license = lib.licenses.bsd2;
};
}

View file

@ -1184,6 +1184,8 @@ let
pycaml = callPackage ../development/ocaml-modules/pycaml { };
pyml = callPackage ../development/ocaml-modules/pyml { };
qcheck-alcotest = callPackage ../development/ocaml-modules/qcheck/alcotest.nix { };
qcheck-core = callPackage ../development/ocaml-modules/qcheck/core.nix { };