82a1153d6d
We don’t want these to not even evaluate, otherwise we won’t know why
they’re broken. For now, I’ve left these as the latest version for a
default. In the future, maybe we should be smarter about choosing these.
(cherry picked from commit e20b65156c
)
55 lines
1.3 KiB
Nix
55 lines
1.3 KiB
Nix
{ stdenv, fetchFromGitHub, coq }:
|
|
|
|
let
|
|
params = {
|
|
"8.6" = {
|
|
version = "1.0";
|
|
rev = "v1.0";
|
|
sha256 = "19ylw9v9g35607w4hm86j7mmkghh07hmkc1ls5bqlz3dizh5q4pj";
|
|
};
|
|
|
|
"8.7" = {
|
|
version = "1.0";
|
|
rev = "v1.0-8.7";
|
|
sha256 = "1bavg4zl1xn0jqrdq8iw7xqzdvdf39ligj9saz5m9c507zri952h";
|
|
};
|
|
|
|
"8.8" = {
|
|
version = "1.0";
|
|
rev = "v1.0-8.8";
|
|
sha256 = "0dd7zd5j2sv5cw3mfwg33ss2vcj634q3qykakc41sv7f3rfgqfnn";
|
|
};
|
|
};
|
|
param = params."${coq.coq-version}" or params."8.8";
|
|
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 = with coq.ocamlPackages; [ ocaml camlp5 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.hasAttr v params;
|
|
};
|
|
|
|
}
|