2022-10-21 18:38:19 +00:00
|
|
|
{ lib, callPackage, mkCoqDerivation, coq, coq-ext-lib, version ? null }:
|
2021-01-09 10:05:03 +00:00
|
|
|
|
2023-07-15 17:15:38 +00:00
|
|
|
(mkCoqDerivation {
|
2021-01-09 10:05:03 +00:00
|
|
|
pname = "simple-io";
|
|
|
|
owner = "Lysxia";
|
|
|
|
repo = "coq-simple-io";
|
|
|
|
inherit version;
|
2023-02-02 18:25:31 +00:00
|
|
|
defaultVersion = with lib.versions; lib.switch coq.coq-version [
|
2024-01-02 11:29:13 +00:00
|
|
|
{ case = range "8.11" "8.19"; out = "1.8.0"; }
|
2022-04-27 09:35:20 +00:00
|
|
|
{ case = range "8.7" "8.13"; out = "1.3.0"; }
|
|
|
|
] null;
|
2023-07-15 17:15:38 +00:00
|
|
|
release."1.8.0".sha256 = "sha256-3ADNeXrBIpYRlfUW+LkLHUWV1w1HFrVc/TZISMuwvRY=";
|
2022-04-27 09:35:20 +00:00
|
|
|
release."1.7.0".sha256 = "sha256:1a1q9x2abx71hqvjdai3n12jxzd49mhf3nqqh3ya2ssl2lj609ci";
|
2021-01-09 10:05:03 +00:00
|
|
|
release."1.3.0".sha256 = "1yp7ca36jyl9kz35ghxig45x6cd0bny2bpmy058359p94wc617ax";
|
2022-04-27 09:35:20 +00:00
|
|
|
mlPlugin = true;
|
2022-06-16 17:23:12 +00:00
|
|
|
nativeBuildInputs = [ coq.ocamlPackages.cppo ];
|
2022-10-21 18:38:19 +00:00
|
|
|
propagatedBuildInputs = [ coq-ext-lib ]
|
|
|
|
++ (with coq.ocamlPackages; [ ocaml findlib ocamlbuild ]);
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
doCheck = true;
|
|
|
|
checkTarget = "test";
|
|
|
|
|
2022-10-21 18:38:19 +00:00
|
|
|
passthru.tests.HelloWorld = callPackage ./test.nix {};
|
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "Purely functional IO for Coq";
|
2021-01-09 10:05:03 +00:00
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = [ maintainers.vbgl ];
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
2023-07-15 17:15:38 +00:00
|
|
|
}).overrideAttrs (o: lib.optionalAttrs (lib.versionAtLeast o.version "1.8.0" || o.version == "dev") {
|
|
|
|
doCheck = false;
|
|
|
|
useDune = true;
|
|
|
|
})
|