nixpkgs/pkgs/development/ocaml-modules/menhir/default.nix

13 lines
465 B
Nix
Raw Normal View History

{ stdenv, fetchurl, ocaml, findlib
2015-12-15 20:36:57 +00:00
, version ? if stdenv.lib.versionAtLeast (stdenv.lib.getVersion ocaml) "4.02" then "20151112" else "20140422"
}@args:
let
sha256 =
if version == "20140422" then "1ki1f2id6a14h9xpv2k8yb6px7dyw8cvwh39csyzj4qpzx7wia0d"
2015-12-15 20:36:57 +00:00
else if version == "20151112" then "0fhfs96gxnj920h5ydsg7c1qypsbrlzqfn2cqzrg9rfj1qq6wq86"
else throw ("menhir: unknown version " ++ version);
in
import ./generic.nix (args // { inherit version sha256; })