2016-10-08 07:44:25 +01:00
|
|
|
{ stdenv, fetchurl, ocaml, findlib, ocamlbuild
|
2016-11-17 17:07:12 +00:00
|
|
|
, version ? if stdenv.lib.versionAtLeast (stdenv.lib.getVersion ocaml) "4.02" then "20161115" else "20140422"
|
2015-11-11 11:24:42 +00:00
|
|
|
}@args:
|
* Add ocaml packages findlib, camlzip, ocaml-ssl, ocaml-batteries, menhir, camomile, ocaml-lwt, cryptokit, ocaml-cryptgps, ounit, ocaml-react
svn path=/nixpkgs/trunk/; revision=25041
2010-12-09 15:40:04 +00:00
|
|
|
|
|
|
|
let
|
2015-11-11 11:24:42 +00:00
|
|
|
sha256 =
|
|
|
|
if version == "20140422" then "1ki1f2id6a14h9xpv2k8yb6px7dyw8cvwh39csyzj4qpzx7wia0d"
|
2016-11-17 17:07:12 +00:00
|
|
|
else if version == "20161115" then "1j8nmcj2gq6hyyi16z27amiahplgrnk4ppchpm0v4qy80kwkf47k"
|
2015-11-11 11:24:42 +00:00
|
|
|
else throw ("menhir: unknown version " ++ version);
|
* Add ocaml packages findlib, camlzip, ocaml-ssl, ocaml-batteries, menhir, camomile, ocaml-lwt, cryptokit, ocaml-cryptgps, ounit, ocaml-react
svn path=/nixpkgs/trunk/; revision=25041
2010-12-09 15:40:04 +00:00
|
|
|
in
|
|
|
|
|
2015-11-11 11:24:42 +00:00
|
|
|
import ./generic.nix (args // { inherit version sha256; })
|