From 10b26327165fed253c73f7eb9e27db34dc58740a Mon Sep 17 00:00:00 2001 From: Vincent Laporte Date: Tue, 5 Apr 2022 08:51:28 +0200 Subject: [PATCH] =?UTF-8?q?coqPackages.simple-io:=201.3.0=20=E2=86=92=201.?= =?UTF-8?q?7.0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pkgs/development/coq-modules/simple-io/default.nix | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/pkgs/development/coq-modules/simple-io/default.nix b/pkgs/development/coq-modules/simple-io/default.nix index 693ff2b01d6..bcc391c4f72 100644 --- a/pkgs/development/coq-modules/simple-io/default.nix +++ b/pkgs/development/coq-modules/simple-io/default.nix @@ -5,10 +5,17 @@ with lib; mkCoqDerivation { owner = "Lysxia"; repo = "coq-simple-io"; inherit version; - defaultVersion = if versions.range "8.7" "8.13" coq.coq-version then "1.3.0" else null; + defaultVersion = with versions; switch coq.coq-version [ + { case = range "8.11" "8.15"; out = "1.7.0"; } + { case = range "8.7" "8.13"; out = "1.3.0"; } + ] null; + release."1.7.0".sha256 = "sha256:1a1q9x2abx71hqvjdai3n12jxzd49mhf3nqqh3ya2ssl2lj609ci"; release."1.3.0".sha256 = "1yp7ca36jyl9kz35ghxig45x6cd0bny2bpmy058359p94wc617ax"; - extraNativeBuildInputs = (with coq.ocamlPackages; [ ocaml ocamlbuild ]); - propagatedBuildInputs = [ coq-ext-lib ]; + extraNativeBuildInputs = (with coq.ocamlPackages; [ cppo zarith ]); + propagatedBuildInputs = [ coq-ext-lib ] + ++ (with coq.ocamlPackages; [ ocaml ocamlbuild ]); + + mlPlugin = true; doCheck = true; checkTarget = "test";