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

12 lines
465 B
Nix

{ stdenv, fetchurl, ocaml, findlib
, version ? if stdenv.lib.versionAtLeast (stdenv.lib.getVersion ocaml) "4.02" then "20151110" else "20140422"
}@args:
let
sha256 =
if version == "20140422" then "1ki1f2id6a14h9xpv2k8yb6px7dyw8cvwh39csyzj4qpzx7wia0d"
else if version == "20151110" then "12ijr1gd808f79d7k7ji9zg23xr4szayfgvm6njqamh0jnspq70r"
else throw ("menhir: unknown version " ++ version);
in
import ./generic.nix (args // { inherit version sha256; })