git.iko.soy/typeable/nixpkgs
on master help sign in
Merge pull request #49349 from vbgl/ocaml-menhir-20181026

ocamlPackages.menhir: 20170712 -> 20181026

commitaa1e0ac98146c51d9487e5e43ca00edadbe19397 authorJörg Thalheim <Mic92@users.noreply.github.com> dateSun 28 Oct 2018, 21:06 (8 years ago) parentba0aea380bb1db
3 files changed+16−13
pkgs/development/ocaml-modules/menhir/default.nix+8−6 pkgs/development/ocaml-modules/menhir/generic.nix+2−5 pkgs/top-level/ocaml-packages.nix+6−2
pkgs/development/ocaml-modules/menhir/default.nix+8−6
@@ -1,12 +1,14 @@
11{ stdenv, fetchurl, ocaml, findlib, ocamlbuild
2−, version ? if stdenv.lib.versionAtLeast (stdenv.lib.getVersion ocaml) "4.02" then "20170712" else "20140422"
2+, version ? if stdenv.lib.versionAtLeast (stdenv.lib.getVersion ocaml) "4.02" then "20181026" else "20140422"
33}@args:
44
55let
6− sha256 =
7− if version == "20140422" then "1ki1f2id6a14h9xpv2k8yb6px7dyw8cvwh39csyzj4qpzx7wia0d"
8− else if version == "20170712" then "006hq3bwj81j67f2k9cgzj5wr4hai8j36925p5n3sd2j01ljsj6a"
9− else throw ("menhir: unknown version " ++ version);
6+ src = fetchurl (
7+ if version == "20140422" then { url = "http://cristal.inria.fr/~fpottier/menhir/menhir-20140422.tar.gz"; sha256 = "1ki1f2id6a14h9xpv2k8yb6px7dyw8cvwh39csyzj4qpzx7wia0d"; }
8+ else if version == "20170712" then { url = "http://gallium.inria.fr/~fpottier/menhir/menhir-20170712.tar.gz"; sha256 = "006hq3bwj81j67f2k9cgzj5wr4hai8j36925p5n3sd2j01ljsj6a"; }
9+ else if version == "20181026" then { url = "https://gitlab.inria.fr/fpottier/menhir/repository/20181026/archive.tar.gz"; sha256 = "1zhacw60996i9b88kbnfvrvjk3ps9p9n9syjk9np545jp8l0582g"; }
10+ else throw ("menhir: unknown version " ++ version)
11+ );
1012in
1113
12−import ./generic.nix (args // { inherit version sha256; })
14+import ./generic.nix (args // { inherit version src; })
pkgs/development/ocaml-modules/menhir/generic.nix+2−5
@@ -1,12 +1,9 @@
1−{ version, sha256, stdenv, fetchurl, ocaml, findlib, ocamlbuild }:
1+{ version, src, stdenv, fetchurl, ocaml, findlib, ocamlbuild }:
22
33stdenv.mkDerivation {
44 name = "menhir-${version}";
55
6− src = fetchurl {
7− url = "http://pauillac.inria.fr/~fpottier/menhir/menhir-${version}.tar.gz";
8− inherit sha256;
9− };
6+ inherit src;
107
118 buildInputs = [ ocaml findlib ocamlbuild ];
129
pkgs/top-level/ocaml-packages.nix+6−2
@@ -1024,11 +1024,15 @@ let
10241024
10251025 omake_rc1 = callPackage ../development/tools/ocaml/omake/0.9.8.6-rc1.nix { };
10261026
1027− verasco = callPackage ../development/tools/analysis/verasco (
1027+ verasco = callPackage ../development/tools/analysis/verasco ((
10281028 if system == "x86_64-linux"
10291029 then { tools = pkgs.pkgsi686Linux.stdenv.cc; }
10301030 else {}
1031− );
1031+ ) // {
1032+ menhir = callPackage ../development/ocaml-modules/menhir {
1033+ version = "20170712";
1034+ };
1035+ });
10321036
10331037 google-drive-ocamlfuse = callPackage ../applications/networking/google-drive-ocamlfuse { };
10341038