From 655231a612cf550c0556f6fa6bd705c9daba7d6c Mon Sep 17 00:00:00 2001 From: Vincent Laporte Date: Mon, 3 Dec 2018 14:45:03 +0000 Subject: [PATCH] coqPackages.simple-io: init at 0.2 Purely functional IO for Coq. homepage: https://github.com/Lysxia/coq-simple-io --- .../coq-modules/simple-io/default.nix | 32 +++++++++++++++++++ pkgs/top-level/coq-packages.nix | 1 + 2 files changed, 33 insertions(+) create mode 100644 pkgs/development/coq-modules/simple-io/default.nix diff --git a/pkgs/development/coq-modules/simple-io/default.nix b/pkgs/development/coq-modules/simple-io/default.nix new file mode 100644 index 000000000000..b945e7c9a866 --- /dev/null +++ b/pkgs/development/coq-modules/simple-io/default.nix @@ -0,0 +1,32 @@ +{ stdenv, fetchFromGitHub, coq }: + +stdenv.mkDerivation rec { + version = "0.2"; + name = "coq${coq.coq-version}-simple-io-${version}"; + src = fetchFromGitHub { + owner = "Lysxia"; + repo = "coq-simple-io"; + rev = version; + sha256 = "1sbcf57gn134risiicpbxsf4kbzdq7klfn4vn8525kahlr82l65f"; + }; + + buildInputs = [ coq ] ++ (with coq.ocamlPackages; [ ocaml ocamlbuild ]); + + doCheck = !stdenv.lib.versionAtLeast coq.coq-version "8.9"; + checkTarget = "test"; + + installFlags = [ "COQLIB=$(out)/lib/coq/${coq.coq-version}/" ]; + + meta = { + description = "Purely functional IO for Coq"; + inherit (src.meta) homepage; + inherit (coq.meta) platforms; + license = stdenv.lib.licenses.mit; + maintainers = [ stdenv.lib.maintainers.vbgl ]; + }; + + passthru = { + compatibleCoqVersions = v: stdenv.lib.versionAtLeast v "8.6"; + }; + +} diff --git a/pkgs/top-level/coq-packages.nix b/pkgs/top-level/coq-packages.nix index 5a392b20cae5..4c7361d3517e 100644 --- a/pkgs/top-level/coq-packages.nix +++ b/pkgs/top-level/coq-packages.nix @@ -36,6 +36,7 @@ let multinomials = callPackage ../development/coq-modules/multinomials {}; paco = callPackage ../development/coq-modules/paco {}; QuickChick = callPackage ../development/coq-modules/QuickChick {}; + simple-io = callPackage ../development/coq-modules/simple-io { }; ssreflect = callPackage ../development/coq-modules/ssreflect { }; stdpp = callPackage ../development/coq-modules/stdpp { }; StructTact = callPackage ../development/coq-modules/StructTact {};