···1{ stdenv, fetchurl, ocaml, findlib, ocamlbuild
2-, version ? if stdenv.lib.versionAtLeast (stdenv.lib.getVersion ocaml) "4.02" then "20170101" else "20140422"
3}@args:
45let
6 sha256 =
7 if version == "20140422" then "1ki1f2id6a14h9xpv2k8yb6px7dyw8cvwh39csyzj4qpzx7wia0d"
8- else if version == "20170101" then "0ika46i9gn3sjvspa62fb5dnr20k783vg5fj30649q0ialv6yscr"
9 else throw ("menhir: unknown version " ++ version);
10in
11
···1{ stdenv, fetchurl, ocaml, findlib, ocamlbuild
2+, version ? if stdenv.lib.versionAtLeast (stdenv.lib.getVersion ocaml) "4.02" then "20170418" else "20140422"
3}@args:
45let
6 sha256 =
7 if version == "20140422" then "1ki1f2id6a14h9xpv2k8yb6px7dyw8cvwh39csyzj4qpzx7wia0d"
8+ else if version == "20170418" then "0avxkighxfr9x3vh2dkc5r1k2w7q2dz005w7syyzr7qjybpavpii"
9 else throw ("menhir: unknown version " ++ version);
10in
11
+1-1
pkgs/development/ocaml-modules/menhir/generic.nix
···36 and Yann Régis-Gianas.
37 '';
38 license = with licenses; [
39- qpl /* generator */
40 lgpl2 /* library */
41 ];
42 platforms = ocaml.meta.platforms or [];
···36 and Yann Régis-Gianas.
37 '';
38 license = with licenses; [
39+ (if versionAtLeast version "20170418" then gpl2 else qpl) /* generator */
40 lgpl2 /* library */
41 ];
42 platforms = ocaml.meta.platforms or [];