Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: NixOS/nixpkgs
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 5853515f6c15
Choose a base ref
...
head repository: NixOS/nixpkgs
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 34db9b5ee342
Choose a head ref
  • 3 commits
  • 4 files changed
  • 1 contributor

Commits on Apr 1, 2020

  1. Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    8e686ba View commit details
  2. Copy the full SHA
    206cf8a View commit details
  3. Verified

    This commit was signed with the committer’s verified signature.
    mrgrain Momo Kornher
    Copy the full SHA
    34db9b5 View commit details
20 changes: 11 additions & 9 deletions pkgs/development/ocaml-modules/gnuplot/default.nix
Original file line number Diff line number Diff line change
@@ -1,19 +1,21 @@
{ stdenv, buildDunePackage, fetchFromBitbucket, gnuplot, core }:
{ lib, buildDunePackage, fetchFromGitHub, gnuplot, iso8601 }:

buildDunePackage rec {
pname = "gnuplot";
version = "0.5.3";
version = "0.7";

src = fetchFromBitbucket {
owner = "ogu";
repo = "${pname}-ocaml";
rev = "release-${version}";
sha256 = "00sn9g46pj8pfh7faiyxg3pfhq7w9knafyabjr464bh6qz5kiin3";
minimumOCamlVersion = "4.03";

src = fetchFromGitHub {
owner = "c-cube";
repo = "ocaml-${pname}";
rev = "v${version}";
sha256 = "02pzi3lb57ysrdsba743s3vmnapjbxgq8ynlzpxbbs6cn1jj6ch9";
};

propagatedBuildInputs = [ core gnuplot ];
propagatedBuildInputs = [ gnuplot iso8601 ];

meta = with stdenv.lib; {
meta = with lib; {
inherit (src.meta) homepage;
description = "Ocaml bindings to Gnuplot";
maintainers = [ maintainers.bcdarwin ];
31 changes: 31 additions & 0 deletions pkgs/development/ocaml-modules/ocaml-r/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
{ lib, fetchFromGitHub, buildDunePackage, pkg-config, configurator, stdio, R }:

buildDunePackage rec {
pname = "ocaml-r";
version = "0.2.0";

src = fetchFromGitHub {
owner = "pveber";
repo = pname;
rev = "v${version}";
sha256 = "09gljccwjsw9693m1hm9hcyvgp3p2fvg3cfn18yyidpc2f81a4fy";
};

# Without the following patch, stub generation fails with:
# > Fatal error: exception (Failure "not supported: osVersion")
preConfigure = ''
substituteInPlace stubgen/stubgen.ml --replace \
'failwithf "not supported: %s" name ()' \
'sprintf "(* not supported: %s *)" name'
'';

buildInputs = [ configurator pkg-config R stdio ];

meta = {
description = "OCaml bindings for the R interpreter";
inherit (src.meta) homepage;
license = lib.licenses.gpl3;
maintainers = [ lib.maintainers.bcdarwin ];
};

}
10 changes: 5 additions & 5 deletions pkgs/development/ocaml-modules/phylogenetics/default.nix
Original file line number Diff line number Diff line change
@@ -1,23 +1,23 @@
{ stdenv, buildDunePackage, fetchFromGitHub, ppx_deriving
, alcotest, biocaml, gnuplot, lacaml, menhir, owl }:
, alcotest, biocaml, gnuplot, lacaml, menhir, ocaml-r, owl, printbox }:

buildDunePackage rec {
pname = "phylogenetics";
version = "unstable-2019-11-15";
version = "unstable-2020-01-05";

useDune2 = true;

src = fetchFromGitHub {
owner = "biocaml";
repo = pname;
rev = "91c03834db065cf4a86f33affbb9cfd216defc9f";
sha256 = "0i9m0633a6a724as35ix8z3p1gj267cl0hmqrpw4qfq39zxmgnxb";
rev = "b55ef7d7322bd822be26d21339945d45487fb547";
sha256 = "0hzfjhs5w3a7hlzxs739k5ik3k1xn3dzyzziid765s74f638n4hj";
};

minimumOCamlVersion = "4.08"; # e.g., uses Float.min

checkInputs = [ alcotest ];
propagatedBuildInputs = [ biocaml gnuplot lacaml menhir owl ppx_deriving ];
propagatedBuildInputs = [ biocaml gnuplot lacaml menhir ocaml-r owl ppx_deriving printbox ];

doCheck = false; # many tests require bppsuite

2 changes: 2 additions & 0 deletions pkgs/top-level/ocaml-packages.nix
Original file line number Diff line number Diff line change
@@ -615,6 +615,8 @@ let

pgocaml_ppx = callPackage ../development/ocaml-modules/pgocaml/ppx.nix {};

ocaml-r = callPackage ../development/ocaml-modules/ocaml-r { };

ocaml-sat-solvers = callPackage ../development/ocaml-modules/ocaml-sat-solvers { };

ocamlscript = callPackage ../development/tools/ocaml/ocamlscript { };