1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-03 02:51:18 +00:00
nixpkgs/pkgs/development/coq-modules/simple-io/default.nix
Vincent Laporte 655231a612 coqPackages.simple-io: init at 0.2
Purely functional IO for Coq.

homepage: https://github.com/Lysxia/coq-simple-io
2018-12-10 15:35:34 +00:00

33 lines
848 B
Nix

{ 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";
};
}