ocamlPackages: make explicit some version requirements
This commit is contained in:
parent
1bacfb4637
commit
752351e889
@ -1,5 +1,8 @@
|
|||||||
{ stdenv, fetchurl, ocaml, jbuilder, findlib }:
|
{ stdenv, fetchurl, ocaml, jbuilder, findlib }:
|
||||||
|
|
||||||
|
if !stdenv.lib.versionAtLeast ocaml.version "4.03"
|
||||||
|
then throw "base is not available for OCaml ${ocaml.version}" else
|
||||||
|
|
||||||
stdenv.mkDerivation {
|
stdenv.mkDerivation {
|
||||||
name = "ocaml${ocaml.version}-base-0.9.0";
|
name = "ocaml${ocaml.version}-base-0.9.0";
|
||||||
|
|
||||||
|
@ -2,6 +2,9 @@
|
|||||||
, bos, cmdliner, ocamlgraph
|
, bos, cmdliner, ocamlgraph
|
||||||
}:
|
}:
|
||||||
|
|
||||||
|
if !stdenv.lib.versionAtLeast ocaml.version "4.03"
|
||||||
|
then throw "functoria is not available for OCaml ${ocaml.version}" else
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
name = "ocaml${ocaml.version}-functoria-${version}";
|
name = "ocaml${ocaml.version}-functoria-${version}";
|
||||||
version = "2.0.2";
|
version = "2.0.2";
|
||||||
|
@ -1,5 +1,8 @@
|
|||||||
{ stdenv, fetchFromGitHub, ocaml, findlib, owee }:
|
{ stdenv, fetchFromGitHub, ocaml, findlib, owee }:
|
||||||
|
|
||||||
|
if !stdenv.lib.versionAtLeast ocaml.version "4.04"
|
||||||
|
then throw "spacetime_lib is not available for OCaml ${ocaml.version}" else
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
name = "ocaml${ocaml.version}-spacetime_lib-${version}";
|
name = "ocaml${ocaml.version}-spacetime_lib-${version}";
|
||||||
version = "0.1.0";
|
version = "0.1.0";
|
||||||
|
Loading…
Reference in New Issue
Block a user