Skip to content

Commit

Permalink
ocamlPackages.nonstd,facile: run dune upgrade for newer ocaml versions
Browse files Browse the repository at this point in the history
This allows us to build the packages on OCaml >=4.12

Co-authored-by: Sandro <[email protected]>
  • Loading branch information
2 people authored and vbgl committed Mar 25, 2022
1 parent 661ee6b commit d6e2e39
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
7 changes: 4 additions & 3 deletions pkgs/development/ocaml-modules/facile/default.nix
Original file line number Diff line number Diff line change
@@ -1,18 +1,19 @@
{ lib, fetchurl, buildDunePackage }:
{ lib, fetchurl, buildDunePackage, ocaml }:

buildDunePackage rec {
pname = "facile";
version = "1.1.4";

useDune2 = false;

src = fetchurl {
url = "https://github.com/Emmanuel-PLF/facile/releases/download/${version}/facile-${version}.tbz";
sha256 = "0jqrwmn6fr2vj2rrbllwxq4cmxykv7zh0y4vnngx29f5084a04jp";
};

doCheck = true;

useDune2 = lib.versionAtLeast ocaml.version "4.12";
postPatch = lib.optionalString useDune2 "dune upgrade";

meta = {
homepage = "http://opti.recherche.enac.fr/facile/";
license = lib.licenses.lgpl21Plus;
Expand Down
6 changes: 3 additions & 3 deletions pkgs/development/ocaml-modules/nonstd/default.nix
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
{ lib, fetchzip, buildDunePackage }:
{ lib, fetchzip, buildDunePackage, ocaml }:

buildDunePackage rec {
pname = "nonstd";
version = "0.0.3";

useDune2 = false;

minimalOCamlVersion = "4.02";

src = fetchzip {
url = "https://bitbucket.org/smondet/${pname}/get/${pname}.${version}.tar.gz";
sha256 = "0ccjwcriwm8fv29ij1cnbc9win054kb6pfga3ygzdbjpjb778j46";
};

useDune2 = lib.versionAtLeast ocaml.version "4.12";
postPatch = lib.optionalString useDune2 "dune upgrade";
doCheck = true;

meta = with lib; {
Expand Down

0 comments on commit d6e2e39

Please sign in to comment.