1 { lib, callPackage, mkCoqDerivation, coq, coq-ext-lib, version ? null }:
6 repo = "coq-simple-io";
8 defaultVersion = with lib.versions; lib.switch coq.coq-version [
9 { case = range "8.11" "8.19"; out = "1.8.0"; }
10 { case = range "8.7" "8.13"; out = "1.3.0"; }
12 release."1.8.0".sha256 = "sha256-3ADNeXrBIpYRlfUW+LkLHUWV1w1HFrVc/TZISMuwvRY=";
13 release."1.7.0".sha256 = "sha256:1a1q9x2abx71hqvjdai3n12jxzd49mhf3nqqh3ya2ssl2lj609ci";
14 release."1.3.0".sha256 = "1yp7ca36jyl9kz35ghxig45x6cd0bny2bpmy058359p94wc617ax";
16 nativeBuildInputs = [ coq.ocamlPackages.cppo ];
17 propagatedBuildInputs = [ coq-ext-lib ]
18 ++ (with coq.ocamlPackages; [ ocaml findlib ocamlbuild ]);
23 passthru.tests.HelloWorld = callPackage ./test.nix {};
26 description = "Purely functional IO for Coq";
27 license = licenses.mit;
28 maintainers = [ maintainers.vbgl ];
30 }).overrideAttrs (o: lib.optionalAttrs (lib.versionAtLeast o.version "1.8.0" || o.version == "dev") {