1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-25 03:17:13 +00:00
nixpkgs/pkgs/development/coq-modules/equations/default.nix

56 lines
1.2 KiB
Nix
Raw Normal View History

{ stdenv, fetchFromGitHub, coq }:
let param =
{
"8.6" = {
2017-12-20 18:54:08 +00:00
version = "1.0";
rev = "v1.0";
sha256 = "19ylw9v9g35607w4hm86j7mmkghh07hmkc1ls5bqlz3dizh5q4pj";
};
"8.7" = {
2017-12-20 18:54:08 +00:00
version = "1.0";
rev = "v1.0-8.7";
sha256 = "1bavg4zl1xn0jqrdq8iw7xqzdvdf39ligj9saz5m9c507zri952h";
};
"8.8" = {
version = "1.0";
rev = "v1.0-8.8";
sha256 = "129rxsdsf88vjcw0xhm74yax1hmnk6f8n9ksg0hcyyjq1ijddiwa";
};
}."${coq.coq-version}"
; in
stdenv.mkDerivation rec {
name = "coq${coq.coq-version}-equations-${version}";
version = "${param.version}";
src = fetchFromGitHub {
owner = "mattam82";
repo = "Coq-Equations";
rev = "${param.rev}";
sha256 = "${param.sha256}";
};
buildInputs = [ coq.ocaml coq.camlp5 coq.findlib coq ];
preBuild = "coq_makefile -f _CoqProject -o Makefile";
installFlags = "COQLIB=$(out)/lib/coq/${coq.coq-version}/";
meta = with stdenv.lib; {
homepage = https://mattam82.github.io/Coq-Equations/;
description = "A plugin for Coq to add dependent pattern-matching";
maintainers = with maintainers; [ jwiegley ];
platforms = coq.meta.platforms;
};
passthru = {
compatibleCoqVersions = v: builtins.elem v [ "8.6" "8.7" ];
};
}